:root {
    --hintergrund: #07111f;
    --flaeche: rgba(15, 23, 42, 0.86);
    --flaeche-hell: rgba(30, 41, 59, 0.92);
    --text: #e5eefb;
    --text-weich: #9fb0c8;
    --linie: rgba(148, 163, 184, 0.22);
    --akzent: #22c55e;
    --warnung: #f59e0b;
    --fehler: #ef4444;
    --radius: 22px;
    --schatten: 0 22px 70px rgba(0, 0, 0, 0.35);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--hintergrund); color: var(--text); }
body { overflow-x: hidden; }
a { color: inherit; }
button, input, select { font: inherit; }

.hintergrund-effekt {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.20), transparent 28%),
        radial-gradient(circle at 78% 26%, rgba(59, 130, 246, 0.18), transparent 30%),
        linear-gradient(135deg, #07111f, #111827 55%, #0f172a);
    z-index: -1;
}
.hintergrund-effekt::before {
    content: "";
    position: absolute;
    inset: -60px;
    background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    animation: raster 16s linear infinite;
}
@keyframes raster { from { transform: translate(0,0); } to { transform: translate(42px,42px); } }

.start-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
    padding: clamp(20px, 4vw, 56px);
}
.held h1 { font-size: clamp(42px, 7vw, 92px); line-height: 0.92; margin: 16px 0; letter-spacing: -0.06em; }
.held p { color: var(--text-weich); font-size: clamp(17px, 2vw, 22px); max-width: 760px; line-height: 1.55; }
.logo-marke { display: inline-flex; padding: 10px 16px; border: 1px solid var(--linie); border-radius: 999px; letter-spacing: 0.22em; color: #c7f9d4; background: rgba(34,197,94,0.08); }
.held-kacheln { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.held-kacheln span { padding: 11px 14px; border: 1px solid var(--linie); border-radius: 14px; background: rgba(15,23,42,0.62); color: var(--text-weich); }
.auth-karten { display: grid; gap: 18px; }

.karte, .zentrumskarte {
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    backdrop-filter: blur(18px);
}
.karte { padding: 22px; }
.zentrumskarte { width: min(680px, calc(100% - 32px)); margin: 10vh auto; padding: 30px; }
.formular { display: grid; gap: 14px; }
.formular h2, .karte h1, .karte h2 { margin: 0 0 8px; }
label { display: grid; gap: 7px; color: var(--text-weich); font-size: 14px; }
input, select {
    width: 100%;
    padding: 13px 14px;
    color: var(--text);
    border: 1px solid var(--linie);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.55);
    outline: none;
}
input:focus, select:focus { border-color: rgba(34,197,94,0.75); box-shadow: 0 0 0 4px rgba(34,197,94,0.10); }
.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 17px;
    color: #06210f;
    text-decoration: none;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #86efac, #22c55e);
    box-shadow: 0 12px 28px rgba(34,197,94,0.23);
    cursor: pointer;
    font-weight: 800;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.knopf:hover { transform: translateY(-1px); filter: brightness(1.05); }
.knopf:active { transform: translateY(1px) scale(.99); }
.knopf.gross { width: 100%; min-height: 52px; }
.knopf.klein { min-height: 36px; padding: 8px 12px; border-radius: 11px; font-size: 13px; }
.knopf.sekundaer { color: var(--text); background: rgba(15,23,42,0.82); border: 1px solid var(--linie); box-shadow: none; }
.textlink { color: #93c5fd; }
.klein { color: var(--text-weich); font-size: 13px; }
.hinweis { padding: 13px 15px; border-radius: 14px; border: 1px solid var(--linie); }
.hinweis.fehler { background: rgba(239,68,68,0.13); border-color: rgba(239,68,68,0.35); }
.hinweis.erfolg { background: rgba(34,197,94,0.13); border-color: rgba(34,197,94,0.35); }

.app-kopf, .spiel-kopf {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px max(16px, env(safe-area-inset-left)) 14px max(16px, env(safe-area-inset-left));
    background: rgba(2, 6, 23, 0.82);
    border-bottom: 1px solid var(--linie);
    backdrop-filter: blur(18px);
}
.app-kopf strong, .spiel-kopf strong { display: block; letter-spacing: 0.12em; }
.app-kopf span, .spiel-kopf span { color: var(--text-weich); font-size: 13px; }
.app-kopf nav { display: flex; align-items: center; gap: 14px; color: var(--text-weich); }
.lobby-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; padding: 18px; }
.breite-karte { grid-column: 1 / -1; }
.bereich-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spielliste { display: grid; gap: 12px; }
.spielkarte, .leerkarte {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border: 1px solid var(--linie);
    border-radius: 18px;
    background: rgba(2,6,23,0.36);
}
.spielkarte h3 { margin: 0 0 5px; }
.spielkarte p { margin: 0 0 4px; color: var(--text-weich); }
.spielkarte small { color: #7f91aa; }
.spielkarte-aktion { flex: 0 0 auto; }
.ladezustand { color: var(--text-weich); }

.spiel-seite { min-height: 100vh; background: radial-gradient(circle at 50% 10%, rgba(34,197,94,0.12), transparent 30%), #07111f; }
.zurueck { text-decoration: none; color: var(--text-weich); }
.symbolknopf {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--text);
    background: rgba(15,23,42,0.85);
    border: 1px solid var(--linie);
    border-radius: 13px;
    cursor: pointer;
}
.rohstoff-leiste {
    position: sticky;
    top: 71px;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 10px 14px;
    background: rgba(7, 17, 31, 0.88);
    border-bottom: 1px solid var(--linie);
    backdrop-filter: blur(18px);
}
.rohstoff {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 8px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--linie);
    border-radius: 14px;
    background: rgba(15,23,42,0.62);
}
.rohstoff span { grid-row: span 2; font-size: 20px; }
.rohstoff small { color: var(--text-weich); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rohstoff strong { font-size: 18px; }

.spielfeld-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 16px;
    padding: 16px;
    padding-bottom: 92px;
}
.kartenbereich {
    position: relative;
    min-height: calc(100vh - 190px);
    border: 1px solid var(--linie);
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 20%, rgba(34,197,94,0.18), transparent 25%),
        radial-gradient(circle at 72% 70%, rgba(59,130,246,0.16), transparent 28%),
        linear-gradient(135deg, #0f2a32, #172554 55%, #111827);
    box-shadow: var(--schatten);
}
.kartenbereich::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: .65;
}
.linien-ebene, .gebiet-ebene { position: absolute; inset: 0; width: 100%; height: 100%; }
.linien-ebene { z-index: 1; }
.gebiet-linie { stroke: rgba(203,213,225,0.34); stroke-width: .42; stroke-dasharray: 1.2 1.1; animation: linienfluss 5s linear infinite; }
@keyframes linienfluss { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -12; } }
.gebiet-ebene { z-index: 2; }
.gebiet-knoten {
    position: absolute;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: clamp(56px, 7vw, 86px);
    min-height: clamp(56px, 7vw, 86px);
    padding: 6px;
    color: white;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.28), transparent 35%), var(--gebiet-farbe);
    border: 2px solid rgba(255,255,255,0.44);
    border-radius: 50%;
    box-shadow: 0 14px 36px rgba(0,0,0,0.38), 0 0 0 7px color-mix(in srgb, var(--gebiet-farbe) 23%, transparent);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.gebiet-knoten:hover, .gebiet-knoten.gewaehlt { transform: translate(-50%, -50%) scale(1.1); filter: brightness(1.08); box-shadow: 0 18px 40px rgba(0,0,0,0.44), 0 0 0 10px color-mix(in srgb, var(--gebiet-farbe) 32%, transparent); }
.gebiet-icon { font-size: 18px; }
.gebiet-name { max-width: 86px; font-size: 10px; line-height: 1.05; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.gebiet-truppen { position: absolute; right: -4px; bottom: -4px; min-width: 26px; height: 26px; padding: 0 5px; display: grid; place-items: center; background: rgba(2,6,23,.92); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 12px; font-weight: 900; }
.karten-hinweis { position: absolute; left: 18px; bottom: 18px; z-index: 3; padding: 11px 14px; background: rgba(2,6,23,0.68); border: 1px solid var(--linie); border-radius: 999px; color: var(--text-weich); }
.aktionsbereich {
    max-height: calc(100vh - 188px);
    overflow: auto;
    border: 1px solid var(--linie);
    border-radius: 28px;
    background: var(--flaeche);
    box-shadow: var(--schatten);
    padding: 18px;
}
.leerzustand { color: var(--text-weich); }
.gebiet-details h2 { margin: 0 0 6px; }
.gebiet-details p { color: var(--text-weich); margin: 0 0 12px; }
.miniwerte { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.miniwerte span { padding: 10px; border: 1px solid var(--linie); border-radius: 14px; background: rgba(2,6,23,.34); color: var(--text-weich); }
.miniwerte strong { color: var(--text); }
.gebaeude-liste { padding-left: 18px; color: var(--text-weich); }
.gebaeude-liste small { color: #86efac; }
.aktionsgruppe { margin-top: 18px; }
.aktionsgruppe h3 { margin: 0 0 10px; }
.aktionsraster { display: grid; gap: 9px; }
.aktionskarte {
    width: 100%;
    text-align: left;
    display: grid;
    gap: 5px;
    padding: 14px;
    color: var(--text);
    border: 1px solid var(--linie);
    border-radius: 18px;
    background: rgba(15,23,42,0.72);
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.aktionskarte:hover { transform: translateY(-1px); border-color: rgba(34,197,94,.5); background: rgba(30,41,59,.82); }
.aktionskarte span, .aktionskarte small { color: var(--text-weich); }
.aktionskarte.warnung { border-color: rgba(245,158,11,.32); }
.aktionskarte.positiv { border-color: rgba(34,197,94,.32); }
.untere-leiste {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 10px;
    padding: 12px max(12px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
    background: rgba(2,6,23,.86);
    border-top: 1px solid var(--linie);
    backdrop-filter: blur(18px);
}
.bericht { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 18px; background: rgba(2,6,23,.72); backdrop-filter: blur(8px); }
.bericht.versteckt { display: none; }
.bericht-box { position: relative; width: min(720px, 100%); max-height: 82vh; overflow: auto; padding: 22px; border: 1px solid var(--linie); border-radius: 24px; background: #0f172a; box-shadow: var(--schatten); }
.rechts { position: absolute; top: 12px; right: 12px; }
.ereignis { padding: 12px; border-bottom: 1px solid var(--linie); }
.ereignis small { color: var(--text-weich); }
.ereignis strong { display: block; margin: 4px 0; }
.ereignis p { margin: 0; color: var(--text-weich); }
.toast-zone { position: fixed; right: 16px; bottom: 90px; z-index: 60; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.toast { transform: translateY(12px); opacity: 0; padding: 13px 15px; border-radius: 16px; border: 1px solid var(--linie); background: rgba(15,23,42,.96); box-shadow: var(--schatten); transition: .22s ease; }
.toast.sichtbar { transform: translateY(0); opacity: 1; }
.toast.erfolg { border-color: rgba(34,197,94,.42); }
.toast.fehler { border-color: rgba(239,68,68,.48); }
.pulse { animation: pulse .42s ease; }
@keyframes pulse { 0% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.18); } 100% { transform: translate(-50%,-50%) scale(1); } }

@media (max-width: 920px) {
    .start-layout, .lobby-layout, .spielfeld-layout { grid-template-columns: 1fr; }
    .start-layout { align-items: stretch; }
    .rohstoff-leiste { grid-template-columns: repeat(3, 1fr); top: 69px; }
    .kartenbereich { min-height: 62vh; border-radius: 22px; }
    .aktionsbereich { max-height: none; border-radius: 22px; }
    .spielfeld-layout { padding-bottom: 112px; }
}

@media (max-width: 560px) {
    .app-kopf, .spiel-kopf { padding: 11px; }
    .rohstoff-leiste { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
    .rohstoff { padding: 8px; }
    .rohstoff small { font-size: 11px; }
    .rohstoff strong { font-size: 15px; }
    .spielkarte { align-items: stretch; flex-direction: column; }
    .spielkarte-aktion, .spielkarte-aktion .knopf { width: 100%; }
    .gebiet-knoten { width: 58px; min-height: 58px; }
    .gebiet-name { display: none; }
    .untere-leiste { grid-template-columns: 1fr; }
    .toast-zone { bottom: 128px; }
}

/* Update 1.1: SEO-/Rechtsseiten und Einzelspieler-Hinweise */
.seiten-footer {
    margin: 28px auto 0;
    max-width: 1180px;
    padding: 22px;
    color: rgba(226, 232, 240, .86);
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto;
    align-items: center;
}
.seiten-footer div { display: grid; gap: 4px; }
.seiten-footer span, .seiten-footer small { color: rgba(226, 232, 240, .72); }
.seiten-footer nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.seiten-footer a { color: #bfdbfe; text-decoration: none; }
.seiten-footer a:hover { text-decoration: underline; }
.recht-seite {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(59,130,246,.28), transparent 36%), linear-gradient(135deg, #0f172a, #111827 55%, #0f766e);
    color: #e5e7eb;
}
.recht-kopf {
    max-width: 980px;
    margin: 0 auto;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.recht-kopf nav { display: flex; gap: 12px; }
.logo-link, .recht-kopf a { color: #f8fafc; text-decoration: none; }
.logo-link { font-weight: 900; letter-spacing: .12em; }
.recht-inhalt {
    max-width: 980px;
    margin: 0 auto 20px;
    line-height: 1.7;
}
.recht-inhalt h1 { font-size: clamp(2rem, 6vw, 4rem); margin-top: 0; }
.recht-inhalt h2 { margin-top: 1.8rem; color: #ffffff; }
.recht-inhalt a { color: #93c5fd; }
.recht-inhalt p { color: rgba(226, 232, 240, .86); }
.spiel-erstellen select { cursor: pointer; }
.spielkarte small::first-letter { text-transform: uppercase; }
@media (max-width: 760px) {
    .seiten-footer { grid-template-columns: 1fr; padding: 18px; }
    .seiten-footer nav { justify-content: flex-start; }
    .recht-kopf { flex-direction: column; align-items: flex-start; }
}

/* Update 1.2: Kaiser-Flair, einfachere Optik */
:root {
    --hintergrund: #1f1307;
    --flaeche: rgba(255, 248, 226, 0.92);
    --flaeche-hell: rgba(255, 252, 240, 0.97);
    --text: #2b1a0a;
    --text-weich: #6f5734;
    --linie: rgba(107, 75, 34, 0.24);
    --akzent: #b7791f;
    --warnung: #b45309;
    --fehler: #b91c1c;
    --schatten: 0 22px 70px rgba(73, 42, 10, 0.24);
}
html, body { background: #2b1a0a; color: var(--text); }
.hintergrund-effekt {
    background:
        radial-gradient(circle at 20% 18%, rgba(245, 158, 11, 0.24), transparent 28%),
        radial-gradient(circle at 80% 28%, rgba(120, 53, 15, 0.20), transparent 30%),
        linear-gradient(135deg, #2b1a0a, #5f3b12 58%, #1f1307);
}
.hintergrund-effekt::before {
    background-image:
        linear-gradient(rgba(255,238,186,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,238,186,0.08) 1px, transparent 1px);
}
.logo-marke {
    color: #ffe9a9;
    border-color: rgba(255, 232, 167, 0.42);
    background: rgba(120, 53, 15, 0.28);
}
.held h1 { color: #ffefbd; text-shadow: 0 4px 24px rgba(0,0,0,.28); }
.held p { color: #f4d99b; }
.held-kacheln span { background: rgba(255, 248, 226, 0.12); color: #ffe7ad; border-color: rgba(255, 231, 173, 0.26); }
.karte, .zentrumskarte, .aktionsbereich, .bericht-box {
    background: var(--flaeche);
    color: var(--text);
    border-color: var(--linie);
}
.formular h2, .karte h1, .karte h2, .zentrumskarte h1 { color: #3a240c; }
input, select {
    color: #2b1a0a;
    background: rgba(255, 252, 240, 0.86);
    border-color: rgba(107, 75, 34, 0.28);
}
input:focus, select:focus { border-color: rgba(183, 121, 31, 0.75); box-shadow: 0 0 0 4px rgba(183, 121, 31, 0.14); }
.knopf {
    color: #2b1604;
    background: linear-gradient(135deg, #ffe08a, #d49a2a);
    box-shadow: 0 12px 28px rgba(154, 98, 18, 0.24);
}
.knopf.sekundaer {
    color: #3a240c;
    background: rgba(255, 248, 226, 0.88);
    border-color: rgba(107,75,34,.25);
}
.app-kopf, .spiel-kopf, .rohstoff-leiste {
    background: rgba(48, 29, 7, 0.90);
    color: #fff4c9;
    border-color: rgba(255, 231, 173, 0.18);
}
.app-kopf span, .spiel-kopf span, .zurueck, .app-kopf nav { color: #e6c77c; }
.rohstoff-leiste { grid-template-columns: repeat(4, 1fr); top: 71px; }
.rohstoff {
    background: rgba(255, 248, 226, 0.13);
    color: #fff4c9;
    border-color: rgba(255, 232, 167, 0.18);
}
.rohstoff small { color: #f3d68e; }
.spiel-seite {
    background:
        radial-gradient(circle at 48% 4%, rgba(255, 224, 138, 0.18), transparent 30%),
        linear-gradient(180deg, #2b1a0a 0%, #4b2b0a 100%);
}
.kartenbereich {
    background:
        radial-gradient(circle at 22% 22%, rgba(103, 152, 67, 0.33), transparent 22%),
        radial-gradient(circle at 72% 68%, rgba(50, 105, 69, 0.32), transparent 27%),
        linear-gradient(135deg, #6f8b45, #b69855 54%, #7a4a1a);
    border-color: rgba(255, 232, 167, 0.22);
}
.kartenbereich::before {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.08) 0 1px, transparent 2px),
        linear-gradient(rgba(75, 45, 8,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(75,45,8,0.08) 1px, transparent 1px);
    background-size: 72px 72px, 34px 34px, 34px 34px;
}
.gebiet-knoten {
    border-radius: 20px 20px 26px 26px;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.30), transparent 34%), linear-gradient(135deg, color-mix(in srgb, var(--gebiet-farbe) 78%, #f4d99b), var(--gebiet-farbe));
    border-color: rgba(255, 246, 211, .68);
    box-shadow: 0 14px 34px rgba(49,28,5,.34), 0 0 0 7px color-mix(in srgb, var(--gebiet-farbe) 20%, transparent);
}
.gebiet-knoten::before {
    content: "♜";
    position: absolute;
    top: -13px;
    font-size: 18px;
    color: #ffe6a0;
    text-shadow: 0 2px 5px rgba(0,0,0,.35);
}
.gebiet-name { color: #fff7d9; font-weight: 800; }
.gebiet-truppen { background: rgba(49, 28, 5, .94); color: #ffe6a0; }
.karten-hinweis { background: rgba(49, 28, 5, 0.72); color: #ffe6a0; }
.gebiet-details h2 { color: #3a240c; }
.aktionskarte {
    background: rgba(255, 252, 240, 0.86);
    color: #2b1a0a;
    border-color: rgba(107,75,34,.22);
}
.aktionskarte:hover { border-color: rgba(183,121,31,.55); box-shadow: 0 14px 32px rgba(99,58,10,.16); }
.aktionskarte.positiv { background: linear-gradient(135deg, rgba(240, 199, 94, .30), rgba(255,252,240,.9)); }
.aktionskarte.warnung { background: linear-gradient(135deg, rgba(185, 28, 28, .16), rgba(255,252,240,.9)); }
.gebaeude-liste li, .miniwerte span, .spielkarte, .leerkarte {
    background: rgba(255, 252, 240, 0.68);
    color: #3a240c;
    border-color: rgba(107,75,34,.18);
}
.miniwerte span strong, .spielkarte h3, .aktionskarte strong { color: #3a240c; }
.aktionskarte span, .aktionskarte small, .klein, .spielkarte p, .spielkarte small, label { color: #6f5734; }
.symbolknopf { color: #fff4c9; background: rgba(49,28,5,.84); border-color: rgba(255,231,173,.24); }
.untere-leiste { background: linear-gradient(180deg, transparent, rgba(43,26,10,.92)); }
.bericht { background: rgba(43,26,10,.55); }
.toast { background: rgba(49,28,5,.96); color: #fff4c9; border-color: rgba(255,231,173,.22); }
@media (max-width: 720px) {
    .rohstoff-leiste { grid-template-columns: repeat(2, 1fr); }
}

/* Update 1.3: echter Kaiser-Dialog statt Dashboard-Steuerung */
.kaiser-dialog-seite .rohstoff-leiste {
    position: sticky;
}
.kaiser-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 18px;
    padding: 18px;
    padding-bottom: 96px;
    align-items: start;
}
.hofdialog {
    position: relative;
    min-height: calc(100vh - 190px);
    padding: clamp(18px, 4vw, 34px);
    border: 1px solid rgba(107,75,34,.28);
    border-radius: 28px;
    color: #2b1a0a;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.62), transparent 22%),
        linear-gradient(135deg, rgba(255, 250, 233, .98), rgba(239, 211, 151, .96));
    box-shadow: 0 24px 72px rgba(49, 28, 5, .28);
    overflow: hidden;
}
.hofdialog::before {
    content: "";
    position: absolute;
    inset: 12px;
    pointer-events: none;
    border: 1px solid rgba(107,75,34,.22);
    border-radius: 22px;
}
.hofdialog::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 121, 31, .18), transparent 68%);
    pointer-events: none;
}
.hofdialog-kopf {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}
.hofdialog-kopf .krone {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    color: #4b2b0a;
    background: linear-gradient(135deg, #ffe08a, #c5811f);
    box-shadow: 0 12px 26px rgba(107,75,34,.25);
    font-size: 34px;
}
.hofdialog-kopf small {
    display: block;
    margin-bottom: 4px;
    color: #7a4a1a;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 900;
}
.hofdialog h1 {
    margin: 0;
    color: #2b1a0a;
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    line-height: .98;
    letter-spacing: -.04em;
}
.dialog-text {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 0 18px;
    color: #4b3214;
    font-size: clamp(1.05rem, 1.8vw, 1.32rem);
    line-height: 1.55;
}
.dialog-hinweis {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    padding: 15px;
    color: #3a240c;
    border: 1px solid rgba(107,75,34,.22);
    border-radius: 18px;
    background: rgba(255,252,240,.62);
    line-height: 1.5;
}
.kaiser-werte {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    padding: 8px 11px;
    border-radius: 999px;
    color: #fff6d7;
    background: linear-gradient(135deg, #4b2b0a, #7a4a1a);
    font-weight: 900;
}
.dialog-optionen {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}
.dialog-option {
    width: 100%;
    min-height: 64px;
    display: grid;
    gap: 5px;
    text-align: left;
    padding: 15px 17px;
    border: 1px solid rgba(107,75,34,.24);
    border-radius: 18px;
    color: #2b1a0a;
    background: rgba(255,252,240,.82);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dialog-option:hover {
    transform: translateY(-1px);
    border-color: rgba(183,121,31,.55);
    box-shadow: 0 14px 28px rgba(107,75,34,.16);
}
.dialog-option:active { transform: translateY(1px) scale(.995); }
.dialog-option strong {
    font-size: 1rem;
    color: #321c07;
}
.dialog-option span {
    color: #6f5734;
    line-height: 1.35;
}
.dialog-option.positiv {
    background: linear-gradient(135deg, rgba(255,224,138,.82), rgba(255,252,240,.95));
    border-color: rgba(183,121,31,.48);
}
.dialog-option.warnung {
    background: linear-gradient(135deg, rgba(185,28,28,.14), rgba(255,252,240,.95));
    border-color: rgba(185,28,28,.26);
}
.reichsansicht {
    display: grid;
    gap: 10px;
}
.reichsansicht-kopf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid rgba(255,231,173,.18);
    border-radius: 18px;
    color: #fff4c9;
    background: rgba(49,28,5,.78);
}
.reichsansicht-kopf strong { display: block; }
.reichsansicht-kopf span { display: block; color: #e6c77c; font-size: 12px; }
.kartenbereich-dialog {
    min-height: calc(100vh - 260px);
    border-radius: 24px;
}
.kaiser-unterleiste {
    grid-template-columns: 1fr 180px;
}
.provinzliste-dialog {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}
.provinzzeile {
    width: 100%;
    display: grid;
    gap: 3px;
    text-align: left;
    padding: 11px 13px;
    border: 1px solid rgba(107,75,34,.20);
    border-radius: 14px;
    color: #2b1a0a;
    background: rgba(255, 252, 240, .72);
    cursor: pointer;
}
.provinzzeile strong { color: #321c07; }
.provinzzeile span { color: #6f5734; font-size: 13px; }
.karten-vollbild {
    position: fixed;
    inset: 0;
    z-index: 45;
    padding: 18px;
    color: #fff4c9;
    background: rgba(43,26,10,.92);
    backdrop-filter: blur(10px);
}
.karten-vollbild.versteckt { display: none; }
.karten-vollbild h2 {
    margin: 0 58px 14px 0;
}
.kartenbereich-vollbild {
    height: calc(100vh - 90px);
    min-height: 0;
}
.kaiser-dialog-seite .gebiet-knoten.gewaehlt {
    outline: 4px solid rgba(255, 224, 138, .92);
}
@media (max-width: 980px) {
    .kaiser-layout { grid-template-columns: 1fr; }
    .hofdialog { min-height: auto; }
    .kartenbereich-dialog { min-height: 54vh; }
}
@media (max-width: 560px) {
    .kaiser-layout { padding: 10px; padding-bottom: 132px; }
    .hofdialog { border-radius: 20px; padding: 18px; }
    .hofdialog::before { inset: 8px; border-radius: 16px; }
    .hofdialog-kopf { gap: 11px; }
    .hofdialog-kopf .krone { width: 50px; height: 50px; font-size: 28px; border-radius: 15px; }
    .dialog-option { min-height: 58px; padding: 13px; }
    .kaiser-unterleiste { grid-template-columns: 1fr; }
    .reichsansicht-kopf { align-items: stretch; flex-direction: column; }
    .reichsansicht-kopf .knopf { width: 100%; }
}
