:root {
    --hintergrund: #f5f7fb;
    --flaeche: #ffffff;
    --flaeche2: #f0f3f8;
    --text: #121826;
    --text2: #243044;
    --muted: #697386;
    --rand: #dfe5ef;
    --rand2: #eef2f7;
    --akzent: #2563eb;
    --akzentDunkel: #1d4ed8;
    --akzentHell: #eff6ff;
    --gruen: #059669;
    --gruenHell: #ecfdf5;
    --rot: #dc2626;
    --rotHell: #fef2f2;
    --gelb: #d97706;
    --schatten: 0 18px 48px rgba(15, 23, 42, 0.08);
    --radius: 22px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--hintergrund);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea, select {
    font: inherit;
}

button {
    border: 0;
    border-radius: 14px;
    background: var(--akzent);
    color: white;
    padding: 11px 17px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
    transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

button:hover {
    background: var(--akzentDunkel);
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

button.sekundaer {
    background: var(--flaeche2);
    color: var(--text2);
    border: 1px solid var(--rand);
    box-shadow: none;
}

button.sekundaer:hover {
    background: #e8edf5;
}

button.gefahr {
    background: var(--rot);
}

button.gefahr:hover {
    background: #b91c1c;
}

button.klein {
    padding: 8px 11px;
    border-radius: 11px;
    font-size: 0.92rem;
}

button.navKnopf {
    padding: 8px 11px;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
    border: 1px solid transparent;
}

button.navKnopf:hover {
    background: var(--flaeche2);
    color: var(--text);
    transform: none;
}

input, textarea, select {
    width: 100%;
    border: 1px solid var(--rand);
    border-radius: 14px;
    background: white;
    color: var(--text);
    padding: 12px 13px;
    font-size: 16px;
    outline: none;
    margin-top: 7px;
    transition: border 0.12s ease, box-shadow 0.12s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

select option {
    color: var(--text);
}

label {
    display: block;
    color: var(--text2);
    font-weight: 720;
    font-size: 0.92rem;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    margin-bottom: 12px;
}

h2 {
    letter-spacing: -0.035em;
    margin-bottom: 10px;
}

h3 {
    letter-spacing: -0.025em;
}

.kopfleiste {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--rand2);
}

.kopfleiste .logo {
    font-weight: 950;
    letter-spacing: -0.045em;
    font-size: 1.15rem;
}

.kopfleiste nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

.kopfleiste nav a {
    color: var(--muted);
    padding: 8px 11px;
    border-radius: 999px;
    font-weight: 650;
}

.kopfleiste nav a.aktiv, .kopfleiste nav a:hover {
    color: var(--text);
    background: var(--flaeche2);
}

.seite {
    width: min(1120px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 54px 0;
}

.hero {
    min-height: calc(100vh - 82px);
    display: grid;
    align-content: center;
    gap: 28px;
}

.hero h1 {
    font-size: clamp(2.7rem, 7vw, 6rem);
    max-width: 900px;
}

.heroText {
    max-width: 720px;
}

.untertitel {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

.label {
    color: var(--akzent);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.76rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.kartenraster {
    display: grid;
    gap: 16px;
}

.kartenraster.drei {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aktionskarte, .panel {
    background: var(--flaeche);
    border: 1px solid var(--rand2);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
}

.aktionskarte {
    padding: 24px;
    min-height: 172px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aktionskarte span {
    color: var(--akzent);
    font-weight: 900;
}

.aktionskarte strong {
    font-size: 1.75rem;
    letter-spacing: -0.04em;
}

.aktionskarte small {
    color: var(--muted);
    font-size: 1rem;
}

.panel {
    padding: 22px;
}

.panel.gross {
    padding: 30px;
}

.kompaktPanel {
    padding: 18px;
}

.panelKopf, .builderOben {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panelKopf.ohneRand {
    margin-bottom: 12px;
}

.panelKopf h1, .panelKopf h2, .builderOben h1 {
    margin-bottom: 0;
}

.builderLayout, .appLayout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    width: min(1480px, calc(100vw - 32px));
    margin: 22px auto;
}

.seitenleiste {
    min-width: 0;
}

.hauptbereich {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.builderKarte {
    min-height: calc(100vh - 120px);
}

.formularRaster {
    display: grid;
    gap: 16px;
}

.formularRaster.zwei {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vollBreite {
    grid-column: 1 / -1;
}

.buttonreihe {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    align-items: center;
}

.buttonreihe.breit button {
    flex: 1;
}

.listenbox {
    display: grid;
    gap: 10px;
}

.listenEintrag, .leererZustand {
    border: 1px solid var(--rand);
    background: #fbfcff;
    border-radius: 16px;
    padding: 14px;
}

.listenEintrag {
    cursor: pointer;
    transition: border 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.listenEintrag:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.35);
}

.listenEintrag.aktiv {
    border-color: rgba(37, 99, 235, 0.55);
    background: var(--akzentHell);
}

.listenEintrag strong {
    display: block;
    margin-bottom: 5px;
}

.listenEintrag small, .leererZustand {
    color: var(--muted);
}

.schrittLeiste {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 22px;
    padding: 8px;
    background: var(--flaeche2);
    border-radius: 18px;
    border: 1px solid var(--rand2);
}

.schrittKnopf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
    border: 1px solid transparent;
}

.schrittKnopf:hover {
    background: white;
    color: var(--text);
    transform: none;
}

.schrittKnopf.aktiv {
    background: white;
    color: var(--akzent);
    border-color: var(--rand);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.schrittKnopf span {
    width: 25px;
    height: 25px;
    border-radius: 999px;
    background: var(--akzentHell);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
}

.builderSchritt {
    display: none;
}

.builderSchritt.aktiv {
    display: block;
}

.builderNavigation {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--rand2);
}

.modusBox {
    border: 1px solid var(--rand2);
    background: #fbfcff;
    border-radius: 20px;
    padding: 22px;
}

.checkboxKarte {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid var(--rand);
    border-radius: 16px;
    background: white;
}

.checkboxKarte input {
    width: auto;
    margin-top: 3px;
}

.checkboxKarte span {
    display: block;
    color: var(--text);
    font-weight: 800;
}

.checkboxKarte small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    margin-top: 4px;
}

.tooltip {
    display: inline-flex;
    width: 19px;
    height: 19px;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    border-radius: 999px;
    background: var(--akzentHell);
    color: var(--akzent);
    border: 1px solid rgba(37, 99, 235, 0.18);
    font-size: 0.74rem;
    font-weight: 900;
    cursor: help;
}

.hinweisBox {
    display: block;
    border: 1px solid var(--rand);
    background: #fbfcff;
    border-radius: 16px;
    padding: 14px;
    color: var(--muted);
    line-height: 1.45;
}

.hinweisBox strong {
    color: var(--text);
}

.fragenListe {
    display: grid;
    gap: 16px;
    margin-top: 14px;
}

.frageKarte {
    border: 1px solid var(--rand2);
    background: #ffffff;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.frageKopf {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.frageKopf h3 {
    margin-bottom: 4px;
}

.frageKopf small {
    color: var(--muted);
}

.antwortEditor {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--rand2);
}

.antwortEditorKopf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.optionenListe {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.optionZeile {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: end;
}

.checkboxZeile {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    white-space: nowrap;
}

.checkboxZeile input {
    width: auto;
    margin: 0;
}

.checkboxZeile.kompakt {
    padding-bottom: 12px;
}

.meldung {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #111827;
    color: white;
    border-radius: 999px;
    padding: 12px 18px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.3);
    z-index: 80;
    max-width: min(680px, calc(100vw - 32px));
    text-align: center;
}

.versteckt {
    display: none !important;
}

.loginLayout {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    padding: 24px;
}

.loginKarte {
    width: min(520px, 100%);
    display: grid;
    gap: 16px;
}

.showBody {
    background: #07111f;
    color: #f8fafc;
}

.showBody .kopfleiste {
    background: rgba(7, 17, 31, 0.82);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.showBody .kopfleiste nav a, .showBody button.navKnopf {
    color: #94a3b8;
}

.showBody .kopfleiste nav a.aktiv, .showBody .kopfleiste nav a:hover, .showBody button.navKnopf:hover {
    background: rgba(255, 255, 255, 0.09);
    color: white;
}

.showBody .panel {
    background: #0f1b2d;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.showBody input, .showBody select, .showBody textarea {
    background: #111f35;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.showBody label, .showBody .untertitel {
    color: #94a3b8;
}

.showLayout {
    width: min(1540px, calc(100vw - 32px));
    margin: 22px auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
}

.showLayout.spielLaeuft {
    grid-template-columns: minmax(0, 1fr);
    width: min(1600px, calc(100vw - 32px));
}

.showLayout.spielLaeuft .showSidebar {
    display: none;
}

.showHauptkarte {
    min-width: 0;
}

.showSidebar {
    align-self: start;
    position: sticky;
    top: 88px;
}

.showKopf {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.showKopf.kompakt {
    justify-content: flex-end;
    margin-bottom: 0;
}

.showKopf.kompakt > div:first-child {
    display: none;
}

.lobbyCode {
    font-size: clamp(3.2rem, 10vw, 7rem);
    font-weight: 950;
    letter-spacing: 0.08em;
    line-height: 1;
    color: white;
}

.kleinerLobbyCode {
    position: fixed;
    right: 22px;
    bottom: 20px;
    z-index: 60;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #dbeafe;
    padding: 10px 13px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.08em;
    font-size: 0.92rem;
}

.showSteuerung {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.showInhalt {
    margin-top: 18px;
}

.warteraumAnzeige h2 {
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    line-height: 0.98;
    margin-bottom: 10px;
}

.statusPille, .prozentBadge, .frageMetaZeile span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    border-radius: 999px;
    padding: 9px 13px;
    background: rgba(37, 99, 235, 0.14);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.18);
    font-weight: 900;
}

.zahlenGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.zahlenGrid div {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
}

.zahlenGrid strong {
    display: block;
    font-size: 2.1rem;
}

.zahlenGrid span {
    color: #94a3b8;
}

.showFrageMinimal, .showAuswertung, .showEnde {
    min-height: calc(100vh - 170px);
    display: grid;
    align-content: start;
    gap: 22px;
}

.showFrageMinimal h1, .showAuswertung h1, .showEnde h1 {
    font-size: clamp(3.2rem, 7.5vw, 7.5rem);
    line-height: 0.98;
    max-width: 1400px;
}

.frageMetaZeile {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.timerRing {
    height: 15px;
    width: 100%;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    overflow: hidden;
}

.timerBalken {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #22c55e);
    border-radius: inherit;
    transition: width 0.18s linear;
}

.timerText {
    margin-top: 8px;
    margin-bottom: 0;
}

.antwortRaster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.antwortKachel, .eingabeHinweisGross {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 24px;
    font-weight: 850;
    font-size: clamp(1.3rem, 2.5vw, 2.4rem);
    color: #f8fafc;
}

.loesungBox {
    background: rgba(5, 150, 105, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.22);
    color: #bbf7d0;
    border-radius: 22px;
    padding: 22px;
    font-size: clamp(1.6rem, 3.2vw, 3rem);
    font-weight: 900;
}

.zweiSpaltenShow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.spielerListe {
    display: grid;
    gap: 10px;
}

.spielerChip {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.spielerChip span {
    color: #94a3b8;
    font-size: 0.9rem;
}

.spielerChip.ausgeschieden {
    opacity: 0.48;
}

.statistikListe {
    display: grid;
    gap: 12px;
}

.statistikZeile {
    display: grid;
    grid-template-columns: 180px 1fr 48px;
    gap: 12px;
    align-items: center;
}

.statistikBalkenAussen {
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
}

.statistikBalkenInnen {
    height: 100%;
    background: #60a5fa;
    border-radius: inherit;
}

.rangliste {
    display: grid;
    gap: 10px;
}

.rangEintrag {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rangEintrag span:last-child {
    color: #94a3b8;
}

.feedbackBox {
    border: 1px solid var(--rand);
    background: #fbfcff;
    border-radius: 18px;
    padding: 18px;
}

.feedbackBox.richtig {
    background: var(--gruenHell);
    border-color: rgba(5, 150, 105, 0.25);
}

.feedbackBox.falsch {
    background: var(--rotHell);
    border-color: rgba(220, 38, 38, 0.22);
}

.spielerBody {
    background: radial-gradient(circle at top, #eaf2ff, #f8fafc 45%, #eef2f7);
}

.spielerLayout {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.spielerKarte {
    width: min(560px, 100%);
}

.spielerKarte h1 {
    font-size: clamp(2rem, 9vw, 3.3rem);
}

.spielerKarte label {
    margin-bottom: 14px;
}

.spielerStatusZeile {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.miniWerte {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.miniWerte span {
    background: var(--flaeche2);
    border: 1px solid var(--rand);
    border-radius: 999px;
    padding: 8px 11px;
    font-weight: 800;
    color: var(--text2);
}

.spielerFrage {
    display: grid;
    gap: 14px;
}

.spielerFrage h2 {
    font-size: clamp(1.8rem, 7vw, 3.1rem);
    line-height: 1.05;
}

.spielerAntworten {
    display: grid;
    gap: 10px;
}

.spielerAntwortKnopf {
    width: 100%;
    min-height: 64px;
    font-size: 1.08rem;
    text-align: left;
    justify-content: flex-start;
    box-shadow: none;
}

.mehrfachAntwort {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--rand);
    border-radius: 15px;
    background: #fbfcff;
    color: var(--text);
}

.mehrfachAntwort input {
    width: auto;
    margin: 0;
}

.quizBild {
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid var(--rand);
    object-fit: cover;
}

.showBild {
    max-height: 36vh;
    border-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 960px) {
    .kartenraster.drei, .builderLayout, .appLayout, .showLayout, .showLayout.spielLaeuft, .zweiSpaltenShow {
        grid-template-columns: 1fr;
    }

    .showSidebar {
        position: static;
    }

    .formularRaster.zwei, .antwortRaster, .zahlenGrid {
        grid-template-columns: 1fr;
    }

    .kopfleiste {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .kopfleiste nav {
        flex-wrap: wrap;
    }

    .builderOben, .panelKopf, .showKopf, .frageMetaZeile {
        flex-direction: column;
        align-items: stretch;
    }

    .schrittLeiste {
        grid-template-columns: 1fr;
    }

    .optionZeile {
        grid-template-columns: 1fr;
    }

    .checkboxZeile.kompakt {
        padding-bottom: 0;
    }

    .rangEintrag, .statistikZeile {
        grid-template-columns: 1fr;
    }

    .showFrageMinimal h1, .showAuswertung h1, .showEnde h1 {
        font-size: clamp(2.1rem, 11vw, 4rem);
    }
}

.tooltip {
    position: relative;
    isolation: isolate;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: min(280px, calc(100vw - 40px));
    background: #111827;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
    border-radius: 13px;
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 100;
}

.tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #111827 transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.12s ease;
    z-index: 101;
}

.tooltip:hover::after, .tooltip:hover::before, .tooltip:focus::after, .tooltip:focus::before, .tooltip.offen::after, .tooltip.offen::before {
    opacity: 1;
}

.tooltip:hover::after, .tooltip:focus::after, .tooltip.offen::after {
    transform: translateX(-50%) translateY(0);
}

.loginLayout, .spielerLayout {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34%), var(--hintergrund);
}

.loginKarte, .spielerKarte, .showHauptkarte > .panel, .showSidebar {
    border-color: var(--rand2);
    box-shadow: var(--schatten);
}

.showBody, .spielerBody {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34%), var(--hintergrund);
    color: var(--text);
}

.showBody .kopfleiste {
    background: rgba(255, 255, 255, 0.88);
    border-bottom-color: var(--rand2);
    color: var(--text);
}

.showBody .kopfleiste nav a, .showBody button.navKnopf {
    color: var(--muted);
}

.showBody .kopfleiste nav a.aktiv, .showBody .kopfleiste nav a:hover, .showBody button.navKnopf:hover {
    background: var(--flaeche2);
    color: var(--text);
}

.showBody .panel {
    background: var(--flaeche);
    border-color: var(--rand2);
    box-shadow: var(--schatten);
}

.showBody input, .showBody select, .showBody textarea {
    background: #ffffff;
    border-color: var(--rand);
    color: var(--text);
}

.showBody label, .showBody .untertitel {
    color: var(--muted);
}

.showBody .lobbyCode {
    color: var(--text);
}

.statusPille, .prozentBadge, .frageMetaZeile span {
    background: var(--akzentHell);
    color: var(--akzent);
    border-color: rgba(37, 99, 235, 0.16);
}

.zahlenGrid div, .antwortKachel, .eingabeHinweisGross, .spielerChip, .rangEintrag {
    background: #fbfcff;
    border-color: var(--rand2);
    color: var(--text);
}

.zahlenGrid span, .spielerChip span, .rangEintrag span:last-child {
    color: var(--muted);
}

.loesungBox {
    background: var(--gruenHell);
    border-color: rgba(5, 150, 105, 0.25);
    color: #047857;
}

.showBild {
    border-color: var(--rand);
}

.showCountdown {
    min-height: calc(100vh - 170px);
    display: grid;
    place-items: center;
    text-align: center;
}

.countdownAnzeige {
    display: grid;
    place-items: center;
    gap: 14px;
}

.countdownAnzeige span {
    width: clamp(150px, 26vw, 300px);
    height: clamp(150px, 26vw, 300px);
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--akzent), #7c3aed);
    color: white;
    font-size: clamp(5rem, 16vw, 12rem);
    font-weight: 950;
    letter-spacing: -0.08em;
    box-shadow: 0 30px 80px rgba(37, 99, 235, 0.3);
}

.countdownAnzeige p {
    color: var(--muted);
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.countdownKarte {
    text-align: center;
}

.showEnde .buttonreihe, .feedbackBox .buttonreihe {
    margin: 10px 0 16px;
}

/* === Animationen (dezent und schnell) === */
@keyframes sanftRein {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes einblenden {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes kachelRein {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes countdownPop {
    0% { opacity: 0; transform: scale(0.62); }
    48% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes balkenWachsen {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes pulsKritisch {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@keyframes richtigRein {
    0% { opacity: 0; transform: scale(0.96); }
    60% { opacity: 1; transform: scale(1.015); }
    100% { transform: scale(1); }
}

.showInhalt > div,
.spielerInhalt > div {
    animation: sanftRein 0.24s ease-out both;
}

.showFrageMinimal h1,
.showAuswertung h1,
.showEnde h1,
.warteraumAnzeige h2,
.spielerFrage h2,
.rangEintrag,
.loesungBox,
.statistikZeile {
    animation: einblenden 0.3s ease-out both;
}

.antwortRaster .antwortKachel,
.spielerAntworten .spielerAntwortKnopf,
.spielerAntworten .mehrfachAntwort,
.eingabeHinweisGross {
    animation: kachelRein 0.28s ease-out both;
}

.antwortRaster .antwortKachel:nth-child(1),
.spielerAntworten > *:nth-child(1) { animation-delay: 0.03s; }
.antwortRaster .antwortKachel:nth-child(2),
.spielerAntworten > *:nth-child(2) { animation-delay: 0.07s; }
.antwortRaster .antwortKachel:nth-child(3),
.spielerAntworten > *:nth-child(3) { animation-delay: 0.11s; }
.antwortRaster .antwortKachel:nth-child(4),
.spielerAntworten > *:nth-child(4) { animation-delay: 0.15s; }
.antwortRaster .antwortKachel:nth-child(5),
.spielerAntworten > *:nth-child(5) { animation-delay: 0.19s; }
.antwortRaster .antwortKachel:nth-child(6),
.spielerAntworten > *:nth-child(6) { animation-delay: 0.23s; }

.rangEintrag:nth-child(2) { animation-delay: 0.04s; }
.rangEintrag:nth-child(3) { animation-delay: 0.08s; }
.rangEintrag:nth-child(4) { animation-delay: 0.12s; }
.rangEintrag:nth-child(5) { animation-delay: 0.16s; }
.rangEintrag:nth-child(6) { animation-delay: 0.2s; }

.countdownZahl {
    animation: countdownPop 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.lobbyCode {
    animation: countdownPop 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.statistikBalkenInnen {
    transform-origin: left center;
    animation: balkenWachsen 0.5s ease-out both;
}

.feedbackBox.richtig {
    animation: richtigRein 0.32s ease-out both;
}

.spielerAntwortKnopf:active,
.antwortKachel:active {
    transform: scale(0.985);
}

#timerBereich.wenig .timerBalken {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

#timerBereich.kritisch .timerBalken {
    background: linear-gradient(90deg, #fb7185, #ef4444);
}

#timerBereich.kritisch .timerRing {
    animation: pulsKritisch 0.9s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* === Handy-Optimierung Spieleransicht === */
@media (max-width: 600px) {
    .spielerLayout {
        min-height: 100dvh;
        place-items: stretch;
        align-content: start;
        padding: 12px;
    }

    .spielerKarte {
        width: 100%;
    }

    .spielAnsicht.panel, #spielAnsicht {
        padding: 16px;
    }

    .spielerStatusZeile {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }

    .spielerStatusZeile .label {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }

    .spielerStatusZeile h1 {
        font-size: 1.15rem;
        line-height: 1.1;
    }

    .miniWerte {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 6px;
    }

    .miniWerte span {
        padding: 5px 9px;
        font-size: 0.8rem;
    }

    .spielerFrage {
        gap: 10px;
    }

    .spielerFrage h2 {
        font-size: clamp(1.25rem, 6vw, 1.7rem);
        line-height: 1.15;
    }

    .prozentBadge {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .timerRing {
        height: 12px;
    }

    .timerText {
        font-size: 0.85rem;
        margin-top: 6px;
    }

    .spielerAntworten {
        gap: 8px;
    }

    .spielerAntwortKnopf {
        min-height: 52px;
        font-size: 1rem;
        padding: 12px 14px;
    }

    .mehrfachAntwort {
        padding: 11px 12px;
    }

    .spielerFrage .quizBild {
        max-height: 26vh;
        object-fit: cover;
    }
}
