/* Trackleads Minecraft Portal - Pixel-Look, Akzent: Trackleads-Gold #ffb700 */

:root {
    --bg: #141210;
    --card: #1e1b17;
    --card-edge-hell: rgba(255, 255, 255, .07);
    --card-edge-dunkel: rgba(0, 0, 0, .55);
    --border: #000;
    --text: #ece9e2;
    --muted: #9b958a;
    --accent: #ffb700;
    --accent-dunkel: #cc9200;
    --gruen: #54c45e;
    --danger: #c84a3f;
    --pixel: "Press Start 2P", monospace;
    --mono: "VT323", monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background-color: var(--bg);
    /* dezentes Pixel-Schachbrett wie der Dirt-Hintergrund im MC-Menue */
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, .012) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .012) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, .012) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .012) 75%);
    background-position: 0 0, 8px 8px;
    background-size: 16px 16px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 20px;
    line-height: 1.45;
}

header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border);
    background: #0e0c0a;
    box-shadow: 0 2px 0 rgba(255, 183, 0, .25);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}
.brand img {
    width: 38px;
    height: 38px;
    image-rendering: pixelated;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .6));
}
.brand span {
    font-family: var(--pixel);
    font-size: 14px;
    color: var(--accent);
    text-shadow: 2px 2px 0 #3f2d00;
    letter-spacing: 1px;
}

nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
nav a {
    color: var(--text);
    text-decoration: none;
    font-family: var(--pixel);
    font-size: 9px;
    padding: 6px 2px;
}
nav a:hover { color: var(--accent); text-shadow: 1px 1px 0 #3f2d00; }

main { max-width: 780px; margin: 0 auto; padding: 24px 16px 40px; }

/* MC-Panel: harte Kanten, schwarzer Rand, Pixel-Bevel */
.card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 0;
    box-shadow:
        inset 2px 2px 0 var(--card-edge-hell),
        inset -2px -2px 0 var(--card-edge-dunkel),
        4px 4px 0 rgba(0, 0, 0, .35);
    padding: 20px;
    margin-bottom: 24px;
}

h2 {
    margin: 0 0 14px;
    font-family: var(--pixel);
    font-size: 13px;
    color: var(--accent);
    text-shadow: 2px 2px 0 #3f2d00;
    line-height: 1.6;
}
h3 {
    margin: 18px 0 8px;
    font-family: var(--pixel);
    font-size: 10px;
    color: var(--text);
}

label { display: block; margin: 12px 0 4px; color: var(--muted); font-size: 19px; }

input, select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 0;
    background: #0d0c0a;
    color: var(--text);
    font-family: var(--mono);
    font-size: 20px;
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .6), inset -1px -1px 0 rgba(255, 255, 255, .05);
}
input:focus, select:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-color: var(--accent);
}
td select { width: auto; padding: 4px 8px; font-size: 17px; margin: 0; }

input[type="color"] {
    width: 54px;
    height: 44px;
    padding: 3px;
    cursor: pointer;
    flex: 0 0 auto;
    box-shadow: none;
}

/* MC-Knopf: Pixel-Bevel, Gold als Primaerfarbe */
button {
    margin-top: 14px;
    padding: 11px 18px 10px;
    border: 2px solid var(--border);
    border-radius: 0;
    background: var(--accent);
    color: #1b1300;
    font-family: var(--pixel);
    font-size: 10px;
    line-height: 1.4;
    cursor: pointer;
    box-shadow:
        inset 2px 2px 0 rgba(255, 255, 255, .45),
        inset -2px -3px 0 rgba(0, 0, 0, .35),
        3px 3px 0 rgba(0, 0, 0, .4);
}
button:hover { background: #ffc733; }
button:active {
    transform: translate(2px, 2px);
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .25), 1px 1px 0 rgba(0, 0, 0, .4);
}
button.secondary {
    background: #6f6f6f;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .5);
}
button.secondary:hover { background: #7f7f7f; }
button.danger {
    background: var(--danger);
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .5);
}
button.danger:hover { background: #d95c51; }
button.small { padding: 6px 10px 5px; font-size: 8px; margin-top: 0; box-shadow: inset 1px 1px 0 rgba(255,255,255,.35), inset -1px -2px 0 rgba(0,0,0,.35), 2px 2px 0 rgba(0,0,0,.4); }
button.linklike {
    background: none;
    border: none;
    box-shadow: none;
    color: var(--muted);
    margin: 0;
    padding: 6px 2px;
    font-family: var(--pixel);
    font-size: 9px;
    cursor: pointer;
}
button.linklike:hover { color: var(--accent); background: none; }
button.linklike:active { transform: none; }

form.inline { display: inline; }
form.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
form.row input { flex: 1 1 220px; width: auto; }
form.row button { margin-top: 0; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
td, th { padding: 7px 8px; border-bottom: 2px solid rgba(0, 0, 0, .45); text-align: left; font-size: 19px; }
th { color: var(--muted); font-family: var(--pixel); font-size: 9px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

.level { font-size: 20px; margin: 12px 0; }
.level strong {
    font-family: var(--pixel);
    color: var(--accent);
    font-size: 22px;
    text-shadow: 2px 2px 0 #3f2d00;
}

.badge {
    display: inline-block;
    padding: 3px 8px 2px;
    border: 1px solid rgba(0, 0, 0, .6);
    border-radius: 0;
    font-family: var(--pixel);
    font-size: 7px;
    vertical-align: middle;
    text-shadow: none;
}
.badge.on { background: #1d3b22; color: #7fdc8a; }     /* Gruen: online, wie XP */
.badge.off { background: #3a3a36; color: var(--muted); }
.badge.adm { background: #3f2d00; color: var(--accent); }
.badge.team { box-shadow: 1px 1px 0 rgba(0, 0, 0, .5); }

.flash {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 0;
    margin-bottom: 18px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .35);
    font-size: 19px;
}
.flash-ok { background: #263d1f; color: #b9ecbf; }      /* Gruen darf hier: Erfolg = XP-Gefuehl */
.flash-err { background: #43211f; color: #f1c2c0; }

.muted { color: var(--muted); font-size: 18px; }

pre.log, p.log {
    background: #0b0a08;
    border: 2px solid var(--border);
    border-radius: 0;
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .6);
    padding: 12px;
    font-family: var(--mono);
    font-size: 17px;
    line-height: 1.35;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 420px;
    overflow-y: auto;
    color: #cfc9bd;
}

code {
    background: #0b0a08;
    border: 1px solid rgba(255, 183, 0, .25);
    padding: 1px 6px;
    font-family: var(--mono);
    font-size: .95em;
    color: var(--accent);
}

ol { padding-left: 22px; }
ol li { margin-bottom: 6px; }

hr { border: 0; border-top: 2px solid rgba(0, 0, 0, .5); margin: 20px 0; }

footer {
    text-align: center;
    color: var(--muted);
    font-size: 17px;
    padding: 16px 16px 30px;
}

/* Startseite: Emblem frei ueber dem Login-Block */
.hero-logo {
    display: block;
    width: 110px;
    height: 110px;
    margin: 8px auto 22px;
    image-rendering: pixelated;
    filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .55));
}
.center { text-align: center; }

/* kompakter Login-Block */
.card.login {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 18px;
}
.card.login h2 { font-size: 11px; margin-bottom: 8px; }
.card.login label { margin-top: 8px; font-size: 18px; }
.card.login .muted { font-size: 16px; margin-bottom: 0; }
.card.login button { margin-top: 12px; }

/* --- Rang (Prestige-Abzeichen aus dem TrackleadsCore-Plugin) --- */
.level { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prestige-icon { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .6)); }
.card.highlight { box-shadow: 0 0 0 2px var(--accent), 4px 4px 0 rgba(0, 0, 0, .45); }
input.small-num { width: 80px; display: inline-block; margin: 0 6px 0 0; padding: 4px 6px; }
td form.inline { display: inline-flex; align-items: center; gap: 4px; }

/* --- Karte (BlueMap, nur 2D, mit Nebel) --- */
main.wide { max-width: none; padding: 12px 16px 16px; }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 10px; }
.map-bar label { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.map-bar select { width: auto; margin: 0; }
.map-bar a { margin-left: auto; color: var(--accent); }
.map-frame {
    height: calc(100vh - 220px);
    min-height: 420px;
    border: 2px solid var(--border);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .35);
    background: #1b1814;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-hint { margin: 8px 0 0; font-size: 17px; }

/* --- Navigation: aktiver Reiter, Umschalter Admin/Spieler --- */
nav a.active { color: var(--accent); text-shadow: 1px 1px 0 #3f2d00; border-bottom: 2px solid var(--accent); }
nav a.switch { border: 1px solid var(--accent); padding: 5px 8px; color: var(--accent); }
nav a.switch:hover { background: #3f2d00; }

/* --- Rangliste --- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.tabs .tab {
    font-family: var(--pixel); font-size: 8px; padding: 7px 9px; text-decoration: none;
    color: var(--text); background: #2a2621; border: 2px solid var(--border);
}
.tabs .tab.active { background: var(--accent); color: #1b1814; }
td.platz { width: 3.5em; font-size: 20px; }

/* --- Admin: Status & Aktionen --- */
.st { display: inline-block; width: 22px; text-align: center; font-size: 16px; line-height: 1; opacity: .25; filter: grayscale(1);
    font-family: system-ui, "Segoe UI Emoji", sans-serif; cursor: help; }
.st.ja { opacity: 1; filter: none; }
#spieler-tabelle td:nth-child(2) { white-space: nowrap; width: 1%; }
.legende { margin: 0 0 8px; font-size: 15px; color: var(--muted); }
.legende .st { cursor: default; }
.badge.warn { background: #3d3115; color: #f0c674; }
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kopfzeile h2 { margin-bottom: 0; }
.kopfzeile button { margin-top: 0; }
label.filter { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
label.filter select { width: auto; }
.badge.ban { background: #43211f; color: #f1c2c0; }
dialog.aktionen-popup { min-width: 300px; }
dialog.aktionen-popup h3 { margin-top: 0; }
dialog.aktionen-popup hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0 4px; }
dialog.aktionen-popup form.aktion { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 0; }
dialog.aktionen-popup form.aktion button { margin-top: 0; }
dialog.aktionen-popup form[method="dialog"] { margin-top: 14px; text-align: right; }
dialog.aktionen-popup form.aktion input { width: 11em; margin: 0; padding: 3px 6px; font-size: 16px; }

/* Links im Inhalt im Trackleads-Gold statt Browser-Blau */
main a { color: var(--accent); }
main a:hover { color: #ffd166; }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; }

/* Spielerkoepfe (8x8 von BlueMap, pixelig hochskaliert) */
img.kopf { width: 24px; height: 24px; image-rendering: pixelated; vertical-align: middle; margin-right: 8px;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, .6); }
img.kopf.gross { width: 40px; height: 40px; margin-right: 12px; }

/* --- Prestige: XP-Balken, Info-Popup, Admin --- */
.xpbar { height: 18px; margin: 4px 0 6px; background: #12100e; border: 2px solid var(--border);
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .5); }
.xpbar span { display: block; height: 100%; background: linear-gradient(#ffd166, var(--accent) 60%, var(--accent-dunkel)); }
.xptext { margin: 0 0 12px; font-size: 18px; }
.info-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: 0 0 0 8px;
    padding: 0; border: 0; border-radius: 50%; background: none; color: var(--accent); font-size: 24px; line-height: 1;
    cursor: pointer; box-shadow: none; text-shadow: none; vertical-align: middle; font-family: system-ui, "Segoe UI Symbol", sans-serif; }
.info-btn:active { transform: none; box-shadow: none; }
.info-btn:hover, .info-btn:focus-visible { color: #ffd166; background: none; }
dialog.popup { max-width: 520px; background: var(--card); color: var(--text); border: 2px solid var(--accent);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, .5); padding: 18px 22px; }
dialog.popup::backdrop { background: rgba(0, 0, 0, .65); }
dialog.popup ul { padding-left: 1.2em; }
dialog.popup li { margin-bottom: 6px; }
.prestige-form label small { display: block; margin-top: 2px; font-size: 15px; }
tr.meilenstein td { color: var(--accent); }
dialog.popup strong { font-family: inherit; font-size: inherit; text-shadow: none; color: var(--accent); }

/* ============================== Startseite ============================== */
main.wide > section { max-width: 980px; margin-left: auto; margin-right: auto; }
.hero { text-align: center; padding: 8px 0 24px; }
.eyebrow { font-family: var(--pixel); font-size: 9px; color: var(--muted); letter-spacing: 1px; margin: 18px 0 6px; }
.hero h1 { font-family: var(--pixel); font-size: clamp(18px, 4vw, 30px); line-height: 1.5; color: var(--accent);
    text-shadow: 3px 3px 0 #3f2d00; margin: 0 0 14px; }
.hero .lead { max-width: 640px; margin: 0 auto 16px; font-size: 22px; }
.status { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 0 0 18px; }
.koepfe { display: inline-flex; align-items: center; }
.koepfe img.kopf { width: 24px; height: 24px; margin: 0 0 0 -4px; border: 2px solid var(--bg, #1b1814); }
.koepfe img.kopf:first-child { margin-left: 0; }
.koepfe .mehr { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; margin-left: 4px;
    padding: 0 4px; font-family: var(--pixel); font-size: 9px; color: var(--muted); background: #2a2621; border: 2px solid var(--border); cursor: default; }
button.pill.wl { margin: 0; background: #43211f; color: #f1c2c0; cursor: pointer; text-shadow: none; }
button.pill.wl:hover { background: #57302c; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-family: var(--pixel); font-size: 9px;
    border: 2px solid var(--border); box-shadow: 2px 2px 0 rgba(0, 0, 0, .4); }
.pill.on { background: #1d3b22; color: #7fdc8a; }
.pill.off { background: #43211f; color: #f1c2c0; }
.pill .dot { width: 8px; height: 8px; background: #7fdc8a; box-shadow: 0 0 6px #7fdc8a; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
a.btn { display: inline-block; padding: 12px 16px 11px; font-family: var(--pixel); font-size: 10px; text-decoration: none;
    color: #1b1814; background: var(--accent); border: 2px solid var(--border);
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.35), inset -2px -3px 0 rgba(0,0,0,.35), 3px 3px 0 rgba(0,0,0,.45); }
a.btn:hover { background: #ffc633; color: #1b1814; }
a.btn.ghost { background: #3a3a36; color: var(--text); }
a.btn.ghost:hover { background: #4a4a45; color: var(--text); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.feature { background: var(--card); border: 2px solid var(--border); padding: 16px 18px;
    box-shadow: inset 2px 2px 0 var(--card-edge-hell), inset -2px -2px 0 var(--card-edge-dunkel), 3px 3px 0 rgba(0,0,0,.35); }
.feature-icon { font-size: 28px; line-height: 1; margin-bottom: 8px; color: var(--accent); }
.feature h3 { font-family: var(--pixel); font-size: 10px; color: var(--accent); margin: 0 0 8px; }
.feature p { margin: 0; font-size: 19px; }
.adresse { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: flex-end; margin: 0 0 16px; }
.adresse > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adresse .label { display: block; width: 100%; font-size: 15px; color: var(--muted); }
.adresse button { margin-top: 0; }
.join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.join { background: #16130f; border: 2px solid var(--border); padding: 14px 16px; }
.join-icon { font-size: 26px; line-height: 1; }
.join h3 { margin: 8px 0 0; }
.join p.muted { margin: 2px 0 8px; font-size: 16px; }
.join ol { margin: 0; padding-left: 1.3em; }
.join li { margin-bottom: 4px; }
.hinweis { margin: 14px 0 0; font-size: 16px; color: var(--muted); }
code.addr { display: inline-block; font-size: 20px; padding: 4px 8px; background: #000; color: var(--accent); border: 1px solid #3f2d00; }
ol.steps { padding-left: 1.4em; }
ol.steps li { margin-bottom: 6px; }

/* --- Szene: Steve holt Bloecke vom Trackleads-Logo --- */
.scene { position: relative; height: 230px; max-width: 900px; margin: 0 auto; overflow: hidden;
    border: 2px solid var(--border); box-shadow: 3px 3px 0 rgba(0,0,0,.4);
    background: linear-gradient(#1c2a4a, #3b5a8a 70%, #6d8fbf); image-rendering: pixelated; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 48px;
    background:
        linear-gradient(#5aa83a 0 10px, transparent 10px),
        repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 2px, transparent 2px 24px),
        linear-gradient(#8a5a33, #6b4424); border-top: 2px solid #2e5a1c; }
.scene-logo { position: absolute; bottom: 48px; left: 50%; width: 110px; transform: translateX(-50%);
    filter: drop-shadow(3px 3px 0 rgba(0,0,0,.45)); }
.sky-cloud { position: absolute; height: 14px; background: rgba(255,255,255,.85); box-shadow: 14px -8px 0 -2px rgba(255,255,255,.85); }
.sky-cloud.c1 { width: 70px; top: 30px; left: -80px; animation: cloud 38s linear infinite; }
.sky-cloud.c2 { width: 50px; top: 62px; left: -60px; animation: cloud 52s linear infinite 12s; }
@keyframes cloud { to { transform: translateX(1100px); } }

.pile { position: absolute; bottom: 48px; left: 34%; display: grid; grid-template-columns: 26px 26px; grid-template-rows: 26px 26px; }
.blk { width: 26px; height: 26px; border: 2px solid rgba(0,0,0,.45); box-shadow: inset 3px 3px 0 rgba(255,255,255,.3), inset -3px -3px 0 rgba(0,0,0,.25); }
.blk.b1 { grid-column: 1; grid-row: 2; background: #ffb700; }
.blk.b2 { grid-column: 2; grid-row: 2; background: #8a5a33; }
.blk.b3 { grid-column: 1; grid-row: 1; background: #ffb700; animation: target 20s linear infinite; }
@keyframes target {
    0%, 18% { opacity: 1; transform: none; }
    19.2%, 21.6%, 24%, 26.4% { transform: translate(1px, -1px); }
    20.4%, 22.8%, 25.2% { transform: translate(-1px, 1px); }
    27.6% { opacity: 1; transform: scale(.8); }
    28.2%, 96% { opacity: 0; transform: scale(.2); }
    98%, 100% { opacity: 1; transform: none; }
}

.steve-walk { position: absolute; bottom: 48px; left: -12%; width: 40px; animation: walk 20s linear infinite; }
.steve-flip { animation: flip 20s steps(1) infinite; transform-origin: center; }
.steve-svg { display: block; width: 40px; height: 80px; }
@keyframes walk { 0% { left: -12%; } 16.8%, 30% { left: calc(34% - 44px); } 49.2%, 100% { left: -12%; } }
@keyframes flip { 0% { transform: scaleX(1); } 29.4% { transform: scaleX(-1); } }
.steve-legs .leg-a, .steve-legs .leg-b { animation: step .5s steps(2) infinite; transform-box: fill-box; transform-origin: top; }
.steve-legs .leg-b { animation-delay: -.25s; }
@keyframes step { 0% { transform: rotate(18deg); } 100% { transform: rotate(-18deg); } }
.steve-arm { transform-box: fill-box; transform-origin: 0 0; animation: mine 20s linear infinite; }
@keyframes mine {
    0%, 17.4% { transform: rotate(0); }
    18.6%, 21%, 23.4%, 25.8% { transform: rotate(-70deg); }
    19.8%, 22.2%, 24.6%, 27% { transform: rotate(10deg); }
    28.2%, 100% { transform: rotate(-15deg); }
}
.steve-arm .hacke { animation: hacke 20s steps(1) infinite; }
.steve-arm .carry { opacity: 0; animation: carry 20s steps(1) infinite; }
@keyframes hacke { 0% { opacity: 1; } 28.2% { opacity: 0; } }
@keyframes carry { 0% { opacity: 0; } 28.2% { opacity: 1; } 50.4% { opacity: 0; } }

/* Creeper: kommt von rechts, schaut sich um, geht wieder - explodiert nicht */
.creeper-walk { position: absolute; bottom: 48px; left: 112%; width: 40px; animation: creeper 20s linear infinite; }
.creeper-flip { animation: creeper-flip 20s steps(1) infinite; transform-origin: center; }
.creeper-svg { display: block; width: 40px; height: 80px; }
@keyframes creeper { 0%, 58% { left: 112%; } 72%, 86% { left: calc(50% + 70px); } 99%, 100% { left: 112%; } }
@keyframes creeper-flip {
    0% { transform: scaleX(1); }
    76% { transform: scaleX(-1); } 79% { transform: scaleX(1); } 82% { transform: scaleX(-1); } 84% { transform: scaleX(1); }
    86% { transform: scaleX(-1); }
}
.creeper-legs .leg-a, .creeper-legs .leg-b { animation: creeper-step .4s steps(2) infinite; }
.creeper-legs .leg-b { animation-delay: -.2s; }
@keyframes creeper-step { 0% { transform: translateY(0); } 100% { transform: translateY(-.6px); } }
@media (prefers-reduced-motion: reduce) {
    .scene *, .pill .dot { animation: none !important; }
    .steve-walk { left: calc(34% - 44px); }
    .creeper-walk { display: none; }
}

/* --- Admin: Auslastung --- */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.kennzahl { background: #16130f; border: 2px solid var(--border); border-left: 4px solid var(--muted); padding: 8px 10px; }
.kennzahl span { display: block; font-size: 15px; color: var(--muted); }
.kennzahl b { font-size: 20px; font-weight: normal; }
.kennzahl.ok { border-left-color: var(--gruen); }
.kennzahl.warn { border-left-color: var(--accent); }
.kennzahl.crit { border-left-color: var(--danger); }
ul.diagnose { list-style: none; padding: 0; margin: 6px 0 14px; }
ul.diagnose li { padding: 6px 10px; margin-bottom: 6px; background: #16130f; border-left: 4px solid var(--muted); }
ul.diagnose li.ok { border-left-color: var(--gruen); }
ul.diagnose li.warn { border-left-color: var(--accent); }
ul.diagnose li.crit { border-left-color: var(--danger); }
.diagramme { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; margin-top: 14px; }
figure.diagramm { margin: 0; background: #16130f; border: 2px solid var(--border); padding: 8px 10px; }
figure.diagramm figcaption { font-size: 17px; margin-bottom: 4px; }
figure.diagramm svg { display: block; width: 100%; height: 170px; }
figure.diagramm .gitter { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
figure.diagramm .achse { fill: var(--muted); font-size: 11px; font-family: system-ui, sans-serif; }
figure.diagramm .grenze { stroke: var(--danger); stroke-width: 1; stroke-dasharray: 2 3; }
figure.diagramm .grenze-text { fill: var(--danger); font-size: 10px; font-family: system-ui, sans-serif; }
.legende-zeile { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; margin-top: 4px; }
.legende-zeile .leg i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: middle; }
.legende-zeile .leg b { font-weight: normal; color: var(--text); }

/* --- Rechtliches & Fusszeile --- */
.card.legal h3 { margin-top: 18px; }
footer .foot-links { display: flex; justify-content: center; gap: 18px; margin-bottom: 6px; }
footer .foot-links a { color: var(--accent); text-decoration: none; }
footer .foot-links a:hover { text-decoration: underline; }
footer .foot-note { font-size: 14px; margin-top: 4px; opacity: .7; }
#auslastung td.num, #auslastung td:first-child { white-space: nowrap; }

/* --- So joinst du: erst Plattform waehlen, dann Anleitung --- */
.join-wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 14px; }
.join-wahl button { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 14px 10px;
    background: #16130f; color: var(--text); border: 2px solid var(--border); box-shadow: 3px 3px 0 rgba(0, 0, 0, .35);
    font-family: var(--mono); font-size: 18px; text-shadow: none; cursor: pointer; }
.join-wahl button:hover { background: #221e18; }
.join-wahl button[aria-selected="true"] { border-color: var(--accent); background: #2a2214; }
.join-wahl .join-icon { font-size: 28px; line-height: 1; }
.join-wahl b { font-weight: normal; color: var(--accent); font-size: 20px; }
.join-wahl small { color: var(--muted); font-size: 15px; text-align: center; }
.anleitung { background: #16130f; border: 2px solid var(--border); border-left: 4px solid var(--accent); padding: 12px 16px; }
.anleitung ol { margin: 0 0 12px; padding-left: 1.3em; }
.anleitung li { margin-bottom: 6px; }
.anleitung .adresse { margin-bottom: 4px; }

/* --- Handy --- */
@media (max-width: 600px) {
    .pile { display: none; }               /* Bloecke wuerden ins Logo ragen */
    .scene { height: 190px; }
    .scene-logo { width: 90px; }
    .join-wahl { grid-template-columns: 1fr; }
    .join-wahl button { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 0;
        align-items: center; justify-items: start; padding: 10px 12px; text-align: left; }
    .join-wahl .join-icon { grid-row: 1 / 3; }
    .join-wahl small { text-align: left; }
    .adresse { gap: 10px; }
    code.addr { font-size: 17px; }
    .status { gap: 8px; }
}
