/* Settla 2027 – eigenes Design über dem Grundgerüst (style.css): ruhig, gut lesbar, modern.
   Nachtblau als Rahmen, Petrol und Bernstein als Akzente, Systemschrift statt Pixel-Schrift. */
:root {
    --bg: #f3f5f8;
    --bg-2: #e8ecf1;
    --card: #ffffff;
    --card-2: #f6f8fb;
    --line: #dde3ea;
    --text: #1b2430;
    --muted: #5f6b7a;
    --green: #1f8a70;
    --green-2: #23a083;
    --green-3: #176b57;
    --gold: #c27c0e;
    --red: #c8423b;
    --blue: #2563eb;
    --ink: #14213d;
    --ink-2: #1e2f55;
    --amber: #f2b33d;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 6px 20px rgba(20, 33, 61, .06);
    --hover: #f1f6f5;
    --btn2: #e7ecf2;
    --btn2-hover: #dbe2ea;
    --hinweis: #fff8e8;
    --kachel: rgba(255, 255, 255, .96);
    --nav-text: #dfe6f3;
    --pixel: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
}

body { -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--pixel); font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.25rem; }
h2.sub { font-size: 1rem; margin-top: 1rem; color: var(--muted); }

/* Verwaltung: Einstellungen nach Kategorien */
.einstellungen-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; align-items: start; }
.einstellungen-kategorien { display: flex; flex-direction: column; gap: .25rem; position: sticky; top: 1rem; }
.einstellungen-kategorien button { text-align: left; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 10px;
    background: var(--card); color: var(--text); font: inherit; cursor: pointer; display: flex; gap: .4rem; align-items: center; }
.einstellungen-kategorien button .small { margin-left: auto; }
.einstellungen-kategorien button:hover { border-color: var(--green); }
.einstellungen-kategorien button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.einstellungen-kategorien button.active .muted { color: #cfd6e4; }
.einstellung-gruppe { margin-bottom: 1rem; }
.einstellung-gruppe h2 { margin-top: 0; }
/* Rechte & Ränge */
.rechte-layout { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 1rem; align-items: start; }
.rechte-layout form.grid label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
.rechte-layout form.row { margin: .4rem 0 .8rem; flex-wrap: wrap; }
@media (max-width: 760px) {
    .einstellungen-layout { grid-template-columns: 1fr; }
    .rechte-layout { grid-template-columns: 1fr; }
    .einstellungen-kategorien { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* Profil: nächster Schritt, offene Erfolge/Lizenzen, Berufsbalken, Geburtstag */
.next-step { border-left: 5px solid var(--amber); background: linear-gradient(90deg, var(--hinweis), var(--card) 60%); }
.next-step h2 { margin: .2rem 0 .3rem; }
.achievement.open { opacity: .55; border-style: dashed; }
.achievement.open strong { font-weight: 600; }
td.job-bar { width: 35%; }
td.job-bar .bar { margin: 0; }
.badge.small { font-size: .72rem; padding: .05rem .45rem; }
.birthday-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.birthday-form select { width: auto; }
a { color: var(--green); }

/* Kopfzeile */
.topbar { background: var(--ink); box-shadow: 0 2px 12px rgba(20, 33, 61, .25); padding: .6rem 1.5rem; }
.topbar::after { display: none; }
.brand { font-size: 1.3rem; font-weight: 800; text-shadow: none; letter-spacing: -.01em; }
.brand-sub { color: var(--amber); font-weight: 600; }
.nav a { font-size: .95rem; font-weight: 600; text-shadow: none; border-radius: 8px; padding: .45rem .7rem; color: var(--nav-text); }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a.active { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 -2px 0 var(--amber); }
.user { color: var(--nav-text); }
.user .link { color: var(--amber); }

/* Fußzeile */
.footer { background: var(--ink); color: #aab6c8; }
.footer::before { display: none; }
.footer a { color: var(--amber); }

/* Karten, Tabellen, Abzeichen */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat .label { font-weight: 700; letter-spacing: .04em; }
th { background: var(--card-2); font-weight: 700; }
tbody tr:hover { background: var(--hover); }
.badge { border-radius: 999px; padding: .12rem .6rem; font-weight: 700; }
.bar { border-radius: 999px; box-shadow: none; }
.bar > span:first-child { border-radius: 999px 0 0 999px; }
.item-icon { border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); }

/* Knöpfe: flach und rund statt Minecraft-Klötze */
.btn { font-family: var(--pixel); font-weight: 650; font-size: .95rem; letter-spacing: 0; text-shadow: none;
    background: var(--green); border: 0; border-radius: 10px; padding: .6rem 1.15rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.btn:hover { background: var(--green-2); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.secondary { background: var(--btn2); color: var(--text); box-shadow: none; }
.btn.secondary:hover { background: var(--btn2-hover); }
.btn.danger { background: var(--red); box-shadow: none; }
.btn.confirm { background: var(--amber); color: var(--ink); box-shadow: none; }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], textarea, select {
    border: 1px solid var(--line); border-radius: 10px; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(31, 138, 112, .25); border-color: var(--green); }

/* Anmeldeseite und Startbereich */
.server-ip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.25rem; border-radius: 8px; background: var(--ink); color: var(--amber); }
.team-role { font-family: var(--pixel); }
.hero { border-radius: var(--radius); }

/* FAQ und Anleitungen */
.faq-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1.5rem; }
.faq-nav a { padding: .35rem .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ol, .faq details ul { margin: .6rem 0 .2rem; color: var(--text); }
.schritte { counter-reset: schritt; display: grid; gap: .8rem; }
.schritt { counter-increment: schritt; display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; align-items: start; }
.schritt::before { content: counter(schritt); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
    background: var(--green); color: #fff; font-weight: 800; }
.schritt h3 { color: var(--text); font-size: 1rem; margin: .35rem 0 .2rem; }
.schritt p { margin: 0; color: var(--muted); }

/* Verwaltung */
.admin-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.admin-tabs a { padding: .4rem .9rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.admin-tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.einstellung-zeile input { max-width: 220px; }

/* Startseite: Serverstädte von oben im Wechsel, große Einstiege */
.login-scene { background: var(--ink); }
.login-bg { filter: blur(2px) saturate(1.1) brightness(.85); }
.login-scene::after { background: radial-gradient(ellipse at center, rgba(20, 33, 61, .25), rgba(20, 33, 61, .75)); }
.login-stadt { position: absolute; right: 1.2rem; bottom: 1rem; z-index: 1; color: rgba(255, 255, 255, .85); font-weight: 700;
    font-size: .95rem; letter-spacing: .02em; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.login-stadt:not(:empty)::before { content: "📍 "; }
.login .card { border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.login-hero { text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.start-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.start-kachel { display: grid; gap: .3rem; padding: 1.3rem 1.4rem; border-radius: var(--radius); background: var(--kachel);
    color: var(--text); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); transition: transform .12s, box-shadow .12s; }
.start-kachel:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.start-kachel strong { font-size: 1.3rem; color: var(--ink); }
.start-kachel span:last-child { color: var(--muted); font-weight: 400; }
.start-symbol { font-size: 2rem; line-height: 1; }

/* Kopfbereich: Landschaft statt grüner Fläche */
.hero { background: linear-gradient(120deg, var(--ink), var(--ink-2)); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-head { box-shadow: 0 0 0 3px rgba(255, 255, 255, .8); border-radius: 8px; }

/* Nach oben */
.nach-oben { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 20; width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: var(--ink); color: #fff; font-size: 1.3rem; box-shadow: 0 6px 18px rgba(20, 33, 61, .35); }
.nach-oben:hover { background: var(--ink-2); }
body.map-mode .nach-oben { display: none; }

/* ---- Designs (Einstellungen → Design; Auswahl je Browser) --------------------------------
   html[data-theme] schlägt sowohl :root oben als auch die alten [data-theme]-Regeln aus style.css. */
html[data-theme]:not([data-theme="tag"]) body:not(.map-mode) { background: var(--bg); }
html[data-theme] .topbar { background: var(--ink); }
html[data-theme] tbody tr:hover { background: var(--hover); }
html[data-theme] .btn.secondary { background: var(--btn2); color: var(--text); box-shadow: none; }
html[data-theme] input[type=text], html[data-theme] input[type=password], html[data-theme] input[type=email],
html[data-theme] input[type=search], html[data-theme] input[type=number], html[data-theme] textarea, html[data-theme] select {
    background: var(--card); color: var(--text); }

/* Nacht: dunkel und ruhig */
html[data-theme="abend"] {
    --bg: #11151d; --bg-2: #181e29; --card: #1b2230; --card-2: #212a3a; --line: #2c3749;
    --text: #e7ecf4; --muted: #9aa7ba; --green: #3fbf99; --green-2: #52d1ab; --green-3: #2b8f72;
    --gold: #f2b33d; --red: #ff7b6e; --blue: #7fb6ff; --ink: #0a0e15; --ink-2: #131a26; --amber: #f2b33d;
    --hover: #222c3d; --btn2: #2a3448; --btn2-hover: #334058; --hinweis: #2a2416; --kachel: rgba(27, 34, 48, .96);
    --nav-text: #c9d3e3; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
    color-scheme: dark;
}
/* Kirschblüte: hell mit Rosa */
html[data-theme="kirschbluete"] {
    --bg: #fbf3f6; --bg-2: #f5e4eb; --card: #ffffff; --card-2: #fcf5f8; --line: #efd3de;
    --green: #c2477a; --green-2: #d65e90; --green-3: #8e2a55; --ink: #4a1c33; --ink-2: #5c2641; --amber: #ffb3cf;
    --hover: #fbeef3; --btn2: #f5e4eb; --btn2-hover: #efd6e0; --hinweis: #fff0f5; --nav-text: #f6dbe7;
}
/* Ozean: frisches Blau */
html[data-theme="ozean"] {
    --bg: #eff6fa; --bg-2: #dcecf5; --card: #ffffff; --card-2: #f4f9fc; --line: #c9e0ec;
    --green: #127fa3; --green-2: #1a95c0; --green-3: #0b5a76; --ink: #0c2b44; --ink-2: #123a59; --amber: #ffd27a;
    --hover: #eaf4fa; --btn2: #dcecf5; --btn2-hover: #cbe2ef; --hinweis: #fff7e3; --nav-text: #cfe3f1;
}
/* Minecraft: Gras, Erde und Sand – mehr Spielgefühl, trotzdem aufgeräumt */
html[data-theme="minecraft"] {
    --bg: #ece4d3; --bg-2: #e2d7c0; --card: #fffaf0; --card-2: #f6efe0; --line: #d6c7a8;
    --text: #2b2118; --muted: #6e5d49; --green: #4f8a2b; --green-2: #5fa035; --green-3: #3b6a1f;
    --gold: #b07a12; --ink: #3a2a1b; --ink-2: #4a3626; --amber: #f2c14e;
    --hover: #f3ead8; --btn2: #e2d7c0; --btn2-hover: #d8cbae; --hinweis: #fff3d6; --nav-text: #eadfc9;
    --radius: 6px;
}
html[data-theme="minecraft"] .topbar { background: linear-gradient(#5fa035 0 6px, var(--ink) 6px); }
html[data-theme="minecraft"] .card { border-width: 2px; }
html[data-theme="minecraft"] .btn { border-radius: 4px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }

/* Auswahl in den Einstellungen */
.design-auswahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.design-auswahl button { display: grid; gap: .3rem; text-align: left; padding: .6rem; border: 2px solid var(--line); border-radius: 10px;
    background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.design-auswahl button.active { border-color: var(--green); }
.design-muster { display: flex; height: 26px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .1); }
.design-muster span { flex: 1; }

/* Chat (#/chat) */
.chat-box { display: flex; flex-direction: column; gap: .6rem; }
.chat-liste { height: min(60vh, 520px); overflow-y: auto; display: flex; flex-direction: column; gap: .25rem; padding-right: .3rem; }
.chat-zeile { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; padding: .2rem .3rem; border-radius: 6px; }
.chat-zeile:hover { background: var(--hover); }
.chat-zeile.web { border-left: 3px solid var(--green); }
.chat-zeile.ich strong { color: var(--green); }
.chat-zeile span:last-child { overflow-wrap: anywhere; }
.chat-eingabe input { flex: 1; min-width: 0; }

/* Eröffnung auf der Startseite */
.eroeffnung { margin-bottom: 1.4rem; padding: 1.8rem 1.6rem; text-align: center; border-radius: var(--radius); background: var(--kachel);
    border-top: 5px solid #e8a317; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); color: var(--text); }
.eroeffnung h2 { margin: .2rem 0 .6rem; font-size: 2rem; color: var(--ink); }
.eroeffnung-marke { display: inline-block; margin: 0; padding: .2rem .8rem; border-radius: 999px; background: #e8a317; color: #241a00; font-weight: 700; }
.eroeffnung-text { max-width: 620px; margin: 0 auto 1.2rem; }
.eroeffnung-punkte { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.3rem; }
.eroeffnung-punkte > div { display: grid; gap: .25rem; justify-items: center; }
.eroeffnung-punkte span:last-child { color: var(--muted); }
.eroeffnung-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* Kopfzeile: schmal und durchscheinend. Ohne Anmeldung liegt sie über der Seite, die darunter durchscheint. */
.topbar { min-height: 46px; padding: .2rem 1.2rem; gap: .8rem; background: rgba(14, 22, 42, .62);
    -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, .1); box-shadow: none; }
body:not(.angemeldet) .topbar { margin-bottom: -46px; }
body.angemeldet .topbar { background: rgba(14, 22, 42, .86); }
body:not(.angemeldet):not(.login-mode) main.container { padding-top: 4.6rem; }
body.login-mode .login-scene { padding-top: 4.8rem; }
.brand { font-size: 1.1rem; letter-spacing: -.01em; }
.brand img { width: 22px; height: 22px; }
.brand-sub { display: inline !important; margin-left: 0; font-weight: 700; color: var(--amber); }
body:not(.angemeldet) .brand > span { display: inline; }
.nav-public { justify-content: flex-end; gap: .2rem; }
.nav-public[hidden] { display: none; }
.nav-public a { border-radius: 999px; padding: .25rem .8rem; font-size: .9rem; }
.nav-public a:hover { background: rgba(255, 255, 255, .14); }

/* Roter Hinweis ganz oben, solange die Whitelist aktiv ist */
.whitelist-hinweis { position: relative; z-index: 11; padding: .3rem 1rem; text-align: center; font-size: .9rem; color: #fff; background: #c22d25; }
.whitelist-hinweis[hidden], body.angemeldet .whitelist-hinweis { display: none; }

/* Fußzeile: links Citybuild, Mitte Mojang-Hinweis, rechts Links, im Blau der Kopfzeile */
.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .2rem 1.2rem; padding: .55rem 4.6rem .55rem 1.2rem;
    font-size: .8rem; background: var(--ink); }
.footer-hinweis { text-align: center; font-size: .66rem; letter-spacing: .02em; opacity: .7; }
.footer-links { justify-content: flex-end; }
@media (max-width: 900px) {
    .footer { grid-template-columns: 1fr; justify-items: center; padding: .7rem 1rem 4rem; text-align: center; }
    .footer-links { justify-content: center; }
}

/* Öffentliche Seiten: dunkler Grund statt Himmel und Pixelwolken */
body:not(.angemeldet):not(.map-mode) { background: #0b1222; }
body:not(.angemeldet) .decor-clouds, body:not(.angemeldet) .decor-land { display: none; }
body:not(.angemeldet) .topbar { background: rgba(20, 33, 61, .8); }
body:not(.angemeldet) main.container > .section-head h1, body:not(.angemeldet) main.container > .section-head p,
body:not(.angemeldet) main.container > h1, body:not(.angemeldet) main.container > h2 { color: #fff; }

/* Startseite */
.login-scene { background: #0b1222; }
.login-bg { filter: blur(3px) saturate(115%); }
.login-scene::after { background: linear-gradient(180deg, rgba(11, 18, 34, .72), rgba(11, 18, 34, .93) 70%); }
.login { max-width: 1040px; color: #e7ecf6; }
.s-hero { padding: 2.5rem 0 2.2rem; text-align: center; }
.s-hero h1 { margin: .9rem 0 .6rem; color: #fff; font-size: clamp(2.8rem, 8vw, 5.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.s-hero h1 span { background: linear-gradient(90deg, #ffd24a, #ff9a1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-text { max-width: 640px; margin: 0 auto 1.6rem; color: #c4cede; font-size: 1.15rem; line-height: 1.55; }
.s-marke { display: inline-block; margin: 0; padding: .25rem .85rem; border-radius: 999px; background: rgba(242, 179, 61, .15); border: 1px solid rgba(242, 179, 61, .45);
    color: #ffd24a; font-size: .85rem; font-weight: 650; }
.s-marke-leise { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #dfe6f3; }
.s-uhr { display: flex; justify-content: center; gap: .6rem; margin-bottom: 1.6rem; }
.s-uhr div { display: grid; gap: .1rem; width: 84px; padding: .7rem 0; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.s-uhr strong { color: #fff; font-size: 1.9rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.s-uhr span { color: #9fabc0; font-size: .75rem; }
.s-ip { display: inline-flex; align-items: center; gap: .25rem; padding: .3rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.s-ip .server-ip { padding: .3rem 1rem; background: none; color: #ffd24a; font-size: 1.15rem; font-weight: 650; }
.s-kopieren { padding: .45rem 1rem; border: 0; border-radius: 999px; background: #fff; color: #14213d; font-weight: 650; cursor: pointer; }
.s-kopieren:hover { background: #ffd24a; }
.s-klein { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; margin: .8rem 0 1.5rem; color: #9fabc0; font-size: .88rem; }
.s-klein .server-status { padding: .1rem .6rem; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #c4cede; }
.s-klein .server-status.up { background: rgba(35, 160, 131, .2); color: #7fe6c8; }
.s-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.s-knoepfe .btn { border-radius: 999px; padding: .6rem 1.3rem; }
.login .s-leise { background: rgba(255, 255, 255, .1); color: #fff; }
.login .s-leise:hover { background: rgba(255, 255, 255, .18); }
.s-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.s-karte, .s-alpha { border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.s-karte { padding: 1.4rem; transition: transform .15s, border-color .15s; }
.s-karte:hover { transform: translateY(-3px); border-color: rgba(242, 179, 61, .5); }
.s-karte img { display: block; image-rendering: pixelated; border-radius: 6px; }
.s-karte h3 { margin: .8rem 0 .3rem; color: #fff; font-size: 1.1rem; }
.s-karte p { margin: 0; color: #aab6c8; line-height: 1.5; }
.s-alpha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.6rem; margin-bottom: 1rem; }
.s-alpha > div:first-child { flex: 1 1 420px; }
.s-alpha h2 { margin: .6rem 0 .4rem; color: #fff; font-size: 1.6rem; }
.s-alpha p:not(.s-marke) { margin: 0; color: #aab6c8; line-height: 1.55; }
.s-team { margin: 1.2rem 0 0; text-align: center; color: #7f8ba0; font-size: .8rem; }
.s-team code { background: rgba(255, 255, 255, .08); color: #c4cede; }
@media (max-width: 560px) { .s-uhr div { width: 68px; } .s-uhr strong { font-size: 1.45rem; } .s-ip .server-ip { font-size: 1rem; padding: .3rem .6rem; } }

/* Hilfe zu Alt-Settla */
.alt-hilfe details { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.alt-hilfe summary { font-weight: 650; cursor: pointer; }
.alt-hilfe details p, .alt-hilfe details ol, .alt-hilfe details ul { margin: .5rem 0 0; }
.mc-gui { margin: 1rem auto; max-width: 430px; padding: .6rem; background: #c6c6c6; border: 3px solid; border-color: #fff #555 #555 #fff; border-radius: 4px; }
.mc-gui figcaption { margin: 0 0 .4rem .1rem; color: #404040; font-weight: 600; font-size: .9rem; }
.mc-raster { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.mc-slot { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #8b8b8b; border: 2px solid; border-color: #373737 #fff #fff #373737; }
.mc-slot img { width: 76%; height: 76%; image-rendering: pixelated; }
.mc-slot:not(.leer):hover, .mc-slot:not(.leer):focus { background: #a8a8a8; outline: none; }
.mc-tip { display: none; position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); width: max-content; max-width: 230px; padding: .35rem .5rem;
    background: #160a1e; border: 2px solid #2b0f5e; border-radius: 3px; color: #a8a8a8; font-size: .78rem; line-height: 1.3; text-align: left; }
.mc-tip strong { display: block; color: #ffd24a; }
.mc-tip span { display: block; }
.mc-slot:hover .mc-tip, .mc-slot:focus .mc-tip { display: block; }
.mc-legende { list-style: none; padding-left: 0 !important; }
.mc-legende img { width: 22px; height: 22px; vertical-align: middle; image-rendering: pixelated; }
.mc-leisten { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 1rem 0; }
.mc-leisten figcaption { flex-basis: 100%; text-align: center; color: var(--muted); font-size: .85rem; }
.mc-leiste { display: grid; align-content: start; gap: .1rem; min-width: 180px; padding: .5rem .7rem; background: rgba(0, 0, 0, .78); color: #fff; font-family: Consolas, monospace; font-size: .85rem; }
.mc-leiste i { font-style: normal; }
.mc-leiste .gr { color: #aaa; } .mc-leiste .dg { color: #555; } .mc-leiste .go { color: #ffaa00; } .mc-leiste .gn { color: #55ff55; } .mc-leiste .w { color: #fff; }

/* Nach-oben-Knopf: hebt sich auch über der dunklen Fußzeile ab */
.nach-oben { background: var(--amber); color: #241a00; font-weight: 800; box-shadow: 0 0 0 3px #fff, 0 8px 22px rgba(0, 0, 0, .4); }
.nach-oben:hover { background: #ffc85c; }

/* Textseiten mittig */
.legal { margin-left: auto; margin-right: auto; }

/* Öffentliche Seiten auf dunklem Grund: heller Text außerhalb der Karten */
body:not(.angemeldet):not(.login-mode) main.container { color: #e7ecf6; }
body:not(.angemeldet):not(.login-mode) main.container h1, body:not(.angemeldet):not(.login-mode) main.container h2,
body:not(.angemeldet):not(.login-mode) main.container h3 { color: #fff; }
body:not(.angemeldet):not(.login-mode) main.container .muted { color: #aab6c8; }
body:not(.angemeldet):not(.login-mode) main.container a { color: var(--amber); }
body:not(.angemeldet):not(.login-mode) main.container .card { color: var(--text); }
body:not(.angemeldet):not(.login-mode) main.container .card h1, body:not(.angemeldet):not(.login-mode) main.container .card h2,
body:not(.angemeldet):not(.login-mode) main.container .card h3 { color: var(--ink); }
body:not(.angemeldet):not(.login-mode) main.container .card .muted { color: var(--muted); }
body:not(.angemeldet):not(.login-mode) main.container .card a:not(.btn) { color: var(--green-3); }
#consent-hint .notice { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #aab6c8; text-align: center; }
#consent-hint .notice a { color: var(--amber); }
.login { min-width: 0; }

/* Startseite: warmer Abendton, zwei klar getrennte Teile */
.login-bg { filter: saturate(120%); }
.login-scene::after { background:
    radial-gradient(ellipse 70% 45% at 50% 8%, rgba(255, 154, 31, .22), transparent 70%),
    linear-gradient(180deg, rgba(38, 20, 58, .74), rgba(16, 16, 40, .86) 55%, rgba(11, 18, 34, .95)); }
.s-hero h1 { text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.s-text { color: #e4e6f0; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.s-uhr-titel { margin: 0 0 .5rem; color: #ffd24a; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.s-uhr div { background: rgba(20, 14, 40, .6); border-color: rgba(255, 210, 74, .25); }
.s-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.s-teil { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1.7rem; border-radius: 20px;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.s-teil h2 { margin: 0; color: #fff; font-size: 1.75rem; letter-spacing: -.02em; }
.s-teil p { margin: 0; line-height: 1.55; }
.s-teil > .btn, .s-teil .s-knoepfe { margin-top: auto; }
.s-teil-jetzt { background: linear-gradient(160deg, rgba(120, 72, 16, .55), rgba(32, 22, 42, .78)); border: 1px solid rgba(255, 210, 74, .4); color: #ece6d8; }
.s-teil-plan { background: linear-gradient(160deg, rgba(64, 42, 120, .55), rgba(16, 20, 44, .82)); border: 1px solid rgba(170, 150, 255, .32); color: #d8dcf0; }
.s-punkte { display: grid; gap: .75rem; margin: .2rem 0; padding: 0; list-style: none; }
.s-punkte li { display: flex; gap: .8rem; align-items: flex-start; }
.s-punkte img { flex: none; border-radius: 5px; image-rendering: pixelated; }
.s-punkte strong { display: block; color: #fff; }
.s-punkte span { color: #cfc8ba; font-size: .93rem; }
.s-achtung { width: 100%; padding: .65rem .8rem; border-left: 3px solid #ffd24a; border-radius: 6px; background: rgba(0, 0, 0, .25); font-size: .92rem; }
.s-achtung strong { color: #ffd24a; }
.s-links { justify-content: flex-start; }

/* Hintergrund der Startseite: Ansichten aus den alten Welten, die Kamera gleitet langsam durch das Bild */
.login-bg { inset: -4%; image-rendering: auto; filter: saturate(108%); transform: none; animation: weltflug 26s ease-in-out infinite alternate; }
.login-scene::after { background:
    radial-gradient(ellipse 70% 45% at 50% 8%, rgba(255, 154, 31, .14), transparent 70%),
    linear-gradient(180deg, rgba(30, 18, 50, .5), rgba(16, 16, 40, .68) 45%, rgba(11, 18, 34, .92)); }
@keyframes weltflug {
    from { transform: scale(1.02) translate3d(-1.2%, .6%, 0); }
    to { transform: scale(1.14) translate3d(1.2%, -.8%, 0); }
}
@media (prefers-reduced-motion: reduce) { .login-bg { animation: none; } }
/* Der Hintergrund bleibt am Fenster, sonst streckt die lange Seite das Bild und es bleibt nur ein Ausschnitt */
.login-bg { position: fixed; }
.login-scene::after { position: fixed; inset: 0; }
.login-stadt { position: fixed; right: auto; left: 1.2rem; bottom: 3.2rem; }
