/* Das total verrückte DDR-Quiz – Gestaltung
   Schwarz-Rot-Gold, Plakat-Optik mit Strahlenkranz. Keine externen Schriften (DSGVO). */

:root {
  /* Schwarz-Rot-Gold in weichen Pastelltönen */
  --black: #2b2729;
  --bg: #221f21;
  --card: #2d292b;
  --card2: #353033;
  --line: #4a4346;
  --text: #fbf4e8;
  --muted: #cbbfb3;
  --red: #df0f00;
  --red2: #f2463a;
  --redDark: #9b0a00;
  --gold: #f3d48a;
  --gold2: #f8e3b0;
  --goldDark: #c9a85c;
  --ok: #96d4ad;
  --bad: #ef9f9a;
  --r: 18px;
  --rb: 999px;
  --shadow: 0 10px 26px rgba(0, 0, 0, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --head: "Arial Black", "Segoe UI Black", Impact, "Franklin Gothic Heavy", sans-serif;
  --script: "Segoe Script", "Brush Script MT", "Comic Sans MS", cursive;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(223, 15, 0, .16), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(243, 212, 138, .07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.has-hostbar { padding-bottom: 76px; }
a { color: var(--gold); }
button, input { font: inherit; }
.hidden { display: none !important; }

/* Flaggenstreifen oben */
.flagbar { display: flex; height: 6px; position: sticky; top: 0; z-index: 30; }
.flagbar i { flex: 1; }
.flagbar i:nth-child(1) { background: #3a3537; }
.flagbar i:nth-child(2) { background: var(--red); }
.flagbar i:nth-child(3) { background: var(--gold); }
.stripe { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #000 0 33.3%, var(--red) 33.3% 66.6%, var(--gold) 66.6%); }

/* ---------- Grundbausteine ---------- */

#stage { position: relative; max-width: 980px; margin: 0 auto; padding: 18px 16px 30px; }
body.in-room #stage { min-height: 60vh; }
.screen { animation: enter .45s var(--ease) both; }
.screen.leave { position: absolute; left: 16px; right: 16px; top: 18px; animation: leave .35s ease both; pointer-events: none; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@keyframes leave { to { opacity: 0; transform: translateY(-10px); } }

.card {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin: 0 0 10px; font-family: var(--head); letter-spacing: .3px; }
.card h2 { font-size: 1.25rem; color: var(--gold); text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack > * + * { margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--rb); padding: 13px 24px; cursor: pointer;
  font-family: var(--head); font-size: 1rem; letter-spacing: .4px; text-transform: uppercase;
  background: var(--red); color: #fff; text-decoration: none;
  box-shadow: 0 4px 0 var(--redDark), 0 8px 18px rgba(0, 0, 0, .18);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--redDark); }
.btn.gold { background: var(--gold); color: #2b2412; box-shadow: 0 4px 0 var(--goldDark), 0 8px 18px rgba(0, 0, 0, .18); }
.btn.dark { background: var(--card2); color: var(--text); box-shadow: 0 4px 0 #1a1719; border: 1px solid var(--line); }
.btn.ghost { background: transparent; color: var(--muted); box-shadow: none; border: 1px solid var(--line); }
.btn.small { padding: 8px 14px; font-size: .82rem; }
.btn.big { padding: 16px 30px; font-size: 1.15rem; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.5); }

label.field { display: block; }
label.field span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password] {
  width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: #1c191b; color: var(--text); font-size: 1rem; outline: none;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243, 212, 138, .2); }
input.code { text-transform: uppercase; letter-spacing: 6px; font-family: var(--head); text-align: center; font-size: 1.4rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--red); }

/* ---------- Logo & Startseite ---------- */

.hero { text-align: center; padding: 10px 0 6px; position: relative; }
.rays {
  position: relative; width: min(300px, 70vw); aspect-ratio: 1; margin: 0 auto -8px;
  display: grid; place-items: center;
}
.rays::before {
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(223, 15, 0, .2) 0 6deg, transparent 6deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%);
  mask: radial-gradient(circle, #000 25%, transparent 70%);
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.emblem { width: 100%; height: auto; position: relative; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
.emblem.sm { width: 34px; }
.logo { margin: 6px 0 0; line-height: 1; }
.logo .pre { display: block; font-family: var(--script); color: var(--red); font-weight: 700; font-size: clamp(1.4rem, 5vw, 2.2rem); transform: rotate(-3deg); text-shadow: 0 2px 0 #000; }
.logo .main {
  display: block; font-family: var(--head); text-transform: uppercase; color: var(--gold);
  font-size: clamp(2.6rem, 11vw, 5.4rem); letter-spacing: 1px;
  text-shadow: 3px 3px 0 var(--redDark), 6px 6px 0 rgba(0, 0, 0, .35);
}
.tagline { color: var(--muted); max-width: 560px; margin: 14px auto 22px; }
.home-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; text-align: left; }
.info { max-width: 980px; margin: 0 auto; padding: 0 16px 30px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.steps { margin: 0; padding-left: 20px; }
.steps li + li { margin-top: 6px; }
.levels-info { list-style: none; margin: 0; padding: 0; }
.levels-info li + li { margin-top: 10px; }
.lv { display: inline-block; font-family: var(--head); font-size: .75rem; text-transform: uppercase; padding: 3px 10px; border-radius: var(--rb); margin-right: 6px; }
.lv1 { background: var(--gold); color: #000; }
.lv2 { background: var(--red); color: #fff; }
.lv3 { background: var(--black); color: var(--gold); border: 1px solid var(--gold); }
.offer { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; border-top-color: var(--gold); }
.offer p { margin: 6px 0; }
.price { text-align: center; font-family: var(--head); color: var(--gold); font-size: 2.2rem; line-height: 1; }
.price small { display: block; font-size: .8rem; color: var(--muted); margin-top: 6px; font-family: inherit; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 20px 16px 30px; }
.foot a { color: var(--muted); }
body.in-room .foot, body.in-room #info { display: none !important; }
.noscript { text-align: center; padding: 30px; }

/* ---------- Topbar & Hostbar ---------- */

.topbar {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px;
  background: rgba(34, 31, 33, .92); border-bottom: 1px solid var(--line);
  position: sticky; top: 6px; z-index: 20; backdrop-filter: blur(6px);
}
.topbar .brand { font-family: var(--head); color: var(--gold); text-transform: uppercase; font-size: .95rem; }
.topbar .code { font-family: var(--head); letter-spacing: 3px; background: var(--black); border: 1px solid var(--gold); color: var(--gold); padding: 3px 12px; border-radius: var(--rb); }
.topbar .spacer { flex: 1; }
.conn { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.conn.bad { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.hostbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(34, 31, 33, .96); border-top: 3px solid var(--red);
  border-radius: 22px 22px 0 0;
}
.hostbar .label { color: var(--muted); font-size: .85rem; }

/* ---------- Moderator ---------- */

.mod { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; }
.mod-face {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a3f3a, #2b2527);
  border: 3px solid var(--gold); display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 0 0 3px var(--red);
}
.mod-bubble {
  position: relative; background: var(--text); color: #2b2320; padding: 12px 18px; border-radius: 20px;
  font-weight: 600; box-shadow: var(--shadow); animation: bubble .5s var(--pop) both;
}
.mod-bubble::before { content: ""; position: absolute; left: -9px; top: 18px; border: 9px solid transparent; border-left: 0; border-right-color: var(--text); }
.mod-bubble b.who { display: block; font-family: var(--head); text-transform: uppercase; font-size: .72rem; color: var(--red); letter-spacing: .5px; margin-bottom: 2px; }
@keyframes bubble { from { opacity: 0; transform: scale(.8) translateX(-10px); } }
.mod.big .mod-face { width: 76px; height: 76px; font-size: 38px; }
.mod.big .mod-bubble { font-size: 1.12rem; }

/* ---------- Lobby ---------- */

.roomcode { text-align: center; }
.roomcode .big { font-family: var(--head); font-size: clamp(2.8rem, 12vw, 4.6rem); letter-spacing: 10px; color: var(--gold); text-shadow: 3px 3px 0 var(--redDark); line-height: 1.1; }
.players { display: flex; flex-wrap: wrap; gap: 10px; }
.pchip { display: flex; align-items: center; gap: 8px; background: #252123; border: 1px solid var(--line); border-radius: var(--rb); padding: 5px 12px 5px 5px; animation: enter .4s var(--pop) both; }
.pchip.off { opacity: .45; }
.pchip .kick { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0 0 0 4px; }
.ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--c, #333); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35); flex: 0 0 auto; }
.ava.lg { width: 52px; height: 52px; font-size: 28px; }
.ava.xs { width: 24px; height: 24px; font-size: 13px; }
.crown { color: var(--gold); font-size: .8rem; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.level {
  position: relative; text-align: left; cursor: pointer; border-radius: var(--r); padding: 16px;
  background: #262224; color: var(--text); border: 2px solid var(--line); transition: transform .15s, border-color .15s;
}
.level:hover:not(:disabled) { transform: translateY(-2px); }
.level.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243, 212, 138, .22), var(--shadow); }
.level h3 { margin: 6px 0 4px; font-family: var(--head); text-transform: uppercase; }
.level p { margin: 0; color: var(--muted); font-size: .9rem; }
.level:disabled { cursor: not-allowed; opacity: .55; }
.level .lock { position: absolute; top: 10px; right: 10px; font-size: .72rem; background: var(--red); color: #fff; padding: 2px 9px; border-radius: var(--rb); font-family: var(--head); text-transform: uppercase; }
.rounds { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 10px 16px; cursor: pointer;
  border-radius: var(--r); border: 2px solid var(--line); background: #262224; color: var(--text); transition: transform .15s, border-color .15s;
}
.chip b { font-family: var(--head); font-size: 1.35rem; color: var(--gold); }
.chip small { color: var(--muted); font-size: .75rem; }
.chip:hover { transform: translateY(-2px); }
.chip.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243, 212, 138, .22); }
.demo-note { border: 1px dashed var(--gold); border-radius: var(--r); padding: 10px 14px; color: var(--gold2); font-size: .92rem; }

/* ---------- Spiel ---------- */

.progress { display: flex; gap: 4px; margin-bottom: 12px; }
.progress i { flex: 1; height: 8px; border-radius: var(--rb); background: #3a3436; }
.progress i.done { background: var(--red); }
.progress i.cur { background: var(--gold); }
.progress i.salat { box-shadow: inset 0 0 0 2px var(--gold); }
.timer { height: 12px; border-radius: var(--rb); background: #3a3436; overflow: hidden; margin: 10px 0 16px; }
.timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); transform-origin: left; }
.timer.low i { background: var(--bad); animation: blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity: .5; } }
.qhead { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; font-family: var(--head); text-transform: uppercase; }
.question { font-family: var(--head); font-size: clamp(1.25rem, 4.2vw, 1.9rem); line-height: 1.25; margin: 6px 0 18px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.opt {
  display: flex; gap: 12px; align-items: center; text-align: left; cursor: pointer;
  padding: 16px; border-radius: var(--r); border: 2px solid var(--line); background: #2a2628; color: var(--text);
  font-size: 1.05rem; font-weight: 600; transition: transform .12s, border-color .12s, background .2s;
}
button.opt:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold); }
.opt .key { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); }
.opt:nth-child(1) .key { background: var(--red); color: #fff; }
.opt:nth-child(2) .key { background: var(--gold); color: #000; }
.opt:nth-child(3) .key { background: var(--black); color: var(--gold); border: 1px solid var(--gold); }
.opt:nth-child(4) .key { background: #fff6dd; color: #000; }
.opt.picked { border-color: var(--gold); background: #3a3426; }
.opt:disabled { cursor: default; }
.opt.right { border-color: var(--ok); background: rgba(150, 212, 173, .16); }
.opt.wrong { border-color: var(--bad); background: rgba(239, 159, 154, .14); }
.opt.dim { opacity: .55; }
.opt .cnt { margin-left: auto; display: flex; gap: 3px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.waitrow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.waitrow .ava { opacity: .3; transition: opacity .3s, transform .3s; }
.waitrow .ava.done { opacity: 1; transform: scale(1.08); }
.saved { text-align: center; margin-top: 14px; color: var(--gold2); font-weight: 700; }

.intro { text-align: center; padding: 30px 0 10px; }
.intro .kicker { font-family: var(--head); text-transform: uppercase; color: var(--muted); letter-spacing: 2px; }
.intro h1 { font-family: var(--head); text-transform: uppercase; font-size: clamp(2rem, 9vw, 3.8rem); margin: 6px 0; color: var(--gold); text-shadow: 3px 3px 0 var(--redDark); animation: zoom .6s var(--pop) both; }
@keyframes zoom { from { transform: scale(.4); opacity: 0; } }
.intro .mod { justify-content: center; text-align: left; max-width: 640px; margin: 22px auto 0; }

/* Buchstabensalat */
.tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 20px; }
.tile {
  width: clamp(38px, 9vw, 54px); aspect-ratio: 1; display: grid; place-items: center;
  font-family: var(--head); font-size: clamp(1.3rem, 5vw, 1.9rem); color: #2b2412;
  background: linear-gradient(180deg, var(--gold2), var(--gold)); border-radius: 14px;
  box-shadow: 0 4px 0 var(--goldDark); animation: drop .5s var(--pop) both;
}
.tile:nth-child(odd) { transform: rotate(-4deg); }
.tile:nth-child(3n) { transform: rotate(5deg); }
@keyframes drop { from { opacity: 0; transform: translateY(-30px) rotate(20deg); } }
.solve { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.solve input { flex: 1; }
.solve.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.hints { max-width: 520px; margin: 16px auto 0; display: grid; gap: 8px; }
.hint { background: #2a2628; border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 14px; animation: enter .4s both; }
.hint.wait { opacity: .45; border-left-color: var(--line); font-style: italic; }
.wordreveal { text-align: center; font-family: var(--head); font-size: clamp(2rem, 9vw, 3.6rem); color: var(--gold); letter-spacing: 4px; text-shadow: 3px 3px 0 var(--redDark); margin: 10px 0; word-break: break-word; }

/* Auflösung & Ergebnisse */
.me-result { text-align: center; font-family: var(--head); text-transform: uppercase; font-size: 1.2rem; margin: 6px 0 4px; }
.me-result.ok { color: var(--ok); }
.me-result.no { color: var(--bad); }
.me-result small { display: block; font-family: inherit; text-transform: none; font-size: .95rem; color: var(--muted); font-weight: 600; }
.fact { background: #282426; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--r); padding: 12px 14px; margin-top: 14px; }
.fact b { color: var(--gold); font-family: var(--head); text-transform: uppercase; font-size: .78rem; display: block; margin-bottom: 4px; }
.ranking { display: grid; gap: 8px; }
.rank { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #2a2628; border: 1px solid var(--line); border-radius: var(--r); animation: enter .4s both; }
.rank .pos { font-family: var(--head); width: 28px; color: var(--muted); }
.rank .nm { flex: 1; font-weight: 700; }
.rank .pts { font-family: var(--head); color: var(--gold); }
.rank .delta { color: var(--ok); font-size: .85rem; font-weight: 700; min-width: 80px; text-align: right; white-space: nowrap; }
.rank .pts { white-space: nowrap; }
.rank.first { border-color: var(--gold); background: linear-gradient(90deg, rgba(243, 212, 138, .16), #2a2628); }
.rank.me { box-shadow: inset 4px 0 0 var(--red); }
.solvers { display: grid; gap: 8px; max-width: 520px; margin: 0 auto; }

.podium { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin: 20px 0; }
.podium .pl { text-align: center; width: 30%; max-width: 160px; }
.podium .blk { border-radius: 18px 18px 0 0; display: grid; place-items: center; font-family: var(--head); font-size: 1.8rem; color: #000; margin-top: 8px; }
.podium .p1 .blk { height: 120px; background: var(--gold); }
.podium .p2 .blk { height: 86px; background: #dcdad6; }
.podium .p3 .blk { height: 64px; background: #ddb08a; }
.podium .nm { font-weight: 700; margin-top: 6px; word-break: break-word; }
.podium .pts { color: var(--gold); font-family: var(--head); font-size: .9rem; }
.medal { font-size: 2rem; animation: zoom .8s var(--pop) both; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--black); border: 1px solid var(--gold); color: var(--text); padding: 11px 20px; border-radius: var(--rb); z-index: 50; box-shadow: var(--shadow); max-width: calc(100% - 32px); animation: enter .3s both; }
.toast.bad { border-color: var(--bad); }
.toast.out { opacity: 0; transition: opacity .4s; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { background: #262224; border: 1px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; }
.stat b { display: block; font-family: var(--head); font-size: 1.6rem; color: var(--gold); }
.stat span { color: var(--muted); font-size: .82rem; }
.badge { display: inline-block; font-family: var(--head); text-transform: uppercase; font-size: .75rem; padding: 4px 12px; border-radius: var(--rb); }
.badge.full { background: var(--gold); color: #2b2412; }
.badge.demo { background: var(--red); color: #fff; }
.soon { opacity: .7; border: 1px dashed var(--line); border-radius: 16px; padding: 12px; text-align: center; }

@media (max-width: 560px) {
  #stage { padding: 14px 12px 24px; }
  .card { padding: 16px; }
  .opt { padding: 13px; font-size: 1rem; }
  .topbar .brand { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}

/* ---------- Startseite ab „So geht’s“: Ost-Charme statt Kästen ---------- */

.info { max-width: 980px; margin: 0 auto; padding: 10px 16px 30px; }
.ost-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 46px 0 6px; text-align: center; }
.ost-head h2 { margin: 0; font-family: var(--head); text-transform: uppercase; color: var(--gold); font-size: clamp(1.25rem, 4vw, 1.8rem); letter-spacing: .5px; }
.ost-head span { color: var(--red); font-size: 1.1rem; }
.ost-head::before, .ost-head::after { content: ""; flex: 1; max-width: 160px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--red), var(--gold)); }
.ost-head::after { transform: scaleX(-1); }
.ost-sub { text-align: center; color: var(--muted); margin: 4px 0 22px; font-style: italic; }

/* Plaketten */
.plaketten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; position: relative; }
.plaketten li { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.plaketten li b { font-family: var(--head); text-transform: uppercase; font-size: 1.02rem; }
.plaketten li > span:last-child { color: var(--muted); max-width: 260px; }
.plakette {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
  font-family: var(--head); font-size: 2rem; color: #4a3a12;
  background: radial-gradient(circle at 35% 30%, var(--gold2), var(--gold) 60%, var(--goldDark));
  box-shadow: 0 0 0 5px var(--red), 0 0 0 8px var(--gold), 0 10px 20px rgba(0, 0, 0, .35);
}

/* Emaille-Schilder */
.schilder { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 20px; }
.schild {
  position: relative; border-radius: 22px; padding: 22px 20px 20px; text-align: center;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), inset 0 0 0 7px transparent, 0 10px 22px rgba(0, 0, 0, .3);
}
.schild::before, .schild::after { content: ""; position: absolute; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: inset 0 -2px 2px rgba(0, 0, 0, .25); }
.schild::before { left: 12px; }
.schild::after { right: 12px; }
.schild small { display: block; font-family: var(--head); text-transform: uppercase; font-size: .72rem; letter-spacing: 1px; opacity: .8; }
.schild b { display: block; font-family: var(--head); text-transform: uppercase; font-size: 1.35rem; margin: 4px 0 6px; }
.schild span { font-size: .93rem; }
.schild.s1 { background: var(--gold); color: #3b2f12; }
.schild.s2 { background: var(--red); color: #fff; }
.schild.s3 { background: #1b1819; color: var(--gold); box-shadow: inset 0 0 0 3px var(--gold), 0 10px 22px rgba(0, 0, 0, .3); }
.schild.s3::before, .schild.s3::after { background: var(--gold); }

/* HO-Preistafel (Steckbuchstaben) */
.preis-wrap { display: grid; grid-template-columns: minmax(280px, 1.1fr) 1fr; gap: 28px; align-items: center; margin-top: 20px; }
.preistafel {
  background: repeating-linear-gradient(180deg, #1a1718 0 22px, #141213 22px 24px);
  border: 10px solid #6b4a2e; border-radius: 16px; padding: 14px 18px 18px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .6), 0 12px 26px rgba(0, 0, 0, .35);
  font-family: "Courier New", Courier, monospace; color: #f4efe4; transform: rotate(-.8deg);
}
.tafel-kopf { text-align: center; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: var(--gold); border-bottom: 2px dashed rgba(255, 255, 255, .25); padding-bottom: 8px; margin-bottom: 8px; }
.preistafel ul { list-style: none; margin: 0; padding: 0; }
.preistafel li { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: .98rem; text-transform: uppercase; }
.preistafel li i { flex: 1; border-bottom: 2px dotted rgba(255, 255, 255, .3); }
.preistafel li b { white-space: nowrap; color: #fff; }
.preistafel li.trenn { height: 10px; }
.preis-text p { margin: 0 0 10px; }
.mini-tiles { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.mini-tiles span {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  font-family: var(--head); color: #3b2f12; background: linear-gradient(180deg, var(--gold2), var(--gold)); box-shadow: 0 3px 0 var(--goldDark);
}
.mini-tiles span:nth-child(odd) { transform: rotate(-5deg); }
.mini-tiles span:nth-child(3n) { transform: rotate(6deg); }

/* Antragsformular mit Stempel */
.antrag {
  position: relative; margin: 50px auto 0; max-width: 760px; padding: 26px 28px 24px;
  background: #f3ead4; color: #3a3226; border-radius: 6px 6px 18px 18px;
  font-family: "Courier New", Courier, monospace;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .4); transform: rotate(.6deg);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(58, 50, 38, .08) 31px 32px);
}
.antrag-kopf { text-align: center; border-bottom: 2px solid #3a3226; padding-bottom: 10px; margin-bottom: 14px; }
.antrag-kopf span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: #7a6c58; }
.antrag-kopf h2 { margin: 4px 0; font-family: var(--head); text-transform: uppercase; letter-spacing: 1px; color: #3a3226; font-size: clamp(1.2rem, 4vw, 1.6rem); }
.antrag-zeile { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #b9ab92; }
.antrag-zeile .kreuz { font-size: 1.6rem; line-height: 1; color: #3a3226; }
.antrag-zeile b { font-family: inherit; }
.antrag-fuss { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.antrag-fuss .muted { color: #7a6c58; }
.stempel {
  position: absolute; right: 26px; top: 84px; transform: rotate(-14deg);
  border: 4px double var(--red); color: var(--red); border-radius: 14px; padding: 8px 16px; text-align: center;
  font-family: var(--head); text-transform: uppercase; font-size: 1.5rem; letter-spacing: 2px; opacity: .82;
  mix-blend-mode: multiply; pointer-events: none;
}
.stempel small { display: block; font-size: .6rem; letter-spacing: 1px; }

/* Fragestunde */
.fragestunde { max-width: 760px; margin: 18px auto 0; display: grid; gap: 10px; }
.fragestunde .frage {
  justify-self: end; margin: 8px 0 0; max-width: 80%; padding: 10px 16px; border-radius: 20px 20px 4px 20px;
  background: var(--gold); color: #3b2f12; font-weight: 700;
}
.fragestunde .antwort { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; }
.fragestunde .antwort .mod-face { width: 44px; height: 44px; font-size: 22px; }
.fragestunde .antwort p { margin: 0; background: var(--text); color: #2b2320; padding: 10px 16px; border-radius: 20px 20px 20px 4px; }

@media (max-width: 700px) {
  .preis-wrap { grid-template-columns: 1fr; }
  .stempel { position: static; display: inline-block; margin-top: 16px; transform: rotate(-8deg); }
  .antrag { padding: 22px 18px; }
}


/* ---------- Startseite: Hinweisbänder ---------- */
.vorteile { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin-top: 18px; }
.band {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  background: var(--red); color: #fff; padding: 12px 22px; border-radius: var(--rb);
  box-shadow: 0 4px 0 var(--redDark), 0 10px 20px rgba(0, 0, 0, .25);
}
.band span { grid-row: span 2; font-size: 1.4rem; color: var(--gold); }
.band b { font-family: var(--head); text-transform: uppercase; font-size: .95rem; letter-spacing: .3px; }
.band small { opacity: .92; }
.band.gold { background: var(--gold); color: #3b2f12; box-shadow: 0 4px 0 var(--goldDark), 0 10px 20px rgba(0, 0, 0, .25); }
.band.gold span { color: var(--red); }

/* ---------- Startseite: SEO-Text als Zeitung ---------- */
.zeitung {
  margin: 50px auto 0; max-width: 900px; padding: 22px 28px 26px; border-radius: 10px;
  background: #e9e2cf; color: #2a2620; font-family: Georgia, "Times New Roman", serif;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .4); transform: rotate(-.4deg);
  background-image: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px); background-size: 4px 4px;
}
.zeitung-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 3px double #2a2620; padding-bottom: 6px; flex-wrap: wrap; }
.zeitung-kopf b { font-family: "Old English Text MT", Georgia, serif; font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 400; }
.zeitung-kopf span { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: #5a5242; }
.zeitung h2 { font-family: Georgia, serif; font-size: clamp(1.25rem, 3.5vw, 1.7rem); line-height: 1.2; margin: 14px 0 12px; text-align: center; }
.zeitung .spalten { columns: 2 280px; column-gap: 28px; column-rule: 1px solid #b8ad92; text-align: justify; hyphens: auto; }
.zeitung .spalten p { margin: 0 0 10px; line-height: 1.55; }
.zeitung .spalten p:first-child::first-letter { float: left; font-size: 3.2em; line-height: .85; padding: 4px 6px 0 0; color: var(--red); font-weight: 700; }

/* ---------- Spiel: Röhrenfernseher ---------- */
.tv {
  position: relative; margin: 6px auto 16px; max-width: 860px; padding: 16px 16px 10px; border-radius: 30px;
  background: linear-gradient(160deg, #8a5f3b, #5e3f26 45%, #4a301c);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), inset 0 -3px 0 rgba(0, 0, 0, .3), 0 16px 32px rgba(0, 0, 0, .45);
}
.tv::before { /* Holzmaserung */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(100deg, transparent 0 9px, rgba(0, 0, 0, .5) 9px 10px, transparent 10px 23px);
}
.tv-screen {
  position: relative; overflow: hidden; min-height: 150px; padding: 26px 30px 24px; text-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  border-radius: 46px / 34px; color: #f1f7ea;
  background: radial-gradient(ellipse at 50% 42%, #44554d 0%, #26302c 62%, #151a18 100%);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .85), 0 0 0 5px #2a1c12, 0 0 0 7px #a07a52;
  animation: tvOn .7s cubic-bezier(.2, .8, .2, 1) both;
}
.tv-screen::after { /* Bildzeilen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .2) 0 2px, transparent 2px 4px);
}
.tv-screen::before { /* Spiegelung */
  content: ""; position: absolute; left: -10%; top: -40%; width: 70%; height: 90%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .09), transparent 65%); transform: rotate(-18deg);
}
@keyframes tvOn {
  0% { transform: scale(1, .01); filter: brightness(4); }
  45% { transform: scale(1, .01); filter: brightness(4); }
  75% { transform: scale(1, 1.03); filter: brightness(1.6); }
  100% { transform: none; filter: none; }
}
.tv-label { position: relative; z-index: 1; font-family: var(--head); text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; color: var(--gold); opacity: .9; }
.tv .question { position: relative; z-index: 1; margin: 0; text-shadow: 0 0 10px rgba(200, 255, 220, .3), 0 2px 0 rgba(0, 0, 0, .5); }
.tv .question.small-q { font-size: clamp(1.05rem, 3.2vw, 1.4rem); opacity: .92; }
.tv .tiles { position: relative; z-index: 1; margin: 6px 0 4px; }
.tv .wordreveal { position: relative; z-index: 1; margin: 2px 0; }
.tv-flat .tv-screen { min-height: 0; padding: 18px 26px; }
.tv-panel { display: flex; align-items: center; gap: 10px; padding: 9px 10px 0; position: relative; }
.tv-brand { font-family: var(--script); color: var(--gold); font-size: .95rem; text-shadow: 0 1px 0 #000; }
.tv-grill { flex: 1; height: 12px; border-radius: 6px; background: repeating-linear-gradient(90deg, #2a1c12 0 3px, #7a5636 3px 6px); opacity: .8; }
.tv-lamp { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red2); }
.knob {
  width: 24px; height: 24px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 30%, #f4ead2, #c9b48a 60%, #8c7650);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .5);
}
.knob::after { content: ""; position: absolute; left: 50%; top: 3px; width: 2px; height: 8px; margin-left: -1px; background: #4a3a22; border-radius: 1px; transform-origin: 50% 9px; transform: rotate(-35deg); }
.knob + .knob::after { transform: rotate(50deg); }

/* Testbild im Intro */
.tv-intro .tv-screen { padding: 0; min-height: 230px; }
.testbild { position: relative; min-height: 230px; display: grid; place-items: center; }
.testbild-bars { position: absolute; inset: 0; display: flex; opacity: .55; }
.testbild-bars i { flex: 1; }
.testbild-bars i:nth-child(1) { background: #d9d6cf; }
.testbild-bars i:nth-child(2) { background: #d8c35a; }
.testbild-bars i:nth-child(3) { background: #5fb7b4; }
.testbild-bars i:nth-child(4) { background: #67a85a; }
.testbild-bars i:nth-child(5) { background: #a95a9e; }
.testbild-bars i:nth-child(6) { background: #b8443c; }
.testbild-bars i:nth-child(7) { background: #3f4f9a; }
.testbild-kreis {
  position: relative; z-index: 1; margin: 24px; padding: 18px 34px; border-radius: 999px;
  background: rgba(20, 24, 22, .88); border: 3px solid #f1f7ea; box-shadow: 0 0 0 6px rgba(20, 24, 22, .5);
}
.testbild-kreis h1 { margin: 2px 0 0; }
.intro .tv { margin-top: 10px; }

/* Countdown mit Sekunden-Plakette */
.timer-wrap { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.timer-wrap .timer { flex: 1; margin: 0; }
.secs {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--head); font-size: 1.15rem; color: #4a3a12;
  background: radial-gradient(circle at 35% 30%, var(--gold2), var(--gold) 60%, var(--goldDark));
  box-shadow: 0 0 0 3px var(--red), 0 4px 10px rgba(0, 0, 0, .35);
}
.timer-wrap.low .secs { animation: pulse .5s ease-in-out infinite alternate; }
.timer-wrap.low .timer i { background: var(--red); }
@keyframes pulse { to { transform: scale(1.12); } }
.qhead { align-items: center; margin-bottom: 8px; }

/* Antworten als Gerätetasten */
.opt {
  border: 0; background: linear-gradient(180deg, #faf3e2, #eadfc2); color: #2b2320;
  box-shadow: 0 6px 0 #b9a67c, 0 12px 18px rgba(0, 0, 0, .28); border-radius: 20px;
  transition: transform .1s, box-shadow .1s, opacity .2s;
}
button.opt:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 0 #b9a67c, 0 14px 22px rgba(0, 0, 0, .3); border: 0; }
button.opt:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 #b9a67c; }
.opt .key { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.opt:nth-child(4) .key { background: #2b2729; color: var(--gold); }
.opt.picked { transform: translateY(5px); box-shadow: 0 1px 0 #b9a67c, inset 0 0 0 3px var(--red); background: linear-gradient(180deg, #fff6dc, #f1e3bb); }
.opt:disabled:not(.picked) { opacity: .7; }
.opt.right { background: linear-gradient(180deg, #f2fbef, #d8efd6); box-shadow: 0 6px 0 #8fbf96, inset 0 0 0 3px #3f9a5a; }
.opt.right .key { background: #3f9a5a; color: #fff; }
.opt.wrong { background: linear-gradient(180deg, #fbefed, #f1d6d2); box-shadow: 0 6px 0 #d19b94, inset 0 0 0 3px var(--red); }
.opt.dim { opacity: .5; }
.saved { margin-top: 18px; }

/* Ergebnis als Stempel */
.stamp-row { text-align: center; margin: 4px 0 16px; }
.me-result {
  display: inline-block; padding: 6px 20px 8px; border: 4px double currentColor; border-radius: 14px;
  transform: rotate(-3deg); background: rgba(0, 0, 0, .15); animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1) both;
}
.me-result small { margin-top: 2px; }
@keyframes stamp { from { transform: rotate(-3deg) scale(2.2); opacity: 0; } }
.center > .me-result { margin: 4px auto 12px; }

/* Fakt als Karteikarte */
.fact {
  position: relative; background: #f6efdc; color: #2b2320; border: 0; border-radius: 6px 6px 16px 16px;
  padding: 16px 20px 14px; margin-top: 18px; box-shadow: 0 10px 22px rgba(0, 0, 0, .3); transform: rotate(.4deg);
  background-image: linear-gradient(var(--red), var(--red)), repeating-linear-gradient(180deg, transparent 0 25px, rgba(60, 90, 160, .18) 25px 26px);
  background-size: 100% 4px, 100% 100%; background-repeat: no-repeat, repeat; background-position: 0 34px, 0 8px;
}
.fact b { color: var(--red); font-family: "Courier New", Courier, monospace; letter-spacing: 1px; margin-bottom: 14px; }
.fact p { margin: 0; line-height: 26px; }

/* Fortschritt als Lämpchen */
.progress i { height: 10px; }
.progress i.cur { box-shadow: 0 0 10px var(--gold); }

@media (max-width: 560px) {
  .tv { padding: 10px 10px 8px; border-radius: 22px; }
  .tv-screen { padding: 20px 16px 18px; border-radius: 30px / 24px; min-height: 120px; }
  .tv-panel .knob + .knob { display: none; }
  .zeitung { padding: 18px 16px 20px; }
  .testbild-kreis { padding: 14px 18px; margin: 16px; }
}

/* Hinweis „im Aufbau“ (solange der Kauf nicht freigegeben ist) */
.aufbau {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; text-align: center;
  margin: 0 0 18px; padding: 12px 18px; border-radius: var(--r);
  background: repeating-linear-gradient(-45deg, rgba(243, 212, 138, .14) 0 14px, transparent 14px 28px), #2b2729;
  border: 2px dashed var(--gold); color: var(--text); font-weight: 600;
}
.aufbau-schild {
  font-family: var(--head); text-transform: uppercase; letter-spacing: 1px; font-size: .8rem;
  background: var(--gold); color: #3b2f12; padding: 4px 12px; border-radius: var(--rb);
}
.card .aufbau, .stack > .aufbau { margin: 0; }
