/* Kennste? Stil nach Refero "Honk": blaue Fläche (Autobahnschild), gelbe Signalwörter (Ortsschild),
   weiße Panels. Grün und Rot nur im Spiel. Urkunde mit Stempel als Höhepunkt. */
:root {
  --canvas: #0B6BDB;
  --sky: #1F86F0;
  --deep: #0957B5;
  --white: #FFFFFF;
  --soft: rgba(255,255,255,.8);
  --line: rgba(255,255,255,.28);
  --yellow: #FFE400;
  --carbon: #111111;
  --slate: #4A4F57;
  --panel-line: #E2E4E8;
  --paper: #F7F6F2;
  --green: #3FCC6B;
  --red: #E5484D;
  --red-wash: #FCE3E3;
  --r-s: 6px;
  --r-l: 16px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --display: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--canvas); color: var(--white);
  font: 400 17px/1.45 var(--display); letter-spacing: -.01em;
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--yellow); color: var(--carbon); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.02; margin: 0; letter-spacing: -.025em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--yellow); }
p { text-wrap: pretty; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Kopf ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1200px; margin: 0 auto; padding: 18px 24px; }
.logo { font: 900 27px/1 var(--display); text-decoration: none; letter-spacing: -.04em; }
.logo span { color: var(--yellow); }
.top-r { display: flex; gap: 4px; align-items: center; min-width: 0; }
.homebtn { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 12px; font-weight: 600; font-size: 15px; min-width: 0; transition: background .15s var(--ease), border-color .15s var(--ease); }
.homebtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.homebtn .ic { width: 17px; height: 17px; color: var(--yellow); }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r-s); border: 1px solid transparent; background: none; display: grid; place-items: center; flex: none; transition: background .15s var(--ease), transform .1s var(--ease); }
@media (hover: hover) and (pointer: fine) { .homebtn:hover { background: var(--deep); border-color: var(--soft); } .icon-btn:hover { background: var(--deep); } }
.icon-btn:active, .homebtn:active { transform: translateY(1px); }

/* ---------- Startseite ---------- */
.home { max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 48px 0 80px; }
.hero h1 { font-size: clamp(44px, 6.2vw, 84px); max-width: 10ch; }
.hero p { font-size: 19px; font-weight: 500; color: var(--soft); max-width: 34ch; margin: 22px 0 32px; }
.hero-map { margin: 0; position: relative; }
.hero-map svg { display: block; width: 100%; height: auto; max-height: 580px; }
.hero-map figcaption { font-size: 15px; font-weight: 600; color: var(--soft); text-align: center; margin-top: 10px; min-height: 1.5em; }
.bubble { position: absolute; background: var(--white); color: var(--carbon); font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: var(--r-l); white-space: nowrap; animation: bob 5s ease-in-out infinite; pointer-events: none; }
.bubble::after { content: ""; position: absolute; bottom: -7px; width: 14px; height: 14px; background: var(--white); transform: rotate(45deg); border-radius: 2px; }
.b1 { top: 6%; left: -4%; } .b1::after { left: 22px; }
.b2 { top: 44%; right: -6%; animation-delay: -1.6s; } .b2::after { left: 22px; }
.b3 { bottom: 12%; left: 2%; animation-delay: -3.2s; background: var(--yellow); } .b3::after { right: 22px; background: var(--yellow); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 16px; padding: 20px 0 56px; }
  .hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .hero p { font-size: 17px; margin: 16px 0 24px; }
  .hero-map { order: -1; width: 70%; margin: 0 auto; }
  .hero-map figcaption { display: none; }
  .bubble { font-size: 13px; padding: 7px 11px; }
  .b1 { left: -14%; } .b2 { right: -16%; } .b3 { left: -10%; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: transparent; color: var(--white); border: 1.5px solid var(--white); border-radius: var(--r-s); padding: 13px 18px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease), transform .1s var(--ease); }
.btn .ic { width: 18px; height: 18px; }
.btn.lg { padding: 18px 26px; font-size: 18px; }
.btn.primary, .btn.ink { background: var(--carbon); border-color: var(--carbon); color: var(--white); }
.btn.quiet { border-color: transparent; text-decoration: underline; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--deep); }
  .btn.primary:hover, .btn.ink:hover { background: #2A2A2A; }
  .btn.quiet:hover { background: none; color: var(--yellow); }
  .btn.primary:hover .ic, .exam:hover .ex-a .ic { transform: translateX(3px); }
}
.btn .ic, .ex-a .ic { transition: transform .18s var(--ease); }
.btn:active { transform: translateY(1px); }

/* Tagesprüfung als weißes Panel */
.daily { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--white); color: var(--carbon); border-radius: var(--r-l); padding: 28px 32px; }
.daily h2 { font-size: clamp(26px, 3.2vw, 36px); }
.daily h2 em { color: var(--canvas); }
.daily p { color: var(--slate); margin: 8px 0 0; max-width: 46ch; }
.stampcard { display: flex; align-items: center; gap: 22px; }
.stampcard ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.stampcard li { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.stampcard li span { font-size: 12px; font-weight: 600; color: var(--slate); }
.stampcard li i { width: 40px; height: 40px; border: 1.5px dashed #C3C7CF; border-radius: 50%; display: grid; place-items: center; font: 900 15px var(--display); font-style: normal; }
.stampcard li.today i { border: 2px solid var(--carbon); }
.stampcard li.done i { background: var(--canvas); border: 0; color: var(--white); transform: rotate(-8deg); }
.streak-n { display: flex; flex-direction: column; align-items: center; padding-left: 22px; border-left: 1px solid var(--panel-line); }
.streak-n b { font: 900 44px/1 var(--display); }
.streak-n span { font-size: 12px; font-weight: 600; color: var(--slate); white-space: nowrap; }
@media (max-width: 760px) {
  .daily { grid-template-columns: 1fr; gap: 20px; padding: 22px 20px; }
  .stampcard { justify-content: space-between; gap: 10px; }
  .stampcard ol { gap: 4px; }
  .stampcard li i { width: 32px; height: 32px; font-size: 13px; }
  .streak-n { padding-left: 12px; }
  .streak-n b { font-size: 32px; }
}

/* Prüfungsbereiche: Zeilen direkt auf Blau */
.exams { padding-top: 80px; }
.exams h2 { font-size: clamp(30px, 4vw, 52px); margin-bottom: 22px; }
.exams ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.exam { display: grid; grid-template-columns: 34px 90px 1fr auto 28px; gap: 22px; align-items: center; padding: 20px 12px; border-bottom: 1px solid var(--line); text-decoration: none; border-radius: var(--r-s); transition: background .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .exam:hover { background: var(--deep); } .exam:hover .ex-k { background: var(--yellow); color: var(--carbon); border-color: var(--yellow); } }
.exam:active { background: var(--deep); }
.ex-k { width: 30px; height: 30px; border: 1.5px solid var(--white); border-radius: var(--r-s); display: grid; place-items: center; font-weight: 800; font-size: 14px; transition: background .15s var(--ease), color .15s var(--ease); }
.ex-g { height: 66px; display: grid; place-items: center; }
.ex-g svg { height: 66px; width: auto; max-width: 90px; }
.ex-t b { display: block; font: 900 24px/1.1 var(--display); letter-spacing: -.02em; }
.ex-t small { display: block; color: var(--soft); font-size: 16px; font-weight: 500; margin-top: 4px; }
.ex-r { text-align: right; }
.ex-r b { display: block; font-size: 18px; font-weight: 800; color: var(--yellow); }
.ex-r small { font-size: 13px; font-weight: 600; color: var(--soft); }
.ex-a { color: var(--white); }
@media (max-width: 640px) {
  .exam { grid-template-columns: 58px 1fr auto; gap: 14px; padding: 16px 4px; }
  .ex-k, .ex-a { display: none; }
  .ex-g, .ex-g svg { height: 52px; max-width: 58px; }
  .ex-t b { font-size: 20px; }
  .ex-t small { font-size: 15px; }
}
.g-map path { fill: var(--white); stroke: var(--canvas); stroke-width: 1; vector-effect: non-scaling-stroke; }
.g-map path.hl { fill: var(--yellow); }
.g-map .g-dot { fill: var(--yellow); stroke: var(--carbon); stroke-width: 8; }
.g-shape path { fill: var(--white); }
.foot { max-width: 1200px; margin: 0 auto; padding: 24px 24px 44px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 500; color: var(--soft); border-top: 1px solid var(--line); }
.foot a { margin-left: 16px; }

/* ---------- Karte ---------- */
.map path { fill: var(--white); stroke: var(--canvas); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill .18s var(--ease); transform-box: fill-box; transform-origin: center; }
.map.interactive path { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .map.interactive path:hover, .hero-map path:hover { fill: #CFE4FF; } }
.map path.hl { fill: var(--yellow); }
.map path.ok { fill: var(--green); }
.map path.miss { fill: url(#hatch); }
.map path.bad { fill: var(--red); }
.map path.hint { fill: var(--yellow); animation: hint .5s ease-in-out infinite alternate; }
.map path.pop { animation: pop .32s var(--ease); }
.map .dot { cursor: pointer; }
.map .dot .hit { fill: transparent; }
.map .dot .ring { fill: none; stroke: var(--carbon); stroke-width: 1.2; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.map .labels text { font: 900 22px var(--display); fill: var(--carbon); paint-order: stroke; stroke: var(--white); stroke-width: 6px; stroke-linejoin: round; pointer-events: none; }
.map.draw path { opacity: 0; animation: drop .5s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms); }
.cert .map path { stroke: var(--carbon); stroke-width: 1; fill: var(--paper); }
.cert .map path.ok, .cert .map path.hl { fill: var(--canvas); }
.cert .map path.miss { fill: url(#hatch); }

/* ---------- Spiel ---------- */
.game { max-width: 660px; margin: 0 auto; padding: 12px 20px 28px; min-height: 100dvh; display: flex; flex-direction: column; }
.gbar { display: flex; align-items: center; gap: 10px; }
.g-title { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gstats { display: flex; gap: 14px; align-items: center; font-weight: 700; font-size: 15px; }
#timer { color: var(--soft); min-width: 54px; text-align: right; }
.streak { color: var(--carbon); background: var(--yellow); border-radius: var(--r-s); padding: 2px 8px; opacity: 0; transform: scale(.95); transition: opacity .15s var(--ease), transform .2s var(--ease); }
.streak.on { opacity: 1; transform: none; }
.ticks { display: flex; gap: 4px; list-style: none; margin: 12px 0 0; padding: 0; }
.ticks li { flex: 1; height: 8px; border-radius: 3px; background: var(--deep); transition: background .2s var(--ease); }
.ticks li.cur { background: var(--white); }
.ticks li.y { background: var(--green); }
.ticks li.n { background: var(--red); }
.vs { margin-top: 12px; background: var(--yellow); color: var(--carbon); border-radius: var(--r-s); padding: 9px 12px; font-weight: 700; font-size: 15px; text-align: center; }
.prompt { position: relative; text-align: center; padding: 24px 4px 14px; }
.ask { font-size: 15px; font-weight: 600; color: var(--soft); }
.big { font: 900 clamp(32px, 8vw, 50px)/1.02 var(--display); margin-top: 6px; letter-spacing: -.03em; text-wrap: balance; }
.float { position: absolute; right: 4px; top: 18px; font-weight: 900; font-size: 18px; opacity: 0; pointer-events: none; }
.float.go { animation: floatUp .8s var(--ease); }
.float.good { color: var(--yellow); } .float.bad { color: var(--white); }
.shake { animation: shake .32s; }

.stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.stage > .enter { animation: enter .28s var(--ease); }
.s-map svg { width: 100%; height: auto; max-height: 64dvh; }
.s-mini svg { width: min(250px, 58vw); height: auto; }
.s-shape svg { width: min(300px, 70vw); height: min(300px, 40dvh); }
.shape path { fill: var(--white); }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.opts:empty { display: none; }
.opt { position: relative; background: var(--white); color: var(--carbon); border: 0; border-radius: var(--r-s); padding: 18px 12px; font-weight: 800; font-size: 17px; min-height: 64px; box-shadow: 0 4px 0 var(--deep); animation: enter .26s var(--ease) both; animation-delay: calc(var(--k) * 40ms); transition: background .15s var(--ease), color .15s var(--ease), opacity .2s var(--ease), transform .1s var(--ease), box-shadow .1s var(--ease); }
.opt kbd { position: absolute; left: 9px; top: 7px; font: 700 11px var(--display); color: #8A9099; }
@media (hover: none) { .opt kbd { display: none; } }
@media (hover: hover) and (pointer: fine) { .opt:hover { background: #EAF3FF; } }
.opt:active { transform: translateY(4px); box-shadow: 0 0 0 var(--deep); }
.opt.right { background: var(--green); color: var(--carbon); }
.opt.wrong { background: var(--red); color: var(--white); text-decoration: line-through; text-decoration-thickness: 2px; }
.opt.right kbd, .opt.wrong kbd { color: inherit; opacity: .6; }
.opt.dim { opacity: .45; }

.plate { display: flex; background: var(--white); border: 3px solid var(--carbon); border-radius: 9px; height: 92px; overflow: hidden; color: var(--carbon); }
.eu { width: 44px; background: #123D9E; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.eu i { width: 22px; height: 22px; border: 3px dotted #FFD400; border-radius: 50%; }
.eu b { color: #fff; font: 700 19px var(--display); }
.pl-t { display: flex; align-items: center; gap: 12px; padding: 0 18px; font: 700 clamp(38px, 10vw, 56px)/1 var(--display); font-stretch: 68%; letter-spacing: .02em; white-space: nowrap; }
.seals { display: flex; flex-direction: column; gap: 5px; }
.seals i { width: 20px; height: 20px; border-radius: 50%; background: #C9CCCF; border: 1px solid #8A8F96; }
.seals i:first-child { background: #E8C33A; border-color: #A98A18; }
.plate.mini { height: 30px; border-width: 2px; border-radius: 5px; }
.plate.mini .eu { width: 10px; }
.plate.mini .pl-t { font-size: 22px; padding: 0 8px 0 6px; }

.count { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; font: 900 180px var(--display); color: var(--yellow); opacity: 0; }
.count.show { animation: count .48s var(--ease); }

/* ---------- Urkunde: weißes Panel auf Blau ---------- */
.result { max-width: 800px; margin: 0 auto; padding: 24px 24px 72px; }
.cert { position: relative; background: var(--paper); color: var(--carbon); border-radius: var(--r-l); padding: 34px 36px 30px; animation: enter .4s var(--ease); overflow: hidden; }
.cert::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid var(--carbon); border-radius: 10px; pointer-events: none; }
.cert.hit { animation: thud .22s ease-out; }
.cert-h { display: flex; justify-content: space-between; gap: 12px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--slate); padding-bottom: 14px; border-bottom: 1px solid #D5D2C9; }
.cert h1 { font-size: clamp(48px, 10vw, 80px); margin-top: 22px; }
.cert-sub { margin: 8px 0 0; color: var(--slate); font-size: 17px; font-weight: 500; }
.cert-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; margin-top: 18px; }
.score { font: 900 112px/1 var(--display); letter-spacing: -.05em; }
.score span { color: var(--slate); font-size: .42em; letter-spacing: -.02em; }
.cert dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px; margin: 16px 0 0; }
.cert dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.cert dd { margin: 2px 0 0; font: 600 18px var(--mono); }
.cert .ticks { margin-top: 18px; }
.cert .ticks li { height: 14px; background: #DDD; animation: enter .25s var(--ease) both; animation-delay: calc(150ms + var(--k) * 35ms); }
.cert .ticks li.y { background: var(--canvas); }
.cert .ticks li.n { background: var(--red); }
.cert-map svg { display: block; width: 100%; height: auto; max-height: 340px; }
.cert-line { margin: 18px 0 0; font-size: 17px; font-weight: 500; padding-top: 14px; border-top: 1px solid #D5D2C9; }
.cert-line b { color: var(--canvas); }
.cert-vs { margin: 6px 0 0; font-weight: 700; color: var(--canvas); }
.stamp { position: absolute; right: 34px; top: 92px; transform: rotate(-9deg); pointer-events: none; mix-blend-mode: multiply; opacity: 0; animation: slam .42s .5s cubic-bezier(.3,1.4,.5,1) forwards;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cert.still .stamp { animation: none; opacity: .92; }
.stamp span { display: block; border: 5px solid currentColor; outline: 2px solid currentColor; outline-offset: 4px; border-radius: 8px; padding: 10px 18px; font: 900 30px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.stamp.ok { color: var(--canvas); }
.stamp.bad { color: var(--red); }
@media (max-width: 600px) {
  .cert { padding: 26px 22px 22px; }
  .cert-body { grid-template-columns: 1fr; }
  .cert-map { max-width: 220px; justify-self: center; grid-row: 1; }
  .score { font-size: 88px; }
  .stamp { right: 16px; top: 70px; }
  .stamp span { font-size: 21px; padding: 8px 12px; border-width: 4px; }
}

.share { margin-top: 44px; }
.share h2 { font-size: 32px; margin-bottom: 16px; }
.nick { display: block; margin-bottom: 14px; }
.nick span { display: block; font-size: 15px; font-weight: 600; color: var(--soft); margin-bottom: 6px; }
.nick input { display: block; width: 100%; background: var(--white); border: 0; color: var(--carbon); border-radius: var(--r-s); padding: 14px 16px; font: 700 17px var(--display); caret-color: var(--canvas); }
.nick input::placeholder { color: #9AA0A8; }
.nick input:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
.share-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 600px) { .share-btns { grid-template-columns: 1fr 1fr; } }
.again { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .again { display: grid; } }

/* ---------- Auswahl Bundesland ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(5,30,70,.55); display: grid; place-items: end center; animation: fade .2s var(--ease); }
.sheet { width: min(640px, 100%); background: var(--white); color: var(--carbon); border-radius: var(--r-l) var(--r-l) 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 92dvh; overflow: auto; animation: up .3s var(--ease); }
@media (min-width: 680px) { .modal { place-items: center; } .sheet { border-radius: var(--r-l); padding: 30px; } }
.form-h { font-size: 14px; font-weight: 700; color: var(--canvas); margin-bottom: 8px; }
.sheet h2 { font-size: 30px; }
.sheet p { color: var(--slate); margin: 10px 0 18px; }
.states { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 6px; }
.st { display: flex; align-items: center; gap: 10px; text-align: left; background: #F1F3F6; border: 0; border-radius: var(--r-s); padding: 11px 12px; font-weight: 700; font-size: 15px; transition: background .12s var(--ease), color .12s var(--ease); }
.st i { width: 16px; height: 16px; border: 2px solid var(--carbon); border-radius: 50%; flex: none; }
.st.on { background: var(--canvas); color: var(--white); }
.st.on i { border-color: var(--white); background: var(--yellow); }
@media (hover: hover) and (pointer: fine) { .st:hover { background: #E1ECFB; } .st.on:hover { background: var(--deep); } }
.link { background: none; border: 0; color: var(--slate); margin: 16px auto 0; display: block; text-decoration: underline; text-underline-offset: 3px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; background: var(--carbon); color: var(--white); padding: 12px 18px; border-radius: var(--r-s); font-weight: 700; animation: up .25s var(--ease); }

@media (max-width: 420px) {
  .top { padding: 14px 16px; }
  .home, .result { padding-left: 16px; padding-right: 16px; }
  .game { padding-left: 16px; padding-right: 16px; }
  .logo { font-size: 23px; }
  .homebtn { font-size: 14px; padding: 7px 9px; }
}

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }
@keyframes enter { from { opacity: 0; transform: scale(.97) translateY(6px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.96); } 55% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes hint { to { fill: #FFF3A0; } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px); } }
@keyframes count { 0% { opacity: 0; transform: scale(1.3); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.95); } }
@keyframes slam { 0% { opacity: 0; transform: rotate(-9deg) scale(1.9); } 70% { opacity: .95; transform: rotate(-9deg) scale(.96); } 100% { opacity: .92; transform: rotate(-9deg) scale(1); } }
@keyframes thud { 30% { transform: translateY(2px) scale(.995); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ---------- Neue Spiele ---------- */
.loading { max-width: 640px; margin: 80px auto; text-align: center; font-weight: 700; font-size: 18px; }
.ex-h { display: flex; align-items: center; gap: 12px; font-size: 20px; margin: 34px 0 10px; color: var(--yellow); }
.ex-h span { width: 30px; height: 30px; border-radius: var(--r-s); background: var(--yellow); color: var(--carbon); display: grid; place-items: center; font-size: 15px; }
.exams h2 + .ex-h { margin-top: 8px; }
.ex-k { font-size: 12px; width: 34px; }
.g-flag { height: 40px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1.5px var(--white); }
.g-box { display: grid; place-items: center; min-width: 58px; height: 38px; padding: 0 8px; border: 2px solid var(--white); border-radius: var(--r-s); font-weight: 900; font-size: 17px; }
.g-ic .ic { width: 44px; height: 44px; stroke-width: 1.6; }

.s-flag img { width: min(360px, 80vw); height: auto; border-radius: 6px; box-shadow: 0 0 0 3px var(--white); animation: enter .28s var(--ease); }
.phone { display: flex; align-items: center; gap: 16px; background: var(--carbon); color: var(--white); border-radius: 22px; padding: 22px 30px; font: 800 clamp(40px, 11vw, 64px)/1 var(--display); letter-spacing: .04em; animation: enter .28s var(--ease); }
.phone .ic { width: 36px; height: 36px; color: var(--green); }
.phone i { width: 3px; height: .9em; background: var(--green); animation: blink 1s steps(1) infinite; }
.pl-in { width: 2.6em; font: inherit; font-stretch: 68%; color: var(--carbon); background: #EAF3FF; border: 0; border-bottom: 3px solid var(--canvas); text-transform: uppercase; text-align: center; padding: 0; border-radius: 4px 4px 0 0; }
.pl-in:focus { outline: none; background: #FFF9C2; border-bottom-color: var(--carbon); }
.pl-in.right { background: var(--green); border-color: var(--green); }
.pl-in.wrong { background: var(--red); color: var(--white); border-color: var(--red); }
.opt.go { background: var(--carbon); color: var(--white); box-shadow: 0 4px 0 #000; }

.pinmap { cursor: crosshair; }
.pinmap path { transition: none; }
.pins line { stroke: var(--carbon); stroke-width: 2.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.pins .you { fill: var(--carbon); stroke: var(--white); stroke-width: 3; }
.pins .true { fill: var(--green); stroke: var(--carbon); stroke-width: 3; animation: pop .35s var(--ease); }
.pins text, .dots text { font: 900 22px var(--display); fill: var(--carbon); paint-order: stroke; stroke: var(--white); stroke-width: 6px; stroke-linejoin: round; }

.plzmap > path { stroke: var(--canvas); stroke-width: 2; }
.plzmap .borders path { fill: none; stroke: #9CC3F5; stroke-width: .8; pointer-events: none; }

.dots circle { fill: var(--carbon); stroke: var(--white); stroke-width: 2.5; }
.dots .cold circle { fill: #7FA7DD; }
.dots .warm circle { fill: var(--yellow); stroke: var(--carbon); }
.dots .hit circle { fill: var(--green); stroke: var(--carbon); }
.dots .target circle { animation: pop .4s var(--ease); }
.dots .hidden circle { fill: transparent; stroke: rgba(11,107,219,.35); stroke-dasharray: 2 2; }
.dots .missed circle { fill: var(--red); stroke: var(--white); }
.dots .pop circle { animation: pop .35s var(--ease); }

/* Stadtle */
.st-map svg { display: block; width: min(100%, 360px); height: auto; margin: 0 auto; max-height: 42dvh; }
.st-form { display: flex; gap: 8px; margin-top: 16px; }
.st-inp { position: relative; flex: 1; }
.st-inp input, .al-form input { width: 100%; background: var(--white); color: var(--carbon); border: 0; border-radius: var(--r-s); padding: 15px 16px; font: 700 17px var(--display); caret-color: var(--canvas); }
.st-inp input:focus, .al-form input:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
#sugg { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: var(--white); color: var(--carbon); border-radius: var(--r-l); z-index: 5; }
#sugg li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r-s); font-weight: 700; cursor: pointer; }
#sugg li small { color: var(--slate); font-weight: 500; }
#sugg li.on, #sugg li:hover { background: #EAF3FF; }
.st-hint { color: var(--yellow); margin: 12px auto 0; }
.st-hinttext { text-align: center; font-weight: 700; color: var(--yellow); margin: 6px 0 0; min-height: 0; }
.st-hinttext:empty { display: none; }
.st-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.st-list li { display: grid; grid-template-columns: 1fr auto 34px 96px; gap: 10px; align-items: center; background: var(--white); color: var(--carbon); border-radius: var(--r-s); padding: 10px 12px; font-size: 15px; min-height: 46px; animation: enter .25s var(--ease); }
.st-list li.empty { background: var(--deep); animation: none; }
.st-list li.win { background: var(--green); }
.st-list li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-list li span { font-weight: 700; white-space: nowrap; }
.st-list .dir svg { width: 24px; height: 24px; fill: var(--canvas); display: block; margin: auto; }
.prox { position: relative; height: 22px; background: #E4E9F1; border-radius: 4px; overflow: hidden; }
.prox i { position: absolute; inset: 0 auto 0 0; background: var(--yellow); }
.prox em { position: relative; font-style: normal; font-size: 13px; display: block; text-align: center; line-height: 22px; }

/* Höher oder tiefer */
.hl-ask { text-align: center; font-size: 19px; font-weight: 500; margin: 22px 0 18px; text-wrap: balance; }
.hl-ask b { color: var(--yellow); }
.hl-stage { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.hl-card { background: var(--white); color: var(--carbon); border-radius: var(--r-l); padding: 22px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; min-height: 200px; justify-content: center; animation: enter .3s var(--ease); transition: background .2s var(--ease); }
.hl-card small { color: var(--slate); font-weight: 600; font-size: 13px; }
.hl-card b { font: 900 clamp(22px, 5vw, 32px)/1.05 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.hl-pop { font: 900 clamp(26px, 6vw, 38px)/1 var(--display); margin-top: 10px; font-variant-numeric: tabular-nums; }
.hl-card.q .hl-pop { color: var(--canvas); }
.hl-card.right { background: var(--green); }
.hl-card.wrong { background: var(--red); color: var(--white); }
.hl-card.wrong small, .hl-card.wrong .hl-pop { color: var(--white); }
.hl-vs { font-weight: 900; color: var(--yellow); }
.hl-opts .opt { display: flex; align-items: center; justify-content: center; gap: 8px; }
.src { text-align: center; font-size: 13px; color: var(--soft); margin: 16px 0 0; }
@media (max-width: 520px) { .hl-stage { grid-template-columns: 1fr; } .hl-card { min-height: 0; padding: 16px; } .hl-vs { text-align: center; } }

/* Alles aufzählen */
.al-bar { height: 8px; background: var(--deep); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.al-bar i { display: block; height: 100%; background: var(--yellow); transform-origin: left; }
.al-form { display: flex; gap: 8px; margin-top: 16px; }
.al-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
.al-list:empty { display: none; }
.al-list li { display: flex; gap: 8px; align-items: center; background: var(--deep); border-radius: 4px; padding: 5px 8px; font-size: 14px; min-height: 30px; }
.al-list li span { color: var(--soft); font-size: 12px; min-width: 18px; }
.al-list li.on { background: var(--white); color: var(--carbon); animation: pop .3s var(--ease); }
.alle .s-map svg { max-height: 50dvh; }
@keyframes blink { 50% { opacity: 0; } }
.credits { flex-basis: 100%; font-size: 12px; opacity: .8; }
.plzmap > path:nth-of-type(even) { fill: #E3EEFD; }
.plzmap > path.ok { fill: var(--green); } .plzmap > path.bad { fill: var(--red); } .plzmap > path.hint { fill: var(--yellow); }

/* ---------- Länder-Wahl und Länder-Details ---------- */
.lands { display: flex; background: var(--deep); border-radius: var(--r-s); padding: 3px; gap: 2px; }
.lands a { text-decoration: none; font-weight: 800; font-size: 13px; padding: 6px 8px; border-radius: 4px; color: var(--soft); transition: background .15s var(--ease), color .15s var(--ease); }
.lands a.on { background: var(--white); color: var(--carbon); }
@media (hover: hover) and (pointer: fine) { .lands a:not(.on):hover { color: var(--white); } }
@media (max-width: 480px) { .homebtn span { max-width: 64px; } .lands a { padding: 6px 6px; font-size: 12px; } .top-r { gap: 4px; } }
.plate.ch { border-radius: 6px; }
.plate.ch .pl-t { gap: 16px; padding: 0 20px; }
.ch-crest { width: 30px; height: 34px; background: #D52B1E; border-radius: 3px 3px 12px 12px; position: relative; flex: none; }
.ch-crest::before, .ch-crest::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ch-crest::before { width: 16px; height: 5px; } .ch-crest::after { width: 5px; height: 16px; }
.at-crest { width: 22px; height: 34px; background: linear-gradient(#C8102E 0 33%, #fff 33% 66%, #C8102E 66%); border-radius: 3px 3px 10px 10px; flex: none; }
.plate.mini.ch .eu { display: none; }

/* ---------- Spiele als Kacheln ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; border: 0; }
.tiles li { display: contents; }
.tile { display: flex; flex-direction: column; background: var(--white); color: var(--carbon); border-radius: var(--r-l); overflow: hidden; text-decoration: none; box-shadow: 0 5px 0 var(--deep); animation: enter .35s var(--ease) both; animation-delay: calc(var(--k) * 45ms); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.tile.wide { grid-column: span 2; flex-direction: row; }
@media (max-width: 600px) { .tile.wide { grid-column: auto; flex-direction: column; } .tile.wide .t-art { width: 100%; min-height: 150px; } }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-4px); box-shadow: 0 9px 0 var(--deep); } .tile:hover .t-go { background: var(--carbon); color: var(--white); } .tile:hover .t-art svg, .tile:hover .t-art img, .tile:hover .t-art .plate, .tile:hover .t-art .g-box { transform: scale(1.06) rotate(-2deg); } }
.tile:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--deep); }
.t-art { position: relative; display: grid; place-items: center; height: 150px; background: var(--sky); flex: none; overflow: hidden; }
.tile.wide .t-art { width: 42%; height: auto; min-height: 170px; background: var(--yellow); }
.t-art > * { transition: transform .3s var(--ease); }
.t-art .g-map, .t-art .g-shape { height: 118px; width: auto; max-width: 80%; }
.t-art .g-ic .ic { width: 72px; height: 72px; stroke-width: 1.4; color: var(--white); }
.tile.wide .t-art .g-ic .ic { color: var(--carbon); width: 96px; height: 96px; }
.t-art .g-flag { height: 76px; box-shadow: 0 0 0 3px var(--white); border-radius: 4px; }
.t-art .g-box { font-size: 30px; min-width: 110px; height: 64px; border-width: 3px; }
.t-art .plate.mini { height: 54px; border-width: 3px; border-radius: 8px; }
.t-art .plate.mini .eu { width: 18px; }
.t-art .plate.mini .pl-t { font-size: 40px; padding: 0 14px 0 10px; }
.t-k { position: absolute; top: 12px; left: 12px; background: var(--white); color: var(--carbon); font-weight: 800; font-size: 12px; padding: 3px 7px; border-radius: var(--r-s); }
.t-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 16px; flex: 1; }
.t-body > b { font: 900 22px/1.1 var(--display); letter-spacing: -.02em; }
.tile.wide .t-body > b { font-size: 30px; }
.t-body > small { color: var(--slate); font-size: 15px; line-height: 1.4; flex: 1; }
.t-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.t-best { font-size: 13px; font-weight: 600; color: var(--slate); }
.t-best b { color: var(--canvas); font-weight: 800; }
.t-go { width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--carbon); display: grid; place-items: center; transition: background .15s var(--ease), color .15s var(--ease); }
.t-go .ic { width: 18px; height: 18px; }

@media (max-width: 600px) { .tile.wide .t-art { width: 100%; min-height: 150px; } }

/* ---------- Impressum und Datenschutz ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 24px 64px; }
.legal h1 { font-size: clamp(36px, 7vw, 56px); margin-bottom: 20px; }
.prose { background: var(--white); color: var(--carbon); border-radius: var(--r-l); padding: 28px 30px; }
.prose h2 { font-size: 21px; margin: 26px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; color: #2B2F36; line-height: 1.6; }
.prose a { color: var(--canvas); }
@media (max-width: 520px) { .prose { padding: 22px 18px; } }

/* ---------- Textblock für Suchmaschinen (unter der App) ---------- */
.about { max-width: 1200px; margin: 0 auto; padding: 24px 24px 56px; }
.about[hidden] { display: none; }
.about-in { background: var(--deep); border-radius: var(--r-l); padding: 28px 30px; }
.about h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.about h2 { font-size: 22px; margin: 26px 0 10px; color: var(--yellow); }
.about h2:first-child { margin-top: 0; }
.about p { color: var(--soft); max-width: 70ch; margin: 0 0 10px; }
.facts { max-height: 420px; overflow: auto; border-radius: var(--r-s); background: var(--white); }
.facts table { width: 100%; border-collapse: collapse; color: var(--carbon); font-size: 15px; }
.facts th { position: sticky; top: 0; background: #EEF3FB; text-align: left; font-size: 13px; padding: 9px 12px; }
.facts td { padding: 7px 12px; border-top: 1px solid #E6E9EE; }
.facts img { vertical-align: middle; margin-right: 8px; border-radius: 2px; box-shadow: 0 0 0 1px #ccd; }
.about .src { font-size: 13px; margin-top: 8px; }
.faq dt { font-weight: 800; margin-top: 12px; }
.faq dd { margin: 4px 0 0; color: var(--soft); }
.about-more ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.about-more a { display: block; text-decoration: none; background: var(--canvas); border-radius: var(--r-s); padding: 10px 12px; font-size: 14px; color: var(--soft); height: 100%; }
.about-more a b { display: block; color: var(--white); font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .about-more a:hover { background: var(--sky); } }
.about-lands { margin-top: 18px; font-weight: 700; }
.about-lands a { color: var(--yellow); }
@media (max-width: 520px) { .about-in { padding: 20px 16px; } }
.about .lead { color: var(--white); font-size: 18px; font-weight: 600; } .about .updated { font-size: 13px; margin-top: 18px; }

/* ---------- Urkunde: Urkunde und Teilen-Knöpfe auf den ersten Blick sichtbar ---------- */
.result { padding-top: 16px; }
.cert-map svg { max-height: 260px; }
.share { margin-top: 16px; }
.share .nick { margin: 14px 0 0; }
@media (max-width: 600px) {
  .result { padding: 8px 12px 40px; }
  .cert { padding: 18px 18px 14px; }
  .cert::before { inset: 6px; }
  .cert-h { font-size: 10px; padding-bottom: 8px; letter-spacing: .03em; }
  .cert h1 { font-size: 34px; margin-top: 10px; }
  .cert-sub { font-size: 14px; margin-top: 2px; }
  .cert-body { grid-template-columns: 1fr 112px; gap: 10px; margin-top: 8px; }
  .cert-map { max-width: none; grid-row: auto; }
  .cert-map svg { max-height: 150px; }
  .score { font-size: 58px; }
  .cert dl { grid-template-columns: repeat(2, auto); gap: 6px 14px; margin-top: 8px; }
  .cert dt { font-size: 9px; } .cert dd { font-size: 14px; }
  .cert .ticks { margin-top: 10px; grid-column: 1 / -1; }
  .cert .ticks li { height: 10px; }
  .cert-line { font-size: 14px; margin-top: 10px; padding-top: 8px; }
  .cert-vs { font-size: 13px; }
  .stamp { right: 10px; top: 44px; }
  .stamp span { font-size: 15px; padding: 6px 9px; border-width: 3px; outline-width: 1.5px; outline-offset: 3px; }
  .share { margin-top: 10px; }
  .share h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .share-btns { gap: 6px; }
  .share-btns .btn { padding: 11px 10px; font-size: 14px; gap: 6px; }
  .again { margin-top: 18px; padding-top: 14px; }
}
