/* =====================================================================
   Quiz Arena - gemeinsames Stylesheet
   Farben aus dem Logo: tiefes Blau, Cyan, Violett, Limette.
   ===================================================================== */

:root {
    --nacht:      #070d24;
    --nacht-tief: #04081a;
    --panel:      #101a3a;
    --panel-hell: #182448;
    --panel-hoch: #1a2750;
    --rand:       rgba(120, 170, 255, 0.18);

    --cyan:       #22d3ee;
    --violett:    #a855f7;
    --limette:    #a3e635;
    --gold:       #fbbf24;
    --rot:        #f43f5e;
    --gruen:      #22c55e;

    --text:       #e8eeff;
    --text-leise: #93a3c9;

    --radius:     14px;
    --schrift:    'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--schrift);
    color: var(--text);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(168, 85, 247, 0.18), transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(34, 211, 238, 0.15), transparent 50%),
        linear-gradient(180deg, var(--nacht) 0%, var(--nacht-tief) 100%);
    background-attachment: fixed;
}

a { color: var(--cyan); }

/* --- Themefaehige Wortmarke ------------------------------------- */
.qa-brand { display:inline-flex;flex-direction:column;align-items:flex-start;line-height:.86;text-align:left; }
.qa-brand-name { font-size:1.65rem;font-weight:950;letter-spacing:-.055em;white-space:nowrap; }
.qa-brand-labs { margin-top:7px;font-size:.54rem;font-weight:800;letter-spacing:.24em;text-transform:uppercase;white-space:nowrap;color:var(--text-leise); }
.qa-brand-kompakt .qa-brand-name { font-size:1.28rem; }
.qa-brand-kompakt .qa-brand-labs { margin-top:5px;font-size:.42rem; }
.qa-brand-mini .qa-brand-name { font-size:.9rem; }
.qa-brand-mini .qa-brand-labs { margin-top:4px;font-size:.32rem;letter-spacing:.14em; }
.qa-brand-hero,.qa-brand-beamer { align-items:center;text-align:center; }
.qa-brand-hero .qa-brand-name { font-size:clamp(3rem,9vw,6.8rem); }
.qa-brand-hero .qa-brand-labs { margin-top:16px;font-size:clamp(.62rem,1.4vw,1rem); }
.qa-brand-beamer .qa-brand-name { font-size:clamp(3.5rem,9vw,8rem); }
.qa-brand-beamer .qa-brand-labs { margin-top:18px;font-size:clamp(.7rem,1.5vw,1.15rem); }


/* --- Bausteine ---------------------------------------------------- */

.karte {
    background: var(--panel);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.karte + .karte { margin-top: 16px; }

.karte h2, .karte h3 { margin-top: 0; }

.leise  { color: var(--text-leise); }
.klein  { font-size: 0.85rem; }
.mitte  { text-align: center; }
.weg    { display: none !important; }

.hinweis {
    background: rgba(251, 191, 36, 0.1);
    border-left: 3px solid var(--gold);
    padding: 12px 16px;
    border-radius: 6px;
    color: var(--text-leise);
}

.marke {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(34, 211, 238, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.35);
}


/* --- Kopfzeile ---------------------------------------------------- */

.kopf {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    background: rgba(7, 13, 36, 0.85);
    border-bottom: 1px solid var(--rand);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.kopf img { height: 38px; }

.kopf .titel {
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.05rem;
}

.kopf .rechts { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.raumcode {
    font-family: 'Consolas', monospace;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--limette);
    text-shadow: 0 0 14px rgba(163, 230, 53, 0.5);
}


/* --- Formulare ---------------------------------------------------- */

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-leise);
}

input[type=text], input[type=password], input[type=number],
select, textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(4, 8, 26, 0.7);
    border: 1px solid var(--rand);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

textarea { resize: vertical; min-height: 90px; }

.feld { margin-bottom: 16px; }


/* --- Schaltflaechen ----------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--rand);
    border-radius: 10px;
    background: var(--panel-hoch);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s, filter 0.15s;
}

.btn:hover  { filter: brightness(1.2); }
.btn:active { transform: translateY(1px); }

.btn:disabled, .btn.aus {
    opacity: 0.4;
    cursor: not-allowed;
    filter: none;
}

.btn-haupt  { background: linear-gradient(135deg, #0891b2, #22d3ee); color: #04121a; border-color: transparent; }
.btn-los    { background: linear-gradient(135deg, #15803d, #22c55e); color: #04120a; border-color: transparent; }
.btn-warn   { background: linear-gradient(135deg, #b45309, #fbbf24); color: #1a1204; border-color: transparent; }
.btn-stop   { background: linear-gradient(135deg, #9f1239, #f43f5e); color: #fff;    border-color: transparent; }
.btn-breit  { width: 100%; }
.btn-klein  { padding: 7px 12px; font-size: 0.8rem; }

/* --- Theme-Auswahl in der Regie --------------------------------- */
.theme-wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.theme-option { min-width: 0; padding: 0; overflow: hidden; text-align: left; color: var(--text); background: rgba(255,255,255,.025); border: 1px solid var(--rand); border-radius: 12px; cursor: pointer; font: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
.theme-option:hover { transform: translateY(-2px); }
.theme-option.aktiv { border-color: var(--cyan); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cyan) 25%, transparent); }
.theme-option > span:last-child { display: block; padding: 9px; }
.theme-option b, .theme-option small { display: block; }
.theme-option b { font-size: .82rem; }
.theme-option small { color: var(--text-leise); font-size: .68rem; margin-top: 3px; line-height: 1.25; }
.theme-vorschau { display: grid; place-items: center; height: 54px; font-size: 1.35rem; color: white; }
.theme-vorschau-neon { background: linear-gradient(135deg, #080b20, #16235e 55%, #ff2fae); text-shadow: 0 0 12px #22d3ee; }
.theme-vorschau-tropen { background: linear-gradient(150deg, #39cbe4 0 44%, #f3c86e 45% 62%, #168a54 63%); }
.theme-vorschau-schweden { background: linear-gradient(155deg, #65bce8 0 42%, #155f83 43% 62%, #204c35 63%); }
@media (max-width: 520px) { .theme-wahl { grid-template-columns: 1fr; } }


/* --- Listen ------------------------------------------------------- */

.liste { list-style: none; margin: 0; padding: 0; }

.listen-eintrag {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--rand);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.listen-eintrag:hover { background: rgba(255, 255, 255, 0.06); }

.listen-eintrag.aktiv {
    border-color: var(--cyan);
    background: rgba(34, 211, 238, 0.1);
}

.listen-eintrag .nr {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.15);
    color: var(--cyan);
    font-weight: 800;
    font-size: 0.8rem;
}

.listen-eintrag .wachsen { flex: 1; min-width: 0; }

.listen-eintrag .abschneiden {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* --- Punktetabelle ------------------------------------------------ */

.punkte-zeile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 6px;
}

.punkte-zeile.gebuzzert {
    background: rgba(163, 230, 53, 0.16);
    border: 1px solid var(--limette);
}

.punkte-zeile .punkte {
    margin-left: auto;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--gold);
}

.punkte-zeile.weg-vom-netz { opacity: 0.4; }

.team-punkt {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--text-leise);
}

.team-rot     { background: #f43f5e; }
.team-blau    { background: #3b82f6; }
.team-gruen   { background: #22c55e; }
.team-gelb    { background: #facc15; }
.team-lila    { background: #a855f7; }
.team-orange  { background: #fb923c; }


/* --- Layout ------------------------------------------------------- */

.huelle {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 18px 60px;
}

.spalten {
    display: grid;
    gap: 16px;
}

.spalten-2 { grid-template-columns: 1fr 1fr; }
.spalten-3 { grid-template-columns: 260px 1fr 300px; }

@media (max-width: 900px) {
    .spalten-2, .spalten-3 { grid-template-columns: 1fr; }
}


/* --- Fussnote ----------------------------------------------------- */

.fussnote {
    text-align: center;
    padding: 30px 0 10px;
    color: var(--text-leise);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
