/* =====================================================================
   Geos Quiz – Styles für Teilnehmer (Smartphone), Beamer und Effekte.
   Gestaltung angelehnt an das Corporate Design von geosfreiberg.de:
   weißer Kopfbereich mit Logo, G.E.O.S.-Grün, eckige Flächen, Hellgrau,
   Graphit-Überschriften in kräftigem Schnitt; Beamer mit Firmen-Keyvisual als Hintergrund.
   Der Admin-Bereich nutzt das Radzen "Software"-Theme.
   ===================================================================== */

:root {
    --geos-green: #0e7f26;
    --geos-green-dark: #0a5f1c;
    --geos-green-light: #e6f2e8;
    --geos-petrol: #0b7095;
    --geos-ochre: #c7831a;
    --geos-red: #a3341f;
    --ink: #1d1d1b;
    --graphite: #4d4d4d;
    --grey-bg: #f3f3f3;
    --line: #dcdcdc;
    --muted: #6f6f6f;
    --white: #ffffff;

    --font: "Museo Sans", "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

    /* Grüner Verlauf für Hervorhebungen (Smartphone-Karten, Login, Countdown) */
    --hero: linear-gradient(135deg, #4a944f 0%, #1f7a34 45%, #0b5a20 100%);

    /* Frage-Komponenten (hell) */
    --q-fg: var(--ink);
    --q-muted: var(--muted);
    --q-card: var(--white);
    --q-border: var(--line);
    --q-track: #e3e3e3;

    /* Farben der Antwortoptionen A–H (Unternehmenspalette) */
    --opt-0: #0e7f26;
    --opt-1: #0b7095;
    --opt-2: #c7831a;
    --opt-3: #4d4d4d;
    --opt-4: #5f9a2b;
    --opt-5: #a3341f;
    --opt-6: #2f8f8a;
    --opt-7: #6d4c8f;
}

/* Admin: Frage-Komponenten an Radzen-Theme anpassen (Moderator-Vorschau, Editor) */
.rz-layout {
    --q-fg: var(--rz-text-color, #1e293b);
    --q-muted: var(--rz-text-secondary-color, #64748b);
    --q-card: var(--rz-base-100, #f1f5f9);
    --q-border: var(--rz-base-300, #cbd5e1);
    --q-track: var(--rz-base-200, #e2e8f0);
}

.play-shell *, .play-shell *::before, .play-shell *::after,
.beamer-shell *, .beamer-shell *::before, .beamer-shell *::after,
.login-shell *, .login-shell *::before, .login-shell *::after { box-sizing: border-box; }

h1:focus { outline: none; }

#blazor-error-ui {
    background: #fef3c7; color: #78350f; bottom: 0; box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
    display: none; left: 0; padding: 0.8rem 1.25rem; position: fixed; width: 100%; z-index: 3000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.6rem; }
.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "Ein Fehler ist aufgetreten."; }

.muted { color: var(--q-muted); }
.small { font-size: 0.85rem; }

.page-loading { display: flex; justify-content: center; padding: 4rem 0; }
.spinner {
    width: 42px; height: 42px; border-radius: 50%;
    border: 4px solid var(--line); border-top-color: var(--geos-green);
    animation: spin 0.9s linear infinite;
}

.access-denied { max-width: 30rem; margin: 4rem auto; text-align: center; font-family: var(--font); }

.brand-logo { display: block; height: 100%; width: auto; }

/* ------------------------------------------------------------------ Teilnehmer-Shell */

.play-shell {
    min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
    background: var(--grey-bg); color: var(--ink); font-family: var(--font); font-weight: 400;
}

.play-header {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.7rem 1rem; padding-top: max(0.7rem, env(safe-area-inset-top));
    background: var(--white); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.play-brand { display: flex; align-items: center; gap: 0.7rem; height: 2rem; color: var(--graphite); text-decoration: none; min-width: 0; }
.play-brand .brand-logo { height: 1.8rem; }
.play-brand-divider { width: 1px; align-self: stretch; background: var(--geos-green); }
.play-brand-text { font-weight: 300; font-size: 1rem; color: var(--geos-green); white-space: nowrap; }
.play-user {
    flex-shrink: 1; min-width: 0;
    border: 1px solid var(--line); background: var(--grey-bg); padding: 0.2rem 0.7rem; font-size: 0.85rem; color: var(--graphite);
    max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.play-main {
    flex: 1; width: 100%; max-width: 560px; margin: 0 auto;
    padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: 1rem;
}
.play-footer { text-align: center; font-size: 0.75rem; color: var(--muted); padding: 0 1rem 1rem; font-weight: 300; }

.play-card { background: var(--white); padding: 1.25rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); border-top: 4px solid var(--geos-green); }
.play-card.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.play-card h1 { font-size: 1.55rem; margin: 0.25rem 0; line-height: 1.2; font-weight: 900; color: var(--graphite); }
.play-card h2 { font-size: 1.25rem; margin: 0.25rem 0; font-weight: 900; color: var(--graphite); }
.play-card p { margin: 0.25rem 0; }

/* grüne "Hero"-Karte wie der Kopfbereich der Firmenwebseite */
.play-card.hero { background: var(--hero); color: var(--white); border-top: 0; }
.play-card.hero h1, .play-card.hero h2 { color: var(--white); }
.play-card.hero .muted { color: rgba(255, 255, 255, 0.8); }
.play-card.hero .pulse-dots span { background: var(--white); }

.big-emoji { font-size: 3.2rem; line-height: 1; }

.btn-play {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 1rem 1.25rem; border: 0; border-radius: 0;
    font-family: var(--font); font-size: 1.1rem; font-weight: 700; color: var(--white); text-decoration: none; cursor: pointer;
    background: var(--geos-green); transition: background 0.15s, transform 0.08s, opacity 0.2s;
}
.btn-play:hover:not(:disabled) { background: var(--geos-green-dark); }
.btn-play:active:not(:disabled) { transform: scale(0.98); }
.btn-play:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-play.submit { margin-top: 0.75rem; }

.btn-link { background: none; border: 0; color: var(--geos-green); text-decoration: underline; cursor: pointer; font-size: 0.95rem; padding: 0.25rem; font-family: var(--font); }

.play-input {
    width: 100%; padding: 1rem; border-radius: 0; font-family: var(--font); font-size: 1.15rem; text-align: center;
    border: 1px solid var(--ink); background: var(--white); color: var(--ink); outline: none;
}
.play-input:focus { border-color: var(--geos-green); box-shadow: 0 0 0 2px var(--geos-green-light); }

.play-error { background: #fbeae7; border-left: 4px solid var(--geos-red); color: var(--geos-red); padding: 0.6rem 0.9rem; text-align: center; }

.name-form { width: 100%; display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }

.hello { display: flex; align-items: center; justify-content: space-between; }
.hello-small { color: var(--muted); font-size: 0.9rem; font-weight: 300; }
.hello-name { font-size: 1.4rem; font-weight: 900; color: var(--graphite); }

.section-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0.5rem 0 0; font-weight: 700; }

.quiz-tile {
    display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; text-decoration: none; color: var(--ink);
    background: var(--white); border-left: 6px solid var(--geos-green); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s, box-shadow 0.15s;
}
.quiz-tile:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.quiz-tile:active { transform: scale(0.99); }
.quiz-tile.finished { border-left-color: var(--graphite); }
.quiz-tile-main { flex: 1; min-width: 0; }
.quiz-tile-name { font-weight: 900; font-size: 1.15rem; color: var(--graphite); }
.quiz-tile-desc { color: var(--muted); font-size: 0.95rem; margin-top: 0.15rem; font-weight: 300; }
.quiz-tile-meta { color: var(--muted); font-size: 0.8rem; margin-top: 0.35rem; }
.quiz-tile-badge { font-weight: 700; color: var(--white); background: var(--geos-green); padding: 0.45rem 0.8rem; white-space: nowrap; }
.quiz-tile.finished .quiz-tile-badge { background: var(--graphite); }

.quiz-topbar { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.quiz-topbar-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--graphite); }
.quiz-topbar-progress { background: var(--white); border: 1px solid var(--line); padding: 0.15rem 0.6rem; }
.quiz-topbar-score { background: var(--geos-green); color: var(--white); font-weight: 900; padding: 0.15rem 0.6rem; }

.my-answer { background: var(--grey-bg); border-left: 4px solid var(--geos-green); padding: 0.6rem 0.9rem; font-weight: 700; word-break: break-word; color: var(--ink); }
.result-line { font-size: 1.15rem; }
.input-hint { color: var(--muted); text-align: center; margin: 0.5rem 0 0; font-size: 0.95rem; }
.answer-area.busy { opacity: 0.6; pointer-events: none; }

.standing { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top-color: var(--geos-petrol); }
.standing span { color: var(--muted); }

/* ------------------------------------------------------------------ Frage-Kopf */

.question-header { display: flex; flex-direction: column; gap: 0.4rem; }
.question-type {
    display: flex; justify-content: space-between; align-items: center; color: var(--q-muted);
    text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; font-weight: 700;
}
.question-points { color: var(--white); background: var(--geos-green); padding: 0.1rem 0.5rem; letter-spacing: 0.04em; }
.question-text { font-size: 1.35rem; font-weight: 900; line-height: 1.25; color: var(--graphite); }
.question-header.compact .question-text { font-size: 1.1rem; }
.question-image { max-width: 100%; max-height: 35vh; object-fit: contain; align-self: center; background: var(--white); }

/* ------------------------------------------------------------------ Countdown */

.countdown { display: flex; align-items: center; gap: 0.75rem; }
.countdown-track { flex: 1; height: 12px; background: var(--q-track); overflow: hidden; }
.countdown-fill { height: 100%; width: 100%; background: var(--geos-green); animation-name: countdown; animation-timing-function: linear; animation-fill-mode: forwards; }
.countdown-label { min-width: 3.2rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--q-fg); }
.countdown-seconds { font-size: 1.6rem; font-weight: 900; }
.countdown-unit { font-size: 0.9rem; margin-left: 0.1rem; color: var(--q-muted); }
.countdown-over { font-weight: 700; color: var(--geos-red); white-space: nowrap; }
.countdown.warn .countdown-seconds { color: var(--geos-ochre); }
.countdown.danger .countdown-seconds { color: #d0391b; animation: pulse 0.6s ease-in-out infinite alternate; }
.countdown.large .countdown-track { height: 22px; }
.countdown.large .countdown-seconds { font-size: 3.2rem; }
.countdown.large .countdown-label { min-width: 6rem; }

@keyframes countdown {
    0% { width: 100%; background: #0e7f26; }
    50% { background: #5f9a2b; }
    70% { background: #c7831a; }
    85% { background: #d0391b; }
    100% { width: 0%; background: #a3341f; }
}

/* ------------------------------------------------------------------ Multiple Choice */

.opt-0 { --opt: var(--opt-0); } .opt-1 { --opt: var(--opt-1); } .opt-2 { --opt: var(--opt-2); } .opt-3 { --opt: var(--opt-3); }
.opt-4 { --opt: var(--opt-4); } .opt-5 { --opt: var(--opt-5); } .opt-6 { --opt: var(--opt-6); } .opt-7 { --opt: var(--opt-7); }

.mc-letter {
    display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
    background: var(--opt); color: white; font-weight: 900; flex-shrink: 0;
}

.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.mc-grid.count-2, .mc-grid.count-3 { grid-template-columns: 1fr; }
.mc-tile {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 0.5rem;
    min-height: 6.5rem; padding: 0.8rem; border: 0; border-radius: 0; cursor: pointer; text-align: left;
    background: var(--opt); color: white; font-family: var(--font); font-size: 1.05rem; font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); transition: transform 0.08s, filter 0.2s;
}
.mc-grid.count-2 .mc-tile, .mc-grid.count-3 .mc-tile { min-height: 4.5rem; }
.mc-tile:active:not(:disabled) { transform: scale(0.97); }
.mc-tile:disabled { filter: grayscale(0.7) brightness(0.9); opacity: 0.6; cursor: not-allowed; }
.mc-tile.selected { outline: 4px solid var(--ink); outline-offset: -4px; }
.mc-tile-letter { background: rgba(255, 255, 255, 0.22); padding: 0.05rem 0.5rem; font-weight: 900; }
.mc-tile-text { overflow-wrap: break-word; hyphens: auto; }
.mc-tile-check { position: absolute; top: 0.5rem; right: 0.7rem; font-size: 1.4rem; }

.mc-view { display: grid; gap: 0.5rem; }
.mc-view.variant-beamer { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.mc-row {
    position: relative; display: flex; align-items: center; gap: 0.75rem; overflow: hidden;
    padding: 0.7rem 1rem; background: var(--q-card); border: 1px solid var(--q-border); border-left: 6px solid var(--opt); color: var(--q-fg);
}
.mc-row-fill { position: absolute; inset: 0 auto 0 0; background: var(--opt); opacity: 0.18; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.mc-row > *:not(.mc-row-fill) { position: relative; }
.mc-row-letter {
    display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem;
    background: var(--opt); color: white; font-weight: 900;
}
.mc-row-text { flex: 1; font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
.mc-row-stats { flex-shrink: 0; display: flex; align-items: center; gap: 0.6rem; font-variant-numeric: tabular-nums; }
.mc-row-pct { font-weight: 900; min-width: 3.2rem; text-align: right; }
.mc-row-count { color: var(--q-muted); font-size: 0.9em; }
.mc-row-icon { color: var(--geos-green); font-size: 1.3em; font-weight: 900; }
.mc-row-mine { font-size: 0.75rem; background: var(--geos-petrol); color: white; padding: 0.1rem 0.5rem; }
.mc-view.revealed .mc-row.correct { border-color: var(--geos-green); border-left-color: var(--geos-green); box-shadow: inset 0 0 0 2px var(--geos-green); }
.mc-view.revealed .mc-row.wrong { opacity: 0.55; }
.mc-view.revealed .mc-row.correct .mc-row-fill { background: var(--geos-green); opacity: 0.22; }
.mc-view.revealed .mc-row.wrong .mc-row-fill { background: #8a8a8a; }
.mc-view.variant-beamer .mc-row { padding: 1.1rem 1.3rem; font-size: 1.8rem; border-left-width: 10px; }
.mc-view.variant-beamer .mc-row-letter { min-width: 3rem; height: 3rem; font-size: 1.6rem; }
.mc-view.variant-beamer .mc-row-count { font-size: 1.2rem; }

/* ------------------------------------------------------------------ Schätzfrage */

.estimate-input { display: flex; flex-direction: column; gap: 0.5rem; }
.estimate-field { display: flex; align-items: center; gap: 0.5rem; }
.estimate-field input {
    flex: 1; min-width: 0; padding: 1rem; border-radius: 0; font-family: var(--font); font-size: 1.8rem; font-weight: 900; text-align: center;
    border: 1px solid var(--ink); background: var(--white); color: var(--ink); outline: none;
}
.estimate-field input:focus { border-color: var(--geos-green); box-shadow: 0 0 0 2px var(--geos-green-light); }
.estimate-unit { font-size: 1.4rem; font-weight: 700; color: var(--graphite); }
.estimate-preview { text-align: center; color: var(--muted); }

.estimate-view { display: flex; flex-direction: column; gap: 1rem; color: var(--q-fg); }
.estimate-hint { display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-size: 1.2rem; color: var(--q-muted); }
.estimate-hint-icon { font-size: 2rem; }
.variant-beamer .estimate-hint { font-size: 2.2rem; padding: 2rem 0; }
.variant-beamer .estimate-hint-icon { font-size: 4rem; }
.tier-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.tier-chip { background: var(--grey-bg); border-left: 4px solid var(--geos-green); padding: 0.35rem 0.9rem; font-size: 1.1rem; color: var(--ink); }
.estimate-solution { text-align: center; }
.estimate-solution-label { color: var(--q-muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; }
.estimate-solution-value { font-size: 2.4rem; font-weight: 900; color: var(--geos-green); animation: pop 0.6s cubic-bezier(.2, 1.6, .4, 1); }
.variant-beamer .estimate-solution-value { font-size: 5rem; }
.estimate-mine { text-align: center; }
.estimate-diff { color: var(--q-muted); }
.estimate-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; text-align: center; }
.estimate-stats div { background: var(--grey-bg); padding: 0.5rem; display: flex; flex-direction: column; }
.estimate-stats span { color: var(--q-muted); font-size: 0.8rem; }
.variant-beamer .estimate-stats b { font-size: 1.8rem; }

.numberline { position: relative; height: 4.5rem; margin: 1.5rem 0.75rem 1rem; }
.numberline-axis { position: absolute; left: 0; right: 0; top: 50%; height: 4px; background: var(--q-track); }
.numberline-dot {
    position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
    background: #9a9a9a; opacity: 0.85; animation: drop 0.6s ease-out backwards;
}
.numberline-dot.hit { background: var(--geos-green); }
.numberline-dot.mine { background: var(--geos-petrol); width: 18px; height: 18px; margin: -9px 0 0 -9px; box-shadow: 0 0 0 3px white, 0 0 0 4px var(--geos-petrol); z-index: 2; }
.numberline-target { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--geos-green); z-index: 3; }
.numberline-target span {
    position: absolute; top: -1.4rem; left: 50%; transform: translateX(-50%); white-space: nowrap;
    background: var(--geos-green); color: white; font-weight: 900; padding: 0 0.4rem; font-size: 0.85rem;
}
.numberline-target.edge-right span { left: auto; right: 0; transform: none; }
.numberline-target.edge-left span { left: 0; transform: none; }
.numberline-min, .numberline-max { position: absolute; bottom: -0.6rem; font-size: 0.75rem; color: var(--q-muted); }
.numberline-min { left: 0; } .numberline-max { right: 0; }
.variant-beamer .numberline { height: 7rem; }
.variant-beamer .numberline-dot { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.variant-beamer .numberline-target span { font-size: 1.3rem; top: -2rem; }

.closest { display: flex; flex-direction: column; gap: 0.35rem; }
.closest-title { color: var(--q-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; font-weight: 700; }
.closest-row { display: flex; gap: 0.75rem; align-items: center; background: var(--grey-bg); padding: 0.45rem 0.75rem; color: var(--ink); }
.closest-row:first-of-type { border-left: 4px solid var(--geos-green); }
.closest-row.mine { box-shadow: inset 0 0 0 2px var(--geos-petrol); }
.closest-name { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.closest-value { color: var(--muted); font-variant-numeric: tabular-nums; }
.closest-points { color: var(--geos-green); font-weight: 900; min-width: 2.5rem; text-align: right; }
.variant-beamer .closest-row { font-size: 1.4rem; padding: 0.6rem 1rem; }

/* ------------------------------------------------------------------ Zuordnung */

.assign-input { display: flex; flex-direction: column; gap: 0.5rem; }
.assign-row {
    display: grid; grid-template-columns: 1fr auto 1.3fr; align-items: center; gap: 0.5rem;
    background: var(--white); border-left: 4px solid var(--line); padding: 0.6rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.assign-row.done { border-left-color: var(--geos-green); }
.assign-left { font-weight: 700; word-break: break-word; color: var(--graphite); }
.assign-arrow { color: var(--muted); }
.assign-select {
    width: 100%; padding: 0.7rem; border-radius: 0; font-family: var(--font); font-size: 1rem;
    background: var(--white); color: var(--ink); border: 1px solid var(--ink);
}

.assign-view { color: var(--q-fg); }
.assign-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.assign-col { display: flex; flex-direction: column; gap: 0.5rem; }
.assign-chip { padding: 0.6rem 0.9rem; background: var(--grey-bg); font-weight: 700; color: var(--ink); }
.assign-chip.left { border-left: 6px solid var(--geos-green); }
.assign-chip.right { border-left: 6px solid var(--geos-petrol); }
.variant-beamer .assign-chip { font-size: 1.7rem; padding: 0.8rem 1.2rem; }
.assign-solution { display: flex; flex-direction: column; gap: 0.5rem; }
.assign-solution-row {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
    padding: 0.6rem 0.9rem; background: var(--grey-bg); border-left: 6px solid var(--geos-green); color: var(--ink);
}
.assign-solution-row > *:not(.assign-solution-fill) { position: relative; }
.assign-solution-fill { position: absolute; inset: 0 auto 0 0; background: var(--geos-green); opacity: 0.14; transition: width 1.2s; }
.assign-solution-left { font-weight: 700; }
.assign-solution-right { font-weight: 900; color: var(--geos-green); flex: 1; }
.assign-solution-pct { color: var(--muted); font-size: 0.9em; }
.assign-solution-mine { font-weight: 700; padding: 0.05rem 0.6rem; font-size: 0.85rem; color: white; }
.assign-solution-mine.ok { background: var(--geos-green); }
.assign-solution-mine.bad { background: var(--geos-red); }
.assign-summary { color: var(--q-muted); text-align: center; }
.variant-beamer .assign-solution-row { font-size: 1.6rem; padding: 0.8rem 1.2rem; }

/* ------------------------------------------------------------------ GeoGuess */

.geo-map { width: 100%; overflow: hidden; background: #d8dcd8; z-index: 0; }
.geo-map.phone { height: 58vh; min-height: 320px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.geo-map.editor { height: 420px; }
.geo-map.view { height: 50vh; min-height: 300px; }
.variant-beamer .geo-map.view { height: 48vh; }
.geo-view { display: flex; flex-direction: column; gap: 0.75rem; color: var(--q-fg); }
.geo-view.variant-beamer.revealed { display: grid; grid-template-columns: 2fr 1fr; align-items: start; gap: 1.5rem; }
.geo-side { display: flex; flex-direction: column; gap: 0.75rem; }
.geo-target-label { font-size: 1.3rem; font-weight: 900; color: var(--geos-green); }
.variant-beamer .geo-target-label { font-size: 2rem; }
.geo-mine { text-align: center; font-size: 1.1rem; }


/* ------------------------------------------------------------------ Auflösung (Smartphone) */

.reveal-banner {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem;
    padding: 1rem 1.25rem; color: white; animation: pop 0.6s cubic-bezier(.2, 1.6, .4, 1);
}
.reveal-banner.correct { background: linear-gradient(135deg, #3c9447, var(--geos-green-dark)); }
.reveal-banner.partial { background: linear-gradient(135deg, #d99a35, #a96a0d); }
.reveal-banner.wrong { background: linear-gradient(135deg, #bf4a33, var(--geos-red)); animation: shake 0.6s; }
.reveal-banner.none { background: linear-gradient(135deg, #6f6f6f, var(--graphite)); }
.reveal-emoji { font-size: 2.6rem; }
.reveal-text { font-size: 1.4rem; font-weight: 900; }
.reveal-points { font-weight: 900; font-size: 1.05rem; background: rgba(255, 255, 255, 0.2); padding: 0.25rem 0.7rem; white-space: nowrap; }

/* ------------------------------------------------------------------ Rangliste */

.ranking { color: var(--q-fg); }
.ranking-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.ranking-row {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.9rem;
    background: var(--q-card); border-left: 4px solid var(--line); animation: slideIn 0.5s ease-out backwards;
}
.ranking-row:nth-child(2) { animation-delay: 0.05s; } .ranking-row:nth-child(3) { animation-delay: 0.1s; }
.ranking-row:nth-child(4) { animation-delay: 0.15s; } .ranking-row:nth-child(5) { animation-delay: 0.2s; }
.ranking-row.mine { border-left-color: var(--geos-petrol); box-shadow: inset 0 0 0 2px var(--geos-petrol); }
.ranking-rank { width: 2.2rem; font-weight: 900; color: var(--q-muted); }
.ranking-name { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-meta { color: var(--q-muted); font-size: 0.85rem; }
.ranking-points { font-weight: 900; min-width: 3rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--geos-green); }
.ranking-gap { text-align: center; color: var(--q-muted); }
.ranking.variant-admin .ranking-row { padding: 0.35rem 0.6rem; animation: none; }
.ranking.variant-admin .ranking-points { color: inherit; }

.podium { display: flex; align-items: flex-end; justify-content: center; gap: 0.6rem; margin: 1rem 0 1.5rem; }
.podium-place { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; width: 30%; max-width: 14rem; animation: rise 0.9s cubic-bezier(.2, .9, .3, 1.2) backwards; animation-delay: var(--delay); }
.podium-medal { font-size: 2.4rem; }
.podium-name { font-weight: 900; text-align: center; word-break: break-word; color: var(--graphite); }
.podium-points { color: var(--geos-green); font-weight: 900; }
.podium-block { width: 100%; display: flex; align-items: flex-start; justify-content: center; padding-top: 0.5rem; font-size: 2rem; font-weight: 900; color: white; }
.podium-place.place-1 .podium-block { height: 7rem; background: var(--geos-green); }
.podium-place.place-2 .podium-block { height: 5rem; background: var(--geos-petrol); }
.podium-place.place-3 .podium-block { height: 3.5rem; background: var(--graphite); }
.podium-place.mine .podium-name.me { color: var(--geos-petrol); text-decoration: underline; text-underline-offset: 3px; }
.ranking.variant-beamer .podium-medal { font-size: 4.5rem; }
.ranking.variant-beamer .podium-name { font-size: 2.2rem; }
.ranking.variant-beamer .podium-points { font-size: 1.6rem; }
.ranking.variant-beamer .podium-place.place-1 .podium-block { height: 11rem; }
.ranking.variant-beamer .podium-place.place-2 .podium-block { height: 8rem; }
.ranking.variant-beamer .podium-place.place-3 .podium-block { height: 5.5rem; }
.ranking.variant-beamer .ranking-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; }
.ranking-row { min-width: 0; }
.ranking.variant-beamer .ranking-row { font-size: 1.4rem; background: var(--grey-bg); }

/* ------------------------------------------------------------------ Beamer */

.beamer-shell { height: 100vh; overflow: hidden; font-family: var(--font); color: var(--ink); background: var(--grey-bg); }
.beamer { display: grid; grid-template-columns: 1fr clamp(240px, 19vw, 360px); height: 100vh; position: relative; z-index: 1; }

/* grüne Bühne mit Höhenlinien – weiße Schrift */
.beamer-stage {
    --q-fg: #ffffff; --q-muted: rgba(255, 255, 255, 0.78); --q-track: rgba(255, 255, 255, 0.25);
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    /* Firmen-Keyvisual; oben leicht abgedunkelt, damit weiße Schrift auf dem hellen Grün gut lesbar bleibt */
    background: linear-gradient(180deg, rgba(6, 64, 26, 0.5) 0%, rgba(6, 64, 26, 0.28) 45%, rgba(6, 64, 26, 0.12) 100%), url("/images/beamer-hintergrund.jpg") center / cover no-repeat, #3f9a52;
    color: var(--white);
}
.beamer-stage > :not(.beamer-bar) { padding: 0 3vw; }

/* weiße Kopfleiste wie auf der Firmenwebseite */
.beamer-bar {
    display: flex; align-items: center; gap: 1.5rem; height: 5.2rem; padding: 0 3vw; flex-shrink: 0;
    background: var(--white); color: var(--graphite); box-shadow: 0 2px 14px rgba(0, 0, 0, 0.15);
}
.beamer-bar .brand-logo { height: 3rem; }
.beamer-bar-title { flex: 1; font-size: 1.5rem; font-weight: 300; color: var(--geos-green); border-left: 1px solid var(--geos-green); padding-left: 1.5rem; }
.beamer-bar-progress { font-size: 1.4rem; color: var(--muted); }
.beamer-bar-progress b { color: var(--geos-green); font-size: 2rem; font-weight: 900; }

/* weiße Inhaltsfläche auf grünem Grund */
.beamer-panel {
    --q-fg: var(--ink); --q-muted: var(--muted); --q-card: var(--white); --q-border: var(--line); --q-track: #e3e3e3;
    background: var(--white); color: var(--ink); padding: 1.5rem 1.75rem; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.beamer-kicker { font-size: clamp(1.1rem, 1.6vw, 1.7rem); font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.beamer-idle, .beamer-lobby {
    flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.25rem;
}
.beamer-idle h1, .beamer-lobby h1 { margin: 0; font-size: clamp(3rem, 6vw, 6.5rem); line-height: 1.05; font-weight: 900; }
.beamer-sub { font-size: clamp(1.2rem, 2vw, 2rem); margin: 0; font-weight: 300; opacity: 0.9; }
.beamer-count { font-size: 1.8rem; font-weight: 300; }
.beamer-count b { font-size: 3rem; font-weight: 900; }
.beamer-choices { display: flex; flex-direction: column; gap: 0.75rem; }
.beamer-choices a { color: var(--geos-green); background: var(--white); text-decoration: none; font-size: 1.8rem; font-weight: 700; padding: 0.9rem 1.8rem; }
.name-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 95%; }
.name-bubble {
    background: var(--white); color: var(--geos-green); font-weight: 700; padding: 0.4rem 1.1rem; font-size: 1.4rem;
    animation: pop 0.5s cubic-bezier(.2, 1.6, .4, 1) backwards;
}

.beamer-question { flex: 1; display: flex; flex-direction: column; gap: 1.5vh; min-height: 0; padding-top: 2.5vh !important; padding-bottom: 2.5vh !important; }
.beamer-question .question-type { font-size: 1.1rem; }
.beamer-question .question-points { background: var(--white); color: var(--geos-green); }
.question-header.large .question-text { font-size: clamp(2rem, 3.4vw, 3.6rem); color: var(--white); }
.question-header.large.compact .question-text { font-size: clamp(1.6rem, 2.4vw, 2.6rem); }
.question-header.large .question-image { max-height: 24vh; }
.beamer-status { display: flex; align-items: center; gap: 2rem; }
.beamer-status .countdown { flex: 1; }
.beamer-answers { font-size: 1.4rem; font-weight: 300; white-space: nowrap; }
.beamer-answers b { font-size: 2.2rem; font-weight: 900; }
.beamer-timeup, .beamer-solved { flex: 1; font-size: 2.2rem; font-weight: 900; }
.beamer-timeup { animation: pulse 0.8s ease-in-out infinite alternate; }
.beamer-question-body { flex: 1 1 auto; min-height: 0; }
.beamer-stage .countdown-fill { animation-name: countdown-light; }
@keyframes countdown-light {
    0% { width: 100%; background: #ffffff; }
    60% { background: #ffffff; }
    75% { background: #f5c66b; }
    90% { background: #ff8a70; }
    100% { width: 0%; background: #ff6a4d; }
}

.beamer-finished { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding-top: 2.5vh !important; padding-bottom: 2.5vh !important; gap: 0.5rem; }
.beamer-finished h1 { font-size: 3.5rem; margin: 0 0 1rem; font-weight: 900; }

.qr-panel {
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 2.5vh 1.25rem;
    background: var(--white); border-left: 1px solid var(--line); color: var(--ink); overflow: hidden;
}
.qr-title { font-size: 1.7rem; font-weight: 900; color: var(--graphite); text-align: center; }
.qr-sub { font-size: 0.95rem; color: var(--muted); text-align: center; margin-top: -0.5rem; }
.qr-image { width: 100%; max-width: 300px; border: 6px solid var(--geos-green); padding: 0.3rem; background: white; }
.qr-url { font-size: 1.1rem; font-weight: 700; color: var(--geos-green); word-break: break-all; text-align: center; }
.qr-top { width: 100%; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.qr-top-title { color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; font-weight: 700; }
.qr-top-row { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 1.2rem; background: var(--grey-bg); padding: 0.4rem 0.7rem; border-left: 4px solid var(--geos-green); }
.qr-top-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-top-row b { color: var(--geos-green); }

.beamer-fullscreen {
    position: fixed; left: 0.75rem; bottom: 0.75rem; opacity: 0; transition: opacity 0.3s;
    background: var(--white); color: var(--graphite); border: 1px solid var(--line); font-size: 1.4rem; cursor: pointer;
}
.beamer-fullscreen:hover { opacity: 1; }

/* ------------------------------------------------------------------ Login */

.login-shell {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem;
    background: var(--hero); font-family: var(--font);
}
.login-card {
    width: 100%; max-width: 380px; background: var(--white); padding: 2rem; color: var(--ink);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.login-logo { font-size: 3rem; }
.login-card h1 { margin: 0; font-weight: 900; color: var(--graphite); }
.login-sub { color: var(--muted); margin: 0 0 1rem; }
.login-card form { width: 100%; display: flex; flex-direction: column; gap: 0.4rem; }
.login-card label { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.login-card input { padding: 0.75rem; border-radius: 0; border: 1px solid var(--ink); background: var(--white); color: var(--ink); font-size: 1rem; }
.login-card button { margin-top: 1rem; padding: 0.85rem; border: 0; font-size: 1.05rem; font-weight: 700; cursor: pointer; background: var(--geos-green); color: white; }
.login-error { width: 100%; background: #fbeae7; border-left: 4px solid var(--geos-red); color: var(--geos-red); padding: 0.6rem; text-align: center; }
.login-back { color: var(--geos-green); margin-top: 1rem; font-size: 0.9rem; }

/* ------------------------------------------------------------------ Admin-Ergänzungen */

.clickable-rows .rz-data-row { cursor: pointer; }
.question-card-number {
    width: 2.2rem; height: 2.2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--rz-primary-lighter, #dbeafe); color: var(--rz-primary, #2563eb); font-weight: 800; flex-shrink: 0;
}
.question-card-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tier-table { border-collapse: collapse; }
.tier-table th { text-align: left; font-weight: 600; font-size: 0.85rem; padding: 0.25rem 0.75rem 0.25rem 0; color: var(--rz-text-secondary-color); }
.tier-table td { padding: 0.25rem 0.75rem 0.25rem 0; }
.tier-range { color: var(--rz-text-secondary-color); font-size: 0.9rem; }
.upload-button { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; padding: 0.55rem 1rem; border-radius: 4px; border: 1px solid var(--rz-base-400, #94a3b8); }
.upload-button input[type=file] { display: none; }
.image-preview { display: flex; align-items: flex-start; gap: 0.5rem; }
.image-preview img { max-height: 160px; max-width: 320px; border-radius: 0.5rem; }
.moderator-control .stat-value { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.moderator-control .stat-label { font-size: 0.8rem; color: var(--rz-text-secondary-color); text-transform: uppercase; letter-spacing: 0.06em; }
.moderator-preview { border-top: 1px solid var(--rz-base-300); padding-top: 0.75rem; }
.moderator-preview .geo-map.view { height: 320px; }
.moderator-questions { margin: 0; padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; }
.moderator-questions li { padding: 0.2rem 0; }
.moderator-questions li.done { color: var(--rz-text-disabled-color, #94a3b8); }
.moderator-questions li.current { font-weight: 700; color: var(--rz-primary); }
.mq-meta { margin-left: 0.5rem; font-size: 0.8rem; color: var(--rz-text-secondary-color); font-weight: 400; }

/* ------------------------------------------------------------------ Effekte */

.bounce { animation: bounce 1.8s ease-in-out infinite; }
.pop { animation: pop 0.6s cubic-bezier(.2, 1.6, .4, 1); }

.pulse-dots { display: flex; gap: 0.4rem; justify-content: center; margin: 0.5rem 0; }
.pulse-dots span { width: 10px; height: 10px; background: var(--geos-green); animation: pulse 0.9s ease-in-out infinite alternate; }
.pulse-dots span:nth-child(2) { animation-delay: 0.3s; }
.pulse-dots span:nth-child(3) { animation-delay: 0.6s; }

/* dezenter Schneefall auf der grünen Beamer-Bühne */
.beamer-stage::before {
    content: ""; pointer-events: none; position: absolute; inset: 0; z-index: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(2px 2px at 140px 70px, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(3px 3px at 90px 160px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 200px 120px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(3px 3px at 260px 220px, rgba(255, 255, 255, 0.25), transparent);
    background-size: 300px 260px;
    animation: snow 16s linear infinite;
}
.beamer-stage > * { position: relative; z-index: 1; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse { from { opacity: 1; transform: scale(1); } to { opacity: 0.55; transform: scale(1.06); } }
@keyframes shake {
    10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); }
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-30px); } to { opacity: 0.85; transform: none; } }
@keyframes snow { from { background-position: 0 0; } to { background-position: 60px 260px; } }

@media (prefers-reduced-motion: reduce) {
    *:not(.countdown-fill):not(.leadin-ring-fill), *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 440px) {
    .play-brand-text, .play-brand-divider { display: none; }
}

@media (max-width: 380px) {
    .mc-grid { grid-template-columns: 1fr; }
    .mc-tile { min-height: 4.2rem; }
}

/* ------------------------------------------------------------------ Countdown vor der Frage */

.leadin { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; padding: 1.5rem 1rem; }
.leadin.variant-phone {
    background: var(--hero); color: var(--white);
    min-height: 70vh; justify-content: center; animation: leadin-flash 1s ease-in-out infinite;
}
.leadin-kicker { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; opacity: 0.9; }
.leadin-type { font-size: 0.95rem; font-weight: 300; opacity: 0.9; }
.leadin-ring { position: relative; width: 14rem; height: 14rem; margin: 0.75rem 0; }
.leadin-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.leadin-ring-track { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 8; }
.leadin-ring-fill {
    fill: none; stroke: var(--white); stroke-width: 8; stroke-linecap: butt;
    stroke-dasharray: 339.3; stroke-dashoffset: 0;
    animation-name: leadin-ring; animation-timing-function: linear; animation-fill-mode: forwards;
}
.leadin-number {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 7rem; font-weight: 900; line-height: 1; animation: leadin-pop 1s cubic-bezier(.2, 1.4, .4, 1);
}
.leadin-text { font-size: 1.25rem; font-weight: 900; }

.beamer-leadin { flex: 1; display: flex; align-items: center; justify-content: center; }
.leadin.variant-beamer .leadin-kicker { font-size: 2rem; }
.leadin.variant-beamer .leadin-type { font-size: 1.6rem; }
.leadin.variant-beamer .leadin-ring { width: 42vh; height: 42vh; }
.leadin.variant-beamer .leadin-number { font-size: 22vh; }
.leadin.variant-beamer .leadin-text { font-size: 2.6rem; animation: pulse 0.5s ease-in-out infinite alternate; }

.leadin.variant-admin { color: var(--rz-text-color); flex-direction: row; justify-content: flex-start; padding: 0; gap: 1rem; }
.leadin.variant-admin .leadin-ring { width: 4.5rem; height: 4.5rem; margin: 0; order: -1; }
.leadin.variant-admin .leadin-ring-track { stroke: var(--rz-base-200, #e2e8f0); }
.leadin.variant-admin .leadin-ring-fill { stroke: var(--geos-green); }
.leadin.variant-admin .leadin-number { font-size: 1.8rem; animation: none; }
.leadin.variant-admin .leadin-text { font-size: 1rem; }

@keyframes leadin-ring { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 339.3; } }
@keyframes leadin-pop { 0% { transform: scale(2.2); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes leadin-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 127, 38, 0.6); } 50% { box-shadow: 0 0 0 10px rgba(14, 127, 38, 0); } }

/* ------------------------------------------------------------------ Zuordnung per Drag & Drop */

.assign-dnd { display: flex; flex-direction: column; gap: 0.9rem; user-select: none; -webkit-user-select: none; }
.assign-slots { display: flex; flex-direction: column; gap: 0.5rem; }
.assign-slot {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: stretch;
    background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); border-left: 6px solid var(--geos-green);
    transition: box-shadow 0.15s, transform 0.15s;
}
.assign-slot-label { padding: 0.75rem; font-weight: 900; color: var(--graphite); display: flex; align-items: center; overflow-wrap: break-word; hyphens: auto; }
.assign-slot-drop {
    margin: 0.4rem; min-height: 3rem; display: flex; align-items: center; justify-content: center;
    border: 2px dashed var(--line); background: var(--grey-bg); transition: background 0.15s, border-color 0.15s;
}
.assign-slot.filled .assign-slot-drop { border-style: solid; border-color: transparent; background: transparent; }
.assign-slot-hint { font-size: 0.8rem; color: var(--muted); padding: 0 0.4rem; text-align: center; }
.assign-dnd.has-selection .assign-slot.empty .assign-slot-drop,
.assign-dnd.dnd-active .assign-slot.empty .assign-slot-drop { border-color: var(--geos-green); animation: pulse 0.8s ease-in-out infinite alternate; }
.assign-slot.dnd-over { transform: scale(1.02); box-shadow: 0 0 0 3px var(--geos-green); }
.assign-slot.dnd-over .assign-slot-drop { background: var(--geos-green-light); border-color: var(--geos-green); }

.assign-pool { background: var(--white); padding: 0.75rem; border-top: 4px solid var(--geos-petrol); transition: box-shadow 0.15s; }
.assign-pool.dnd-over { box-shadow: 0 0 0 3px var(--geos-petrol); }
.assign-pool-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--muted); margin-bottom: 0.6rem; }
.assign-pool-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 3rem; align-items: center; }

.assign-chip-drag {
    padding: 0.7rem 1rem; background: var(--geos-petrol); color: var(--white); font-weight: 700; cursor: grab;
    touch-action: none; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 0.1s, box-shadow 0.1s, opacity 0.1s;
    overflow-wrap: break-word; hyphens: auto; max-width: 100%;
}
.assign-chip-drag.placed { width: 100%; text-align: center; background: var(--geos-green); }
.assign-chip-drag.selected { outline: 3px solid var(--ink); outline-offset: 2px; transform: scale(1.04); }
.assign-chip-drag.dnd-source { opacity: 0.3; }
.dnd-ghost {
    position: fixed; z-index: 5000; pointer-events: none; margin: 0; cursor: grabbing;
    transform: rotate(-3deg) scale(1.06); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); opacity: 0.95;
}
.assign-dnd[data-disabled="true"] .assign-chip-drag { cursor: not-allowed; opacity: 0.6; }

/* ------------------------------------------------------------------ GeoGuess (OpenLayers) */

.geo-map { position: relative; }
.geo-map .ol-zoom { top: 0.6rem; left: 0.6rem; }
.geo-map .ol-zoom button {
    width: 2.6rem; height: 2.6rem; font-size: 1.5rem; border-radius: 0; margin: 0 0 2px;
    background: rgba(255, 255, 255, 0.95); color: var(--geos-green); font-weight: 700;
}
.geo-map .ol-zoom button:hover, .geo-map .ol-zoom button:focus { background: var(--white); outline: none; }
.geo-map .ol-control { background: transparent; border-radius: 0; }
.geo-map .ol-attribution { font-size: 0.7rem; }
.geo-map.geo-disabled { filter: grayscale(0.6); opacity: 0.7; }

/* Fadenkreuz in der Kartenmitte */
.geo-crosshair {
    position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
    pointer-events: none; z-index: 5; filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.95));
}
.geo-crosshair svg { width: 100%; height: 100%; }
.geo-crosshair circle, .geo-crosshair line { fill: none; stroke: var(--geos-red); stroke-width: 2.5; }
.geo-crosshair .dot { fill: var(--geos-red); stroke: none; }
.geo-map.geo-disabled .geo-crosshair { opacity: 0.4; }

.geo-input { display: flex; flex-direction: column; gap: 0.6rem; scroll-margin-bottom: 1rem; }
.geo-map.phone { height: min(56dvh, 520px); min-height: 280px; }
.geo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.geo-actions .btn-play { padding: 0.9rem 0.6rem; font-size: 1rem; }
.btn-play.secondary { background: var(--white); color: var(--geos-green); box-shadow: inset 0 0 0 2px var(--geos-green); }
.btn-play.secondary:hover:not(:disabled) { background: var(--geos-green-light); }

/* Eigene Antwort nach der Abgabe (nicht verschiebbar) */
.geo-summary { width: 100%; display: flex; flex-direction: column; gap: 0.4rem; }
.geo-map.summary { height: 34dvh; min-height: 200px; }
.geo-map.geo-static { cursor: default; }
.geo-summary-text { font-size: 0.85rem; color: var(--muted); }

/* Admin: Startansicht im Smartphone-Format */
.phone-frame {
    align-self: center; width: 260px; padding: 10px 8px 18px; background: #1d1d1b; border-radius: 26px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.geo-map.start-preview { height: 440px; border-radius: 14px; }

/* Smartphone: Fragebild als Vorschaubild mit Vollbild-Ansicht */
.question-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.question-row .question-text { flex: 1; min-width: 0; }
.question-thumb {
    position: relative; flex-shrink: 0; width: 5.5rem; height: 5.5rem; padding: 0; border: 2px solid var(--white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); background: var(--white); cursor: zoom-in;
}
.question-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.question-thumb-zoom {
    position: absolute; right: 0; bottom: 0; background: var(--geos-green); color: white; font-size: 0.9rem;
    width: 1.5rem; height: 1.5rem; display: flex; align-items: center; justify-content: center;
}
.image-lightbox {
    position: fixed; inset: 0; z-index: 6000; background: rgba(0, 0, 0, 0.88); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 1rem; padding: 1rem; cursor: zoom-out; animation: pop 0.25s ease-out;
}
.image-lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.image-lightbox-close { color: white; font-weight: 700; background: var(--geos-green); padding: 0.5rem 1rem; }

/* ------------------------------------------------------------------ Antwort-Status / Sperren */

.answer-status {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
    background: var(--white); padding: 0.7rem 0.9rem; border-left: 4px solid var(--line);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); font-size: 0.92rem;
}
.answer-status.saved { border-left-color: var(--geos-petrol); }
.answer-status.is-locked { border-left-color: var(--graphite); background: #ececec; }
.answer-status.empty { color: var(--muted); }
.answer-status-text { flex: 1; min-width: 12rem; overflow-wrap: anywhere; }
.answer-status-label { font-weight: 900; color: var(--graphite); margin-right: 0.25rem; }
.btn-play.lock-answer { width: auto; padding: 0.55rem 1rem; font-size: 0.9rem; }

.answer-area.locked { position: relative; }
.answer-area.locked::after {
    content: "🔒 Antwort gesperrt"; position: absolute; top: 0.5rem; right: 0.5rem; z-index: 10;
    background: var(--graphite); color: white; font-size: 0.8rem; font-weight: 700; padding: 0.25rem 0.6rem;
}

.mc-tile.dimmed:not(:disabled) { opacity: 0.55; }
.answer-area.locked .mc-tile.selected:disabled { filter: none; opacity: 1; }

/* ------------------------------------------------------------------ Beamer: niemals Scrollbalken */

html:has(.beamer-shell), body:has(.beamer-shell) { margin: 0; height: 100%; overflow: hidden; }
.beamer-stage, .beamer-question, .beamer-lobby, .beamer-idle { min-height: 0; overflow: hidden; }

/* Auto-Fit: Inhalt wird per JS (geosQuiz.fitBoxes) verkleinert statt gescrollt */
.fit-box { flex: 1 1 auto; min-height: 0; overflow: hidden; position: relative; }
.fit-box > * { box-sizing: border-box; }

.question-header.large.long-text .question-text { font-size: clamp(1.4rem, 2.2vw, 2.4rem); }

/* Lobby: Titel oben, Namenswolke füllt den Rest */
.beamer-lobby { justify-content: flex-start; padding-top: 3vh !important; padding-bottom: 3vh !important; }
.beamer-lobby h1 { font-size: clamp(2.4rem, 4.5vw, 5rem); }
.name-cloud-box { width: 100%; }
.name-cloud { max-width: none; width: 100%; align-content: flex-start; }
.name-cloud.m .name-bubble { font-size: 1.15rem; padding: 0.3rem 0.8rem; }
.name-cloud.s .name-bubble { font-size: 0.95rem; padding: 0.25rem 0.65rem; }
.name-cloud.xs .name-bubble { font-size: 0.8rem; padding: 0.2rem 0.5rem; }
.name-cloud .name-bubble:last-child { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6); }

/* QR-Spalte auch auf niedrigen Beamern vollständig */
.qr-image { max-height: 38vh; width: auto; max-width: 100%; }
.qr-top-row { font-size: clamp(0.9rem, 1.1vw, 1.2rem); }
.ranking-name, .closest-name, .podium-name { overflow: hidden; text-overflow: ellipsis; }
.podium-name { white-space: nowrap; max-width: 100%; }

/* ------------------------------------------------------------------ Timer pausiert / ohne Zeitlimit */

.countdown-fill.static { animation: none; transition: width 0.3s; }
.countdown.paused.ok .countdown-fill.static { background: var(--geos-green); }
.countdown.paused.warn .countdown-fill.static { background: var(--geos-ochre); }
.countdown.paused.danger .countdown-fill.static { background: #d0391b; }
.beamer-stage .countdown.paused .countdown-fill.static { background: var(--white); }
.countdown.paused .countdown-track { animation: pulse 1s ease-in-out infinite alternate; }
.countdown-label { display: flex; align-items: baseline; justify-content: flex-end; gap: 0.4rem; white-space: nowrap; }
.countdown-note { font-weight: 900; font-size: 0.9rem; color: var(--q-fg); text-transform: uppercase; letter-spacing: 0.05em; }
.countdown.large .countdown-note { font-size: 1.6rem; }
.countdown.large .countdown-label { min-width: 6rem; }

/* Ohne Zeitlimit: wandernde Streifen statt Restzeit */
.countdown-endless {
    height: 100%; width: 100%;
    background: repeating-linear-gradient(-45deg, var(--geos-green) 0 14px, #5f9a2b 14px 28px);
    background-size: 40px 40px; animation: endless 1s linear infinite;
}
.beamer-stage .countdown-endless { background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.9) 0 14px, rgba(255,255,255,0.5) 14px 28px); }
@keyframes endless { from { background-position: 0 0; } to { background-position: 40px 0; } }
.countdown-track { min-width: 35%; }

/* ------------------------------------------------------------------ Geteilte Plätze */

.podium-names { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; width: 100%; }
.podium-place.shared .podium-name { font-size: 0.95em; }
.ranking.variant-beamer .podium-place.shared .podium-name { font-size: 1.6rem; }
.ranking.variant-beamer .podium-place.shared:not(.place-1) .podium-name { font-size: 1.35rem; }
.podium-more { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.ranking.variant-beamer .podium-more { font-size: 1.2rem; }
.podium-block { flex-direction: column; align-items: center; gap: 0.2rem; }
.podium-shared {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    background: rgba(255, 255, 255, 0.22); padding: 0.1rem 0.5rem;
}
.ranking.variant-beamer .podium-shared { font-size: 1rem; }
.ranking-shared {
    font-size: 0.75rem; font-weight: 700; color: var(--geos-petrol); border: 1px solid var(--geos-petrol);
    padding: 0 0.35rem; white-space: nowrap;
}
.ranking-row.same-rank .ranking-rank { opacity: 0.35; }

/* Geteilter Platz: Sockel hoch genug für Platznummer + "×N geteilt" (vor allem Platz 3 auf dem Handy) */
.podium-block { justify-content: flex-start; padding-bottom: 0.4rem; box-sizing: border-box; }
.podium-place.shared.place-3 .podium-block { height: 4.8rem; }
.podium-place.shared.place-2 .podium-block { height: 5.8rem; }
.podium-place.shared.place-1 .podium-block { height: 7.4rem; }
.ranking.variant-beamer .podium-place.shared.place-3 .podium-block { height: 6.5rem; }
.ranking.variant-beamer .podium-place.shared.place-2 .podium-block { height: 8.5rem; }
.ranking.variant-beamer .podium-place.shared.place-1 .podium-block { height: 11rem; }
.podium-shared { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* Beamer: Ranglisten-Zeilen ohne Einblend-Animation (blieb im verkleinerten Bereich teils unsichtbar hängen) */
.ranking.variant-beamer .ranking-row { animation: none; }
