/*! Voidar · © 2026 Jürgen Garske · Alle Rechte vorbehalten. */
/* ============================================================
   Schriften, selbst gehostet (SIL Open Font License 1.1)
   Chakra Petch ist der Standard. Exo 2 und Oxanium wählt der Spieler
   im Konto (accounts.font, App\Schrift); das Layout setzt dann
   data-schrift am <html>. Der Browser lädt nur die Schrift, die
   tatsächlich benutzt wird.
   ============================================================ */
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/ChakraPetch-Regular.woff2?v=2')  format('woff2')}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/ChakraPetch-Medium.woff2?v=2')   format('woff2')}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/ChakraPetch-SemiBold.woff2?v=2') format('woff2')}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/ChakraPetch-Bold.woff2?v=2')     format('woff2')}
@font-face{font-family:'Exo 2';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/Exo2-Regular.woff2?v=1') format('woff2')}
@font-face{font-family:'Exo 2';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/Exo2-Medium.woff2?v=1') format('woff2')}
@font-face{font-family:'Exo 2';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/Exo2-SemiBold.woff2?v=1') format('woff2')}
@font-face{font-family:'Exo 2';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/Exo2-Bold.woff2?v=1') format('woff2')}
@font-face{font-family:'Oxanium';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/Oxanium-Regular.woff2?v=1') format('woff2')}
@font-face{font-family:'Oxanium';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/Oxanium-Medium.woff2?v=1') format('woff2')}
@font-face{font-family:'Oxanium';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/Oxanium-SemiBold.woff2?v=1') format('woff2')}
@font-face{font-family:'Oxanium';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/Oxanium-Bold.woff2?v=1') format('woff2')}
html[data-schrift="exo2"]{--font:'Exo 2',sans-serif;--font-base:'Exo 2','Segoe UI',system-ui,-apple-system,Roboto,sans-serif}
html[data-schrift="oxanium"]{--font:'Oxanium',sans-serif;--font-base:'Oxanium','Segoe UI',system-ui,-apple-system,Roboto,sans-serif}

/* ============================================================
   Voidar – Stylesheet v2
   Stil-Richtung: Weltraum-Industrial, dunkel, mit Cyan/Orange-Akzenten
   ============================================================ */

:root {
    /* Farbpalette — Orbit (neutral-dunkel, flach) */
    --bg-deep:        #0a0e15;   /* Hintergrund ganz hinten */
    --bg-base:        #0e131c;   /* Body */
    --bg-elevated:    #161d29;   /* Cards / Panels */
    --bg-elevated-2:  #1d2634;   /* Hover / Highlights auf Cards */
    --border:         #283447;
    --border-soft:    #1e2733;

    --text-primary:   #e6ecf5;
    --text-secondary: #9aa7bd;
    --text-muted:     #7a8699;
    --text-strong:    #ffffff;
    --text:           var(--text-primary);   /* Alias — Alt-CSS nutzt var(--text) */

    /* Akzente — Orbit: Blau (Aktionen) + Grün (Tech/Erfolg) */
    --accent:         #3d8bff;   /* Blau — Aktionen, "wichtig" */
    --accent-hover:   #5b9dff;
    --accent-dim:     #2c6bcc;

    --tech:           #36d399;   /* Grün — Forschung/Tech */
    --tech-hover:     #4ee0aa;
    --tech-dim:       #259e73;

    /* Ressourcen-Farben (Orbit-Dots) */
    --res-voidanium:      #cdd6e3;   /* Voidanium — silbergrau */
    --res-singularit:    #3d8bff;   /* Singularit — blau */
    --res-aether:  #a98cff;   /* Äther — violett */
    --res-energy:     #36d399;   /* Energie — grün */

    /* Status */
    --success:        #36d399;
    --warn:           #ffb547;
    --ok:             #36d399;
    --danger:         #ff6b7a;
    --info:           #3d8bff;

    /* Maße */
    --radius:         10px;
    --radius-sm:      6px;
    --gap:            1rem;
    --content-w:      1100px;

    /* Schrift */
    --font-base: 'Chakra Petch', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;

    /* ---------- Flächen ----------
       Orbit ist flach: Content-Karten sind SOLIDE (kein Glas, keine Schatten).
       Die --glass-*-Tokens bleiben als Alias auf solide Werte, damit die rund
       40 Alt-Referenzen im Content automatisch flach werden. Echtes Glas gibt
       es nur auf der Overlay-Ebene (Topbar/Dropdowns/Modals) — über --ov-*,
       abschaltbar via html.vd-reduce-glass. */
    --glass-bg:        var(--bg-elevated);
    --glass-bg-strong: var(--bg-elevated);
    --glass-border:    var(--border);
    --glass-highlight: transparent;
    --glass-blur:      0px;
    --glass-shadow:    none;
    --glass-shadow-lg: none;

    /* Overlay-Glas (Topbar / Dropdowns / Modals) — Default an */
    --ov-bg:     rgba(16, 22, 33, 0.82);
    --ov-bg-2:   rgba(20, 27, 39, 0.94);
    --ov-border: rgba(120, 150, 200, 0.18);
    --ov-blur:   14px;
}

/* Glas-Effekte reduzieren (User-Präferenz): Overlay-Ebene wird solide. */
html.vd-reduce-glass {
    --ov-bg:     var(--bg-elevated);
    --ov-bg-2:   var(--bg-elevated);
    --ov-blur:   0px;
}

/* ---------- Reset & Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-base);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
}
html {
    background: var(--bg-deep, #070b18);
}

/* Anzeige-Einstellung „Kompakte Darstellung“: Die meisten Abstände und
   Schriften rechnen in rem; eine kleinere Grundgröße verkleinert sie gleich-
   mäßig um etwa ein Zehntel. Eingabefelder am Handy bleiben bei 16px (iOS
   zoomt sonst beim Antippen), siehe die Regel mit 16px !important. */
html.vd-compact { font-size: 14.5px; }
html.vd-compact body { font-size: 14px; }

body {
    /* Atmosphärischer Hintergrund — gibt der Glas-Topbar etwas zum
       Durchscheinen. Dezente Blau-/Grün-Glows (Orbit-Akzente), fixiert,
       sehr subtil, damit Text gut lesbar bleibt. */
    background:
        radial-gradient(ellipse 70% 50% at 15% 0%, rgba(255, 154, 60, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 45% at 85% 6%, rgba(111, 220, 140, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 75% 100%, rgba(255, 154, 60, 0.05) 0%, transparent 60%),
        var(--bg-deep);
    background-attachment: fixed;
}

a {
    color: var(--tech);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--tech-hover); }

h1, h2, h3 {
    color: var(--text-strong);
    font-weight: 600;
    letter-spacing: -0.01em;
}
h1 { font-size: 1.7rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.8rem;
     padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-soft); }
h3 { font-size: 1rem; margin: 0 0 0.5rem; }

.muted { color: var(--text-muted); font-size: 0.9em; }
.warn  { color: var(--warn);  font-weight: 600; }
.danger{ color: var(--danger); font-weight: 600; }
.tech  { color: var(--tech); }

/* ============================================================
   Shell — Orbit-Topbar-Layout (Topbar oben, Subbar, Main, Footer
   stapeln vertikal; keine Sidebar mehr)
   ============================================================ */

body { background-color: var(--bg-deep); }

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

main.container {
    flex: 1 0 auto;
    width: 100%;
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

/* ============================================================
   Topbar (Orbit) — durchgehende, schwebende Glas-Leiste
   ============================================================ */

:root { --topbar-h: 55px; }   /* Andockhoehe fuer die Leiste darunter */
.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 1.2rem;
    background: var(--ov-bg);
    backdrop-filter: blur(var(--ov-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--ov-blur)) saturate(130%);
    border-bottom: 1px solid var(--ov-border);
}

/* Brand / Logo */
.topbar .brand:not(body.auth *) {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0.7rem;
}
.topbar .brand-logo-img {
    height: 24px;
    width: auto;
    display: block;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.topbar .brand:hover .brand-logo-img {
    filter: drop-shadow(0 0 6px var(--accent));
    transform: scale(1.02);
}

/* Hauptnavigation */
.topnav {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}
.grp { position: relative; }

/* Tab (Button oder Link) */
.tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
}
.tab .ico   { font-size: 1.05rem; line-height: 1; }
.tab .caret { font-size: 0.6rem; color: var(--text-muted); margin-left: 0.05rem; }
.tab:hover  { color: var(--text-primary); background: rgba(255,255,255,0.04); }

/* Aktiver Bereich: helle Schrift + blauer Unterstrich */
.grp.on > .tab,
.tab.tab-active { color: var(--text-primary); }
.grp.on > .tab::after,
.tab.tab-active::after {
    content: "";
    position: absolute;
    left: 0.8rem; right: 0.8rem;
    bottom: -0.45rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Dropdown (Overlay-Glas) */
.dropdown {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 218px;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    padding: 0.4rem;
    background: var(--ov-bg-2);
    backdrop-filter: blur(var(--ov-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--ov-blur)) saturate(130%);
    border: 1px solid var(--ov-border);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 210;
}
.grp:hover > .dropdown,
.grp:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Rechte Gruppen klappen rechtsbündig auf */
.acct .dropdown, .pill-admin .dropdown { left: auto; right: 0; }

.dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.12s ease, color 0.12s ease;
}
.dropdown a .ico { font-size: 1rem; width: 1.3rem; text-align: center; flex-shrink: 0; }
.dropdown a:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.dropdown a.cur   { color: var(--accent); background: rgba(255, 154, 60,0.10); }

/* Trenner "Nur auf Monden" + horizontaler Separator + Logout */
.dd-moon {
    padding: 0.5rem 0.7rem 0.25rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.dd-sep { height: 1px; background: var(--border); margin: 0.3rem 0.2rem; }
.dd-logout { color: var(--text-muted) !important; }
.dd-logout:hover { color: var(--danger) !important; background: rgba(255,107,122,0.08) !important; }

/* Zähl-Badge (z.B. Tutorial-Belohnungen offen) */
.nav-badge {
    margin-left: auto;
    min-width: 1.2rem; height: 1.2rem;
    padding: 0 0.35rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent);
    color: #06101f;
    font-size: 0.7rem; font-weight: 700;
    border-radius: 999px;
}

/* Spacer schiebt die rechte Gruppe nach rechts */
.topbar-spacer { flex: 1 1 auto; }

/* Glocke + Nachrichten */
.topbar-bell, .topbar-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem; height: 2.2rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: background 0.15s ease;
}
.topbar-bell:hover, .topbar-icon:hover { background: rgba(255,255,255,0.05); }
.bell-icon, .ti-icon { font-size: 1.2rem; line-height: 1; }
.bell-count, .ti-count {
    position: absolute;
    top: 0.05rem; right: 0.05rem;
    min-width: 1.05rem; height: 1.05rem;
    padding: 0 0.25rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--danger);
    color: #fff;
    font-size: 0.62rem; font-weight: 700;
    border-radius: 999px;
}

/* Konto-Avatar */
.acct .av {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 1.7rem; height: 1.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--tech));
    color: #06101f;
    font-size: 0.72rem; font-weight: 700;
}

/* Admin- / Owner-Pills */
.pill-admin .tab {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
}
.pill-admin .tab { color: var(--tech); }
.pill-admin .tab:hover { border-color: var(--tech); background: rgba(111, 220, 140,0.08); color: var(--tech); }

/* Gast- / Lobby-Nav rechts */
.user-nav { display: flex; gap: 0.6rem; align-items: center; }
.guest-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.guest-nav a[href*="login"] {
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.guest-nav a[href*="login"]:hover { border-color: var(--accent); color: var(--accent); }
.guest-nav a[href*="register"] {
    color: #06101f;
    background: var(--accent);
    border: 1px solid transparent;
}
.guest-nav a[href*="register"]:hover { background: var(--accent-hover); }

/* ============================================================
   Sub-Leiste — Planeten-Umschalter + Ressourcen-Strip
   ============================================================ */

.subbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 1.5rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    /*
     * Bleibt beim Scrollen stehen, direkt unter der Kopfzeile: Rohstoffe und
     * Planetenwahl sind damit immer im Blick, auch weit unten in einer langen
     * Bauliste. Der z-index liegt unter dem der Kopfzeile (200), damit deren
     * Menues darueber aufklappen.
     */
    position: sticky;
    top: var(--topbar-h, 55px);
    z-index: 199;
}
.subbar .planet-switcher { grid-column: 1; justify-self: start; }

/* Ressourcen-Strip (Klassen + data-Attribute bleiben für queue-sync.js) */
.res-strip {
    grid-column: 2;
    justify-self: center;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.9rem;
}
.res-strip .item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.7rem;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.res-strip .icon  { line-height: 1; display: inline-flex; align-items: center; }
.res-strip .label { color: var(--text-muted); font-size: 0.82rem; }
.res-strip .value {
    display: inline-flex;
    align-items: baseline;
    color: var(--text-strong);
    font-family: 'Consolas', ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.res-strip .res-sep { color: var(--text-muted); margin: 0 0.1rem; }
.res-strip .res-cap { color: var(--text-muted); font-weight: 500; }

.res-strip .voidanium     .icon { color: var(--res-voidanium); }
.res-strip .singularit   .icon { color: var(--res-singularit); }
.res-strip .aether .icon { color: var(--res-aether); }
.res-strip .energy    .icon { color: var(--res-energy); }
/* Speicher voll: Wert + Cap rot (vom JS-Ticker via .res-full gesetzt) */
.res-strip .value.res-full .res-current,
.res-strip .value.res-full .res-cap { color: var(--danger) !important; font-weight: 700; }

/* Energie: Verfügbar / Produktion (negativ = rot) */
.res-strip .energy-pair { display: inline-flex; align-items: baseline; gap: 0.15rem; }
.res-strip .energy-pair .res-sep { color: var(--text-muted); margin: 0 0.2rem; }
.res-strip .energy-avail { color: var(--res-energy); }
.res-strip .energy-avail.energy-negative { color: var(--danger); }
.res-strip .energy-prod  { color: var(--text-muted); }

/* ============================================================
   Layout-Banner: Speed-Event (grün/Boost) + Lösch-Hinweis (rot/Warnung)
   ============================================================ */
.speed-event-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    margin-bottom: 1.2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 3px solid var(--tech);
    border-radius: var(--radius);
}
.speed-event-banner__icon { font-size: 1.3rem; line-height: 1.3; flex-shrink: 0; }
.speed-event-banner__body { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.speed-event-banner__head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.speed-event-banner__title { font-weight: 600; color: var(--tech); letter-spacing: 0.02em; }
.speed-event-banner__until { color: var(--text-muted); font-size: 0.88rem; }
.speed-event-banner__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.speed-event-banner__chip {
    padding: 0.2rem 0.6rem;
    background: rgba(111, 220, 140, 0.10);
    border: 1px solid var(--tech-dim);
    border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
    color: var(--tech-hover);
    font-variant-numeric: tabular-nums;
}

.deletion-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    margin-bottom: 1.2rem;
    background: rgba(255, 107, 122, 0.08);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
}
.deletion-notice__text { display: flex; align-items: center; gap: 0.5rem; color: var(--text-primary); font-size: 0.92rem; }
.deletion-notice__icon { font-size: 1.1rem; color: var(--danger); flex-shrink: 0; }
.deletion-notice__date { font-weight: 700; color: var(--danger); }
.deletion-notice__form { margin: 0; flex-shrink: 0; }
.deletion-notice__btn {
    padding: 0.35rem 0.8rem;
    background: transparent;
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-family: inherit; font-size: 0.85rem; font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.deletion-notice__btn:hover { background: rgba(255, 107, 122, 0.12); }

/* Runden: Ende in Sicht (letzte 7 Tage) und Runde vorbei. */
.round-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    margin-bottom: 1.2rem;
    background: rgba(255, 181, 71, 0.08);
    border: 1px solid rgba(255, 181, 71, 0.45);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.92rem;
}
.round-notice__icon { font-size: 1.1rem; flex-shrink: 0; }
.round-notice--beendet { border-color: var(--warn); }

/* ---------- Main ---------- */

main.container {
    grid-area: main;
    padding: 1.5rem;
    max-width: var(--content-w);
    width: 100%;
}

/* ---------- Flash Messages ---------- */

.flash-zone {
    max-width: var(--content-w);
    margin: 0 0 1rem;
}
.flash {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid;
    background: var(--bg-elevated);
}
.flash-success { border-color: var(--success); color: #c5f1d5; }
.flash-error   { border-color: var(--danger);  color: #ffd2d7; }
.flash-info    { border-color: var(--info);    color: #d4e3ff; }

/* Hinweis im Formular, z. B. "dieser Angriff beendet deinen Anfaengerschutz".
   Wird per hidden ein- und ausgeblendet (schutz-warnung.js). */
.form-warnung {
    margin: 0.6rem 0;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--warn);
    background: var(--bg-elevated);
    color: var(--warn);
}
.form-warnung[hidden] { display: none; }

/* ---------- Cards ---------- */

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(120%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--glass-shadow);
}

.card.highlight {
    border-color: var(--tech);
    background: linear-gradient(180deg,
                rgba(108, 196, 255,0.06) 0%,
                var(--bg-elevated) 100%);
}

/* ---------- Planet Header ---------- */

.planet-header {
    margin-bottom: 1.5rem;
}
.planet-header h1 {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.planet-header .coord {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Consolas', 'Courier New', monospace;
}
.planet-header .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* ---------- Ressourcen-Tabelle ---------- */

.res-table {
    width: 100%;
    border-collapse: collapse;
}
.res-table th, .res-table td {
    padding: 0.55rem 0.4rem;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.res-table tr:last-child td,
.res-table tr:last-child th { border-bottom: none; }
.res-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
}
.res-table td {
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}
.res-voidanium     { color: var(--res-voidanium); }
.res-singularit   { color: var(--res-singularit); }
.res-aether { color: var(--res-aether); }
.res-energy    { color: var(--res-energy); }

.res-table .res-amount { font-weight: 600; color: var(--text-strong); }

/* Bestand / Kapazität als Inline-Block */
.res-amount-cell {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.res-amount-cell .res-sep {
    color: var(--text-muted);
    margin: 0 0.3rem;
}
.res-amount-cell .res-cap {
    color: var(--text-muted);
    font-size: 0.92em;
}

/* Voll-/Überfüll-Indikator: Bestand-Wert wird rot */
.res-amount.res-full,
.res-strip .value.res-full,
.res-strip .energy-cons.res-full {
    color: var(--danger) !important;
    font-weight: 700;
}

/* ---------- Aktiver Auftrag ---------- */
/* Progress-Bar für aktiven Auftrag */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-deep);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.6rem;
}
.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tech-dim), var(--tech));
    width: 0%;
    transition: width 0.5s linear;
}

/* ---------- Gebäude- und Forschungs-Liste ---------- */

.build-table {
    width: 100%;
    border-collapse: collapse;
}
.build-table th,
.build-table td {
    padding: 0.7rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}
.build-table tr:last-child td { border-bottom: none; }
.build-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.build-table .b-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-strong);
    font-weight: 500;
}
.build-table .b-name .ico {
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}
.build-table .b-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.2rem;
    margin-left: 2.2rem;
    line-height: 1.35;
    max-width: 32rem;
}

/* ---------- Queue-Liste ---------- */

.queue-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.9rem;
    background: var(--bg-deep);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
}
.queue-item.active {
    border-color: var(--tech);
    background: linear-gradient(180deg,
                rgba(108, 196, 255,0.08) 0%,
                var(--bg-deep) 100%);
}

.queue-item .qi-info { min-width: 0; }
.queue-item .qi-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.queue-item .qi-name .ico {
    font-size: 1.1rem;
}
.queue-item .qi-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.queue-item .qi-status .job-countdown {
    color: var(--tech);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.queue-item .progress-bar {
    margin-top: 0.4rem;
}

/* ---------- Galaxie-Ansicht ---------- */







/* ============================================================
   Galaxie-Tabelle (aufpoliert: Pillen, Badges, kompakte Slots)
   ============================================================ */



/* Trennlinie auf die ZEILE legen statt auf einzelne Zellen: Die Planet-Zelle
   ist display:flex (Icon + Name + Badges) und damit unterschiedlich hoch — ein
   border-bottom an der Zelle säße dann auf anderer Höhe als bei den Nachbarn
   (verschobener Strich). Auf der tr (bei border-collapse) sitzt er garantiert
   durchgehend auf der Zeilen-Unterkante. */





/* Spalten-Breiten: schmale Pos / Status / Aktionen, dehnbare Planet & Besitzer */








/* Eigene Zeile: dezenter Akzent (orange Tinte links) */




/* Besetzte (fremde) Zeile: leichter Hover-Effekt */


/* Leere Slots: deutlich kompakter und ruhiger */




/* Planet-Spalte: Icon + Name + Pillen; die Zelle selbst bleibt Tabellenzelle */










/* Tag-Gruppe (Pillen) */

.g-pill {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;       /* echte Pille */
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: default;
}
.g-pill-home {
    background: rgba(108, 196, 255, 0.12);
    color: var(--tech);
    border: 1px solid var(--tech-dim);
}
/* Beziehung als Farbe, Status als Symbol; die Legende unter der Tabelle erklärt beides */




   /* so breit wie ein Leerzeichen */
/* Kürzel in der Galaxie nur mit dem Leerzeichen davor, ohne Zusatzrand */


/* Unerforschte Galaxien und Schwarzes Loch im System */







.g-pill-own {
    background: rgba(255, 154, 60, 0.12);
    color: var(--accent);
    border: 1px solid var(--accent-dim, var(--accent));
}

/* Status-Badges (Spieler-Status) */
.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    cursor: default;
    line-height: 1.4;
    white-space: nowrap;
}
.status-badge.st-active {
    background: rgba(121, 210, 126, 0.12);
    color: var(--ok, #79d27e);
    border: 1px solid rgba(121, 210, 126, 0.35);
}
.status-badge.st-inactive {
    background: rgba(122, 138, 154, 0.12);
    color: var(--text-muted);
    border: 1px solid rgba(122, 138, 154, 0.35);
}
.status-badge.st-inactive-long {
    background: rgba(122, 138, 154, 0.18);
    color: var(--text-muted);
    border: 1px solid rgba(122, 138, 154, 0.5);
    text-decoration: line-through;
}
.status-badge.st-vacation {
    background: rgba(111, 220, 140, 0.1);
    color: var(--tech);
    border: 1px solid var(--tech-dim);
}
.status-badge.st-banned {
    background: rgba(255, 100, 100, 0.12);
    color: var(--danger);
    border: 1px solid rgba(255, 100, 100, 0.4);
}
.status-badge.st-newbie {
    background: rgba(212, 242, 131, 0.1);
    color: var(--res-aether);
    border: 1px solid rgba(212, 242, 131, 0.35);
}

/* Aktionen-Spalte */


/* ============================================================
   TABELLEN - SPALTEN-AUSRICHTUNG (zentrale Quelle der Wahrheit)
   Header (th) und Wert (td) einer Spalte teilen sich die Spalten-
   KLASSE und damit text-align. Optik (Farbe/Gewicht) steht separat
   nur auf dem td, damit die Header grau/muted bleiben.
   Gilt fuer .build-table (Gebaeude/Forschung/Allianz) UND .ship-table
   (Werft/Verteidigung tragen beide Klassen).

     Name (b-name) ........... links   (Default .build-table th,td)
     Kosten (b-cost) ......... links
     Dauer (b-duration) ...... links
     Stufe (b-level) ......... ZENTRIERT
     Bestand (b-stock) ....... ZENTRIERT
     Min. Labor (min-lab) .... ZENTRIERT
     Anzahl (ship-amount-col)  rechts  (s. .ship-amount-col)
     Punkte (.num) ........... rechts  (generische .num-Regel)

   Voraussetzung: die Header-<th> tragen dieselbe Spalten-Klasse wie
   die Wert-<td>, z.B. <th class="b-level">Stufe</th>.
   Mobile-Anpassung dieser Spalten (Karten-Layout + ::before-Labels):
   siehe @media (max-width:900px), Stichwort '.build-table td.b-*::before'.
   ============================================================ */
.build-table .b-level, .build-table .b-stock {
    text-align: center;
}
/* Optik nur auf dem Wert (td): Stufe in Akzentfarbe, fett. */
.build-table td.b-level {
    color: var(--accent);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.build-table .b-cost {
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.build-table .b-cost .can-afford { color: var(--text-primary); }
.build-table .b-cost .cant-afford { color: var(--danger); }
.build-table .b-duration {
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.build-table tr:hover {
    background: var(--bg-elevated-2);
}

/* ---------- Buttons ---------- */

/* ============================================================
   BUTTON-SYSTEM (zentral — alle Buttons leiten sich hiervon ab)

   Aufbau:
     .btn            Basis (Layout, Größe, Verhalten) — neutral
     + Variante      Farbe = Bedeutung:
         .btn-primary   Orange  — Hauptaktion (Bauen, Senden, Bestätigen)
         .btn-ghost     Grau    — sekundär (Abbrechen, Zurück, Schließen)
         .btn-tech      Cyan    — Forschung / Tech / Kolonisieren
         .btn-danger    Rot     — gefährlich (Angriff, Löschen, Reset)
     + Größe (optional):
         (keine)        normal
         .btn-sm        klein
         .btn-xs        mini

   Beispiele: class="btn btn-primary"  ·  class="btn btn-danger btn-sm"
   ============================================================ */

/* --- Basis: neutrales Layout + Verhalten (Farbe kommt von der Variante) --- */
.btn,
button.btn,
a.btn,
.btn-primary, button.btn-primary, a.btn-primary,
.btn-ghost, button.btn-ghost, a.btn-ghost,
.btn-tech, button.btn-tech, a.btn-tech,
.btn-danger, button.btn-danger, a.btn-danger {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}
.btn:active,
.btn-primary:active, .btn-ghost:active, .btn-tech:active, .btn-danger:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled, .btn-primary:disabled, .btn-ghost:disabled, .btn-tech:disabled, .btn-danger:disabled {
    background: var(--bg-elevated-2);
    border-color: transparent;
    color: var(--text-muted);
    cursor: not-allowed;
}

/* --- Variante: Primär (Orange, gefüllt) --- */
.btn-primary,
button.btn-primary,
a.btn-primary {
    background: var(--accent);
    color: #1a0e00;
    border-color: transparent;
}
.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover { background: var(--accent-hover); color: #1a0e00; }

/* --- Variante: Ghost (transparent, grauer Rand) --- */
.btn-ghost,
button.btn-ghost,
a.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text-secondary);
}
.btn-ghost:hover,
button.btn-ghost:hover,
a.btn-ghost:hover {
    background: var(--bg-elevated-2);
    border-color: var(--border);
    color: var(--text-primary);
}

/* --- Variante: Tech (Cyan, dezent gefüllt) — Forschung/Kolonisieren --- */
.btn-tech,
button.btn-tech,
a.btn-tech {
    background: rgba(108, 196, 255, 0.12);
    border-color: var(--tech-dim);
    color: var(--tech);
}
.btn-tech:hover,
button.btn-tech:hover,
a.btn-tech:hover {
    background: rgba(108, 196, 255, 0.2);
    border-color: var(--tech);
    color: var(--tech-hover);
}

/* --- Variante: Danger (Rot, transparent mit rotem Rand) — gefährlich --- */
.btn-danger,
button.btn-danger,
a.btn-danger {
    background: transparent;
    border-color: rgba(255, 107, 122, 0.4);
    color: var(--danger);
}
.btn-danger:hover,
button.btn-danger:hover,
a.btn-danger:hover {
    background: rgba(255, 107, 122, 0.12);
    border-color: rgba(255, 107, 122, 0.7);
    color: var(--danger);
}

/* --- Größen (auf jede Variante anwendbar) --- */
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
.btn-xs { padding: 0.2rem 0.55rem; font-size: 0.72rem; }

/* Button in Seiten-Headern (z.B. „Neue Nachricht") leicht absetzen.
   Überstimmt die cyan-Link-Regel des Seiten-Headers. */



/* Aktions-Spalte in build-table (Bauen/Forschen-Button ODER Status-Text):
   feste Breite + rechtsbündig, damit der Button immer an derselben Position
   sitzt — egal ob daneben "Forschen" oder ein langer "Labor zu klein"-Text
   steht. Sonst dehnt der lange Text die Spalte und die Buttons "verrutschen". */
.build-table td.row-action,
.build-table td.b-action {
    width: 9rem;
    text-align: center;
    white-space: normal;
    vertical-align: middle;
}
/* Bauen + Abreißen: gleich breit, mittig, sauber untereinander. */
.build-table td.row-action form,
.build-table td.b-action form {
    display: block;
    margin: 0;
}
/* Aktions-Zelle GEBAEUDE/FORSCHUNG (row-action): Bauen + Abreißen gestapelt.
   Das <td> bleibt table-cell (KEIN display:flex! Ein Flex-<td> ist keine
   table-cell mehr -> vertical-align:middle bricht -> Inhalt rutscht hoch).
   vertical-align:middle (Basis) zentriert den Button-Stapel vertikal in der
   Zeile. Abstand via margin-bottom mit Spezifitaet (0,3,1), die das
   spezifischere '.row-action form { margin:0 }' (0,2,2) schlaegt. */
.build-table td.row-action > * {
    display: block;
}
.build-table td.row-action > *:not(:last-child) {
    margin-bottom: 0.4rem;
}
.build-table td.row-action .btn-primary, .build-table td.row-action .btn-need-res, .build-table td.b-action .btn-primary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.build-table td.row-action .action-disabled-wrap {
    display: block;
    width: 100%;
}
.build-table td.row-action .status-text,
.build-table td.b-action .status-text {
    display: inline-block;
    line-height: 1.3;
}
.row-action .status-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* ---------- Auth-Box ---------- */




.form label {
    display: block;
    margin-bottom: 1rem;
}
.form label span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.9em;
}
.form input,
.form textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    background: var(--bg-deep);
    color: var(--text-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}
.form textarea {
    /* Vernünftige Grundhöhe; respektiert das rows-Attribut, aber nie winzig.
       Vertikal vergrößerbar, damit Spieler längere Texte bequem schreiben. */
    min-height: 8rem;
    line-height: 1.5;
    resize: vertical;
}
.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--amber);
}
/* Dropdowns im dunklen Theme (greift das .form input/textarea-Styling auf;
   appearance:none + eigener Pfeil, sonst weisser Browser-Default). */
/* .prem-laufzeit teilt sich die Gestaltung mit .form select — dieselbe
   Auswahlliste, nur ausserhalb eines .form-Blocks. Werte verdoppeln waere
   der Anfang vom Auseinanderlaufen. */
.form select,
.prem-laufzeit {
    width: 100%;
    padding: 0.55rem 2.4rem 0.55rem 0.7rem;
    background-color: var(--bg-deep);
    color: var(--text-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239fb0d0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    transition: border-color 0.15s ease;
}
.form select:focus {
    outline: none;
    border-color: var(--amber);
}
.form select option {
    background: var(--bg-elevated, #141c34);
    color: var(--text-strong);
}

/* ---------- Footer ---------- */

.footer {
    grid-area: footer;
    text-align: center;
    color: var(--text-muted);
    padding: 1.2rem;
    border-top: 1px solid var(--border-soft);
    font-size: 0.8rem;
}
/* Im Gast-Modus: solider Hintergrund (kein Glas), damit rechts neben dem
   reservierten Scrollbar-Streifen keine helle Kante entsteht. */
.app.app-guest .footer {
    background: var(--bg-deep, #070b18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
}

/* ---------- "Bald™"-Seiten (Platzhalter) ---------- */

.soon-page {
    max-width: 42rem;
    margin: 2rem auto;
    text-align: center;
}

.soon-hero {
    padding: 3rem 2rem 1.5rem;
}
.soon-icon {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 0.8rem;
    filter: grayscale(0.3);
    opacity: 0.85;
}
.soon-hero h1 {
    font-size: 2rem;
    margin: 0;
    color: var(--text-strong);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.soon-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 12px;
    line-height: 1;
    border: 1px solid currentColor;
    background: rgba(0, 0, 0, 0.25);
}

.soon-page-planet   .soon-tag,
.soon-page-planet   .soon-icon { color: var(--accent); }
.soon-page-world    .soon-tag,
.soon-page-world    .soon-icon { color: var(--tech); }
.soon-page-comms    .soon-tag,
.soon-page-comms    .soon-icon { color: #b07ed8; }
.soon-page-overview .soon-tag,
.soon-page-overview .soon-icon { color: #d8c267; }

.soon-body {
    background: var(--bg-deep);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.8rem 2rem;
    margin: 1.5rem 0;
}
.soon-body .lead {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.55;
}
.soon-body .muted {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

.soon-footer {
    margin-top: 1rem;
}

/* ============================================================
   Planet-Hero (SVG + Steckbrief)
   ============================================================ */

/* ============================================================
   Planet-Übersicht: zweispaltig (Planet-Karte | Queue-Spalte)
   ============================================================ */





/* Schleier zwischen Planetenbild und Text. Ohne ihn faellt der Kontrast der
   gedaempften Beschriftung unter das Lesbare — mit ihm traegt die Karte auch
   das hellste der zehn Bilder. */


/* Der Steckbrief liegt ueber Bild und Schleier. */




/* Gerendertes Planetenbild als Hintergrund der ganzen Karte.
   Der Text liegt darueber auf einem Schleier — nachgerechnet, nicht geschaetzt:
   bei 38 % Bilddeckung und diesem Verlauf liegt weisser Text ueber ALLEN zehn
   Planetenbildern bei 16,7-18,3:1. Als gut gilt ab 7:1.
   Kein Pulsieren mehr: grossflaechig wirkt es unruhig. */


@keyframes planet-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}

/* Steckbrief rechts */



.planet-zone-tag:not(.planet-hero *) {
    /* Kombinierter Pill: Zone · Status (einheitlich blau) */
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.32rem 0.78rem;
    border-radius: 8px;
    background: rgba(255, 154, 60, 0.13);
    color: var(--accent);
    border: 1px solid rgba(255, 154, 60, 0.32);
    margin-bottom: 1.2rem;
}

/* Der Zonenname ist der Ausloeser fuer das Klimazonen-Modal: ein Knopf, der
   wie Text aussieht. NICHT .info-icon — das ist ein 1,4rem-Kreis mit eigenem
   Rahmen und 0,9rem Glyphe, gedacht fuer Queue-Zeilen. In einem Pill mit
   0,68rem sprengt er die Zeile und sitzt als grauer Klotz zwischen Zone und
   Status.

   Kein Unterstrich: den Hinweis traegt allein das ⓘ dahinter. Ein
   gepunkteter Unterstrich unter Kapitaelchen mit 0,07em Laufweite wirkt wie
   ein Rechtschreibfehler, nicht wie ein Verweis. */










/* Mobile-Anpassung */


/* ============================================================
   Queue-Grid auf Planet-Seite
   ============================================================ */



/* Page-Header (für Sub-Seiten wie Gebäude/Forschung) */






/* ============================================================
   Auth-Hero (Login/Register-Seiten)
   ============================================================ */





/* Dezent atmender Cyan-Glow — Logo wirkt lebendig, ohne abzulenken */
@keyframes voidar-logo-breathe {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(108, 196, 255, 0.18)); }
    50%      { filter: drop-shadow(0 0 22px rgba(108, 196, 255, 0.45)); }
}


@keyframes voidar-logo-spin {
    /* Sehr langsamer Spin damit nur der orbitierende Punkt
       sich sichtbar bewegt – wirkt subtil und meditativ */
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




/* ============================================================
   Mini-Queues auf Planet-Seite (b+)
   ============================================================ */


























/* ============================================================
   Info-Icon (kleine ℹ️-Buttons in Listen und Queues)
   ============================================================ */

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    margin-left: 0.3rem;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.15s ease,
                background 0.15s ease,
                border-color 0.15s ease,
                box-shadow 0.15s ease,
                transform 0.1s ease;
    vertical-align: middle;
    outline: none;          /* Standard-Browser-Ring weg */
    -webkit-tap-highlight-color: transparent;
}
.info-icon:hover {
    opacity: 1;
    background: rgba(108, 196, 255, 0.12);
    border-color: var(--tech-dim);
    transform: scale(1.1);
}
.info-icon:focus-visible {
    /* Eigener, sanfter Fokus-Ring (nur bei Tastatur-Fokus, nicht Maus) */
    opacity: 1;
    background: rgba(108, 196, 255, 0.12);
    border-color: var(--tech);
    box-shadow: 0 0 0 2px rgba(108, 196, 255, 0.25);
}
.info-icon::-moz-focus-inner {
    border: 0;              /* Firefox-Spezial-Rahmen weg */
}

/* ============================================================
   Info-Modal: Backdrop + Card
   ============================================================ */

.info-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: modal-fade-in 0.18s ease-out;
}
.info-modal-backdrop[hidden] {
    display: none !important;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.info-modal-host {
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}



@keyframes modal-card-in {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Body bekommt eine Klasse während ein Modal offen ist, falls
   wir Scroll auf der Hauptseite verhindern wollen. fm-open = Flottenkarte. */
body.modal-open,
body.fm-open {
    overflow: hidden;
}

/* ---------- Modal Header ---------- */








/* ---------- Modal Body Sections ---------- */






.req-ok {
    color: var(--ok, #79d27e);
}
.req-missing {
    color: var(--warn, #e3a14d);
}


.info-meta-line {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 0.55rem 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---------- Stufen und Einfluss waehlen (ueber der Stufen-Tabelle) ----------
   Feste Gruppen (Stufen / Gebaeude / Forschung), Bezeichnung ueber dem Feld,
   Knoepfe rechts untereinander. Auf schmalen Schirmen stehen die Gruppen untereinander. */







/* Gebaeude und Forschung brauchen fuer Stufenwahl und Punkte-Spalte mehr Breite;
   die uebrigen Fenster (Schiffe, Profil ...) bleiben bei 640 px. */




/* ---------- Stufen-Tabelle ---------- */



















/* Info-Modal-Payloads sind versteckte Daten-Container, niemals sichtbar */


/* ============================================================
   Ressourcen-Icons (SVG, monochrom via currentColor)
   ============================================================ */

.res-icon {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 1;
    filter: drop-shadow(0 0 4px currentColor);
}
.res-icon-voidanium      { color: var(--res-voidanium); }
.res-icon-singularit    { color: var(--res-singularit); }
.res-icon-aether  { color: var(--res-aether); }
.res-icon-energy     { color: var(--res-energy); }

/* ============================================================
   Cost-Block (einheitliche Kosten-Darstellung mit Icons + Tooltips)
   ============================================================ */







/* Wenn nicht leistbar: Wert rot färben (nicht das Icon, sonst wirkt's verwirrend) */



/* In Info-Modal-Tabelle dichter packen */



/* ============================================================
   Voidar-Tooltip (selbstgebaut, schick im Theme-Stil)
   ============================================================ */

.voidar-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2000;
    padding: 0.4rem 0.7rem;
    background: rgba(10, 16, 28, 0.96);
    color: var(--text-primary);
    border: 1px solid var(--tech-dim);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
                0 0 12px rgba(108, 196, 255, 0.15);
    pointer-events: none;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    max-width: 260px;
    white-space: normal;
    text-align: center;
}
.voidar-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Kleines Pfeil-Dreieck nach unten (zeigt aufs Element) */
.voidar-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--tech-dim);
}
.voidar-tooltip.flip-below::after {
    bottom: auto;
    top: -5px;
    border-top: none;
    border-bottom: 5px solid var(--tech-dim);
}

/* ============================================================
   Energieverbrauch in Info-Modal: Icon klein vor der Zahl
   ============================================================ */



/* ============================================================
   Tech-Tree
   ============================================================ */

/* Statistik-Strip oben */









/* Filter+Sort-Leiste */









/* Karten-Grid */


/* Einzel-Karte */






/* Card-Header */







/* Typ-Badges (Gebäude/Forschung/Schiff) */




/* Verteidigung und Raketen hatten keinen eigenen Ring — die Marken fielen
   auf die farblose Grundform zurueck. Die Farben sind nicht neu erfunden:
   Lila ist im ganzen Spiel die Farbe der Verteidigung (voidar-icon-defense),
   und Raketen tragen das Rot, das auf ihrer Seite schon am Abschuss-Knopf
   haengt (btn-danger). */



/* Level-Badge */



/* Beschreibung */


/* Voraussetzungs-Block */















/* Empty State */


/* Mobile / schmaler Schirm */



/* ============================================================
   Audit-Log (aufpoliert: Karten statt Tabelle, Diff, Delta-Chips)
   ============================================================ */

.audit-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.audit-entry {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: border-color 0.15s ease;
}
.audit-entry:hover {
    border-color: var(--tech-dim);
}

/* Head: Action-Badge + Zeit */
.audit-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.audit-head-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}
.audit-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}
.audit-action-icon {
    font-size: 0.9rem;
}
.audit-action-edit {
    background: rgba(111, 220, 140, 0.12);
    color: var(--tech);
    border: 1px solid var(--tech-dim);
}
.audit-action-warn {
    background: rgba(255, 138, 61, 0.12);
    color: var(--accent);
    border: 1px solid var(--accent-dim, var(--accent));
}
.audit-action-danger {
    background: rgba(255, 100, 100, 0.12);
    color: var(--danger);
    border: 1px solid rgba(255, 100, 100, 0.4);
}
.audit-action-system {
    background: rgba(122, 138, 154, 0.12);
    color: var(--text-muted);
    border: 1px solid rgba(122, 138, 154, 0.35);
}
.audit-action-owner {
    background: rgba(230, 192, 98, 0.12);
    color: #e6c062;
    border: 1px solid rgba(230, 192, 98, 0.45);
}
.audit-action-key {
    font-family: 'Consolas', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.6;
    cursor: help;
}
.audit-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: help;
    font-variant-numeric: tabular-nums;
}
.audit-time-ago {
    font-size: 0.75rem;
}

/* Personen-Reihe: Akteur → Ziel */
.audit-people {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.audit-person {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.audit-person-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.audit-arrow {
    color: var(--text-muted);
    opacity: 0.5;
    font-size: 1.1rem;
}

/* Spieler-Chip */
.audit-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem 0.25rem 0.3rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.audit-chip-link {
    cursor: pointer;
}
.audit-chip-link:hover {
    border-color: var(--tech-dim);
    background: rgba(111, 220, 140, 0.06);
}
.audit-chip-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tech), var(--accent));
    color: var(--bg-deep);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    flex-shrink: 0;
}
.audit-chip-system .audit-chip-avatar {
    background: var(--text-muted);
    color: var(--bg-deep);
}
.audit-chip-name {
    font-weight: 500;
}
.audit-chip-id {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

/* Grund / Reason */
.audit-reason {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.7rem;
    background: rgba(111, 220, 140, 0.04);
    border-left: 3px solid var(--tech-dim);
    border-radius: 4px;
}
.audit-reason-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.4rem;
}
.audit-reason-text {
    font-style: italic;
}

/* Delta-Block (prominente Anzeige der wesentlichen Änderungen) */
.audit-delta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.audit-delta-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.2rem;
}
.audit-delta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    border: 1px solid var(--border);
    background: var(--bg-deep);
}
.audit-delta-chip.is-positive {
    color: #79d27e;
    border-color: rgba(121, 210, 126, 0.4);
    background: rgba(121, 210, 126, 0.08);
}
.audit-delta-chip.is-negative {
    color: #ff7474;
    border-color: rgba(255, 100, 100, 0.4);
    background: rgba(255, 100, 100, 0.08);
}
.audit-delta-value {
    font-weight: 600;
}
.audit-delta-key {
    opacity: 0.85;
    font-size: 0.8rem;
}

/* Vollständiger Diff (collapsed) */
.audit-diff {
    margin-top: 0.3rem;
}
.audit-diff > summary {
    cursor: pointer;
    padding: 0.4rem 0.7rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    user-select: none;
    transition: border-color 0.15s ease;
}
.audit-diff > summary::-webkit-details-marker {
    display: none;
}
.audit-diff > summary::before {
    content: '▶';
    margin-right: 0.5rem;
    font-size: 0.7rem;
    transition: transform 0.15s ease;
    display: inline-block;
    color: var(--text-muted);
}
.audit-diff[open] > summary::before {
    transform: rotate(90deg);
}
.audit-diff > summary:hover {
    border-color: var(--tech-dim);
}
.audit-diff-summary-label {
    flex: 1;
}
.audit-diff-summary-count {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}

.audit-diff-table {
    width: 100%;
    margin-top: 0.7rem;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.audit-diff-table th,
.audit-diff-table td {
    padding: 0.4rem 0.7rem;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.audit-diff-table th {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.audit-diff-table .audit-diff-key {
    font-weight: 500;
    color: var(--text-primary);
}
.audit-diff-table .audit-diff-before {
    color: #ff9b9b;
}
.audit-diff-table .audit-diff-before code {
    background: rgba(255, 100, 100, 0.07);
    border-radius: 3px;
    padding: 0.1rem 0.4rem;
    border: 1px solid rgba(255, 100, 100, 0.2);
}
.audit-diff-table .audit-diff-after {
    color: #aae0ac;
}
.audit-diff-table .audit-diff-after code {
    background: rgba(121, 210, 126, 0.07);
    border-radius: 3px;
    padding: 0.1rem 0.4rem;
    border: 1px solid rgba(121, 210, 126, 0.2);
}

/* Roh-JSON (für Tech-Notfälle) */
.audit-raw {
    margin-top: 0.7rem;
}
.audit-raw > summary {
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
}
.audit-raw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-top: 0.5rem;
}
.audit-raw-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}
.audit-raw pre {
    background: var(--bg-deep);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 0.7rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    overflow-x: auto;
    margin: 0;
    line-height: 1.5;
    max-height: 22rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}
.empty-state .empty-icon {
    font-size: 3rem;
    opacity: 0.4;
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .audit-raw-grid {
        grid-template-columns: 1fr;
    }
    .audit-people {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .audit-arrow {
        display: none;
    }
}

/* ============================================================
   Einstellungen-Seite
   ============================================================ */

/* Tab-Navigation */
.settings-tabs {
    display: flex;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    flex-wrap: wrap;
}
.settings-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
    border-radius: 4px 4px 0 0;
}
.settings-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}
.settings-tab.is-active {
    color: var(--tech);
    border-bottom-color: var(--tech);
    background: rgba(111, 220, 140, 0.04);
}
.settings-tab-icon {
    font-size: 1rem;
}

/* Inhalt */
.settings-h2 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    color: var(--text-strong);
}
.settings-help {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 0 0 1.2rem;
    line-height: 1.5;
}
/* Hilfetext direkt unter einem Formular: sonst klebt er am Knopf. */
.form + .settings-help {
    margin-top: 1rem;
}
/* Raketenseite: Koordinaten und Countdown wie im restlichen Spiel
   (.planet-coord, .queue-item .job-countdown). */
.rak-stand .coord,
.rak-unterwegs .coord {
    font-family: 'Consolas', monospace;
    color: var(--tech);
}
.rak-unterwegs .job-countdown {
    color: var(--tech);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* Profil-Header mit Avatar */

/* Feld-Liste (dl) */
.settings-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin: 0;
}
.settings-field {
    display: grid;
    grid-template-columns: 12rem 1fr;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-soft);
    align-items: center;
}
.settings-field:last-child {
    border-bottom: none;
}
.settings-field dt {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}
.settings-field dd {
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.settings-verified {
    color: #79d27e;
    font-size: 0.78rem;
    padding: 0.15rem 0.5rem;
    background: rgba(121, 210, 126, 0.1);
    border: 1px solid rgba(121, 210, 126, 0.35);
    border-radius: 999px;
    cursor: help;
}
.settings-unverified {
    color: var(--accent);
    font-size: 0.78rem;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 138, 61, 0.1);
    border: 1px solid var(--accent-dim, var(--accent));
    border-radius: 999px;
    cursor: help;
}

/* Formular */
.settings-form {
    max-width: 32rem;
}
.settings-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}
.settings-form-row label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.settings-input {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s ease;
}
.settings-input:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px var(--amber-soft);
}

/* Toggle-Liste (Anzeige-Tab) */
.settings-toggle {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.settings-toggle:hover {
    border-color: var(--tech-dim);
    background: rgba(255, 255, 255, 0.02);
}
.settings-toggle input[type=checkbox] {
    /* echte Checkbox visuell verstecken, aber zugänglich lassen */
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.settings-toggle-switch {
    position: relative;
    width: 38px;
    height: 22px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 999px;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
    margin-top: 0.1rem;
}
.settings-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: transform 0.18s ease, background 0.15s ease;
}
.settings-toggle input:checked + .settings-toggle-switch {
    background: rgba(111, 220, 140, 0.2);
    border-color: var(--tech);
}
.settings-toggle input:checked + .settings-toggle-switch::after {
    transform: translateX(16px);
    background: var(--tech);
}
.settings-toggle-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.settings-toggle-label {
    font-weight: 500;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.settings-toggle-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Stats-Grid */
.settings-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.7rem;
}
.settings-stat {
    background: var(--bg-deep);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.settings-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.settings-stat-value {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
}

/* Globaler Effekt: Animationen reduzieren */
.vd-reduce-motion *,
.vd-reduce-motion *::before,
.vd-reduce-motion *::after {
    transition: none !important;
    animation: none !important;
}

@media (max-width: 720px) {
    .settings-field {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
}

/* ============================================================
   Owner-Panel — separates Layout mit Gold-Akzent
   ============================================================ */

/* Gold-Palette nur im Owner-Modus aktivieren */
.app-owner {
    --owner-gold:        #e6c062;
    --owner-gold-dim:    #8b7332;
    --owner-bg-tint:     rgba(230, 192, 98, 0.04);
    --owner-bg-deep:     #15110a;
    /* Logo gold im Owner-/Platform-Kontext (V bleibt weiß, Kern dunkel) */
    --logo-glow-inner:   var(--owner-gold);
    --logo-glow-outer:   var(--owner-gold);
    --logo-ring:         var(--owner-gold);
    --logo-core-stroke:  var(--owner-gold);
    --logo-dot:          var(--owner-gold);
}

/* ============================================================
   Owner-/Platform-Layout — Sidebar-Grid (bis Schritt 5 auf Orbit/Twig).
   Das Spiel-Layout ist auf die Topbar umgestellt; das Owner-Panel nutzt
   weiter das klassische Grid + Sidebar. Diese Gerüst-Styles standen früher
   generisch (.app/.brand-bar/.sidebar/.side-nav) und werden hier für den
   Owner-Kontext erhalten, damit das Panel nutzbar bleibt.
   ============================================================ */
.app-owner {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "brand   topbar"
        "sidebar main"
        "footer  footer";
    min-height: 100vh;
}
.app-owner .topbar-owner {
    grid-area: topbar;
    position: static;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border);
}
.app-owner main.container { grid-area: main; max-width: none; }
.footer-owner { grid-area: footer; }

/* Topbar im Owner-Layout */
.topbar-owner {
    background: linear-gradient(180deg, #1c1610 0%, #100c07 100%);
    border-bottom-color: var(--owner-gold-dim);
    justify-content: space-between;
    padding: 0.7rem 1.6rem;
}

/* Owner-Karten und Sektionen */
.owner-card {
    border-color: var(--owner-gold-dim);
}
/* Im Owner-/Platform-Modus bekommen ALLE Karten den Gold-Rahmen — auch solche
   ohne explizite .owner-card-Klasse (z. B. die platform-Content-Karten). So
   sehen Spiel-Owner-Panel und platform-Panel einheitlich aus. */
.owner-mode .card {
    border-color: var(--owner-gold-dim);
}
.owner-card .settings-h2 {
    color: var(--owner-gold);
}

/* Owner-Footer: dezenter Gold-Ton */
.footer-owner {
    border-top-color: var(--owner-gold-dim);
    color: var(--owner-gold-dim);
}
/* Owner-Stats — Reuse vom tt-stats-Grid, aber mit Gold-Akzent */




/* Print-Styles für Recovery-Codes-Ausdruck */
@media print {
    .topbar, .subbar, .footer, .flash-zone {
        display: none !important;
    }
    body, .app, .app-owner {
        background: white !important;
        color: black !important;
    }
}

/* ============================================================
   Werft (Schiffe bauen)
   ============================================================ */

/* Bauliste — leichte Anpassungen für mehr Spalten */
.ship-table th,
.ship-table td {
    vertical-align: middle;
}
/* .ship-table .b-level entfaellt: Stufe-Ausrichtung kommt zentral aus der
   build-table Spalten-Ausrichtungs-Sektion (Werft/Verteidigung haben
   ohnehin keine Stufe-Spalte). Eine Quelle der Wahrheit. */
/* Schiff-/Anlagen-Namen einzeilig: sonst brechen Zwei-Wort-Namen wie
   "Kleiner Transporter" um (Anzahl-Spalte nimmt Platz) -> ungleich hohe
   Zeilen. Ein-Wort-Namen ("Kolonisationsschiff") sind ohnehin breiter,
   die Spalte hat also genug Platz. */
.ship-table .b-name { white-space: nowrap; }
.ship-amount-col {
    width: 11rem;
    text-align: right;
    white-space: nowrap;
}
.ship-amount-input {
    width: 6rem;
    padding: 0.35rem 0.5rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.ship-amount-input:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px var(--amber-soft);
}

/* Kosten in Werft/Verteidigung nie umbrechen: die breite Anzahl-Spalte
   (11rem) quetscht sonst die Kosten-Spalte, und die 3. Ressource rutscht
   in eine zweite Zeile -> ungleich hohe Zeilen + scheinbar "verschobene"
   Trennlinien. Bei Gebaeude/Forschung kein Problem (keine Anzahl-Spalte). */
.ship-table .b-cost { white-space: nowrap; }

.ship-build-form {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Aktiver Werft-Auftrag */
.ship-queue-active {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    align-items: flex-start;
}
.ship-queue-active .qi-info {
    flex: 1;
    min-width: 0;
}
.ship-progress-text strong {
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
}
.ship-progress-eta,
.ship-progress-total {
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.ship-progress-sep {
    margin: 0 0.3rem;
}

/* Info-Modal: Schiff-Stats-Grid */









/* ---------- Mini-Queue: Werft-Variante (Planet-Seite) ---------- */








/* ============================================================
   Icon-System (SVG inline, CSS-färbbar)
   ============================================================ */

/*
 * Basis: Alle Voidar-Icons nehmen die Farbe vom Eltern-Element
 * via currentColor. Färben funktioniert dann einfach über color: ...
 */
.voidar-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    color: var(--text-secondary);   /* Default-Farbton */
}

/* Kategorie-Farben — werden in spezifischen Kontexten überschrieben */
.voidar-icon-ship    { color: var(--tech); }              /* Cyan für Schiffe */
.voidar-icon-building { color: var(--text-strong); }      /* Heller für Gebäude */
.voidar-icon-research { color: var(--accent); }           /* Orange für Forschung */
.voidar-icon-defense  { color: #c878ff; }                 /* Lila für Verteidigung */

/* Zustandsklassen */
.voidar-icon.icon-locked    { opacity: 0.3; }
.voidar-icon.icon-muted     { color: var(--text-muted); }
.voidar-icon.icon-strong    { color: var(--text-strong); }

/* Hover/Active */
.b-name:hover .voidar-icon {
    color: var(--tech-bright, var(--tech));
    transition: color 0.15s ease;
}

/* Größen-Klassen (optional, wenn man nicht via width/height geht) */
.voidar-icon.icon-xs  { width: 16px; height: 16px; }
.voidar-icon.icon-sm  { width: 24px; height: 24px; }
.voidar-icon.icon-md  { width: 32px; height: 32px; }
.voidar-icon.icon-lg  { width: 48px; height: 48px; }
.voidar-icon.icon-xl  { width: 96px; height: 96px; }
.voidar-icon.icon-hero{ width: 128px; height: 128px; }

/* Fallback-Emoji-Display: gleiches Größenverhalten */
.voidar-icon-fallback {
    background: transparent;
    color: inherit;
}

/* Im Info-Modal: großes Hero-Icon im Header */


/* Hero-Icon im Info-Modal-Header */


/* Mini-Queue Werft: Icon inline */


/* Werft-Liste Icon-Spalte: Icon und Name aligned */
.b-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.b-name .b-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.b-name strong {
    flex: 1;
}

/* Tech-Tree-Cards: Icon inline mit Name */


/* ---------- Owner: Update einspielen ---------- */
.deploy-form {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.deploy-file input[type="file"] {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.deploy-note {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(108, 196, 255, 0.08);
    border: 1px solid rgba(108, 196, 255, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.deploy-table { margin-top: 1rem; }
.deploy-table .deploy-target {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--amber);
}
.deploy-table .deploy-path {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.deploy-table .deploy-size {
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.deploy-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.deploy-update {
    background: rgba(255, 181, 71, 0.15);
    color: var(--warn);
    border: 1px solid rgba(255, 181, 71, 0.3);
}
.deploy-new {
    background: rgba(93, 213, 138, 0.15);
    color: var(--success);
    border: 1px solid rgba(93, 213, 138, 0.3);
}
.deploy-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

/* ---------- Planeten-Umschalter (Dropdown) ---------- */
.planet-switcher {
    position: relative;
    display: inline-block;
    margin-right: 1.2rem;
}

/* Zusammengeklappter Button */
.planet-switcher .ps-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(120%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.7rem;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.88rem;
    transition: border-color 0.15s ease, background 0.15s ease;
    min-width: 180px;
}
.planet-switcher .ps-toggle:hover {
    border-color: rgba(108, 196, 255, 0.4);
    background: var(--glass-bg-strong);
}
.planet-switcher .ps-current {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}
.planet-switcher .ps-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.planet-switcher .ps-coords {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.planet-switcher .ps-caret {
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: transform 0.18s ease;
}
.planet-switcher .ps-toggle[aria-expanded="true"] .ps-caret { transform: rotate(180deg); }

/* ============================================================
   FLOTTEN-SENDE-UI (Phase 7.1)
   ============================================================ */

/* Generelle kleine Hilfsklassen (waren noch nicht da) */
.small { font-size: 0.85em; }
.num   { font-variant-numeric: tabular-nums; text-align: right; }

.form-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1.5rem;
}

/* Flotten-Formular */



/* Tabellen mit Schiff-/Cargo-Auswahl */






/* Koordinaten-Eingabe */





/* Mond als Ziel ist bei Angriff und Spionage gesperrt - ausgegraut statt
   versteckt, damit sichtbar bleibt, dass es die Wahl grundsaetzlich gibt. */





/* Speed-Slider */
.speed-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.6rem 0;
}
.speed-slider input[type="range"] {
    flex: 1;
    max-width: 24rem;
    accent-color: var(--accent, #ff9a3c);
}
.speed-slider output {
    min-width: 4rem;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    font-weight: 600;
}

/* Vorschau-Bereich */









/* ============================================================
   GALAXIE-AKTIONS-DROPDOWN (Phase 7.1.3 Refinement)
   ============================================================ */





/* "Anzeigen" ist ein POST-Form-Button (Planetenwechsel via switch_planet,
   CSRF-geschuetzt) statt eines GET-Links - soll aber wie die <a>-Eintraege
   im Dropdown aussehen. */





/* ============================================================
   MINI-FLEETS-KARTE (Phase 7.1.4)
   ============================================================ */

















/* Leere fleets-Wrap nimmt keinen Platz — OGame-Style "nichts wenn nichts".
   :has(.mini-queue) trifft nur wenn die Mini-Queue-Karte tatsächlich
   gerendert wurde (d.h. mind. 1 Flotte unterwegs). Andernfalls wird
   der Wrap visuell ausgeblendet, obwohl er als Mount-Point im DOM bleibt. */


/* ============================================================
   FLOTTEN-KARTE OBEN (Phase 7.1.4 Refinement)
   ============================================================
   Die Flotten-Karte sitzt OBERHALB des Planeten-Heroes — sofort
   sichtbar, später Mount-Point für Angriffs-Alarme. Volle Breite. */



/* Lieferungen und Flotten untereinander: Abstand wie unter der Radar-Warnung */


/* Ziel-Koordinaten neben dem Namen etwas dezenter */



/* ════════════════════════════════════════════════════════════
   MOBILE LAYOUT — kompletter Block, Bottom-Tab-Bar wie App.
   Greift unter 900px. Auf Desktop ändert sich NICHTS.
   ════════════════════════════════════════════════════════════ */

/* Bottom-Tab-Bar Default: VERSTECKT (Desktop sieht sie nicht) */
.mobile-tabbar { display: none; }
.mtb-more-panel { display: none; }

/* ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {

/* ===== Layout-Grundgerüst: Sidebar weg, voller Bildschirm ===== */
body { overflow-x: hidden; }
body.mtb-no-scroll { overflow: hidden; }

.layout,
.app {
    display: block !important;     /* statt grid mit Sidebar (Spiel UND Owner) */
    grid-template-columns: none !important;
    grid-template-areas: none !important;
}
main.container {
    padding: 0.7rem 0.7rem 5.5rem !important;  /* unten Platz für Tab-Bar */
    max-width: 100% !important;
}

/* ===== TOPBAR kompakter ===== */
.topbar {
    padding: 0.5rem 0.7rem !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}
.topbar .brand:not(body.auth *) { flex-shrink: 0; }
.topbar .brand-logo-img {
    height: 20px !important;
    width: auto !important;
}
/* Hauptnav (Dropdown-Gruppen) weg auf Mobile — die Bottom-Tabbar übernimmt */
.topnav { display: none !important; }

/* Rechte Topbar-Gruppe weg auf Mobile — Konto, Admin/Owner-Pills, Glocke und
   Nachrichten stecken alle in der Bottom-Tabbar unter „Mehr". Oben bleibt das
   Logo. Betrifft nur das Spiel-Layout (Owner-Topbar nutzt diese Klassen nicht). */
.topbar-spacer, .topbar-bell, .topbar-icon, .topbar .acct, .topbar .pill-admin { display: none !important; }

/* Planet-Switcher kompakter */
.planet-switcher {
    font-size: 0.85rem !important;
}
.planet-switcher .ps-current {
    padding: 0.3rem 0.55rem !important;
}

/* Ressourcen-Strip: 2x2-Grid statt Zeile, kleinere Schrift.
   Items werden in ihrer Spalte ZENTRIERT, damit das Gesamtbild
   ausgeglichen wirkt (egal ob die Zahl 1 oder 5 Stellen hat). */
.subbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
    /* Die Kopfzeile ist hier niedriger als auf dem Desktop. */
    --topbar-h: 44px;
    padding: 0.4rem 0.6rem !important;
}
/*
 * Eine Zeile statt 2x2: als Block waere die Leiste 160px hoch und naehme
 * ein Viertel des Schirms weg, sobald sie stehen bleibt. Passt die Zeile
 * nicht, laesst sie sich seitlich schieben, statt umzubrechen.
 */
.res-strip {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.25rem !important;
    width: 100%;
    font-size: 0.78rem !important;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
}
.res-strip::-webkit-scrollbar { display: none; }
.res-strip .item { flex: 0 0 auto; }
/*
 * Nur der Bestand, nicht die Lagergrenze: "3.689.111 / 1.600.000" ist doppelt
 * so breit wie noetig, und auf 390px Schirmbreite fielen dadurch drei der
 * fuenf Werte aus dem Bild. Die Grenze steht weiterhin im Tooltip und auf
 * der Planetenseite.
 */
.res-strip .res-sep,
.res-strip .res-cap,
.res-strip .energy-prod { display: none !important; }
.res-strip .item {
    padding: 0.28rem 0.4rem !important;
    gap: 0.28rem !important;
    justify-content: center;
}
.res-strip .item .label { display: none; } /* Label weg, Icon reicht */
.res-strip .item .icon svg {
    width: 14px !important;
    height: 14px !important;
}
.res-strip .res-pair .res-cap {
    font-size: 0.85em;
}

/* ===== BOTTOM-TAB-BAR ===== */
.mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(15, 19, 30, 0.97);
    border-top: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.3rem 0 calc(0.3rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 12px rgba(0,0,0,0.35);
}
.mtb-item {
    position: relative;   /* Traeger fuer den Hinweispunkt am Mehr-Knopf */
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.45rem 0.3rem;
    color: var(--text-muted, rgba(255,255,255,0.55));
    text-decoration: none;
    font-size: 0.7rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
    min-height: 48px;  /* Touch-Target-Mindestgröße */
}
.mtb-item:hover,
.mtb-item:focus-visible {
    color: var(--accent, #ff9a3c);
}
/*
 * Hinweispunkt am Mehr-Knopf. Berichte, Nachrichten und Tutorial liegen
 * im Mehr-Panel; ohne diesen Punkt muesste man das Menue oeffnen, um zu
 * sehen, dass dort etwas wartet. Der dunkle Ring setzt ihn vom Symbol ab.
 */
.mtb-punkt {
    position: absolute;
    top: 6px;
    left: 50%;
    margin-left: 5px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 2px var(--bg, #0d1117);
    pointer-events: none;
}
.mtb-item.active {
    color: var(--accent, #ff9a3c);
}
.mtb-item.active .mtb-icon {
    transform: translateY(-1px);
}
.mtb-icon {
    font-size: 1.3rem;
    line-height: 1;
}
.mtb-label {
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ===== MEHR-PANEL (Bottom Sheet) ===== */
.mtb-more-panel {
    display: block;
    position: fixed;
    inset: 0;
    /* Über dem Chat-Widget (#voidar-chat, z-index 900): Das geöffnete Menü soll
       die Bubble verdecken, so wie die Verdunkelung es mit allem anderen tut.
       Andersherum gedacht — den Chat absenken — haengt seine Sichtbarkeit an
       der Hoehe der Tab-Bar, und die waechst je nach Schriftgroesse und Geraet
       ueber den Abstand hinaus. Dann verschwindet die Bubble ganz statt nur
       hier (am 20.07.2026 genau so passiert). */
    z-index: 950;
}
.mtb-more-panel[hidden] { display: none; }

.mtb-more-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    transition: opacity 0.22s ease;
}
.mtb-more-panel.mtb-open .mtb-more-backdrop {
    opacity: 1;
}

.mtb-more-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 25, 38, 0.99);
    border-top: 1px solid rgba(255, 154, 60, 0.18);
    border-radius: 14px 14px 0 0;
    max-height: 75vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.22s ease;
    padding-bottom: env(safe-area-inset-bottom);
}
.mtb-more-panel.mtb-open .mtb-more-sheet {
    transform: translateY(0);
}

.mtb-more-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    background: inherit;
}
.mtb-more-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}
.mtb-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    min-width: 36px;
    min-height: 36px;
}
.mtb-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }

.mtb-more-content { padding: 0.5rem 0; }
.mtb-section {
    padding: 0.4rem 1rem;
}
.mtb-section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.4rem 0 0.3rem;
}
.mtb-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.4rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    min-height: 44px;  /* Touch-Target */
}
.mtb-link:hover { background: rgba(255, 154, 60, 0.08); color: var(--accent); }
.mtb-link-logout { color: var(--danger, #ff6b6b); }

/* ===== PLANET-ÜBERSICHT kompakt auf Mobile ===== */


/* Frueher formten diese Regeln die Kugel-Spalte. Das Bild ist jetzt die
   Hintergrundebene der ganzen Karte — eine Breite von 150 px wuerde sie auf
   eine Briefmarke in der Ecke schrumpfen. */




/* ===== FLOTTEN-KARTE oben: schon volle Breite, aber gap kleiner ===== */



/* ===== TABELLEN: horizontal scrollbar machen ===== */
.build-table {
    font-size: 0.85rem !important;
}
.build-table th,
.build-table td {
    padding: 0.4rem 0.4rem !important;
}

/* Container um Tabellen scrollen lassen */
section.card:has(table) {
    overflow-x: auto;
}

/* build-table (Gebäude/Forschung/Werft/Verteidigung) auf Mobile als KARTEN
   statt gequetschter Tabelle: jede Zeile wird eine Karte, Werte gestapelt mit
   Labels, Button volle Breite unten. Sonst werden Dauer + Button abgeschnitten. */
.build-table { overflow: visible; }
.build-table, .build-table tbody { display: block; width: 100%; }
.build-table thead, .build-table tr:first-child:has(th) { display: none; }
.build-table tr {
    display: block;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    margin-bottom: 0.6rem;
    padding: 0.7rem 0.85rem;
}
.build-table td {
    display: flex;
    width: 100% !important;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0 !important;
    border: none !important;
    text-align: left !important;
}
/* Label vor jeder Zelle (außer Name + Aktion) */
.build-table td.b-level::before   { content: 'Stufe'; }
.build-table td.b-stock::before   { content: 'Bestand'; }
.build-table td.b-cost::before    { content: 'Kosten'; }
.build-table td.b-duration::before{ content: 'Dauer'; }
.build-table td.b-level::before, .build-table td.b-stock::before, .build-table td.b-cost::before, .build-table td.b-duration::before {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
/* Name oben als Karten-Titel, volle Breite, größer */
.build-table td.b-name-cell,
.build-table td:first-child {
    border-bottom: 1px solid var(--border-soft) !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.3rem;
}
.build-table .b-name { font-size: 1rem; font-weight: 600; }
/* Aktions-Spalte: Button volle Breite unten */
.build-table td.row-action,
.build-table td.b-action {
    width: 100% !important;
    justify-content: stretch;
    padding-top: 0.5rem !important;
    margin-top: 0.2rem;
    border-top: 1px solid var(--border-soft) !important;
}
.build-table td.row-action .btn,
.build-table td.row-action button,
.build-table td.b-action .btn,
.build-table td.b-action button,
.build-table td.row-action .btn-primary,
.build-table td.b-action .btn-primary {
    width: 100%;
    text-align: center;
}

/* Bau-/Forschungs-Queue auf Mobile entzerren: bei langen Gebäudenamen
   (z.B. "Äther-Extraktor") darf "→ Stufe X" umbrechen statt zu quetschen,
   und das ℹ️-Icon soll nicht mit dem ×-Abbrechen-Button kollidieren. */
.queue-item {
    gap: 0.5rem !important;
    padding: 0.6rem 0.7rem !important;
}
.queue-item .qi-name {
    flex-wrap: wrap;
    row-gap: 0.15rem;
}
.queue-item .qi-name strong {
    flex: 0 1 auto;
    min-width: 0;
    word-break: break-word;
}
.queue-item .qi-action {
    align-self: flex-start;
}

/* ===== FORMULARE: Buttons groß, Inputs lesbar ===== */
button, .btn, input[type="submit"],
.btn-primary, .btn-ghost, .btn-tech, .btn-danger {
    min-height: 42px;  /* Touch-tauglich */
}
/* Link-Buttons (a) zentrieren ihren Text bei erzwungener Höhe nicht von selbst */
a.btn, a.btn-primary, a.btn-ghost, a.btn-tech, a.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
select,
textarea {
    font-size: 16px !important;  /* iOS zoom-Verhinderung — auch für Android sicher */
}

/* ===== FOOTER weg auf Mobile (Tab-Bar nimmt den Platz) ===== */
.footer { display: none; }

/* ===== Owner-Topbar: "Zurück zum Spiel"-Link auf Mobile verstecken
        (ist in der Bottom-Bar als "← Spiel" enthalten). Außerdem
        Topbar-Layout korrigieren, damit der Warnhinweis nicht
        vom Link überdeckt wird. ===== */
.topbar-owner .user-nav { display: none !important; }

/* ===== GALAXIE-TABELLE → KARTEN-LAYOUT auf Mobile =====
   Die Tabelle wird per CSS in Karten umgewandelt. Kein Template-Umbau
   nötig — Spalten werden mit data-Pseudo-Labels angereichert. */




/* Leere Slots dezenter, aber LESBAR (nicht ausgegraut, nur subtil) */


/* Position als kleines Pill oben links */


/* Bei leeren Slots: Pos-Pill noch dezenter */

/* Planet bekommt mehr Gewicht */


/* Leerer Slot: dezent, aber gut lesbar (eine Zeile mit der Pos) */

/* Besitzer mit Label davor */


/* Status auf eigene Zeile */


/* Aktiv und offline: kein Symbol, also keine leere Zeile. !important, weil
   die Karten-Ansicht alle Zellen mit display:block !important setzt. */

/* Aktionen: kompakter Button rechtsbündig, NICHT volle Breite */






/* Galaxie-Navigation oben (G/S-Auswahl): kompakter */



/* ===== FLOTTE-SENDEN-FORMULAR auf Mobile =====
   Das 5-Schritte-Formular ist auf Mobile noch quetschig. Hier alles
   etwas großzügiger machen, Schritte trennen, Inputs touch-tauglich.

   Echte Klassen aus templates/fleet_send.php:
     .fleet-form        — das ganze Formular
     .fleet-ship-table  — Schiffe-Auswahl
     .fleet-cargo-table — Ressourcen laden
     .coord-input       — Ziel-Koordinaten (drei Inputs)
     .speed-slider      — Geschwindigkeits-Slider
     .ship-count-input  — Schiff-Anzahl + "Alle"-Button
     .preview-grid      — Vorschau-Kacheln (JS-gerendert)
     .preview-cell      — einzelne Kachel
*/

/* H2-Schritt-Header etwas größer und mit Abstand */



/* Schiffe-/Cargo-Tabelle: Cells großzügiger */



/* Schiff-/Cargo-Input: Inputs touch-tauglich, "Alle"-Button daneben */




/* Ziel-Koordinaten: 3 gleichmäßige Inputs nebeneinander */



/* Quick-Pick-Buttons (eigene Planeten) — als Wrap-Reihe */
.js-prefill-target {
    margin: 0.2rem 0.3rem 0.2rem 0;
    min-height: 36px;
    padding: 0.4rem 0.7rem !important;
}

/* Geschwindigkeits-Slider Touch-tauglich */
.speed-slider input[type="range"] {
    height: 32px;
    width: 100%;
}

/* Vorschau-Kacheln auf Mobile: 2 Spalten statt 4 */





/* Send/Abbruch — Buttons groß und untereinander */



/* ===== Kleinere Sachen =====
   Karten-Innenabstand und Überschriften am Handy regelt seit dem Redesign
   leitstand.css (Entwurf A); die pauschalen !important-Regeln sind entfallen. */

}  /* Ende @media max-width: 900px */

/* ─────────────────────────────────────────────────────────── */
/* Sehr kleine Geräte: zusätzliche Anpassungen */
@media (max-width: 500px) {

.res-strip {
    font-size: 0.75rem !important;
}
.mtb-label { font-size: 0.65rem; }
.mtb-icon { font-size: 1.2rem; }

/* Owner-Tab-Bar hat 6 Items (eines mehr als Spiel) — minimal kompakter
   damit auf 360px-Screens nichts überlappt. */
.mobile-tabbar-owner .mtb-item { padding: 0.45rem 0.2rem; }
.mobile-tabbar-owner .mtb-label { font-size: 0.62rem; }

}
/* ════════════════════════════════════════════════════════════
   ENDE MOBILE-BLOCK
   ════════════════════════════════════════════════════════════ */

/* ============================================================
   DEPLOY: Warnung bei neuen Migrationen
   ============================================================ */
.deploy-mig-warn {
    background: rgba(255, 165, 0, 0.08);
    border: 1px solid rgba(255, 165, 0, 0.35);
    border-left: 4px solid #ffa500;
    border-radius: 6px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    color: var(--text);
}
.deploy-mig-warn-head {
    font-size: 1.02rem;
    margin-bottom: 0.5rem;
    color: #ffb84d;
}
.deploy-mig-warn p {
    margin: 0.5rem 0;
    line-height: 1.45;
}
.deploy-mig-warn ul.deploy-mig-list {
    margin: 0.4rem 0 0.6rem 1.2rem;
    padding: 0;
}
.deploy-mig-warn ul.deploy-mig-list li {
    margin: 0.2rem 0;
}
.deploy-mig-warn code {
    background: rgba(255,255,255,0.06);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.92em;
    color: #ffd089;
}
.deploy-mig-warn a {
    color: var(--accent, #ff9a3c);
    font-weight: 600;
}
.deploy-mig-warn .btn-primary {
    display: inline-block;
    margin-top: 0.3rem;
}
/* Der orange Button darf NICHT die orange Link-Farbe des Warn-Blocks erben
   (sonst oranger Text auf orangem Button = unlesbar). Dunkle Schrift erzwingen. */
.deploy-mig-warn a.btn-primary,
.deploy-mig-warn a.btn-primary:hover {
    color: #1a0e00;
}

/* ============================================================
   FLOTTEN-SENDE-FORMULAR: Mission-Selektor
   ============================================================ */





/* Die <option>-Elemente werden vom Betriebssystem-Picker gerendert.
   In Chrome/Android lässt sich der Hintergrund teilweise färben — wir
   versuchen's, aber je nach OS kann's auch hell bleiben (das ist okay,
   die Liste ist ja nur kurz offen). */



/* ============================================================
   PLANET-NAME — Inline-Edit
   ============================================================ */


/* inline-flex oben schlaegt sonst das hidden beim Bearbeiten: Der Name
   stuende ueber dem Eingabefeld, statt von ihm ersetzt zu werden. */










/* ============================================================
   OWNER: Cron-Status-Karten
   ============================================================ */
.cron-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.cron-card-header h2 {
    margin: 0 0 0.2rem 0;
}
.cron-health-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid;
}
.cron-health-ok {
    background: rgba(80, 200, 120, 0.1);
    border-color: rgba(80, 200, 120, 0.4);
    color: #5dd49a;
}
.cron-health-warning {
    background: rgba(255, 180, 80, 0.1);
    border-color: rgba(255, 180, 80, 0.4);
    color: #ffba50;
}
.cron-health-stale {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.4);
    color: #ff8484;
}
.cron-health-unknown {
    background: rgba(150, 150, 150, 0.1);
    border-color: rgba(150, 150, 150, 0.3);
    color: #aaa;
}
.cron-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.7rem;
    margin: 0.5rem 0 1rem 0;
}
.cron-stat {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 5px;
    padding: 0.6rem 0.8rem;
}
.cron-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}
.cron-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}
.cron-status-success { color: #5dd49a; }
.cron-status-error   { color: #ff8484; }
.cron-status-skipped { color: #aaa; }

.cron-section-title {
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.3rem;
}

.cron-errors-details {
    margin-top: 1rem;
    background: rgba(255, 100, 100, 0.04);
    border: 1px solid rgba(255, 100, 100, 0.2);
    border-radius: 5px;
    padding: 0.6rem 0.8rem;
}
.cron-errors-details summary {
    cursor: pointer;
    color: #ff9b9b;
    font-weight: 500;
}
.cron-errors-list {
    margin: 0.5rem 0 0 0;
    padding: 0;
    list-style: none;
}
.cron-errors-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cron-errors-list li:last-child {
    border-bottom: none;
}
.cron-err-time {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.cron-err-msg {
    color: #ffb8b8;
    font-family: monospace;
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

/* Punkte-Anzeige in der Galaxie hinter dem Besitzer-Namen */
.g-owner-points {
    color: var(--text-muted, rgba(255,255,255,0.55));
    font-size: 0.85em;
    font-variant-numeric: tabular-nums;
    margin-left: 0.2em;
}

/* ============================================================
   HIGHSCORE-SEITE
   ============================================================ */


/* "Dein Platz"-Karte oben */





/* Highscore-Tabelle */












/* Veränderung seit gestern: oben die Plätze, darunter die Punkte */











/* Mein Eintrag: hervorgehoben */








/* Pagination */








/* Mobile: Tabelle kompakter, Sub-Kategorien-Spalten weg (nur Gesamt) */


/* ============================================================
   PROFIL-KARTE (Visitenkarten-Style)
   ============================================================ */

/* Klickbare Profile-Links überall (Galaxie, Highscore, Berichte) */
.profile-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.12s;
    cursor: pointer;
}
.profile-link:hover {
    color: var(--accent, #ff9a3c);
}

/* Profil-Karte (Vollseite + Modal-Variante) */
.profile-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}
.profile-card-modal {
    /* Im Modal: kein doppelter Container, da info-modal-host das bereits ist */
    background: var(--bg-surface, #15192a);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: min(720px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
}
.profile-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.7rem;
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.12s;
    z-index: 5;
}
.profile-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Modal-Ladezustand */
.profile-modal-loading {
    padding: 3rem 2rem;
    text-align: center;
    font-style: italic;
}

/* Mobile: kompakter */
@media (max-width: 600px) {
    .profile-card { padding: 1rem; }
}

/* ============================================================
   BERICHTE — Glocke + Liste + Detail
   ============================================================ */

/* Topbar-Glocke */
.topbar-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    margin-left: 0.6rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: background 0.12s, border-color 0.12s;
}
.topbar-bell:hover {
    background: rgba(255, 154, 60, 0.12);
    border-color: rgba(255, 154, 60, 0.3);
}
.topbar-bell.has-unread {
    border-color: rgba(255, 180, 80, 0.5);
    box-shadow: 0 0 12px rgba(255, 180, 80, 0.2);
}
.bell-icon { font-size: 1.05rem; }
.bell-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.3rem;
    background: #ff8484;
    color: #fff;
    border-radius: 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

/* Zaehler mit hidden bleiben verborgen. Ihr display (flex, inline-block)
   ueberstimmt sonst das hidden des Browsers, und bei 0 stuende eine rote 0. */
.bell-count[hidden], .ti-count[hidden], .nav-badge[hidden] { display: none; }

/* Reports-Seite */
.reports-intro { margin-bottom: 1rem; }



.reports-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.report-item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.1s;
}
.report-item:last-child { border-bottom: none; }
.report-item:hover { background: rgba(255,255,255,0.02); }
.report-item.is-unread {
    background: rgba(255, 154, 60, 0.03);
}
.report-item.is-pinned {
    border-left: 3px solid rgba(255, 180, 80, 0.5);
}











/* Pagination am Listenende */


/* Detail-Seite */
.report-detail-back {
    margin-bottom: 0.8rem;
}
.report-detail-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.report-detail-type {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.report-detail-subject {
    margin: 0;
    font-size: 1.4rem;
}
.report-detail-meta {
    margin-top: 0.3rem;
}
.report-detail-body {
    padding: 1.2rem;
}
.report-system-body {
    line-height: 1.6;
    white-space: pre-wrap;
}
.report-detail-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}
.report-raw-payload {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 0.8rem;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: pre-wrap;
    color: var(--text-muted);
}

/* Mobile: kompakter */


/* ============================================================
   OWNER: Bot-Verwaltung
   ============================================================ */
.bots-helper-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem 0;
}
.bots-table-scroll {
    max-height: 50vh;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
}
.bots-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.bots-table th,
.bots-table td {
    padding: 0.4rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.bots-table th {
    background: rgba(255,255,255,0.025);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 1;
}
.bots-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}
.bots-row-me {
    background: rgba(255, 154, 60, 0.05);
}
.bots-col-check {
    width: 2.5rem;
    text-align: center;
}

/* Zeitraum-Modal */
.bots-range-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* HTML5 hidden-Attribut MUSS gewinnen, sonst überdeckt display:flex es */
.bots-range-modal[hidden] {
    display: none !important;
}
.bots-range-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}
.bots-range-sheet {
    position: relative;
    background: var(--bg-surface, #15192a);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.bots-range-sheet h3 {
    margin: 0 0 0.5rem 0;
}

/* ============================================================
   GALAXIE: Meine Planeten — Quick-Nav-Dropdown
   ============================================================ */

/* Die Galaxie-Nav-Card muss über der nachfolgenden System-Card liegen,
   damit das absolute Dropdown nicht von der Tabelle überlagert wird.
   .card hat backdrop-filter, das erzeugt einen eigenen Stacking-Context
   pro Card — also müssen wir die Nav-Card explizit heben. */



/* Zur Heimat und Meine Planeten nebeneinander unter der Auswahl */







/* HTML5 hidden vs CSS display — Lesson #23 */


.mp-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.1s;
}
.mp-item:last-child { border-bottom: none; }
.mp-item:hover {
    background: rgba(255, 154, 60, 0.06);
}
.mp-item.mp-current {
    background: rgba(255, 154, 60, 0.1);
    cursor: default;
}






/* Highlight-Animation für angesprungene Slot-Zeile */
@keyframes mp-flash {
    0%, 100% { background-color: transparent; }
    20%      { background-color: rgba(255, 154, 60, 0.25); }
}


/* Mobile: Dropdown Volle Breite */
@media (max-width: 700px) {
    
    .mp-item {
        padding: 0.85rem 1rem;
    }
}

/* ============================================================
   OWNER: Audit-Log-Browser
   ============================================================ */

/* Filter-Bar (oben) */
.audit-filters {
    margin-bottom: 1rem;
}
.audit-filter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.audit-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
}
.audit-filter-search {
    grid-column: span 2;
}
.audit-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.audit-filter-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.audit-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Owner-Akzent: subtiler Gold-Touch in der Card-Border und beim Hover */
.audit-list-owner .audit-entry {
    border-color: rgba(230, 192, 98, 0.12);  /* --owner-gold mit Transparenz */
}
.audit-list-owner .audit-entry:hover {
    border-color: rgba(230, 192, 98, 0.25);
}
/* Linke Owner-Linie als Identitäts-Markierung (subtil) */
.audit-list-owner .audit-entry::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        rgba(230, 192, 98, 0.4) 0%,
        rgba(230, 192, 98, 0.05) 100%);
    border-radius: 6px 0 0 6px;
}
.audit-list-owner .audit-entry {
    position: relative;
    padding-left: 1.2rem;
}

/* Pagination (unten) */
.audit-pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    flex-wrap: wrap;
}

/* Mobile: Filter-Grid 2-spaltig */
@media (max-width: 700px) {
    .audit-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
    .audit-filter-search {
        grid-column: span 2;
    }
}

/* ============================================================
   PROFIL: Verlaufsgraph (Sparkline)
   ============================================================ */

/* ============================================================
   ERROR-PAGES (404 etc.)
   ============================================================ */
.error-card {
    max-width: 32rem;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    text-align: center;
}
.error-emoji {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.error-title {
    margin: 0 0 0.4rem 0;
    font-size: 1.6rem;
}
.error-subtitle {
    color: var(--text-muted);
    margin: 0 0 1rem 0;
}
.error-path {
    padding: 0.4rem 0.8rem;
    background: rgba(0,0,0,0.25);
    border-radius: 4px;
    display: inline-block;
    margin: 0.5rem 0 1.5rem 0;
    word-break: break-all;
}
.error-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}
.error-quip {
    margin-top: 1.5rem;
    opacity: 0.7;
}

@media (max-width: 500px) {
    .error-card { padding: 1.5rem 1rem; margin: 1rem auto; }
    .error-emoji { font-size: 3rem; }
    .error-title { font-size: 1.3rem; }
}

/* ============================================================
   ANFÄNGERSCHUTZ: Status-Karte auf Planet-Seite (unter Queues)
   ============================================================ */









/* Galaxie-Badge "Anfänger" — falls noch nicht da */
.st-newbie {
    background: rgba(125, 216, 125, 0.15);
    color: #9be99b;
    border: 1px solid rgba(125, 216, 125, 0.3);
}



/* ============================================================
   BOT-VERWALTUNG: Lösch-Buttons + Aktions-Spalte
   ============================================================ */
.bots-col-action {
    width: 60px;
    text-align: center;
}

/* ============================================================
   SPIONAGE-BERICHTE: Daten-Tabellen + Text-Stile
   ============================================================ */
.spy-tier-hint {
    margin-top: 1rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    line-height: 1.4;
}

/* ============================================================
   GALAXIE: Trümmerfeld-Badge
   ============================================================ */


/* Im leeren Slot soll's etwas Luft drum haben */


/* ============================================================
   BERICHTE: Klickbare Koordinaten
   ============================================================ */
.coord-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.95;
    transition: opacity 0.15s, color 0.15s;
}
.coord-link:hover {
    color: #ff9a3c;
    opacity: 1;
}

/* ============================================================
   ANFÄNGERSCHUTZ: Manuelle-Aufhebung-Button
   ============================================================ */


/* Galaxy: Geschützt-Badge */
.g-attack-blocked {
    color: #9be99b;
    font-size: 0.85rem;
    margin-left: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: rgba(155, 233, 155, 0.08);
    border-radius: 4px;
    cursor: help;
}

/* ============================================================
   ADMIN-USER: Tab-Navigation + Bulk-Grids
   ============================================================ */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-tab {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.15s;
}
.admin-tab:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.9);
}
.admin-tab.active {
    background: rgba(255, 154, 60, 0.12);
    color: #ff9a3c;
    border-color: rgba(255, 154, 60, 0.4);
}
.admin-tab-hint {
    padding: 0.6rem 0.9rem;
    background: rgba(255, 154, 60, 0.05);
    border-left: 3px solid #ff9a3c;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.admin-bulk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}
.admin-bulk-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 700px) {
    .admin-bulk-grid,
    .admin-bulk-grid-2col {
        grid-template-columns: 1fr;
    }
}
.admin-bulk-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.admin-bulk-grid label span {
    font-size: 0.85rem;
}
.admin-bulk-grid label small {
    font-size: 0.78rem;
    margin-left: 0.3rem;
}
.admin-reason {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0.7rem 0;
}
.admin-reason input {
    width: 100%;
}

/* Galaxy-Aktions-Dropdown: Disabled-Eintrag (z.B. "geschützt") */


/* Optional: Angreifen rot färben im Dropdown */



/* ============================================================
   SYSTEM-SONNEN-BANNER: Sonne (sun_klein.webp) + Klimazonen-Übersicht
   ============================================================ */










/* Mobile: Sonne kleiner, Zones umbrochen */


/* Menüeinträge nicht umbrechen, "Spionieren · 3 Sonden" bleibt eine Zeile */


/* Bash-Counter im Dropdown-Eintrag */


/* ============================================================
   ALLIANZ-SYSTEM (Phase 10.1)
   ============================================================ */
.alliance-tag-big {
    color: #c8a8ff;
    font-family: 'Consolas', monospace;
    margin-right: 0.4rem;
}
.alliance-tag-link {
    display: inline-block;
    margin-left: 0.3rem;
    padding: 0.05rem 0.35rem;
    font-family: 'Consolas', monospace;
    font-size: 0.78rem;
    color: #c8a8ff;
    background: rgba(200, 168, 255, 0.08);
    border: 1px solid rgba(200, 168, 255, 0.25);
    border-radius: 3px;
    text-decoration: none;
    vertical-align: middle;
}
.alliance-tag-link:hover {
    background: rgba(200, 168, 255, 0.15);
    border-color: rgba(200, 168, 255, 0.5);
}
.alliance-row-mine {
    background: rgba(200, 168, 255, 0.04);
}
.alliance-danger-zone {
    border-left: 3px solid rgba(255, 132, 132, 0.4);
}
.alliance-leave-zone {
    border-left: 3px solid rgba(255, 209, 102, 0.4);
}

/* ============================================================
   ALLIANZ-INVITES (Phase 10.2)
   ============================================================ */
.alliance-invites-card {
    border-left: 3px solid rgba(200, 168, 255, 0.5);
}
.alliance-invite-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.85rem;
    border-radius: 3px;
    white-space: nowrap;
}
.alliance-invite-incoming {
    background: rgba(155, 233, 155, 0.08);
    color: #9be99b;
}
.alliance-invite-outgoing {
    background: rgba(255, 154, 60, 0.08);
    color: #ff9a3c;
}
.alliance-pending-card {
    border-left: 3px solid rgba(255, 209, 102, 0.4);
}
.invite-message-cell {
    max-width: 350px;
    font-size: 0.9rem;
}
.invite-message-preview {
    margin-top: 0.2rem;
}

/* ============================================================
   ALLIANZ-ROLLEN + NEWS (Phase 10.3)
   ============================================================ */
/* Online-Status-Punkt (Allianz-Mitgliederliste) */
.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.4rem;
    vertical-align: middle;
    background: var(--text-muted, #5f6d96);
    opacity: 0.5;
}
.online-dot.is-online {
    background: #46c46a;
    box-shadow: 0 0 5px rgba(70, 196, 106, 0.6);
    opacity: 1;
}

.alliance-role-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 3px;
    white-space: nowrap;
}
.alliance-role-badge.role-founder {
    color: #ffd166;
    background: rgba(255, 209, 102, 0.08);
    border: 1px solid rgba(255, 209, 102, 0.35);
}
.alliance-role-badge.role-admin {
    color: #c8a8ff;
    background: rgba(200, 168, 255, 0.08);
    border: 1px solid rgba(200, 168, 255, 0.35);
}
.alliance-role-badge.role-member {
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
}

/* alliance-member-actions: KEIN display:flex auf dem <td> (sonst keine
   table-cell -> vertical-align:middle bricht -> Buttons rutschen hoch).
   Das <td> bleibt Zelle (mittig via Basis), die inline-Forms fliessen
   nebeneinander, Abstand per margin-left. */
.alliance-member-actions {
    white-space: nowrap;
}
.alliance-member-actions form + form {
    margin-left: 0.3rem;
}
/* Als Karte (bis 900px) dürfen die Knöpfe umbrechen, sonst ragt der letzte
   über den Rand. */
@media (max-width: 900px) {
    .alliance-member-actions {
        white-space: normal;
        flex-wrap: wrap;
        justify-content: flex-start !important;
    }
    .alliance-member-actions form + form { margin-left: 0; }
}

.alliance-transfer-btn {
    color: #ffd166;
    border-color: rgba(255, 209, 102, 0.35);
}
.alliance-transfer-btn:hover {
    background: rgba(255, 209, 102, 0.08);
    border-color: rgba(255, 209, 102, 0.6);
}

/* Logo: groß im Kopf und in den Einstellungen, klein in der Allianzliste */
.alliance-logo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    vertical-align: middle;
    margin-right: 0.6rem;
}
.alliance-logo-sm {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 5px;
    vertical-align: middle;
    margin-right: 0.35rem;
}
.alliance-list-tag { white-space: nowrap; }
.alliance-plakette {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}
.alliance-plakette.is-offen { background: rgba(111, 220, 140, 0.15); color: var(--success); }
.alliance-plakette.is-zu    { background: rgba(255, 107, 122, 0.13); color: var(--danger); }

/* Einstellungen: aufklappbare Abschnitte, Felder untereinander */
.alliance-fold { margin-bottom: 0.6rem; }
.alliance-fold-body { margin-top: 0.7rem; }
.alliance-fold-body small { display: block; margin-top: 0.2rem; }
.alliance-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
}
.alliance-check input { width: auto !important; }
.alliance-logo-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.alliance-logo-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}
.alliance-logo-form small { flex-basis: 100%; margin: 0; }

/* Ränge: am Rechner eine Tabelle, am Handy je Rang ein Block mit Häkchen untereinander */
.alliance-rechte {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.alliance-rechte th,
.alliance-rechte td {
    padding: 0.35rem 0.4rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.alliance-rechte th:first-child,
.alliance-rechte td:first-child { text-align: left; }
.alliance-rechte th { color: var(--text-muted); font-weight: 600; font-size: 0.72rem; }
.alliance-rechte input[type="text"],
.alliance-rang-neu input[type="text"],
.alliance-rank-select {
    padding: 0.35rem 0.5rem;
    background: var(--bg-deep);
    color: var(--text-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
}
.alliance-rechte input[type="text"] { width: 9.5rem; }
.alliance-rechte-knoepfe { white-space: nowrap; }
.alliance-rechte-knoepfe .btn + .btn { margin-left: 0.2rem; }
.alliance-rang-neu {
    display: flex;
    gap: 0.5rem;
    margin: 0.8rem 0 0.4rem;
}
@media (max-width: 700px) {
    .alliance-rechte thead { display: none; }
    .alliance-rechte,
    .alliance-rechte tbody,
    .alliance-rechte tr,
    .alliance-rechte td { display: block; width: 100%; }
    .alliance-rechte tr {
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 0.5rem 0.6rem;
        margin-bottom: 0.6rem;
    }
    .alliance-rechte td {
        border: none;
        padding: 0.25rem 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    .alliance-rechte td[data-label]:not(:first-child)::before {
        content: attr(data-label);
        color: var(--text-secondary);
    }
    .alliance-rechte td:first-child { display: block; }
    .alliance-rechte input[type="text"] { width: 100%; }
    .alliance-rechte-knoepfe { justify-content: flex-end !important; gap: 0.3rem; }
}

/* Bewerbung: Text der Allianz und Punktegrenze */
.alliance-erwartung {
    margin: 0.6rem 0;
    padding: 0.6rem 0.8rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.alliance-erwartung p { margin: 0.3rem 0 0; white-space: pre-wrap; }
.alliance-ok   { color: var(--success); }
.alliance-nein { color: var(--danger); }

.alliance-edit-toggle,
.alliance-news-form-toggle {
    margin-top: 0.8rem;
}
.alliance-edit-toggle summary,
.alliance-news-form-toggle summary {
    cursor: pointer;
    color: rgba(255, 154, 60, 0.85);
    padding: 0.3rem 0;
}
.alliance-edit-toggle textarea,
.alliance-news-form-toggle textarea {
    width: 100%;
}

/* News-Liste */
.alliance-news-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}
.alliance-news-item {
    padding: 0.7rem 0.9rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid rgba(255, 154, 60, 0.4);
    border-radius: 4px;
}
.alliance-news-header {
    margin-bottom: 0.4rem;
}
.alliance-news-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.05rem;
    font-weight: 600;
}
.alliance-news-meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}
.alliance-news-body {
    white-space: pre-wrap;
    line-height: 1.5;
}
.btn-link-mini {
    background: none;
    border: none;
    color: rgba(255, 132, 132, 0.7);
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}
.btn-link-mini:hover {
    color: #ff8484;
}

/* ============================================================
   OWNER-UNIVERSEN-VERWALTUNG (Phase 11.0)
   ============================================================ */
.universe-row-mine {
    background: rgba(255, 154, 60, 0.04);
}
.universe-reset-toggle {
    display: inline-block;
}
.universe-reset-summary {
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 132, 132, 0.08);
    border: 1px solid rgba(255, 132, 132, 0.3);
    border-radius: 3px;
    color: #ff8484;
    font-size: 0.85rem;
}
.universe-reset-summary:hover {
    background: rgba(255, 132, 132, 0.15);
}
.universe-reset-form {
    margin-top: 0.5rem;
    padding: 0.7rem;
    background: rgba(255, 132, 132, 0.04);
    border: 1px solid rgba(255, 132, 132, 0.3);
    border-radius: 4px;
    max-width: 360px;
}
.universe-reset-confirm {
    width: 100%;
    margin-bottom: 0.5rem;
}
.universe-reset-btn {
    width: 100%;
}

/* ============================================================
 * Defender-Übersicht (QoL Phase: Defender-Stats)
 * ============================================================ */

























/* ============================================================
 * Honor-System (QoL: Honor) — Profile-Card + Combat-Report
 * ============================================================ */

.profile-honor {
    font-variant-numeric: tabular-nums;
}
.profile-honor.honor-pos {
    color: #6ec068;
}
.profile-honor.honor-neg {
    color: #e85543;
}
.profile-honor.honor-zero {
    color: var(--text-muted, #888);
}

/* ============================================================
 * Mond-System (Phase 9.1)
 * ============================================================ */

/* Mond-Icon-Overlay in der Galaxie-Ansicht */

/* Planet und Mond als Bild statt 🪐/🌑 (PlanetVisual::bildPfadKlein), der
   Planet etwas größer als ein Schriftzeichen, der Mond kleiner. */






/* ============================================================
   TUTORIAL & QUEST-SYSTEM
   ============================================================ */

/* Welcome-Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    backdrop-filter: blur(4px);
}
.modal-backdrop .modal {
    background: var(--bg-card, #0f1620);
    border: 1px solid rgba(255, 154, 60, 0.3);
    border-radius: 8px;
    padding: 2rem;
    max-width: 520px;
    width: 90%;
    /* Nie höher als der Bildschirm, sonst liegen die Knöpfe außerhalb und
       das Fenster lässt sich auf dem Handy nicht mehr schließen. */
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 154, 60, 0.08);
}
.modal-backdrop h2 {
    margin: 0 0 1rem 0;
    color: var(--text, #e8eef7);
    font-size: 1.5rem;
}
.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Tutorial-Progress-Bar */
.tutorial-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}
.tpb-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9a3c, #aaffc4);
    transition: width 0.5s ease;
}

/* Tutorial-Chapter */
.tutorial-chapter h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

/* Einzelne Quest */
.quest-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.quest-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 0.85rem 1rem;
}
.quest-item.is-claimed {
    opacity: 0.55;
    border-color: rgba(110, 200, 130, 0.25);
}
.quest-item.is-completed {
    border-color: rgba(170, 255, 196, 0.5);
    background: rgba(170, 255, 196, 0.05);
    box-shadow: 0 0 0 1px rgba(170, 255, 196, 0.15);
}
.quest-item.is-active {
    border-color: rgba(255, 154, 60, 0.3);
}
.quest-item.is-locked {
    opacity: 0.5;
}
.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}
.quest-title {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text, #e8eef7);
}
.quest-status {
    font-size: 0.82rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}
.quest-status.is-claimed   { background: rgba(110, 200, 130, 0.15); color: #aef0c4; }
.quest-status.is-completed { background: rgba(170, 255, 196, 0.2); color: #c5ffd9; font-weight: 600; }
.quest-status.is-active    { background: rgba(255, 154, 60, 0.15); color: #b8e0ff; }
.quest-status.is-locked    { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

/* Bündel-Quest: Bedingungs-Checkliste (mehrere Häkchen pro Quest) */
.quest-conditions {
    list-style: none;
    margin: 0.5rem 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.quest-cond {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.92rem;
    line-height: 1.35;
}
.quest-cond .qc-check {
    flex: 0 0 1.1rem;
    text-align: center;
    font-weight: 700;
}
/* Der Text nimmt den Rest der Zeile und bricht dort um. Ohne eigene Breite
   rutscht ein langer Text wegen flex-wrap ganz unter den Haken. */
.quest-cond .qc-text { flex: 1 1 0; min-width: 0; }
.quest-cond.is-done .qc-check { color: #8fe6a8; }
.quest-cond.is-done .qc-text  { color: var(--text-muted); text-decoration: line-through; }
.quest-cond.is-open .qc-check { color: var(--text-muted); }

.quest-desc {
    margin: 0.3rem 0;
    color: var(--text-muted, #9aa5b1);
    font-size: 0.92rem;
}
.quest-howto {
    margin: 0.4rem 0 0.6rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--text-secondary, #9aa7bd);
    background: rgba(255, 154, 60, 0.07);
    border-left: 3px solid var(--accent, #ff9a3c);
    border-radius: 6px;
}
.quest-howto .qh-ico {
    margin-right: 0.35rem;
}
.quest-vergleich {
    margin: 0 0 0.6rem;
    font-size: 0.88rem;
    color: var(--text-secondary, #9aa7bd);
}
.quest-ausblick {
    margin: 0.4rem 0 0.6rem;
}
.quest-ausblick h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}
.quest-ausblick dt {
    font-weight: 600;
    margin-top: 0.5rem;
}
.quest-ausblick dd {
    margin: 0.1rem 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #9aa7bd);
}
.quest-reward {
    margin: 0.2rem 0 0 0;
}
/* Symbol, Menge und Rohstoff einer Belohnung bleiben in einer Zeile. */
.quest-reward .qr-teil {
    white-space: nowrap;
}
.quest-claim-form {
    margin-top: 0.7rem;
}
.quest-goto {
    display: inline-block;
    margin-top: 0.7rem;
}

/* Tutorial: "Dir fehlt noch"-Voraussetzungen je offenem Ziel (Schritt 1) */
.qc-missing {
    flex-basis: 100%;
    margin: 0.35rem 0 0.1rem calc(1.1rem + 0.5rem);
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    background: rgba(255, 176, 70, 0.07);
    border-left: 3px solid rgba(255, 176, 70, 0.55);
}
.qcm-head {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}
.qcm-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.qcm-list li {
    color: var(--text-muted);
    padding-left: 0.85rem;
    position: relative;
}
.qcm-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 176, 70, 0.75);
}
.qcm-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
}
.btn-claim {
    background: #22c55e;
    border: none;
    color: #0a1320;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: filter 0.15s;
}
.btn-claim:hover {
    filter: brightness(1.1);
}

/* Nav-Badge (für unclaimed Quests, etc.) */
.nav-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    margin-left: 0.4rem;
    min-width: 1.2rem;
    text-align: center;
    line-height: 1.2;
}

/* ============================================================
   SMTP / MAIL-OWNER-PANEL
   ============================================================ */

.smtp-test-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.smtp-test-result.is-fail {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.4);
}
.smtp-test-result h3 {
    margin: 0 0 0.5rem 0;
}
.smtp-test-result details {
    margin-top: 0.75rem;
}
.smtp-test-result summary {
    cursor: pointer;
    color: var(--text-muted, #9aa5b1);
    font-size: 0.9rem;
}
.smtp-log {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #b8e0ff;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre;
}

/* ============================================================
   Account-Löschung — Danger-Button, App-Banner, Bestätigung
   ============================================================ */
button.btn-danger,
.btn-danger {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--danger);
    color: #1a0608;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.05s ease;
    text-decoration: none;
    line-height: 1.4;
}
button.btn-danger:hover,
.btn-danger:hover { filter: brightness(1.08); }
button.btn-danger:active,
.btn-danger:active { transform: translateY(1px); }

.settings-confirm {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}
.settings-confirm input[type=checkbox] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* ============================================================
   Passwort-UX (Toggle, Stärke, Gleichheit) — password-ux.js
   ============================================================ */




/* Kein blauer Browser-Fokusring beim Klick aufs Auge. */



.pw-strength {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    font-size: 0.8rem;
}
.pw-strength.is-visible { display: flex; }
.pw-strength-bar {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.pw-strength-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.2s, background 0.2s;
}
.pw-strength-bar i.pw-s0 { background: var(--danger, #ff6b7a); }
.pw-strength-bar i.pw-s1 { background: var(--danger, #ff6b7a); }
.pw-strength-bar i.pw-s2 { background: var(--warn, #ffb547); }
.pw-strength-bar i.pw-s3 { background: var(--tech, #6cc4ff); }
.pw-strength-bar i.pw-s4 { background: #4ade80; }
.pw-strength-label {
    color: var(--text-secondary, #8b95b8);
    min-width: 4.5rem;
}

.pw-match {
    display: none;
    margin-top: 0.35rem;
    font-size: 0.8rem;
}
.pw-match.is-visible { display: block; }

.pw-match.is-bad { color: var(--danger, #ff6b7a); }

/* Passwort-Wrapper in den settings-Formularzeilen volle Breite geben. */

/* Die Anmeldeseiten setzen das Innenpolster kuerzer, das Auge braucht Platz. */


.pw-generate {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.6rem;
    margin-top: 0.4rem;
    font-size: 0.8rem;
}
.pw-generate-btn {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--tech, #6cc4ff);
    font: inherit;
    cursor: pointer;
}
.pw-generate-btn:hover { color: var(--text-primary, #e6ebff); }
.pw-generate-btn:focus { outline: none; }
.pw-generate-btn:focus-visible {
    outline: 1px solid var(--border, #2a3556);
    outline-offset: 2px;
}
.pw-generate-hint { color: var(--text-secondary, #8b95b8); }

/* ============================================================
   Einsteiger-Guide (guide.php)
   ============================================================ */
.guide-section {
    margin-bottom: 1rem;
    padding: 0;
    overflow: hidden;
}
.guide-section details {
    width: 100%;
}
.guide-section summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.15s;
}
.guide-section summary::-webkit-details-marker { display: none; }
.guide-section summary::after {
    content: '▸';
    margin-left: auto;
    color: var(--text-secondary);
    transition: transform 0.2s;
}
.guide-section details[open] summary::after {
    transform: rotate(90deg);
}
.guide-section summary:hover {
    background: rgba(108, 196, 255, 0.06);
}
.guide-ico {
    font-size: 1.2rem;
}
.guide-body {
    padding: 0 1.2rem 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}
.guide-body ul {
    margin: 0.6rem 0;
    padding-left: 1.3rem;
}
.guide-body li {
    margin-bottom: 0.45rem;
}
.guide-body strong {
    color: var(--text-primary);
}
.guide-body a,
.guide-cta a {
    color: var(--tech);
    text-decoration: none;
}
.guide-tip {
    margin-top: 0.9rem;
    padding: 0.7rem 0.9rem;
    background: rgba(108, 196, 255, 0.07);
    border-left: 3px solid var(--tech);
    border-radius: var(--radius-sm, 6px);
    color: var(--text-primary);
}
.guide-cta {
    text-align: center;
    color: var(--text-secondary);
}

/* ============================================================
   Private Nachrichten (messages.php / message.php / compose)
   ============================================================ */
.msg-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.msg-item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}
.msg-item:last-child { border-bottom: none; }
.msg-item-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    min-width: 0;
}
.msg-item-main:hover { background: rgba(255,255,255,0.03); }
.msg-item.is-unread .msg-subject { font-weight: 700; color: var(--tech); }
.msg-unread-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--tech);
}
.msg-body { min-width: 0; }
.msg-subject {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msg-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}
.msg-del-form { display: flex; align-items: center; }
.msg-action {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.8rem;
    color: var(--text-secondary);
    border-radius: 6px;
}
.msg-action:hover { color: var(--danger); }

.msg-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* Einzelansicht */
.msg-view-subject { margin: 0 0 0.6rem; }
.msg-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}
.msg-view-body {
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.msg-view-body a { color: var(--tech); }
.msg-view-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* BBCode-Toolbar */
.bbcode-toolbar {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}
.bbcode-btn {
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 0.6rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.15s, color 0.15s;
}
.bbcode-btn:hover {
    border-color: var(--tech);
    color: var(--tech);
}
.bbcode-btn:focus { outline: none; }
.bbcode-btn:focus-visible { outline: 1px solid var(--border); outline-offset: 1px; }

/* Aufblitzen der aktiven Quest beim Tutorial-Aufruf (tutorial.php Scroll-Script) */
@keyframes quest-flash-anim {
    0%   { box-shadow: 0 0 0 0 rgba(108, 196, 255, 0.0); border-color: rgba(255, 154, 60, 0.3); }
    25%  { box-shadow: 0 0 0 4px rgba(108, 196, 255, 0.35); border-color: var(--tech); }
    100% { box-shadow: 0 0 0 0 rgba(108, 196, 255, 0.0); border-color: rgba(255, 154, 60, 0.3); }
}
.quest-item.quest-flash {
    animation: quest-flash-anim 2s ease-out;
}

/* ============================================================
   DSGVO-Datenexport — lesbare Vorschau (/?p=data_export)
   ============================================================ */
.export-section {
    margin-bottom: 1rem;
}
.export-section summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-strong);
    padding: 0.3rem 0;
    user-select: none;
}
.export-section summary:hover {
    color: var(--tech);
}
.export-section-body {
    margin-top: 0.8rem;
    overflow-x: auto;
}
/* Schlüssel/Wert-Tabelle */
.export-kv {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.export-kv th,
.export-kv td {
    text-align: left;
    vertical-align: top;
    padding: 0.35rem 0.6rem;
    border-bottom: 1px solid var(--border-soft);
}
.export-kv th {
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    width: 1%;
}
/* Listen (mehrere Datensätze) */
.export-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.export-list-item {
    display: flex;
    gap: 0.7rem;
    background: var(--bg-deep);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
}
.export-list-idx {
    color: var(--tech);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 2.2rem;
}
.export-list-body {
    flex: 1;
    min-width: 0;
}
.export-bool.yes { color: var(--tech); font-weight: 600; }
.export-bool.no  { color: var(--text-muted); }

/* ============================================================
   Bau-Voraussetzungs-Hinweis (Werft/Forschung/Verteidigung
   noch nicht gebaut) — deutliche rote Meldung statt leerer Seite
   ============================================================ */
.build-requirement-notice {
    border: 1px solid var(--danger);
    background: rgba(255, 107, 122, 0.08);
}


.requirement-alert {
    margin: 0;
    color: #ffd2d7;
    font-size: 1rem;
    line-height: 1.6;
}
.requirement-alert strong {
    color: var(--danger);
}
.requirement-alert a {
    color: var(--tech);
    font-weight: 600;
    text-decoration: none;
}

/* ===== Frühwarn-Radar — Angriffs-Alarm (auf der Planet-Übersicht) ===== */

@keyframes radar-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255,107,122,0.0), 0 0 8px 0 rgba(255,107,122,0.15);
        border-color: rgba(255,107,122,0.55);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(255,107,122,0.12), 0 0 20px 2px rgba(255,107,122,0.45);
        border-color: rgba(255,107,122,1);
    }
}










/* ===== Safemode-Box (Planet-Übersicht, unter den Queues) ===== */









/* ===== Schwarzes Loch (Planet-Übersicht, solange eines offen ist) ===== */

@keyframes loch-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 154, 60,0.0), 0 0 8px 0 rgba(255, 154, 60,0.15);
        border-color: rgba(255, 154, 60,0.55);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(255, 154, 60,0.12), 0 0 20px 2px rgba(255, 154, 60,0.45);
        border-color: rgba(255, 154, 60,1);
    }
}








/* ===== Safemode-Hinweis-Banner (auf gesperrten Seiten) ===== */
.safemode-notice {
    border: 1px solid var(--danger);
    background: rgba(255,107,122,0.10);
    color: var(--text-primary);
    border-radius: var(--radius);
    padding: 0.7rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}



/* ===== Imperium-Übersicht ===== */
.empire-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.empire-tab {
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s;
}
.empire-tab:hover { border-color: var(--tech); color: var(--text-primary); }
.empire-tab.is-active {
    background: rgba(108, 196, 255,0.12);
    border-color: var(--tech);
    color: var(--tech);
    font-weight: 600;
}

.empire-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-base);
    box-shadow: var(--glass-shadow);
}
.empire-table {
    border-collapse: collapse;
    width: 100%;
    min-width: max-content;
}
.empire-table th,
.empire-table td {
    padding: 0.5rem 0.8rem;
    text-align: center;
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
}
/* Erste Spalte (Wert-Labels) sticky beim horizontalen Scrollen */
.empire-corner,
.empire-row-label {
    position: sticky;
    left: 0;
    z-index: 2;
    text-align: left;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 500;
}
.empire-corner {
    z-index: 3;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.empire-planet-head {
    vertical-align: bottom;
    min-width: 6rem;
    background: var(--bg-elevated);
}
/* Klimazonen-Fenster: Bild der Zone links neben ihrer Beschreibung. */



.empire-planet-bild {
    width: 44px;
    height: 44px;
    display: block;
    margin: 0 auto 0.3rem;
}
/* Monde etwas kleiner, mittig in derselben Höhe wie die Planeten. */
.empire-planet-bild.is-moon { width: 32px; height: 32px; margin-top: 6px; margin-bottom: calc(0.3rem + 6px); }
.empire-planet-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.empire-planet-coord {
    font-size: 0.78rem;
    color: var(--tech);
    font-variant-numeric: tabular-nums;
}
.empire-cell {
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}
.empire-cell.is-zero { color: var(--text-muted); }
.empire-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.empire-table tbody tr:hover .empire-row-label { background: var(--bg-base); }

/* Fusions-Produktionsregler (Energie-Tab) */
.fusion-factor-select {
    padding: 0.35rem 1.8rem 0.35rem 0.6rem;
    background-color: var(--bg-deep);
    color: var(--text-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239fb0d0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    transition: border-color 0.15s ease;
}
.fusion-factor-select:hover { border-color: var(--tech); }
.fusion-factor-select:focus { outline: none; border-color: var(--amber); }
.fusion-factor-select:disabled { opacity: 0.55; cursor: progress; }

/* Forschungs-Liste (USER-weit) */
.empire-research-table { width: 100%; border-collapse: collapse; }
.empire-research-table td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid var(--border-soft);
}
.empire-research-label { color: var(--text-primary); }
.empire-research-level {
    text-align: right;
    color: var(--tech);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ===== Safemode: Bereichs-Checkboxen ===== */
.safemode-areas {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* ===== Button: nicht genug Ressourcen (deaktiviert, rot umrandet) ===== */
/* Zeigt 'Bauen' an, ist aber nicht klickbar — der Grund (fehlende Rohstoffe)
   ist bereits an der roten Kostenanzeige sichtbar. */
.btn-need-res, .btn-need-res:disabled,
button.btn-need-res, button.btn-need-res:disabled {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    cursor: not-allowed;
    opacity: 0.75;
}

/* Button über die volle Zellenbreite (wo kein Nachbar-Button steht). */
.btn-full { display: block; width: 100%; text-align: center; box-sizing: border-box; }

/* ===========================================================================
   Tutorial — Kategorie-Tabs (C44)
   =========================================================================== */
.quest-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
}

.quest-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.quest-tab:hover { background: var(--bg-elevated-2); transform: translateY(-1px); }

.quest-tab .qt-status { font-size: 0.85em; }
.quest-tab .qt-icon   { font-size: 1.05em; }

.quest-tab .qt-count {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 7px;
    border-radius: 20px;
}

/* Status-Färbung der Tabs */
.quest-tab.is-done {
    border-color: rgba(93, 213, 138, 0.4);
    color: #aef0c4;
}
.quest-tab.is-done .qt-count { color: #aef0c4; }

.quest-tab.is-current { color: var(--text-primary); }

.quest-tab.is-locked {
    opacity: 0.6;
    color: var(--text-muted);
}


/* Ausgewählter Tab */
.quest-tab.is-selected {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 138, 61, 0.25);
}
.quest-tab.is-selected .qt-count {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}
.quest-tab.is-selected.is-done {
    background: linear-gradient(135deg, var(--success), #3f9c63);
    border-color: var(--success);
    box-shadow: 0 4px 14px rgba(93, 213, 138, 0.25);
}

/* Panel-Sichtbarkeit (JS toggelt .is-hidden zusätzlich zum hidden-Attribut) */
.quest-panel.is-hidden { display: none; }

/* Hinweis-Box in gesperrten Kapiteln */
.quest-chapter-hint {
    border-left: 3px solid var(--border);
    padding-left: 10px;
    margin: 4px 0 14px;
}

@media (max-width: 600px) {
       /* mobil: nur Icon + Status + Zähler */
    .quest-tab { padding: 9px 11px; }
}

/* ===========================================================================
   Flotten-Rückruf-Liste (Hold-Feature / C45)
   =========================================================================== */







/* ============================================================
   ZWEI-FAKTOR-AUTHENTIFIZIERUNG (Settings-Sicherheit)
   ============================================================ */
.twofa-setup {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin: 0.8rem 0 1rem;
}
.twofa-setup .js-2fa-qr {
    width: 220px;
    height: 220px;
    border-radius: 8px;
    background: #fff;            /* QR braucht hellen Grund */
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.twofa-secret {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}
.twofa-secret code {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    background: var(--bg-elevated-2, #1a2440);
    border: 1px solid var(--border-soft, #1c2745);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    word-break: break-all;
}
.twofa-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    margin-right: 0.4rem;
    vertical-align: middle;
}
.twofa-badge-on {
    background: rgba(108, 196, 255, 0.18);
    color: var(--tech, #6cc4ff);
    border: 1px solid rgba(108, 196, 255, 0.4);
}
.twofa-codes-box {
    background: var(--bg-elevated, #141c34);
    border: 1px solid var(--accent, #ff8a3d);
    border-radius: 8px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.2rem;
}
.twofa-codes-list {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
}
.twofa-codes-list code {
    display: block;
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    background: var(--bg-elevated-2, #1a2440);
    border: 1px solid var(--border-soft, #1c2745);
    border-radius: 6px;
    padding: 0.45rem 0;
}

/* ============================================================
   ZWEI-FAKTOR-AUTHENTIFIZIERUNG (Settings-Sicherheit)
   ============================================================ */
.twofa-setup { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin: 0.8rem 0 1rem; }
.twofa-setup .js-2fa-qr { width: 220px; height: 220px; border-radius: 8px; background: #fff; padding: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.twofa-secret { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.twofa-secret code { font-size: 1.05rem; letter-spacing: 0.08em; background: var(--bg-elevated-2, #1a2440); border: 1px solid var(--border-soft, #1c2745); border-radius: 6px; padding: 0.4rem 0.6rem; word-break: break-all; }
.twofa-badge { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; margin-right: 0.4rem; vertical-align: middle; }
.twofa-badge-on { background: rgba(108, 196, 255, 0.18); color: var(--tech, #6cc4ff); border: 1px solid rgba(108, 196, 255, 0.4); }
.twofa-codes-box { background: var(--bg-elevated, #141c34); border: 1px solid var(--accent, #ff8a3d); border-radius: 8px; padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.twofa-codes-list { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.5rem; }
.twofa-codes-list code { display: block; text-align: center; font-size: 1.05rem; letter-spacing: 0.1em; background: var(--bg-elevated-2, #1a2440); border: 1px solid var(--border-soft, #1c2745); border-radius: 6px; padding: 0.45rem 0; }

/* ============================================================
   DEPLOY: Ziel-Auswahl (Dropdown im Owner-Update-Panel)
   ============================================================ */
label.deploy-target { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.deploy-target-preview { margin-top: 0; }
.deploy-target-preview strong { color: var(--accent, #ff8a3d); }

/* ===== Kolonie aufgeben (Planet-Übersicht) ===== */









/* ===================================================================
 * FLOTTEN-FLUGKARTE (Modal)
 * Geoeffnet aus der Flottenanzeige auf der Planet-Seite (_mini_fleets).
 * Markup: layout.php #fleetMapModal · Logik: js/fleet-map.js
 * =================================================================== */

/* Klickbarer Flug-Eintrag in der Planet-Flottenanzeige */



/* Overlay */
.fleet-map-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modal-fade-in 0.18s ease-out;
}
.fleet-map-modal[hidden] { display: none; }

.fleet-map-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.82);
    backdrop-filter: blur(3px);
}

.fleet-map-dialog {
    position: relative;
    width: 100%;
    max-width: 860px;
    background: #0b1226;
    border: 1px solid rgba(124, 192, 255, 0.22);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.fleet-map-x {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    line-height: 26px;
    text-align: center;
    font-size: 1.3rem;
    color: #c8d2ea;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
}
.fleet-map-x:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.fleet-map-content { display: block; }

/* Kopf */
.fm-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.85rem 3.8rem 0.3rem 1rem;
}
.fm-mission-badge {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border: 1px solid;
    border-radius: 999px;
}
.fm-head .fm-eta {
    margin-left: auto;
    font-size: 0.85rem;
    color: #c8d2ea;
}
.fm-eta-val { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Karte */
.fm-canvas { line-height: 0; background: #060912; }
.fm-svg { display: block; width: 100%; height: auto; }
/* WebGL-Fassung: gleiches Seitenverhaeltnis wie die SVG-Karte (640x280),
   damit das Modal beim Umschalten nicht springt. */
.fm-gl { display: block; width: 100%; aspect-ratio: 640 / 280; touch-action: none; }
.fm-label-name { fill: #e6ecfb; font-size: 12px; font-weight: 600; }
.fm-label-coord { fill: #8fa0c8; font-size: 10.5px; font-variant-numeric: tabular-nums; }

/* Flotten-Flugkarte: pulsierender Triebwerks-Glow am Schiff (Etappe 2) */
@keyframes fm-ship-pulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.78; }
}
.fm-ship-glow {
    opacity: 0.55;
    animation: fm-ship-pulse 1.7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .fm-ship-glow { animation: none; }
}

/* Flotten-Flugkarte: funkelnde Sterne + Meta-Zeile (Etappe 3) */
@keyframes fm-twinkle {
    0%, 100% { opacity: 0.2; }
    50%      { opacity: 0.85; }
}
.fm-star-tw {
    opacity: 0.5;
    animation-name: fm-twinkle;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
@media (prefers-reduced-motion: reduce) {
    .fm-star-tw { animation: none; opacity: 0.5; }
}

/* Distanz + Reisedauer unter dem Kopf */
.fm-meta {
    padding: 0 1rem 0.7rem;
    border-bottom: 1px solid rgba(124, 192, 255, 0.12);
}
.fm-meta b {
    color: #c8d2ea;
    font-variant-numeric: tabular-nums;
}

/* Eingehende Bedrohung in der Radar-Anzeige: klickbar -> Flugkarte (Etappe 3) */



/* ============================================================
   Lobby / Universumsauswahl (Konto/Profil-Split)
   ============================================================ */
.lobby { max-width: 720px; margin: 2.5rem auto; padding: 0 1rem; }













/* ▼▼▼ INFO-MODAL REDESIGN — Pilot v1 ▼▼▼
   Gescoped auf .info-modal-* / .ship-info-* / .info-stufen-table.
   Nutzt die bestehenden :root-Variablen, fasst NICHTS ausserhalb des Modals an.
   Schrift: Chakra Petch (selbst gehostet, siehe @font-face in main.css).
   Bild im Hero: nur Desktop (>=720px). Rueckgaengig: diesen Block entfernen. */

/* ---------- Karte: Chakra Petch + etwas mehr Tiefe ---------- */


/* ---------- Hero: Bild (Desktop) statt Emoji ---------- */

                 /* Default + Mobil: kein Bild */
.info-hero-icon{ display:block; }               /* Emoji-Fallback */

@media (min-width:720px){
    /* Das Bild selbst setzt die Vorlage per hero_image(); hier steht nur,
       wie es aussieht. Frueher stand hier je Einheit eine eigene Regel —
       116 Stueck, und die Haelfte davon zielte auf ein Emoji-Element, das
       es im Markup laengst nicht mehr gibt. */
    
}

/* ---------- Header / Titel ---------- */




/* ---------- Beschreibung ---------- */


/* ---------- Stat-Karten (Schiff / Verteidigung) ---------- */






/* ---------- Kosten-Chips: NUR im Modal aufgehuebscht (Werft/Gebaeude unberuehrt) ---------- */


/* ---------- Stufen-Tabelle (Gebaeude / Forschung) ---------- */



/* ▲▲▲ ENDE INFO-MODAL REDESIGN ▲▲▲ */

/* === Info-Modal Hero: nur Desktop, kein leerer Kasten auf Mobil === */
/* Hoehere Spezifitaet als die bestehende .info-modal-hero-Regel → gewinnt. */



/* ============================================================
   Auth-Landing (Login / Register / 2FA) — Etappe 2
   Eigenstaendiges Layout via auth_layout.twig. ALLE Regeln unter
   .authpage gescoped, damit generische Klassen (.brand, .btn,
   .field, .pane, .planet ...) NICHT mit dem Spiel-Layout kollidieren.
   ============================================================ */
.authpage:not(body.auth *) { min-height:100vh; position:relative; overflow-x:hidden; background:var(--bg-deep); color:var(--text-primary); }

/* --- Hintergrund --- */
.authpage .auth-bg:not(body.auth *) { position:fixed; inset:0; z-index:0; overflow:hidden; }
.authpage .auth-bg::before:not(body.auth *) {
    content:''; position:absolute; inset:0;
    background:
        radial-gradient(1200px 700px at 70% -10%, rgba(255, 154, 60,0.16), transparent 60%),
        radial-gradient(900px 600px at 10% 110%, rgba(111, 220, 140,0.10), transparent 55%),
        radial-gradient(circle at 50% 40%, #131b29 0%, var(--bg-deep) 70%);
}
.authpage .stars:not(body.auth *),
.authpage .stars2:not(body.auth *) { position:absolute; inset:-50%; background-repeat:repeat; }
.authpage .stars:not(body.auth *) {
    background-image:
        radial-gradient(1.6px 1.6px at 12% 18%, #fff, transparent),
        radial-gradient(1.4px 1.4px at 28% 62%, #cfe0ff, transparent),
        radial-gradient(1.2px 1.2px at 47% 33%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 63% 78%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 78% 24%, #d7ecff, transparent),
        radial-gradient(1.6px 1.6px at 88% 56%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 38% 88%, #fff, transparent),
        radial-gradient(1.3px 1.3px at 7% 80%, #cfe0ff, transparent);
    background-size:520px 520px; animation:auth-twinkle 6s ease-in-out infinite;
}
.authpage .stars2:not(body.auth *) {
    background-image:
        radial-gradient(1px 1px at 22% 42%, #9fb6d8, transparent),
        radial-gradient(1px 1px at 55% 12%, #b9d2f5, transparent),
        radial-gradient(1px 1px at 72% 66%, #9fb6d8, transparent),
        radial-gradient(1px 1px at 90% 88%, #b9d2f5, transparent),
        radial-gradient(1px 1px at 33% 72%, #9fb6d8, transparent);
    background-size:340px 340px; animation:auth-twinkle 9s ease-in-out infinite reverse; opacity:.6;
}
@keyframes auth-twinkle{0%,100%{opacity:.55}50%{opacity:.95}}
.authpage .planet:not(body.auth *) {
    position:absolute; right:-220px; bottom:-280px; width:680px; height:680px; border-radius:50%;
    background:radial-gradient(circle at 34% 30%, #2f5fa0 0%, #1d3a66 38%, #0f1f36 70%, #0a1019 100%);
    box-shadow:inset -40px -30px 90px rgba(0,0,0,.7), 0 0 120px rgba(255, 154, 60,.16), 0 0 220px rgba(255, 154, 60,.10);
}
.authpage .planet::after:not(body.auth *) {
    content:''; position:absolute; inset:0; border-radius:50%;
    background:radial-gradient(120px 14px at 42% 40%, rgba(120,200,160,.18), transparent),
               radial-gradient(150px 12px at 50% 58%, rgba(90,160,130,.14), transparent);
}
.authpage .planet-ring:not(body.auth *) {
    position:absolute; right:-360px; bottom:-180px; width:960px; height:300px; border-radius:50%;
    border:1px solid rgba(255, 154, 60,.18); box-shadow:0 0 40px rgba(255, 154, 60,.08) inset; transform:rotate(-24deg);
}

/* --- Layout --- */
.authpage .shell:not(body.auth *) { position:relative; z-index:1; min-height:100vh; display:flex; flex-direction:column; }
.authpage .wrap:not(body.auth *) {
    flex:1; width:100%; max-width:1180px; margin:0 auto;
    padding:clamp(1.5rem,4vw,3.5rem) clamp(1.2rem,4vw,2.5rem);
    display:grid; grid-template-columns:1.15fr 0.85fr; gap:clamp(2rem,5vw,4.5rem); align-items:center;
}

/* --- Vorstellung --- */

.authpage .brand:not(body.auth *) { display:flex; align-items:center; margin-bottom:2rem; }
.authpage .brand-hero-logo:not(body.auth *) { width:clamp(220px,65%,320px); height:auto; filter:drop-shadow(0 0 24px rgba(255, 154, 60,.25)); }
.authpage .headline:not(body.auth *) { font-size:clamp(2.1rem,4.4vw,3.4rem); font-weight:700; line-height:1.08; letter-spacing:.01em; color:var(--text-strong); margin-bottom:1.1rem; }
.authpage .headline .glow:not(body.auth *) { color:var(--accent); text-shadow:0 0 22px rgba(255, 154, 60,.45); }
.authpage .sub:not(body.auth *) { font-size:1.02rem; line-height:1.6; color:var(--text-secondary); font-weight:400; max-width:520px; margin-bottom:2.2rem; }
.authpage .features:not(body.auth *) { display:grid; grid-template-columns:1fr 1fr; gap:1rem 1.4rem; }






/* --- Auth-Karte --- */
.authpage .auth{ background:var(--bg-elevated); border:1px solid var(--border); border-radius:14px; padding:1.8rem; width:100%; max-width:400px; justify-self:end; box-shadow:0 20px 60px rgba(0,0,0,.45); }
.authpage .auth-tabs{ display:flex; gap:.4rem; background:var(--bg-deep); border-radius:9px; padding:.3rem; margin-bottom:1.5rem; }
.authpage .auth-tab{ flex:1; padding:.55rem; border:none; border-radius:6px; background:transparent; color:var(--text-muted); font-family:inherit; font-size:.9rem; font-weight:600; letter-spacing:.03em; cursor:pointer; transition:all .15s ease; }
.authpage .auth-tab.is-active{ background:var(--accent); color:#fff; }
.authpage .auth-tab:not(.is-active):hover{ color:var(--text-primary); }
.authpage .auth-title{ font-size:1.25rem; font-weight:600; color:var(--text-strong); margin-bottom:.3rem; }
.authpage .auth-lead{ font-size:.85rem; color:var(--text-muted); margin-bottom:1.3rem; line-height:1.45; }
.authpage .field{ margin-bottom:1rem; }
.authpage .field label{ display:block; font-size:.78rem; color:var(--text-secondary); text-transform:uppercase; letter-spacing:.05em; margin-bottom:.4rem; }
.authpage .field input{ width:100%; padding:.7rem .85rem; background:var(--bg-deep); border:1px solid var(--border); border-radius:8px; color:var(--text-primary); font-family:inherit; font-size:.95rem; transition:border-color .15s ease, box-shadow .15s ease; }
.authpage .field input:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(255, 154, 60,.18); }
.authpage .tos{ display:flex; gap:.55rem; align-items:flex-start; font-size:.78rem; color:var(--text-muted); margin-bottom:1.1rem; line-height:1.4; cursor:pointer; }
.authpage .tos input{ margin-top:.15rem; flex:none; }
.authpage .tos a{ color:var(--accent); text-decoration:none; }
/* Falle fuer Bots im Registrierungsformular: fuer Menschen unsichtbar */
.authpage .feld-falle{ position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.authpage .btn{ width:100%; padding:.8rem; border:none; border-radius:8px; cursor:pointer; font-family:inherit; font-size:.98rem; font-weight:600; letter-spacing:.02em; background:var(--accent); color:#fff; transition:background .15s ease, transform .05s ease; }
.authpage .btn:hover{ background:var(--accent-hover); }
.authpage .btn:active{ transform:translateY(1px); }
.authpage .btn:disabled{ background:var(--bg-elevated-2); color:var(--text-muted); cursor:not-allowed; }
.authpage .btn.tech{ background:var(--tech); }
.authpage .btn.tech:hover{ background:var(--tech-hover); }
.authpage .auth-switch{ text-align:center; font-size:.82rem; color:var(--text-muted); margin-top:1.1rem; }
.authpage .auth-switch a{ color:var(--accent); text-decoration:none; font-weight:600; }
.authpage .pane{ display:none; }
.authpage .pane.is-active{ display:block; }

/* Flash in der Karte */
.authpage .flash-zone{ margin-bottom:1rem; }
.authpage .flash{ padding:.6rem .8rem; border-radius:8px; font-size:.85rem; margin-bottom:.5rem; }
.authpage .flash-error{ background:rgba(255,107,122,.12); border:1px solid rgba(255,107,122,.4); color:#ffb3bc; }
.authpage .flash-success{ background:rgba(111, 220, 140,.12); border:1px solid rgba(111, 220, 140,.4); color:#7ce8c0; }

/* --- Footer --- */


/* Rechtslinks im Footer: eigene Zeile unter der Version */
.legal-links{ display:block; margin-top:.5rem; }

/* --- Reveal-Animationen --- */
.authpage .rv{ opacity:0; transform:translateY(18px); animation:auth-rise .75s cubic-bezier(.2,.7,.3,1) forwards; }
.authpage .rv1{ animation-delay:.05s; } .authpage .rv2{ animation-delay:.15s; } .authpage .rv3{ animation-delay:.27s; }
.authpage .rv4{ animation-delay:.4s; } .authpage .rv5{ animation-delay:.55s; }
@keyframes auth-rise{ to{ opacity:1; transform:none; } }

/* --- Mobile --- */
@media(max-width:900px){
    .authpage .wrap:not(body.auth *) { grid-template-columns:1fr; gap:2.2rem; padding-top:2.5rem; }
    .authpage .auth{ justify-self:center; max-width:440px; }
    .authpage .features:not(body.auth *) { max-width:520px; }
    .authpage .planet:not(body.auth *) { right:-280px; bottom:-340px; width:560px; height:560px; opacity:.7; }
}
@media(max-width:560px){
    .authpage .features:not(body.auth *) { grid-template-columns:1fr; }
}

/* --- Reduced Motion: nichts darf unsichtbar stranden --- */
@media(prefers-reduced-motion:reduce){
    .authpage .rv{ opacity:1; transform:none; animation:none; }
    .authpage .stars:not(body.auth *),
.authpage .stars2:not(body.auth *) { animation:none; }
}

/* --- Rechtstexte (Nutzungsbedingungen / Datenschutz), Spiel-Layout --- */
.legal{ max-width:760px; margin:0 auto; line-height:1.65; }
.legal h1{ font-size:1.7rem; color:var(--text-strong); margin-bottom:.3rem; }
.legal .legal-meta{ color:var(--text-muted); font-size:.85rem; margin-bottom:1.8rem; }
.legal h2{ font-size:1.12rem; color:var(--text-strong); margin:1.8rem 0 .6rem; }
.legal p{ color:var(--text-secondary); margin-bottom:.8rem; }
.legal ul{ color:var(--text-secondary); margin:0 0 .8rem 1.3rem; }
.legal li{ margin-bottom:.4rem; }
.legal b{ color:var(--text-primary); font-weight:600; }
.legal a{ color:var(--accent); text-decoration:none; }
.legal .legal-back{ margin-top:2rem; }

/* --- Verify-Notice: hervorgehobene Empfaenger-Adresse --- */
.authpage .verify-email{ display:inline-block; margin:0 0 1.1rem; padding:.45rem .75rem; background:var(--bg-deep); border:1px solid var(--border); border-radius:8px; color:var(--accent); font-size:.9rem; word-break:break-all; }

/* ============================================================
   Lobby (Universumswahl, Orbit-Look) — Etappe 3
   Eigenes lobby_layout.twig; teilt die Weltraum-Kulisse mit .authpage,
   alle Lobby-Styles unter .lobbypage gescoped.
   ============================================================ */

































































/* Ruhmeshalle (lobby_ruhmeshalle.twig) */














/* ============================================================
   BERICHTE — gemeinsame Bausteine (Kampf, Spionage, ...)
   Generisch gehalten: .report-result/-cols/-card/-table/-tile
   werden von mehreren Berichtstypen geteilt; Modifier (.win/.def/
   .scan ...) setzen die jeweilige Akzentfarbe.
   ============================================================ */
.report-result{ text-align:center; border-radius:var(--radius); padding:22px 18px 18px;
  background:var(--bg-elevated); border:1px solid var(--border); margin-bottom:18px;
  position:relative; overflow:hidden; }
.report-result::before{ content:""; position:absolute; inset:0 0 auto 0; height:3px; background:var(--border); }
.report-result.win::before{ background:var(--tech); }
.report-result.lose::before{ background:var(--danger); }
.report-result.draw::before{ background:var(--warn); }
.report-result.scan::before{ background:var(--accent); }
.report-result .rr-badge{ font-size:1.9rem; font-weight:700; letter-spacing:.5px; margin:0 0 4px; color:var(--text-strong); }
.report-result.win .rr-badge{ color:var(--tech); }
.report-result.lose .rr-badge{ color:var(--danger); }
.report-result.draw .rr-badge{ color:var(--warn); }
.report-result.scan .rr-badge{ color:var(--accent); }
.report-result .rr-line{ color:var(--text-secondary); font-size:.95rem; margin:2px 0; }
.report-result .rr-line a{ color:var(--accent); text-decoration:none; }
.report-result .rr-meta{ color:var(--text-muted); font-size:.82rem; margin-top:6px; }
.report-honor{ display:inline-block; margin-top:12px; font-size:.85rem; font-weight:600;
  padding:4px 12px; border-radius:999px; border:1px solid var(--border); }
.report-honor.pos{ color:var(--tech); border-color:rgba(111, 220, 140,.4); background:rgba(111, 220, 140,.08); }
.report-honor.neg{ color:var(--danger); border-color:rgba(255,107,122,.4); background:rgba(255,107,122,.08); }
.report-honor.zero{ color:var(--text-secondary); }

.report-sec{ font-size:.78rem; text-transform:uppercase; letter-spacing:1.2px; color:var(--text-muted);
  font-weight:700; margin:26px 0 10px; padding-bottom:6px; border-bottom:1px solid var(--border-soft); }

.report-cols{ display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:start; }
.report-cols + .report-tiles{ margin-top:12px; }
.report-card .rt-empty{ margin:0; padding:9px 14px; color:var(--text-muted); font-size:.86rem; }

@media(max-width:560px){ .report-cols{ grid-template-columns:1fr; } }

.report-card{ background:var(--bg-elevated); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.report-card-head{ padding:9px 14px; font-weight:700; font-size:.92rem; display:flex;
  justify-content:space-between; align-items:center; border-bottom:1px solid var(--border-soft);
  color:var(--text-primary); box-shadow:inset 0 2px 0 var(--border); }
/* Seitenfarben ueberall gleich: Angreifer rot, Verteidiger blau (Bericht, Runden, Simulator). */
.report-card.att .report-card-head{ color:var(--danger); box-shadow:inset 0 2px 0 #9a3d47; }
.report-card.def .report-card-head{ color:var(--accent); box-shadow:inset 0 2px 0 var(--accent-dim); }
.report-card.scan .report-card-head{ color:var(--accent); box-shadow:inset 0 2px 0 var(--accent-dim); }
.report-card-head .rc-who{ color:var(--text-secondary); font-weight:400; font-size:.8rem; }
.report-card .rc-cat{ color:var(--text-muted); font-size:.72rem; text-transform:uppercase;
  letter-spacing:.6px; padding:9px 14px 3px; }

.report-table{ width:100%; border-collapse:collapse; font-size:.86rem; }
.report-table td{ padding:6px 14px; border-top:1px solid var(--border-soft); }
.report-table tr:first-child td{ border-top:none; }
.report-table .rt-name{ color:var(--text-primary); }
.report-table .rt-nums{ text-align:right; white-space:nowrap; }
.report-table .rt-start{ color:var(--text-secondary); }
.report-table .rt-arrow{ color:var(--text-muted); margin:0 3px; }
.report-table .rt-rest{ color:var(--text-strong); font-weight:600; }
.report-table .rt-val{ color:var(--text-strong); font-weight:600; }
.report-table .rt-loss{ color:var(--danger); font-size:.8rem; }
.report-table .rt-rebuilt{ color:var(--tech); font-size:.74rem; }
.report-table tr.rt-dead .rt-rest{ color:var(--danger); }
.report-table .rt-empty{ color:var(--text-muted); font-style:italic; padding:8px 14px; }

/* "N ohne Verlust" - was nichts abbekommen hat, steht eingeklappt unter den
   Verlusten. Aufklappbar, weil die Zahlen ab und zu doch gebraucht werden. */
.rt-heil{ border-top:1px solid var(--border-soft); }
.rt-heil>summary{ cursor:pointer; list-style:none; padding:7px 14px;
    color:var(--text-muted); font-size:.78rem; display:flex; align-items:center; gap:6px; }
.rt-heil>summary::-webkit-details-marker{ display:none; }
.rt-heil>summary::before{ content:'▸'; color:var(--text-muted); font-size:.7rem;
    transition:transform .2s; display:inline-block; }
.rt-heil[open]>summary::before{ transform:rotate(90deg); }
.rt-heil>summary:hover{ color:var(--text-secondary); }
.rt-heil .report-table .rt-name{ color:var(--text-secondary); }

/* Blockierte Spieler unter dem Posteingang - eine Zeile je Spieler, der
   Freigeben-Knopf rechts. */
.msg-blocked{ margin-top:14px; }
.msg-blocked-list{ list-style:none; margin:8px 0 0; padding:0; }
.msg-blocked-list li{ display:flex; align-items:center; justify-content:space-between;
    gap:12px; padding:6px 0; border-top:1px solid var(--border-soft); }
.msg-blocked-list li:first-child{ border-top:0; }
.report-round{ background:var(--bg-elevated); border:1px solid var(--border); border-radius:var(--radius);
  padding:13px 15px; margin-top:10px; }
.report-round .rr-top{ display:flex; align-items:center; gap:10px; margin-bottom:8px; flex-wrap:wrap; }
.report-round .rr-no{ font-weight:700; color:var(--accent); font-size:.95rem; }
/* Der Satz zur Runde traegt den Block jetzt, deshalb Fliesstextgroesse
   statt Beschriftung. Die Balken daneben zeigen, was von beiden Seiten
   nach dieser Runde noch stand. */
.report-round .rr-tale{ color:var(--text-primary); font-size:.95rem; line-height:1.45;
    margin:2px 0 10px; }
.report-round .rr-bars{ display:flex; flex-direction:column; gap:6px; }
.report-round .rr-bar{ display:grid; grid-template-columns:5.5rem 1fr auto; align-items:center;
    gap:10px; font-size:.8rem; }
.report-round .rr-bar-lab{ color:var(--text-muted); }
.report-round .rr-bar-track{ height:8px; border-radius:4px; background:var(--bg-base);
    border:1px solid var(--border-soft); overflow:hidden; }
.report-round .rr-bar-fill{ display:block; height:100%; border-radius:3px;
    transition:width .3s ease; }
.report-round .rr-bar.att .rr-bar-fill{ background:var(--danger); }
.report-round .rr-bar.def .rr-bar-fill{ background:var(--accent); }
.report-round .rr-bar-num{ color:var(--text-primary); font-weight:600; white-space:nowrap; }
.report-round .rr-bar-num .d{ color:var(--danger); font-weight:400; font-size:.76rem; }
@media(max-width:480px){
    .report-round .rr-bar{ grid-template-columns:4.2rem 1fr auto; gap:7px; font-size:.75rem; }
}

.report-tiles{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media(max-width:560px){ .report-tiles{ grid-template-columns:1fr; } }
.report-tile{ background:var(--bg-elevated); border:1px solid var(--border); border-radius:var(--radius); padding:13px 15px; }
.report-tile h3{ margin:0 0 7px; font-size:.9rem; color:var(--text-primary); }
.report-tile .row{ display:flex; justify-content:space-between; gap:1rem; font-size:.84rem; padding:2px 0; color:var(--text-secondary); }
.report-tile .row > span{ flex-shrink:0; }
.report-tile .row b{ color:var(--text-primary); font-weight:600; text-align:right; }
.report-tile.moon{ grid-column:1/-1; border-color:rgba(255, 154, 60,.35); background:rgba(255, 154, 60,.06); }
/* Fahrender Händler: drei Teile untereinander, jeder mit eigenem Formular. */
.ha-tiles{ grid-template-columns:1fr; }
.ha-tiles .report-tile{ min-width:0; }
.ha-form{ display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin-top:.4rem; }
.ha-form select{ flex:1 1 9rem; width:auto; min-width:0; }
.ha-form select[name=fund]{ flex-basis:100%; }
.ha-form input[type=number]{ flex:0 0 7.5rem; }
.ha-schiff{ display:flex; justify-content:space-between; align-items:center; gap:.6rem; padding:.45rem 0; border-top:1px solid var(--border-soft); font-size:.88rem; }
.ha-schiff:first-of-type{ border-top:0; }
.report-tile.moon p{ margin:0; font-size:.86rem; color:var(--text-secondary); }
.report-tile.moon strong{ color:var(--accent); }
.report-seed{ margin-top:16px; text-align:center; font-size:.78rem; color:var(--text-muted); }
.report-seed code{ background:var(--bg-elevated); border:1px solid var(--border); border-radius:4px; padding:1px 7px; color:var(--text-secondary); }
.report-note{ margin:14px auto 0; max-width:560px; text-align:center; font-size:.84rem; line-height:1.55; color:var(--text-muted); }

/* ============================================================
   Kampfsimulator (/?p=simulator)
   ============================================================ */






















/* Seed hat bis zu zehn Stellen */

/* Anteil der Verluste, der nach dem Kampf wieder aufgebaut wird */















/* ===== Achievements (Erfolge-Seite) ===== */






















/* ===== Profil: Kampfbilanz ===== */
.pcr-item { color: var(--text-muted); }
.pcr-item strong { font-variant-numeric: tabular-nums; margin-right: 0.15rem; }
.pcr-win strong  { color: var(--tech); }
.pcr-loss strong { color: var(--danger); }
.pcr-draw strong { color: var(--text-secondary); }
.pcr-total { margin-left: auto; }
.pcs-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.pcs-value { font-size: 1.15rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* ============================================================
   Bau-/Forschungs-Queue: Umsortier-Pfeile (Hoch/Runter).
   Nur spielseitig (buildings.twig, research.twig) — platform nicht betroffen.
   ============================================================ */
.queue-item .qi-action {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/*
 * Pfeile und Sofort-Fertigstellen stehen nebeneinander in derselben Zeile
 * und tragen dasselbe Mass. Ohne die zweite Klasse erbte der ⏩ das breite
 * Innenmass von .btn und war mit 49px halb so breit wie die Kachel.
 */
/*
 * Mit dem Elementnamen davor, sonst gewinnt button.btn-ghost weiter oben
 * (gleiche Klassenzahl, aber zusaetzlich das Element) und beide Knoepfe
 * behalten ihr breites Innenmass von 16px.
 */


/* Werft-Queue: Multi-Slot (wartende Aufträge + Slot-Hinweis) */
.queue-slot-hint {
    margin: 0.1rem 0 0.7rem;
    font-size: 0.82rem;
}

.queue-item.waiting {
    opacity: 0.82;
    border-style: dashed;
}
.queue-item.waiting .qi-status {
    color: var(--text-muted);
}

/* === Zeit-Queue Timeline (Bau / Forschung) === */






/* === Zeit-Queue Bilanz (frei / belegt / fertig) === */





/* === Zeit-Queue Kachel-Grid === */
















/* Touch-min-height (global 42px) in der Kachel zaehmen, sonst zu hoch */

/* === Flotten-Vorlagen === */





/* ============ TUTORIAL-PANEL (schwebende Aufgabe) ============ */
#tutPanel{position:fixed;top:84px;right:28px;width:330px;z-index:50;
  background:var(--bg-elevated);border:1px solid var(--border);border-radius:12px;
  box-shadow:0 18px 48px rgba(0,0,0,.55);overflow:hidden;
  display:flex;flex-direction:column;max-height:78vh;}
#tutPanel.hidden{display:none;}
.tp-head{display:flex;align-items:center;gap:.5rem;padding:.6rem .7rem;cursor:grab;
  background:linear-gradient(180deg,var(--bg-elevated-2),var(--bg-elevated));border-bottom:1px solid var(--border);
  user-select:none;}
.tp-head.grabbing{cursor:grabbing;}
.tp-title{font-size:.9rem;font-weight:700;color:var(--text-strong);display:flex;align-items:center;gap:.4rem;}
.tp-actions{margin-left:auto;display:flex;gap:.25rem;}
.tp-btn{width:28px;height:28px;border:1px solid var(--border);background:var(--bg-base);color:var(--text-secondary);
  border-radius:7px;cursor:pointer;font-size:.95rem;display:flex;align-items:center;justify-content:center;line-height:1;}
.tp-btn:hover{color:var(--text-strong);border-color:var(--accent-dim);}
.tp-btn.spin{animation:spin .6s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}
.tp-body{padding:.8rem .85rem;overflow-y:auto;}
.tp-chapter{font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;color:var(--accent);font-weight:700;}
.tp-quest{font-size:1rem;font-weight:700;color:var(--text-strong);margin:.15rem 0 .5rem;}
.tp-howto{font-size:.82rem;line-height:1.4;color:var(--text-secondary);background:rgba(255, 154, 60,.07);
  border-left:3px solid var(--accent);border-radius:6px;padding:.45rem .6rem;margin-bottom:.6rem;}
.tp-conds{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.3rem;}
.tp-cond{display:flex;align-items:flex-start;gap:.5rem;font-size:.9rem;line-height:1.35;flex-wrap:wrap;}
.tp-check{flex:0 0 1.1rem;text-align:center;font-weight:700;}
.tp-text{flex:1 1 0;min-width:0;}
.tp-cond.done .tp-check{color:#8fe6a8;}
.tp-cond.done .tp-text{color:var(--text-muted);text-decoration:line-through;}
.tp-cond.open .tp-check{color:var(--text-muted);}
.tp-guide-link{display:block;margin-top:.4rem;font-size:.82rem}
.tutorial-geschafft p{margin:0}
.tp-done-banner{margin:.2rem 0;padding:.5rem .6rem;border-radius:6px;font-size:.85rem;font-weight:600;
  background:rgba(143,230,168,.10);border-left:3px solid #8fe6a8;color:#bdf0cb;}
.tp-foot{display:flex;align-items:center;justify-content:space-between;gap:.5rem;
  padding:.55rem .85rem;border-top:1px solid var(--border);background:var(--bg-base);}
.tp-foot a{color:var(--accent);text-decoration:none;font-size:.82rem;}
.tp-updated{font-size:.72rem;color:var(--text-muted);}
#tutTab{position:fixed;right:0;bottom:120px;z-index:50;cursor:pointer;
  background:var(--accent);color:#0a1320;font-weight:700;font-size:.82rem;
  padding:.55rem .8rem;border-radius:10px 0 0 10px;box-shadow:0 8px 24px rgba(0,0,0,.45);
  display:flex;align-items:center;gap:.4rem;border:none;}
#tutTab.hidden{display:none;}

/* ============ PLANETENFENSTER (schwebend wie #tutPanel, Startplatz links) ============ */
#planetPanel{position:fixed;top:106px;left:16px;width:340px;z-index:50;
  background:var(--bg-elevated);border:1px solid var(--border);border-radius:12px;
  box-shadow:0 18px 48px rgba(0,0,0,.55);overflow:hidden;display:flex;flex-direction:column;max-height:78vh;}
#planetPanel.hidden{display:none;}
#planetPanel .tp-head{touch-action:none;}
#planetPanel .tp-body{padding:.6rem;}
.psw-hinweis{font-size:.75rem;color:var(--text-muted);margin:0 .15rem .5rem;line-height:1.35;}
.psw-liste{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem;}
.psw-gruppe{border:1px solid var(--border);border-radius:8px;background:rgba(255,255,255,.02);transition:box-shadow .15s,border-color .15s,background .15s;}
.psw-gruppe.aktiv{border-color:rgba(255, 154, 60,.55);background:rgba(255, 154, 60,.07);}
.psw-gruppe.zieht{border-color:var(--accent);box-shadow:0 6px 24px rgba(0,0,0,.55),0 0 0 1px rgba(255, 154, 60,.35);background:var(--bg-elevated-2);position:relative;z-index:2;}
.psw-zeile{display:flex;align-items:center;gap:.15rem;padding:0 .15rem;border-radius:8px;}
.psw-zeile.mond{padding-left:1.95rem;border-top:1px solid rgba(255,255,255,.05);border-radius:0 0 8px 8px;}
.psw-griff{flex:0 0 auto;width:24px;height:36px;display:flex;align-items:center;justify-content:center;background:none;border:none;color:var(--text-muted);font-size:1rem;cursor:grab;touch-action:none;border-radius:4px;}
.psw-griff:hover,.psw-griff:focus-visible{color:var(--text-strong);background:rgba(255,255,255,.05);outline:none;}
.psw-gruppe.zieht .psw-griff{cursor:grabbing;}
.psw-wahl{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:.5rem;padding:.4rem .35rem;background:none;border:none;border-radius:6px;color:inherit;font:inherit;text-align:left;cursor:pointer;}
.psw-wahl:hover,.psw-wahl:focus-visible{background:rgba(255,255,255,.04);outline:none;}
.psw-bild{flex:0 0 auto;width:36px;height:36px;border-radius:50%;object-fit:cover;}
.psw-zeile.mond .psw-bild{width:26px;height:26px;}
.psw-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;}
.psw-name{display:flex;align-items:baseline;gap:.4rem;flex-wrap:wrap;font-size:.88rem;}
.psw-name b{color:var(--text-strong);font-weight:600;}
.psw-koord{color:var(--tech);font-size:.8rem;}
.psw-felder{margin-left:auto;font-size:.72rem;color:var(--text-muted);white-space:nowrap;}
.psw-tun{display:flex;flex-direction:column;gap:.05rem;margin-top:.15rem;font-size:.74rem;color:var(--text-secondary);}
.psw-tun > span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.psw-tun .zeit{color:var(--text-muted);font-variant-numeric:tabular-nums;}
.psw-ruhe{font-size:.74rem;color:var(--text-muted);margin-top:.1rem;}
.psw-check{color:var(--accent);font-weight:700;}
.psw-gespeichert{font-size:.75rem;color:var(--success);opacity:0;transition:opacity .3s;}
.psw-gespeichert.an{opacity:1;}
.psw-gespeichert.fehler{color:var(--danger);}
/* Mobile: Panel nicht ueber den Bildschirmrand hinaus (additiv, nicht im Mock) */
@media (max-width:480px){
  #tutPanel{width:calc(100vw - 16px);max-width:330px;right:8px;top:70px;}
  #planetPanel{width:calc(100vw - 16px);max-width:340px;left:8px;}
  /* Tutorial-Tab auf die LINKE Kante, weg vom Chat-Widget (sitzt unten rechts):
     zwei fix positionierte Buttons an derselben Ecke ziehen uebereinander,
     wenn die Safari-Leiste beim Scrollen einklappt und sich die Geometrie
     unten verschiebt. Getrennte Ecken koennen das nicht. Basiswert 70px am
     Chat ausgerichtet (per Screenshot ausgemessen: gleiche Mittelhoehe),
     env() bleibt drin, damit beide ueber dem Home-Indicator im Gleichschritt
     bleiben. */
  #tutTab{left:0;right:auto;bottom:calc(70px + env(safe-area-inset-bottom));
    border-radius:0 10px 10px 0;}
}

/* =====================================================================
   Bau-Karten (Card-Grid) — Produktionsansicht (Gebäude/Forschung/
   Werft/Verteidigung). Ersetzt die alte .build-table-Liste.
   Flacher Orbit-Stil, nutzt bestehende Tokens.
   ===================================================================== */







/* Kopf: Name + aktuelle Stufe */





/* Bild-Banner 16:9 */




/* Body: nächste Stufe, Kosten, Dauer */






/* Energie-Auswirkung der naechsten Stufe (Bau-Vorschau) */





/* Hover-Indikator wie bei den Kosten-Chips: feiner gepunkteter Underline */

/* Aktionen */

.bc-status{ flex:1 1 auto; font-size:.8rem; color:var(--text-muted); text-align:center; }



/* Bau-Karten — Icon-Aktionen (Variante: Pfeil-Buttons statt Text) */


/* gap, seit das Mengenfeld fuer 'mehrere Stufen einreihen' neben dem Knopf
   stehen kann. Formulare mit nur einem Kind stoert es nicht. */






/* Energie-Block: roter Tint passend zur roten Energie-Zahl */



/* ===== Bau-Karten: Stückzahl (Werft/Verteidigung) + Forschung-Zusätze ===== */
/* Bestand-Chip (neutral, grenzt sich vom Stufen-Chip ab) */
.bc-count{ color:var(--text-secondary); background:rgba(154,167,189,.10); border-color:var(--border); }
/* Unikat-Tag (statt Bestand) */
.bc-unique{ color:var(--tech); background:rgba(111, 220, 140,.12); border-color:var(--tech-dim);
    min-width:auto; font-size:.7rem; text-transform:uppercase; letter-spacing:.03em; }
/* Forschung mit nur einer Stufe, schon erforscht */

/* Gebaeude auf Hoechststufe: wie "Erforscht", aber rot. */

/* Kosten-Label über dem Kostenblock (Werft/Verteidigung) */
.bc-sub-label{ font-size:.78rem; color:var(--text-muted); }
/* Forschung: Min.-Arkanum-Zeile */
.bc-sub{ font-size:.75rem; color:var(--text-muted); }
.bc-sub-warn{ color:var(--danger); }
/* Aktionsbereich mit Anzahl-Eingabe: vertikal gestapelt */
.bc-actions-build{ flex-direction:column; align-items:stretch; gap:.45rem; }
.bc-buildform{ display:flex; flex-direction:column; gap:.45rem; margin:0; width:100%; }
.bc-amount{ display:flex; align-items:stretch; gap:.4rem; }
.bc-amount .ship-amount-input{ flex:1 1 auto; width:auto; min-width:0; }
.bc-amount .js-ship-max{ flex:0 0 auto; }
.bc-actions-build .btn-need-res{ width:100%; }

/* ============================================================
   Feinschliff Juni 2026 — Felder im Spiel-Standard + Planet-Aktionen
   Transfer-/Flotten-Felder bekommen exakt den .form-Look (dunkel, Rand,
   Fokus-Gruen). Selects inhaltsbreit statt voll; Inputs ohne width:100%,
   damit das Inline-Layout (Feld + max-Button) erhalten bleibt.
   ============================================================ */

/* --- Selects (Transfer-Ziel, Flotten-Vorlagen) --- */
.transfer-card select {
    width: auto;
    max-width: 100%;
    padding: 0.55rem 2.4rem 0.55rem 0.7rem;
    background-color: var(--bg-deep);
    color: var(--text-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239fb0d0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    transition: border-color 0.15s ease;
}
/* hebt das min-width:240px aus dem transfer.twig-Inline-Style auf (.tf-row -> hoehere Spezifitaet) */
.transfer-card .tf-row select { min-width: 0; }

.transfer-card select:focus { outline: none; border-color: var(--amber); }
.transfer-card select option { background: var(--bg-elevated); color: var(--text-strong); }

/* --- Text-/Zahlenfelder (Transfer-Mengen, Flotten-Vorlagenname) --- */
.transfer-card input[type="number"],
.transfer-card input[type="text"] {
    padding: 0.55rem 0.7rem;
    background: var(--bg-deep);
    color: var(--text-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}
.transfer-card input:focus { outline: none; border-color: var(--amber); }

/* --- Planet-Aktionen (Wurmloch + Rohstoff-Transfer) --- */




/* ── Sprachwahl ──────────────────────────────────────────────────────────
   Steht auf der Startseite ueber allem, damit ein Besucher die Seite sofort
   in seiner Sprache lesen kann — nicht erst nach der Anmeldung.

   Bewusst zurueckhaltend: zwei Woerter oben rechts. Die aktive Sprache ist
   kein Verweis, sondern nur hervorgehoben — sonst klickt jemand auf das,
   was er schon sieht.

   Kein text-decoration:underline, wie ueberall hier. */




/* Die Flagge steht vor dem Namen, nicht an seiner Stelle.
   Der feine Rand haelt die weissen Flaechen der Flaggen vom dunklen
   Hintergrund getrennt — ohne ihn franst die britische Flagge aus. */



/* ── Name im Universum: anklicken und tippen ──
   Dasselbe Verhalten wie beim Planetennamen, nur in Zeilengroesse: Der
   Stift erscheint erst beim Darueberfahren, damit die Zeile im Ruhezustand
   aussieht wie die Angaben darunter und nicht wie ein Formular. */
.settings-name {
    cursor: pointer;
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    transition: color 0.15s;
}
.settings-name:hover {
    color: var(--accent);
}
.settings-name-hint {
    opacity: 0;
    font-size: 0.75em;
    color: var(--accent);
    transition: opacity 0.15s;
}
.settings-name:hover .settings-name-hint {
    opacity: 0.6;
}
.settings-name-input {
    max-width: 16rem;
}
/* Der Hinweis gehoert zur Liste darueber, klebt aber nicht daran. */
.settings-name-error {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--danger);
}
/* Laeuft die Frist, steht sie hinter dem Namen: rot, damit sie auffaellt,
   kursiv, damit sie nicht wie der Name selbst aussieht. */

/* Bild im Raketenbericht. Wie das Hero-Bild im Info-Modal: auf schmalen
   Geraeten weggelassen, dort zaehlt die Zahlenspalte. */
.report-hero { display:none; }
@media (min-width:720px){
    .report-hero { margin:.2rem 0 1.1rem; text-align:center; display:block; }
    .report-hero-img {
        width:100%; max-width:420px; border-radius:12px;
        border:1px solid var(--border);
        box-shadow:inset 0 0 44px rgba(0,0,0,.5), 0 8px 28px -10px rgba(0,0,0,.7);
    }
}

/* ===== Premium-Verwaltung (platform.voidar.de/?p=premium) =====
   Bewusst keine Tabelle: Vier schmale Zahlen ueber die volle Fensterbreite
   verteilt reissen auseinander, egal wie man die Spalten setzt. Als Liste
   steht jedes Feature fuer sich, die Eingaben bleiben beieinander. */
.prem-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 62rem;
}
.prem-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
}
.prem-info { flex: 1 1 22rem; min-width: 0; }
.prem-fields { display: flex; align-items: flex-end; gap: 0.9rem; flex-wrap: wrap; }
.prem-fields label { display: flex; flex-direction: column; gap: 0.25rem; }
.prem-lbl { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.prem-num { width: 4.5rem; text-align: center; }
.prem-aktiv { align-items: center; }

/* Schluessel direkt hinter dem Namen: Er gehoert zum Namen, nicht zur
   Beschreibung, und spart eine Zeile Hoehe. */
.prem-key {
    margin-left: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    color: var(--text-faint);
}

/* Nur der Schalter — der Rahmen von settings-toggle gehoert in eine Liste
   mit Beschriftung, nicht neben ein Zahlenfeld. */
.prem-switch {
    border: none;
    padding: 0.3rem 0;
    gap: 0;
    justify-content: center;
    cursor: pointer;
}
.prem-switch:hover { background: transparent; border-color: transparent; }

/* Premium-Seite im Spiel: gleiche Liste wie in der Verwaltung, nur mit
   Knopf statt Eingabefeldern. */
.prem-card { max-width: 56rem; margin-left: auto; margin-right: auto; }
.prem-list-spiel { max-width: none; }
.prem-tag {
    display: inline-block;
    white-space: nowrap;
    margin-left: 0.5rem;
    font-size: 0.72rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.prem-tag-an { color: var(--tech); border-color: var(--tech-dim); }
.prem-icon {
    flex: 0 0 auto;
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--bg-deep);
}
/* Das Mengenfeld steht neben den Symbolknoepfen und soll aussehen wie sie:
   gleiche Hoehe, gleicher Rahmen, gleicher Grund — nur breiter, weil eine
   Zahl hineinmuss. Die Werte stammen aus .bc-act. */

/* Kauf-Knoepfe je Laufzeit: Zeit oben, Preis darunter. Sie stehen in einer
   Reihe und brechen auf schmalen Schirmen um. */
.prem-kauf { gap: 0.4rem; }
/* Laufzeit-Auswahl: Liste und Knopf in einer Reihe, auf schmalen Schirmen
   untereinander. */
.prem-kauf-form { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.prem-laufzeit { width: auto; min-width: 12rem; }
/* Das Paket ist kein viertes Feature, sondern die Alternative zu allen —
   deshalb abgesetzt, mit eigener Ueberschrift und kraeftigerem Rand. */
.prem-bundle { border-color: var(--tech-dim); margin-top: 1rem; }
.prem-bundle-titel { margin: 0 0 0.8rem; font-size: 1rem; color: var(--text-muted); }
.prem-row-bundle { border-color: var(--tech-dim); }
/* Einleitung: etwas enger gesetzt als Fliesstext, damit sie als Block wirkt
   und nicht mit der Feature-Liste verschwimmt. */
.prem-intro p { margin: 0 0 0.45rem; max-width: 60ch; }
.prem-intro p:last-child { margin-bottom: 0; }
/* Bild statt Symbol: gleiche Kachel, nur gefuellt. Das Paket bekommt eine
   groessere, weil dort mehr Platz ist und es die Alternative zu allem ist. */
/* Bild statt Symbol: 16:9 wie in den Bau-Karten und deutlich groesser als
   die Symbolkachel — bei diesen Motiven ist auf 3rem nichts zu erkennen. */
.prem-icon-img {
    width: 14rem;
    height: auto;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    font-size: 0;
    border-radius: 8px;
}
.prem-icon-gross { width: 18rem; }

/* --- Lebenszeichen auf der Startseite (_lebenszeichen.twig) --- */





@keyframes lz-puls{ 0%{ box-shadow:0 0 0 0 rgba(111, 220, 140,.55); } 70%{ box-shadow:0 0 0 8px rgba(111, 220, 140,0); } 100%{ box-shadow:0 0 0 0 rgba(111, 220, 140,0); } }













/* Kampfbericht, ausführlich (07.10.2026): je Runde Einzelheiten zum
   Aufklappen, Angreifer und Verteidiger nebeneinander; Schaden als Balken. */
.rr-detail{ margin-top:10px; border-top:1px solid var(--border-soft); padding-top:8px; }
.rr-detail>summary{ cursor:pointer; list-style:none; color:var(--text-secondary); font-size:.85rem; }
.rr-detail>summary::-webkit-details-marker{ display:none; }
.rr-detail>summary::before{ content:'▸'; display:inline-block; width:1.1em; color:var(--text-muted); }
.rr-detail[open]>summary::before{ content:'▾'; }
.rr-seiten{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:8px; }
.rr-seite{ border:1px solid var(--border-soft); border-radius:var(--radius-sm); padding:8px 0 10px; min-width:0; }
.rr-seite.att{ border-top:2px solid var(--danger); }
.rr-seite.def{ border-top:2px solid var(--accent); }
.rr-seite-kopf{ font-weight:600; color:var(--text-strong); padding:0 14px 6px; }
.rr-werte{ display:flex; flex-wrap:wrap; gap:6px; padding:0 14px 6px; }
.rr-werte span{ background:var(--bg-base); border:1px solid var(--border-soft); border-radius:999px; padding:2px 9px;
    font-size:.78rem; color:var(--text-strong); white-space:nowrap; }
.rr-werte i{ font-style:normal; color:var(--text-muted); margin-right:3px; }
.rr-feuer{ margin:8px 14px 4px; font-size:.82rem; color:var(--text-secondary); }
.rr-schaden{ display:flex; height:8px; margin:0 14px; border-radius:4px; overflow:hidden; background:var(--bg-base); }
.rr-schaden span{ display:block; height:100%; }
.dmg-huelle{ background:var(--danger); }
.dmg-schild{ background:var(--accent); }
.dmg-abgeprallt{ background:var(--warn); }
.dmg-verpufft{ background:var(--text-muted); }
.rr-legende{ list-style:none; margin:6px 14px 0; padding:0; display:flex; flex-wrap:wrap; gap:4px 12px; font-size:.78rem; color:var(--text-secondary); }
.rr-legende b{ color:var(--text-strong); font-weight:600; }
.rr-legende .dot{ display:inline-block; width:8px; height:8px; border-radius:2px; margin-right:5px; vertical-align:middle; }
.rr-gesamt{ margin-top:0; }
@media (max-width:700px){ .rr-seiten{ grid-template-columns:1fr; } }

/* Berichtsliste: Reiter nach Art, Auswahl zum Loeschen und Lesen (08.10.2026). */

.reports-tab-n { display:inline-block; min-width:1.3em; padding:0 0.35em; margin-left:0.25em; border-radius:999px;
    background:var(--accent); color:#fff; font-size:0.72rem; line-height:1.35em; text-align:center; }





.report-item.is-selected { background:rgba(255, 154, 60,0.07); }

/* Berichte, einheitliches Geruest (08.10.2026): Kennzahlen oben, Abschnitte
   zum Aufklappen (anfangs zu), Knopfleiste mit Aktionen im Fuss. */
.report-kpis { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:10px; margin:14px 0 6px; }
.report-kpi { display:flex; flex-direction:column; gap:2px; background:var(--bg-elevated); border:1px solid var(--border);
    border-radius:var(--radius); padding:10px 14px; min-width:0; }
.report-kpi .k-label { font-size:.78rem; color:var(--text-muted); }
.report-kpi .k-wert { font-size:1.3rem; font-weight:700; color:var(--text-strong); }
.report-kpi .k-unter { font-size:.76rem; color:var(--text-secondary); overflow-wrap:anywhere; }
.report-fold { background:var(--bg-elevated); border:1px solid var(--border); border-radius:var(--radius);
    padding:10px 14px; margin-top:10px; }
.report-fold > summary { cursor:pointer; list-style:none; font-weight:600; color:var(--text-strong); }
.report-fold > summary::-webkit-details-marker { display:none; }
.report-fold > summary::before { content:'▸'; display:inline-block; width:1.1em; color:var(--text-muted); }
.report-fold[open] > summary::before { content:'▾'; }
.report-fold[open] > summary { margin-bottom:10px; }
.report-fold .report-card { margin:0; }
.report-folds { display:block; }
.report-detail-actions { flex-wrap:wrap; align-items:center; }
.report-aktionen { display:flex; flex-wrap:wrap; gap:0.5rem; margin-right:auto; }
@media (max-width:560px){ .report-kpis{ grid-template-columns:repeat(2, minmax(0, 1fr)); } .report-kpi{ padding:8px 10px; } .report-kpi .k-wert{ font-size:1.1rem; } }

/* ── Vorschläge beim Tippen (vorschlag.js) ── */
.vorschlag-liste {
    position: absolute;
    z-index: 1000;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    max-width: calc(100vw - 32px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.vorschlag-liste li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 12px;
    cursor: pointer;
}
.vorschlag-liste li.aktiv {
    background: rgba(255, 154, 60, .15);
}
.vorschlag-zusatz {
    font-size: .8rem;
    color: var(--text-muted);
}

/* ── Einstieg beim ersten Beitritt (einstieg.twig, einstieg.js) ── */
body.einstieg-seite { overflow-x: hidden; font-size: 16px; line-height: 1.55; }
.ein-sterne { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ein-buehne { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.ein-funk { width: 100%; max-width: 680px; }
.ein-kopf { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 22px; }
.ein-led { width: 8px; height: 8px; border-radius: 50%; background: var(--tech); box-shadow: 0 0 8px var(--tech); animation: ein-blink 1.4s infinite; }
@keyframes ein-blink { 50% { opacity: .25; } }
.ein-szene, .ein-funk [hidden] { display: none; }
.ein-szene.an { display: block; }
.ein-zeile { opacity: 0; transform: translateY(6px); transition: opacity 1.6s ease, transform 1.6s ease; margin: 0 0 14px; }
.ein-zeile.sichtbar { opacity: 1; transform: none; }
.ein-zeile, .ein-was, .ein-ergebnis, .ein-kopf { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 18px rgba(0,0,0,.8); }
.ein-gross { font-size: 1.9rem; font-weight: 600; color: var(--text-strong); letter-spacing: -.01em; line-height: 1.3; }
.ein-leise { color: var(--text-secondary); }
.ein-name { color: var(--accent-hover); }
.ein-eingabe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ein-eingabe input[type=text] { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 1.1rem; padding: 10px 14px; background: rgba(10,14,21,.75); color: var(--text-strong); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.ein-eingabe input[type=text]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 154, 60,.18); }
.ein-hinweis { font-size: .82rem; color: var(--text-muted); margin-top: 8px; min-height: 1.3em; }
.ein-hinweis.fehler { color: var(--danger); }
.ein-knopf { display: inline-block; font: inherit; font-weight: 600; font-size: 1rem; padding: 10px 20px; cursor: pointer; background: var(--accent); color: #fff; border: 0; border-radius: var(--radius-sm); transition: background .2s, box-shadow .2s; }
.ein-knopf:hover { background: var(--accent-hover); box-shadow: 0 0 18px rgba(255, 154, 60,.35); color: #fff; }
.ein-knopf:disabled { opacity: .45; cursor: default; box-shadow: none; }
.ein-knopf.ein-gruen { background: var(--tech-dim); }
.ein-knopf.ein-gruen:hover { background: var(--tech); box-shadow: 0 0 18px rgba(111, 220, 140,.35); }
.ein-schritt { margin: 0 0 18px; }
.ein-was { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--text-secondary); }
.ein-pct { font-variant-numeric: tabular-nums; color: var(--text-muted); }
.ein-pct.ok { color: var(--tech); }
.ein-balken { height: 6px; margin-top: 6px; background: rgba(10,14,21,.6); border: 1px solid var(--border-soft); border-radius: 3px; overflow: hidden; }
.ein-balken > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--tech)); box-shadow: 0 0 10px rgba(255, 154, 60,.5); }
.ein-ergebnis { margin-top: 8px; color: var(--text-strong); opacity: 0; transition: opacity 1.6s ease; }
.ein-ergebnis.sichtbar { opacity: 1; }
.ein-ok { color: var(--tech); margin-right: 6px; }
.ein-planet { display: flex; align-items: center; gap: 18px; margin: 10px 0 4px; }
.ein-planet img { width: 110px; height: 110px; opacity: 0; transform: scale(.6); filter: drop-shadow(0 0 22px rgba(255,181,71,.35)); transition: opacity 2.4s ease, transform 2.4s ease; }
.ein-planet img.sichtbar { opacity: 1; transform: none; }
.ein-koord { font-size: 1.25rem; font-weight: 600; color: var(--text-strong); }
.ein-r-voidanium { color: var(--res-voidanium); }
.ein-r-singularit { color: var(--res-singularit); }
.ein-r-aether { color: var(--res-aether); }
.ein-zahl { font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
    .ein-gross { font-size: 1.4rem; }
    .ein-planet img { width: 84px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
    .ein-zeile, .ein-ergebnis, .ein-planet img { transition-duration: .3s; }
    .ein-led { animation: none; }
}

/* ── Funksprüche als Überblendung (funkspruch.js); Zeilen und Balken wie im Einstieg (.ein-*) ── */
.fk-schleier { position: fixed; inset: 0; z-index: 9500; display: flex; padding: 40px 16px; overflow-y: auto; background: rgba(5,8,12,0); transition: background 1.2s ease; font-size: 16px; line-height: 1.55; }
.fk-schleier.an { background: rgba(5,8,12,.92); backdrop-filter: blur(8px); }
.fk-schleier .ein-funk { position: relative; margin: auto; }
.fk-sterne { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.fk-schleier.an .fk-sterne { opacity: 1; }
.fk-zu { position: fixed; top: 12px; right: 16px; z-index: 1; font: inherit; font-size: 1.6rem; line-height: 1; padding: 4px 10px; background: none; border: 0; color: var(--text-muted); cursor: pointer; }
.fk-zu:hover { color: var(--text-strong); }
.fk-warn .ein-led { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.fk-alarm { color: var(--warn); }
.ein-balken.fk-runter > i { background: linear-gradient(90deg, var(--danger), var(--warn)); box-shadow: 0 0 10px rgba(255,181,71,.45); }
.fk-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.ein-knopf.fk-leise { background: rgba(22,29,41,.8); border: 1px solid var(--border); color: var(--text-secondary); }
.ein-knopf.fk-leise:hover { background: rgba(40,52,71,.9); box-shadow: none; color: var(--text-strong); }

/* ── Dialog im Voidar-Stil statt confirm/alert/prompt (formulare.js, VoidarDialog) ── */
.vd-schleier { position: fixed; inset: 0; z-index: 9600; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5,8,12,0); transition: background .25s ease, backdrop-filter .25s ease; }
.vd-schleier.an { background: rgba(5,8,12,.72); backdrop-filter: blur(5px); }
.vd-dialog { width: 100%; max-width: 460px; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; background: var(--bg-elevated); border: 1px solid rgba(255, 154, 60,.3); border-radius: 10px; padding: 1.4rem 1.5rem 1.2rem; box-shadow: 0 12px 48px rgba(0,0,0,.6), 0 0 0 1px rgba(255, 154, 60,.08); opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .25s ease, transform .25s ease; }
.vd-schleier.an .vd-dialog { opacity: 1; transform: none; }
.vd-dialog.gefahr { border-color: rgba(255,107,122,.45); box-shadow: 0 12px 48px rgba(0,0,0,.6), 0 0 22px rgba(255,107,122,.12); }
.vd-kopf { display: flex; align-items: center; gap: .55rem; margin: 0 0 .7rem; font-size: 1.05rem; font-weight: 600; color: var(--text-strong); }
.vd-kopf .vd-ico { font-size: 1.15rem; }
.vd-text { margin: 0; color: var(--text-primary); line-height: 1.55; white-space: pre-line; }
.vd-feld { margin-top: .9rem; }
.vd-feld input { width: 100%; font: inherit; padding: .5rem .7rem; background: var(--bg-deep); color: var(--text-strong); border: 1px solid var(--border); border-radius: 6px; box-sizing: border-box; }
.vd-feld input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 154, 60,.18); }
.vd-knoepfe { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; margin-top: 1.3rem; }
@media (max-width: 520px) { .vd-knoepfe > * { flex: 1 1 auto; text-align: center; } }

/* ============================================================
   PROFIL (_profile_card.twig) - Seite zweispaltig, Fenster einspaltig
   ============================================================ */
.profile-card.pf { max-width: 1060px; padding: 0; background: none; border: 0; }
.profile-card.pf.profile-card-modal { padding: 1.2rem; background: var(--bg-surface, #15192a); border: 1px solid rgba(255,255,255,.12); }
.pf-hero { position: relative; overflow: hidden; border: 1px solid rgba(255, 154, 60,.25); border-radius: 14px; padding: 26px 26px 20px;
  background: radial-gradient(1200px 300px at 85% -40%, rgba(255, 154, 60,.22), transparent 60%), radial-gradient(600px 240px at 0% 120%, rgba(52,215,232,.10), transparent 60%), var(--bg-elevated); }
.pf-kopf { position: relative; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.pf-avatar { width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  font-size: 2.5rem; font-weight: 700; color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.5); }
.pf-wer { flex: 1 1 280px; min-width: 0; }
.pf-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; font-size: 1.9rem; font-weight: 700; color: var(--text-strong); line-height: 1.15; }
.pf-chip { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-secondary); background: rgba(255,255,255,.03); text-decoration: none; }
.pf-chip-allianz { color: #c4a8ff; border-color: rgba(196,168,255,.4); background: rgba(196,168,255,.08); }
.pf-chip-allianz:hover { color: #ddd0ff; }
.pf-chip-rang { color: #ffd479; border-color: rgba(255,212,121,.45); background: rgba(255,212,121,.08); }
.pf-status, .se-kopf-tags .status-badge { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 600; }
.pf-name .pf-status { padding-top: 3px; padding-bottom: 3px; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-secondary); font-size: .9rem; }
.pf-meta b { color: var(--text-strong); font-weight: 600; }
.pf-aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-self: flex-start; }
.pf-bio { position: relative; margin: 18px 0 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: rgba(255, 154, 60,.06); border-radius: 0 8px 8px 0; color: var(--text-primary); white-space: normal; }
.pf-bio-leer { color: var(--text-muted); font-style: italic; }
.pf-raster { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-top: 18px; }
.pf-spalte { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pf-karte { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); padding: 18px 20px; }
.pf-karte h3 { margin: 0 0 14px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pf-karte h3 small { text-transform: none; letter-spacing: 0; font-size: .78rem; color: var(--tech); }
.pf-karte h3 small.is-up { color: #8fe6a8; }
.pf-karte h3 small.is-down { color: #ff8a96; }
.pf-gross { font-size: 1.9rem; font-weight: 700; color: var(--text-strong); line-height: 1; }
.pf-leiste { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 14px 0 12px; background: rgba(255,255,255,.05); }
.pf-leiste span { display: block; }
.pf-anteile { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf-anteil { font-size: .8rem; color: var(--text-secondary); }
.pf-anteil i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.pf-anteil b { display: block; color: var(--text-strong); font-size: 1rem; margin-top: 2px; }
.pf-anteil em { font-style: normal; color: var(--text-muted); font-size: .75rem; }
.pf-verlauf svg { width: 100%; height: 110px; display: block; }
.pf-achse { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.pf-kampf { display: flex; gap: 18px; align-items: center; }
.pf-ring { width: 90px; height: 90px; flex: 0 0 auto; color: var(--text-strong); }
.pf-kampf-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.pf-kampf-zahlen div { text-align: center; padding: 8px 4px; border-radius: 8px; background: rgba(255,255,255,.03); }
.pf-kampf-zahlen b { display: block; font-size: 1.25rem; color: var(--text-strong); }
.pf-kampf-zahlen b.gut { color: #8fe6a8; }
.pf-kampf-zahlen b.schlecht { color: #ff8a96; }
.pf-kampf-zahlen span { font-size: .72rem; color: var(--text-muted); }
.pf-beute { margin-top: 12px; display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-secondary); padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.pf-beute b { color: var(--text-strong); }
.pf-erfolge { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.pf-erfolg { aspect-ratio: 1; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: rgba(255,255,255,.03); border: 1px solid var(--border); cursor: default; }
.pf-erfolg.bronze { border-color: rgba(205,127,50,.55); box-shadow: inset 0 0 12px rgba(205,127,50,.12); }
.pf-erfolg.silber { border-color: rgba(200,210,225,.55); box-shadow: inset 0 0 12px rgba(200,210,225,.12); }
.pf-erfolg.gold { border-color: rgba(255,212,121,.65); box-shadow: inset 0 0 12px rgba(255,212,121,.16); }
.pf-erfolg.zu { opacity: .25; filter: grayscale(1); }
.pf-planeten-karte { margin-top: 18px; }
.pf-planeten { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pf-planet { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.pf-planet:hover { border-color: rgba(255, 154, 60,.4); background: rgba(255, 154, 60,.06); }
.pf-planet > img { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; }
.pf-planet-text { min-width: 0; }
.pf-planet-text b { display: block; color: var(--text-strong); font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-planet-text span { font-size: .78rem; color: var(--tech); }
.pf-planet > img.pf-planet-mond { width: 20px; height: 20px; margin-left: auto; }
.profile-card-modal .pf-raster { grid-template-columns: 1fr; }
.profile-card-modal .pf-hero { padding: 18px 16px; }
.profile-card-modal .pf-name { font-size: 1.5rem; padding-right: 2rem; }
.profile-card-modal .pf-avatar { width: 64px; height: 64px; font-size: 1.8rem; }
@media (max-width: 820px) {
  .pf-raster { grid-template-columns: 1fr; }
  .pf-anteile { grid-template-columns: repeat(2, 1fr); }
  .pf-hero { padding: 20px 16px; }
  .pf-name { font-size: 1.55rem; }
  .pf-avatar { width: 72px; height: 72px; font-size: 2rem; }
}

/* ============================================================
   EINSTELLUNGEN (settings.twig) - Navigation links, Bereiche als Karten
   ============================================================ */
.se-rahmen { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.se-nav { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); }
.se-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; font-size: .92rem; }
.se-nav a:hover { background: rgba(255,255,255,.04); color: var(--text-strong); }
.se-nav a.an { background: rgba(255, 154, 60,.12); color: var(--text-strong); box-shadow: inset 3px 0 0 var(--accent); }
.se-nav hr { border: 0; border-top: 1px solid var(--border); margin: 6px 4px; }
.se-teil { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.se-karte { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); padding: 20px 22px; }
.se-karte h2 { margin: 0 0 4px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.se-karte > p.muted { margin: 0 0 12px; font-size: .86rem; line-height: 1.5; }
.se-gefahr { border-color: rgba(255,107,122,.35); }
.se-reihe { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.05); }
.se-kopf + .se-reihe, .se-karte > p + form > .se-reihe:first-of-type, .se-karte > p + .se-reihe { border-top: 0; }
label.se-reihe { cursor: pointer; }
.se-reihe .was { flex: 1 1 auto; min-width: 0; }
.se-reihe .was > b { display: block; color: var(--text-strong); font-weight: 500; }
.se-reihe .was > span { display: block; font-size: .8rem; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.se-reihe .wert { flex: 0 1 auto; color: var(--text-primary); text-align: right; }
.se-schalter { position: relative; width: 44px; height: 24px; flex: 0 0 auto; }
.se-schalter input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.se-schalter i { position: absolute; inset: 0; border-radius: 999px; background: #2a3344; border: 1px solid var(--border); transition: background .15s; }
.se-schalter i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #8a97ab; transition: transform .15s, background .15s; }
.se-schalter input:checked + i { background: rgba(46,204,113,.25); border-color: rgba(46,204,113,.5); }
.se-schalter input:checked + i::after { transform: translateX(20px); background: #2ecc71; }
.se-schalter input:focus-visible + i { box-shadow: 0 0 0 3px rgba(255, 154, 60,.35); }
.se-zahl { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; flex: 0 0 auto; }
.se-zahl button { width: 32px; height: 34px; border: 0; background: rgba(255,255,255,.04); color: var(--text-strong); font-size: 1rem; cursor: pointer; }
.se-zahl button:hover { background: rgba(255,255,255,.09); }
.se-zahl input { width: 54px; height: 34px; border: 0; background: var(--bg-deep); color: var(--text-strong); text-align: center; font: inherit; -moz-appearance: textfield; }
.se-zahl input::-webkit-outer-spin-button, .se-zahl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.se-kopf { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.se-kopf .pf-avatar { width: 64px; height: 64px; font-size: 1.7rem; }
.se-kopf-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.se-kopf-text .settings-name, .se-name { font-size: 1.3rem; font-weight: 600; color: var(--text-strong); }
.se-kopf-tags { display: flex; gap: 6px; flex-wrap: wrap; }
/* Rolle (Großbuchstaben, ohne Unterlängen) und Status gleich hoch und mittig;
   die Großbuchstaben sitzen sonst sichtbar zu hoch. */
.se-kopf-tags > * { display: inline-flex; align-items: center; height: 24px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.se-kopf-tags .g-pill { padding-top: 2px; font-size: .72rem; }
.se-bio { width: 100%; min-height: 84px; resize: vertical; background: var(--bg-deep); color: var(--text-strong); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; }
.se-bio:focus { outline: none; border-color: var(--accent); }
.se-zaehler { text-align: right; font-size: .75rem; color: var(--text-muted); margin-top: 4px; }
.se-fuss { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.se-fuss-links { justify-content: flex-start; }
.se-kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.se-kacheln div { padding: 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); }
.se-kacheln span { display: block; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.se-kacheln b { display: block; font-size: 1.5rem; color: var(--text-strong); margin: 4px 0 2px; }
.se-immer { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.se-push-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.se-push-knoepfe [hidden] { display: none !important; }
.se-loeschen .settings-form-row { margin: 12px 0 0; }
@media (max-width: 820px) {
  .se-rahmen { grid-template-columns: 1fr; }
  .se-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
  .se-nav a { white-space: nowrap; flex: none; }
  .se-nav hr { display: none; }
  .se-kacheln { grid-template-columns: repeat(2, 1fr); }
  .se-reihe { align-items: flex-start; }
}

/* Galaxie: kurze Meldung nach "Spionieren", direkt links neben "Aktionen"
   in der Zeile, auf die geklickt wurde (galaxy-actions.js). */
.g-spion-ort { position: relative; }
.g-spion-meldung { position: absolute; right: calc(100% + 8px); top: 50%; z-index: 20; transform: translate(6px, -50%); opacity: 0; pointer-events: none;
  white-space: nowrap; padding: 6px 12px; border-radius: 8px; background: var(--bg-elevated); border: 1px solid rgba(46,204,113,.45);
  color: var(--text-strong); font-size: .85rem; box-shadow: 0 6px 20px rgba(0,0,0,.45); transition: opacity .2s, transform .2s; }
.g-spion-meldung.an { opacity: 1; transform: translate(0, -50%); }
.g-spion-meldung.fehler { border-color: rgba(255,107,122,.55); white-space: normal; width: max-content; max-width: min(360px, 70vw); }

/* Dunkle Bildlaufleisten in Fenstern, wie im Chat. Firefox und neuere
   Chromium nehmen scrollbar-color, ältere WebKit-Browser die Pseudo-Elemente. */
.info-modal-host,
.profile-card-modal,
.modal-backdrop .modal,
.tp-body,
.vd-dialog,
.fk-schleier,
.mtb-more-sheet {
    scrollbar-width: thin;
    scrollbar-color: #233149 transparent;
}
.info-modal-host::-webkit-scrollbar,
.profile-card-modal::-webkit-scrollbar,
.modal-backdrop .modal::-webkit-scrollbar,
.tp-body::-webkit-scrollbar,
.vd-dialog::-webkit-scrollbar,
.fk-schleier::-webkit-scrollbar,
.mtb-more-sheet::-webkit-scrollbar { width: 8px; }
.info-modal-host::-webkit-scrollbar-thumb,
.profile-card-modal::-webkit-scrollbar-thumb,
.modal-backdrop .modal::-webkit-scrollbar-thumb,
.tp-body::-webkit-scrollbar-thumb,
.vd-dialog::-webkit-scrollbar-thumb,
.fk-schleier::-webkit-scrollbar-thumb,
.mtb-more-sheet::-webkit-scrollbar-thumb { background: #233149; border-radius: 6px; }

/* ============================================================
   Kontakte: Freunde und Merkliste (contacts.twig, bookmarks.js)
   ============================================================ */
.mk-farm    { --m: #7bd88f; }
.mk-gefahr  { --m: #ff6b7a; }
.mk-freund  { --m: #6cc4ff; }
.mk-kolonie { --m: #e3b45a; }
.mk-sonst   { --m: #a8b3c7; }

.kt-zahl-grau { font-size: .75rem; color: var(--text-muted); }
.card.kt-karte { padding: 0 !important; margin-bottom: 1.25rem; overflow: hidden; }
.kt-h2 { margin: 18px 18px 14px; }
.kt-h2 small { font-size: inherit; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--text-muted); }
.kt-liste { list-style: none; margin: 0; padding: 0; }
.kt-zeile { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-top: 1px solid rgba(255,255,255,.05); }
.kt-liste:first-child .kt-zeile:first-child { border-top: 0; }
.kt-anfrage { background: rgba(108,196,255,.04); }
.kt-avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, hsl(var(--h) 60% 52%), hsl(var(--h) 55% 34%)); }
.kt-wer { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.kt-wer small, .kt-ort small, .kt-notiz small { flex-basis: 100%; font-size: .78rem; color: var(--text-muted); }
.kt-wer .profile-link { font-weight: 600; }
.kt-wer .status-badge { font-size: .62rem; }
.kt-ort { flex: 0 0 130px; display: flex; flex-wrap: wrap; }
.kt-knoepfe { flex: 0 0 auto; display: flex; gap: 6px; }
.kt-form { margin: 0; display: inline; }
.kt-weg:hover { color: #ff6b7a; border-color: rgba(255,107,122,.5); }
.kt-fuss, .kt-leer { margin: 0; padding: 10px 18px 14px; }
.kt-liste + .kt-fuss { border-top: 1px solid rgba(255,255,255,.05); }
.kt-leer { padding-top: 0; }

.kt-merk { box-shadow: inset 3px 0 0 var(--m); }
.kt-bild { flex: 0 0 auto; width: 34px; height: 34px; }
.kt-bild-frei { border-radius: 50%; border: 1px dashed rgba(255,255,255,.25); box-sizing: border-box; }
.kt-merk .kt-wer { flex: 0 0 190px; }
.kt-merk .kt-wer b { flex-basis: 100%; font-weight: 600; color: var(--text-strong); }
.kt-merk .kt-wer b.muted { color: var(--text-muted); }
.kt-notiz { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; overflow-wrap: anywhere; }
.kt-notiz-text { color: var(--text-secondary); }

.kt-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 1rem; }
.kt-chip { font: inherit; font-size: .82rem; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; cursor: pointer; text-decoration: none;
    border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--text-secondary); }
.kt-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--m); }
.kt-chip b { font-weight: 600; color: var(--text-muted); }
.kt-chip:hover { color: var(--text-primary); }
.kt-chip.an { color: var(--tech); border-color: var(--tech); background: rgba(111,220,140,.06); }
.kt-sort { margin-left: auto; font-size: .82rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 10px; }
.kt-sort-a { color: var(--text-secondary); text-decoration: none; }
.kt-sort-a.an { color: var(--tech); }

.pf-freund { margin: 0; display: inline; }
.pf-freund-an { color: #8fe6a8; border-color: rgba(143,230,168,.4); }

/* Stern in der Galaxie */




/* Merkfeld unter Stern oder Stift */










@media (max-width: 760px) {
    .kt-zeile { flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; }
    .kt-wer, .kt-merk .kt-wer { flex: 1 1 calc(100% - 60px); }
    .kt-ort { flex: 1 1 auto; padding-left: 50px; }
    .kt-notiz { flex-basis: 100%; padding-left: 46px; }
    .kt-knoepfe { margin-left: auto; }
    .kt-merk .kt-knoepfe { padding-left: 46px; margin-left: 0; }
    .kt-sort { margin-left: 0; }
}
