/* Layout und Komponenten. Farben/Schriften kommen aus theme.css. */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
main.container { padding-top: 32px; padding-bottom: 32px; }
main.container > p, main.container > ol, main.container > ul { max-width: 46em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46em; }

/* Header + Navigation */
#site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.nav-liste { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.nav-liste > li > a, .nav-gruppe-knopf { display: block; padding: 8px 14px; border: 0; border-radius: var(--radius); background: none; color: var(--text); font: inherit; font-size: .95rem; text-decoration: none; cursor: pointer; }
.nav-liste > li > a:hover, .nav-gruppe-knopf:hover { background: var(--surface-2); }
.nav-liste > li > a[aria-current="page"] { background: var(--accent); color: var(--accent-text); }
.nav-gruppe { position: relative; }
.nav-gruppe-knopf::after { content: "▾"; display: inline-block; margin-left: 6px; font-size: .8em; transition: transform .2s; }
.nav-gruppe.offen .nav-gruppe-knopf::after { transform: rotate(180deg); }
.nav-gruppe.enthaelt-aktiv .nav-gruppe-knopf { box-shadow: inset 0 -3px 0 var(--accent-2); }
.nav-menu { display: none; list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; min-width: 290px; background: var(--surface); border: 2px solid var(--accent-2); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.nav-gruppe + .nav-gruppe .nav-menu { left: auto; right: 0; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* Brücke, damit Hover beim Rüberfahren hält */
.nav-gruppe.offen .nav-menu { display: block; }
@media (hover: hover) and (min-width: 721px) { .nav-gruppe:hover .nav-menu { display: block; } }
.nav-menu a { display: block; padding: 8px 12px; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.nav-menu a b { display: block; }
.nav-menu a small { display: block; color: var(--muted); font-size: .82rem; }
.nav-menu a:hover { background: var(--surface-2); }
.nav-menu a[aria-current="page"] { background: var(--accent); color: var(--accent-text); }
.nav-menu a[aria-current="page"] small { color: inherit; opacity: .8; }
.nav-liste > li > a.nav-cta { background: var(--accent-2); color: var(--accent); font-weight: 700; }
.nav-toggle { display: none; font: inherit; padding: 8px 14px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); cursor: pointer; }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  #site-nav { display: none; width: 100%; padding-bottom: 12px; }
  .nav-open #site-nav { display: block; }
  .nav-liste { flex-direction: column; align-items: stretch; }
  .nav-gruppe-knopf { width: 100%; text-align: left; pointer-events: none; font-weight: 700; opacity: .8; }
  .nav-gruppe-knopf::after { display: none; }
  .nav-menu { display: block; position: static; min-width: 0; padding: 0 0 6px 12px; border: 0; box-shadow: none; background: none; }
  .nav-menu::before { display: none; }
  .nav-menu a small { display: none; }
}

/* Footer */
#site-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: 28px 0; font-size: .95rem; }
.footer-inner { display: flex; gap: 20px; align-items: center; }
.footer-inner img { width: 64px; height: 64px; flex: none; }
.footer-inner p { margin: 0 0 4px; }
.footer-slogan { font-family: var(--font-head); font-style: italic; }

/* Raster + Karten */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: relative; }
.card h3 { margin-bottom: .25em; }
a.card { color: inherit; text-decoration: none; transition: transform .15s; }
a.card:hover { transform: translateY(-3px); }

/* Mitglieder */
.member { text-align: center; }
.member > * { margin: 0; }
/* Karten im Raster teilen sich die Zeilen (Subgrid): Name, Bio, Abzeichen usw. stehen in einer Flucht */
.grid > .member { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 8px; align-items: start; }
.member .badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.member .einheit { align-self: end; }
.member .avatar { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 6px; background: var(--surface-2); border: 3px solid var(--accent-2); display: grid; place-items: center; font-family: var(--font-head); font-size: 2rem; color: var(--muted); overflow: hidden; }
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member .aliase { color: var(--accent); font-style: italic; }
.member .rolle { font-family: var(--font-head); font-weight: 700; font-size: .9rem; letter-spacing: .04em; }
.member .rolle:empty, .member .einheit:empty { display: none; }
.grid > .member .rolle:empty, .grid > .member .einheit:empty { display: block; }
.member .bio { font-size: .95rem; }
.member .md { display: inline-block; font-size: .85rem; padding: 2px 10px; border-radius: 99px; background: var(--surface-2); }
.member .tag { background: var(--accent-2); color: var(--accent-text); font-weight: 700; }
.member .einheit-link { display: block; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border); font-weight: 700; font-size: .9rem; text-decoration: none; }
.member .einheit-link:hover { text-decoration: underline; }
.grid.big { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.big .avatar { width: 140px; height: 140px; }
.stamp { position: absolute; top: 14px; right: -6px; transform: rotate(8deg); border: 3px solid var(--danger); color: var(--danger); padding: 2px 8px; font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; background: var(--surface); }

/* Hero */
.hero { text-align: center; padding: 24px 0 8px; }
.hero .wappen { width: 180px; height: 180px; margin: 0 auto 16px; }
.hero .motto { display: inline-block; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .25em; color: var(--accent); border-top: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); padding: 4px 14px; margin: 0 0 14px; }
.hero .slogan { font-family: var(--font-head); font-style: italic; font-size: 1.3rem; }

/* Tims Witze-Zentrale */
.witze-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.witze-liste li { padding: 14px 16px; }
.witz-frage { font-weight: 600; margin: 0 0 4px; }
.witz-pointe { font-style: italic; color: var(--accent); margin: 0 0 10px; }
.tim-link { font-size: .85rem; margin-left: 6px; }

/* Startseite: Einleitung, Zweier-Reihe, Highlights, „Außerdem“ */
.intro { text-align: center; margin: 28px auto 0; max-width: 46em; }
.intro .lead { margin: 0 auto; }
.zweier { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; align-items: stretch; }
@media (max-width: 780px) { .zweier { grid-template-columns: 1fr; } }
.karten-titel { margin: 0 0 12px; font-size: 1.3rem; }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 780px) { .highlights { grid-template-columns: 1fr; } }
.highlight { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 20px 22px; color: var(--text); text-decoration: none; background: var(--surface); border: 3px double var(--accent-2); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.highlight:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.highlight-icon { font-size: 2.6rem; line-height: 1; width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent-2); margin-bottom: 8px; }
.highlight h3 { margin: 0; }
.highlight p { margin: 0; color: var(--muted); flex: 1; }
.highlight-los { margin-top: 10px; font-weight: 700; color: var(--accent); }
.ausserdem { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; }
.ausserdem-titel { font-family: var(--font-head); color: var(--muted); }
.ausserdem div { display: contents; }
.ausserdem a { padding: 6px 14px; border: 1px solid var(--accent-2); border-radius: 99px; color: var(--text); text-decoration: none; font-size: .95rem; background: var(--surface); }
.ausserdem a:hover { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* Dadjoke */
.dadjoke-frage { font-size: 1.25rem; font-weight: 600; margin: 0 0 14px; }
.dadjoke-pointe { font-size: 1.25rem; font-style: italic; color: var(--accent); margin: 0; animation: pointe .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pointe { from { opacity: 0; transform: scale(.8); } }

/* Burgtor (Startseite) */
.burgtor { margin: 24px auto 0; max-width: 380px; }
.tor-knopf { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.tor-knopf svg { display: block; width: 100%; height: auto; }
.tor-knopf:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }
.burgtor .fallgatter { animation: fallgatter 1s cubic-bezier(.5, 0, .75, 0) .3s both, aufprall .35s ease-out 1.3s; }
@keyframes fallgatter { from { transform: translateY(-175px); } to { transform: translateY(0); } }
@keyframes aufprall { 40% { transform: translateY(-6px); } }
.burgtor .schild { transform-origin: 160px 92px; animation: schaukeln 3s ease-in-out infinite; }
@keyframes schaukeln { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.burgtor .fahne { transform-box: fill-box; transform-origin: left center; animation: wehen 1.6s ease-in-out infinite alternate; }
@keyframes wehen { to { transform: scaleX(.8) skewY(4deg); } }
.burgtor .geist { animation: schweben 3.2s ease-in-out infinite; }
@keyframes schweben { 0%, 100% { transform: translateY(0); opacity: .95; } 50% { transform: translateY(-7px); opacity: .7; } }
.burgtor .geist-schatten { transform-box: fill-box; transform-origin: center; animation: schatten 3.2s ease-in-out infinite; }
@keyframes schatten { 50% { transform: translateY(7px) scale(.75); opacity: .08; } }
.burgtor .geist-buh { opacity: 0; animation: buh 6.4s ease-in-out infinite; }
@keyframes buh { 40%, 60% { opacity: 1; } 0%, 30%, 70%, 100% { opacity: 0; } }
.burgtor .rumo-zunge { transform-box: fill-box; transform-origin: top; animation: hecheln .45s ease-in-out infinite alternate; }
@keyframes hecheln { to { transform: scaleY(1.6); } }
.tor-knopf.ruetteln svg { animation: ruetteln .5s; }
@keyframes ruetteln { 20%, 60% { transform: translateX(-5px) rotate(-.6deg); } 40%, 80% { transform: translateX(5px) rotate(.6deg); } }
.tor-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 10px 0 0; color: var(--muted); font-size: .95rem; }
.tor-antwort { min-height: 1.6em; margin: 6px 0 0; font-weight: 700; font-style: italic; color: var(--accent); }

/* Tor-Status */
.tor { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin: 18px auto 0; padding: 14px 26px; border: 3px solid var(--danger); border-radius: var(--radius); background: var(--surface); }
.tor-label { font-weight: 800; letter-spacing: .12em; color: var(--danger); font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.tor-label::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--danger); animation: blink 1.2s infinite; }
.tor small { color: var(--muted); }
@keyframes blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Formulare */
.form { display: grid; gap: 16px; max-width: 560px; }
label { font-weight: 600; display: block; margin-bottom: 4px; }
input, select, textarea { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }
.btn { font: inherit; font-weight: 700; padding: 12px 20px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-text); cursor: pointer; justify-self: start; }
.btn:hover { filter: brightness(1.1); }
.btn.secondary { background: var(--surface-2); color: var(--text); }

.anlage { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 0; }
.vorlage-zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.anlage legend { font-weight: 700; padding: 0 6px; }

/* Umrechner */
.converter { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.converter .eq { font-size: 1.6rem; padding-bottom: 6px; text-align: center; }
.converter .pair { display: flex; gap: 8px; }
.converter .pair select { width: auto; }
@media (max-width: 600px) { .converter { grid-template-columns: 1fr; } .converter .eq { padding: 0; } }
/* Umrechner-Animationen */
.anim { margin-top: 16px; padding: 14px; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; text-align: center; }
.anim svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.anim .anim-text { margin: 8px 0 0; font-weight: 700; }
.anim .waage, .anim .becken { width: 320px; }
.anim .tacho { width: 340px; }
.zug-bahn { overflow-x: auto; }
.zug-bahn .faehrt { margin: 0; animation: einfahren 1.1s cubic-bezier(.2, .8, .3, 1); }
@keyframes einfahren { from { transform: translateX(-110%); } to { transform: none; } }
.waage .balken, .waage .schale { transition: transform .9s cubic-bezier(.34, 1.56, .64, 1); }
.waage .balken { transform-origin: 150px 40px; }
.anim .groesse { width: 360px; }
.groesse .koerper { fill: var(--accent); transform-origin: 50% 100%; transform-box: fill-box; transition: transform 1s cubic-bezier(.34, 1.4, .64, 1); }
.groesse .du .koerper { fill: var(--muted); }
.groesse .harnisch-glanz { transform-origin: 0 -110px; animation: glanzlicht 3.5s ease-in-out infinite; }
@keyframes glanzlicht { 0%, 55% { transform: rotate(20deg) translateX(0); } 100% { transform: rotate(20deg) translateX(80px); } }
.becken .block { transition: transform 1.2s cubic-bezier(.34, 1.3, .64, 1); }
.becken .welle { animation: welle 3s linear infinite; }
@keyframes welle { to { transform: translateX(-60px); } }
.tacho .nadel { transform-origin: 150px 150px; transform: rotate(-90deg); transition: transform 1.6s cubic-bezier(.34, 1.4, .64, 1); }
.tacho .nadel.zittern { animation: zittern .12s ease-in-out infinite alternate; }
@keyframes zittern { from { rotate: -.6deg; } to { rotate: .6deg; } }
.tacho.max { animation: glanz 1s ease-in-out 1.6s 3; }
@keyframes glanz { 50% { filter: drop-shadow(0 0 12px var(--accent-2)); } }

.examples { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.examples li { padding: 8px 12px; background: var(--surface-2); border-radius: var(--radius); }
.locked { opacity: .7; }
.locked .notice { font-weight: 700; color: var(--danger); }
.result { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--surface-2); }
.result .big { font-size: 2.2rem; font-weight: 800; font-family: var(--font-head); }
.quiz fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin: 0; }
.quiz legend { font-weight: 700; padding: 0 6px; }
.quiz .check { margin: 6px 0; }

/* Thomas-Uhr */
.thomasuhr { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
.thomasuhr .ziffernblatt { width: 100%; max-width: 220px; margin: 0 auto; }
.thomasuhr .gross { font-family: var(--font-head); font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.thomasuhr .datum { font-weight: 700; margin-top: 4px; }
.thomasuhr .player { margin: 16px 0 10px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius); max-width: 420px; }
.thomasuhr .player .titel { font-weight: 700; margin-bottom: 8px; }
.thomasuhr .spotify { max-width: 420px; margin: 0 0 12px; }
.thomasuhr .spotify p { font-size: .85rem; margin: 6px 0 0; }
.thomasuhr .spotify iframe { display: block; border: 0; border-radius: 12px; }
.thomasuhr .lok-bahn { position: relative; height: 34px; }
.thomasuhr .lok-mini { position: absolute; bottom: 0; width: 40px; height: 38px; transform: translateX(-50%); }
.thomasuhr .dampf { fill: var(--muted); opacity: 0; transform-box: fill-box; transform-origin: center; animation: dampf 1.5s ease-out infinite; }
@keyframes dampf { 0% { opacity: .7; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(-7px, -12px) scale(1.6); } }
.thomasuhr .player .track { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.thomasuhr .player .fill { height: 100%; background: var(--accent); }
.thomasuhr .player .zeiten { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.thomasuhr.klein { grid-template-columns: 110px 1fr; gap: 18px; }
.thomasuhr.klein .gross { font-size: 1.8rem; }
@media (max-width: 600px) { .thomasuhr { grid-template-columns: 1fr; text-align: center; } .thomasuhr .player { margin-inline: auto; } .thomasuhr.klein { grid-template-columns: 90px 1fr; text-align: left; } }

/* Mitglieder-Test */
.test-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); }
.btn.klein { padding: 6px 12px; font-size: .9rem; }
.antworten { display: grid; gap: 10px; }
.antwort { font: inherit; text-align: left; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer; }
.antwort:hover, .antwort:focus-visible { border-color: var(--accent); background: var(--surface-2); }
.test-ergebnis { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 640px) { .test-ergebnis { grid-template-columns: 1fr; } }

/* WagenCAPTCHA */
.captcha { max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.captcha-kopf { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.captcha-kopf img { width: 40px; height: 40px; }
.captcha-kopf small { display: block; color: var(--muted); font-size: .8rem; }
.captcha-stufe { color: var(--muted); font-size: .85rem; margin: 10px 0; }
.captcha-check { display: flex; align-items: center; gap: 12px; font-weight: 600; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.captcha-check input { width: 26px; height: 26px; margin: 0; }
.captcha-aufgabe { margin: 0 0 12px; padding: 10px 12px; background: var(--accent); color: var(--accent-text); border-radius: var(--radius); }
.captcha-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.captcha-feld { aspect-ratio: 1; display: grid; place-items: center; font-size: 2.6rem; padding: 8px; border: 3px solid transparent; border-radius: var(--radius); background: var(--surface-2); cursor: pointer; }
.captcha-feld img { width: 80%; height: 80%; }
.captcha-feld[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-2); transform: scale(.94); }
.captcha-zeile { display: flex; gap: 8px; }
.captcha-meldung { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; color: var(--accent); }

/* Bescheid (Absagen) */
.bescheid { max-width: 620px; background: var(--surface); border: 1px solid var(--border); padding: 28px; position: relative; box-shadow: var(--shadow); margin-top: 24px; }
.bescheid .kopf { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.bescheid .abgelehnt { position: absolute; right: 24px; bottom: 34px; transform: rotate(-12deg); border: 4px solid var(--danger); color: var(--danger); font-weight: 900; font-size: 1.8rem; padding: 4px 14px; letter-spacing: .1em; opacity: .85; }
.bescheid .unterschrift { margin-top: 26px; font-family: var(--font-head); font-style: italic; }
.bescheid-aktionen { display: flex; flex-wrap: wrap; gap: 12px; max-width: 620px; margin-top: 20px; }
.bescheid-aktionen .btn.secondary { border: 1px solid var(--border); }
.fluechtig { transition: left .25s cubic-bezier(.34, 1.4, .64, 1), top .25s cubic-bezier(.34, 1.4, .64, 1); }
.knopf-platz { display: inline-block; }
.flucht-text { min-height: 1.5em; margin: 10px 0 0; font-weight: 700; font-style: italic; color: var(--accent); }
.widersprueche { list-style: none; padding: 0; margin: 16px 0 0; max-width: 620px; display: grid; gap: 8px; }
.widersprueche li { padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--danger); border-radius: var(--radius); }
.abgelehnt-klein { color: var(--danger); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.progress-steps { list-style: none; padding: 0; margin: 20px 0 0; }
.progress-steps li { padding: 4px 0; }
.progress-steps li::before { content: "⏳ "; }
.progress-steps li.done::before { content: "✔ "; color: var(--ok); }

/* Balken */
.bar { margin: 10px 0 16px; }
.bar .track { height: 14px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); border-radius: 99px; }
.bar .head { display: flex; justify-content: space-between; font-weight: 600; }

/* Tabellen */
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }

/* Countdown */
.countdown { display: flex; gap: 12px; flex-wrap: wrap; }
.countdown div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; text-align: center; min-width: 84px; }
.countdown b { display: block; font-size: 2rem; font-family: var(--font-head); }

/* Ränge */
.ranks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column-reverse; gap: 10px; }
.ranks li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.ranks .abz { font-size: 1.3rem; text-align: center; color: var(--accent-2); }
.ranks .wer { font-size: .9rem; color: var(--accent); }

/* Toast (ADHS) */
.toast { position: fixed; right: 16px; bottom: 16px; max-width: calc(100vw - 32px); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: var(--radius); box-shadow: var(--shadow); transform: translateY(150%); transition: transform .3s; z-index: 30; }
.toast.show { transform: none; }
.abbruch::after { content: " —"; color: var(--muted); }

/* Ladebildschirm */
.lade { position: relative; border-radius: var(--radius); overflow: hidden; border: 4px solid var(--accent-2); background: #111; aspect-ratio: 16 / 9; }
.lade-gif { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lade-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding: 20px; text-align: center; color: #f3e2b3;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, rgba(20, 8, 4, .85) 100%); }
.lade-mops { width: 54px; height: 54px; }
.lade-titel { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 3rem); margin: 0; color: #f3e2b3; text-shadow: 0 2px 8px #000; }
.lade-balken { width: min(420px, 90%); height: 14px; border: 2px solid var(--accent-2); border-radius: 99px; background: rgba(0, 0, 0, .5); overflow: hidden; }
.lade-fuellung { width: 0; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s linear; }
.lade-status { margin: 0; font-size: .95rem; }
.lade-tipp { margin: 0; font-style: italic; font-size: .9rem; color: #d9c08a; min-height: 1.4em; }
@media (max-width: 600px) { .lade { aspect-ratio: 3 / 4; } }
.lade-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Bonk */
.bonk { position: absolute; inset: 0; display: flex; flex-direction: column; background: rgba(20, 8, 4, .55); color: #f3e2b3; padding: 12px; user-select: none; touch-action: manipulation; }
.bonk-kopf { display: flex; justify-content: space-between; gap: 10px; font-size: 1rem; padding: 4px 8px; }
#bonk-meldung { font-family: var(--font-head); font-weight: 800; color: var(--accent-2); }
.bonk-feld { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 10px; padding: 6px; }
.bonk-loch { position: relative; overflow: hidden; border: 3px solid #6f6148; border-radius: 50% 50% 8px 8px / 30% 30% 8px 8px; background: radial-gradient(ellipse at 50% 100%, rgba(26, 15, 8, .85) 45%, rgba(43, 29, 18, .25)); cursor: crosshair; padding: 0; }
.bonk-ziel { position: absolute; left: 0; right: 0; bottom: -100%; height: 100%; display: grid; place-items: center; font-size: clamp(1.8rem, 6vw, 3.4rem); transition: bottom .12s ease-out; pointer-events: none; }
.bonk-ziel img { height: 70%; }
.bonk-loch.oben .bonk-ziel { bottom: 0; }
.bonk-loch.gebonkt { background: radial-gradient(circle, var(--accent-2) 0 30%, #1a0f08 60%); }
.bonk-loch.gebonkt::after { content: "BONK"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: clamp(1rem, 3vw, 1.6rem); animation: pointe .3s; }
.bonk-ende { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.bonk-ende .muted { color: #d9c08a; }
.bonk.wackeln { animation: ruetteln .4s; }
.bonk-eintrag { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.bonk-eintrag input { width: 200px; }
.highscore { margin-top: 24px; }
.highscore td:first-child { font-size: 1.2rem; width: 70px; }
.highscore tr.neu td { background: var(--accent-2); color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Testimonials */
/* Banner über die volle Fensterbreite, auch innerhalb des Containers */
.testimonial-banner { width: 100vw; margin: 40px 0 0 calc(50% - 50vw); background: var(--accent); color: var(--accent-text); border-top: 4px solid var(--accent-2); border-bottom: 4px solid var(--accent-2); }
.banner-titel { text-align: center; font-family: var(--font-head); font-size: 1.3rem; letter-spacing: .1em; text-transform: uppercase; padding: 26px 16px 0; color: var(--accent-2); }
.banner-titel span { display: block; font-size: .85rem; opacity: .75; text-transform: none; letter-spacing: 0; font-style: italic; color: var(--accent-text); }
.banner-band { overflow: hidden; padding: 22px 0 34px; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.banner-spur { display: flex; align-items: stretch; gap: 20px; width: max-content; animation: laufband 70s linear infinite; }
.testimonial-banner:hover .banner-spur, .testimonial-banner:focus-within .banner-spur { animation-play-state: paused; }
@keyframes laufband { to { transform: translateX(calc(-50% - 10px)); } }
.testimonial { margin: 0; width: 290px; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--surface); color: var(--text); border: 2px solid var(--accent-2); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .2s; }
.testimonial:hover { transform: translateY(-4px) rotate(-.5deg); }
.testimonial .sterne { color: var(--accent-2); font-size: 1.25rem; letter-spacing: 2px; }
.testimonial .sterne span { color: var(--border); opacity: .4; }
.testimonial blockquote { margin: 0; font-family: var(--font-head); font-size: 1.02rem; flex: 1; }
.testimonial figcaption { font-style: italic; color: var(--muted); font-size: .9rem; }
/* Ohne Bewegung: Stimmen untereinander statt Laufband */
@media (prefers-reduced-motion: reduce) {
  .banner-spur { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; }
  .banner-spur [aria-hidden="true"] { display: none; }
}

/* Sticker-Jagd */
.karte { height: 380px; border: 2px solid var(--accent-2); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.karte.klein { height: 280px; margin: 10px 0; }
.karte-hinweis { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; }
.karte-hinweis p { max-width: 32em; color: var(--muted); margin: 0; }
.mops-pin { background: none; border: 0; }
.mops-pin img { width: 34px; height: 34px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.pin-popup { display: grid; gap: 4px; width: 180px; }
.pin-popup img { width: 100%; border-radius: 4px; }
.sticker-galerie { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sticker-karte { margin: 0; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.sticker-karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.sticker-karte figcaption { display: grid; gap: 2px; }
.sticker-karte small { color: var(--muted); }
.sticker-karte span { font-style: italic; }
.sticker-form { margin-top: 0; }
.sticker-karte.offen { border: 2px dashed var(--danger); }
.sticker-vorschau { max-width: 260px; margin-top: 10px; border-radius: var(--radius); border: 2px solid var(--accent-2); }
.ort-wahl { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin: 0; display: grid; gap: 10px; }
.ort-wahl legend { font-weight: 700; padding: 0 6px; }
.ort-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.ort-status { margin: 0; font-weight: 600; }
.link-knopf { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
.klein { font-size: .9rem; }
.sticker-meldung { margin: 0; font-weight: 700; color: var(--accent); min-height: 1.4em; }

/* Kummerkasten */
.kummer-reihe { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
@media (max-width: 700px) { .kummer-reihe { grid-template-columns: 1fr; } .kummer-kasten { max-width: 160px; margin: 0 auto; } }
.kummer-kasten { width: 100%; overflow: visible; }
.kummer-brief { transition: transform .8s cubic-bezier(.5, 0, .75, 0), opacity .8s; }
.kummer-kasten.eingeworfen .kummer-brief { transform: translateY(56px) scaleX(.9); opacity: 0; }
.kummer-form { margin: 0; }
.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Zitate */
.zitat, .zitat-gross blockquote { margin: 0; position: relative; }
.zitat { padding-top: 52px; }
.zitat::before { content: "“"; position: absolute; top: 6px; left: 16px; font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; color: var(--accent-2); }
.zitat-text { font-family: var(--font-head); font-size: 1.25rem; margin: 0 0 10px; }
.zitat-von { font-style: italic; color: var(--muted); font-size: .95rem; }
.zitat-gross { text-align: center; border: 3px double var(--accent-2); }
.zitat-gross blockquote { padding: 18px 0; }
.zitat-gross .zitat-text { font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--accent); }
.zitat-gross blockquote.neu { animation: pointe .5s cubic-bezier(.34, 1.56, .64, 1); }

/* Hall of Fame */
.hof { margin-top: 8px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .hof { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .hof { grid-template-columns: 1fr; } }
.hof-karte, .hof-garde { text-align: center; border: 3px double var(--accent-2); padding-top: 34px; overflow: hidden; }
.hof-band { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-text); font-family: var(--font-head); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 3px 16px; border-radius: 0 0 var(--radius) var(--radius); }
.hof-bild { width: 130px; height: 130px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 4.2rem; background: var(--surface-2); border: 4px solid var(--accent-2); box-shadow: 0 0 0 6px var(--surface), 0 0 0 8px var(--accent-2); overflow: hidden; }
.hof-bild img { width: 100%; height: 100%; object-fit: cover; }
.hof-bild img[src$=".svg"] { width: 80%; height: 80%; object-fit: contain; }
.hof-bild .meerschweinchen { width: 82%; height: auto; margin-top: 8%; }
.garde-mitglied:hover .meerschweinchen { animation: mampfen .25s ease-in-out 4 alternate; }
@keyframes mampfen { to { transform: translateY(-3px) rotate(-3deg); } }
.hof-bild.klein { width: 84px; height: 84px; font-size: 2.6rem; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent-2); }
.hof-karte h2 { margin: 6px 0 0; }
.hof-titel { font-style: italic; color: var(--accent); margin: 0 0 10px; }
.hof-procontra { display: grid; justify-items: center; gap: 4px; margin: 0 0 1em; }
.hof-procontra dt { font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 1px 10px; border-radius: var(--radius); color: #fff; background: var(--ok); }
.hof-procontra dt:nth-of-type(2) { background: var(--danger); margin-top: 6px; }
.hof-procontra dd { margin: 0; }
/* Gedenken (Rala) */
.hof-karte.gedenken .hof-bild { box-shadow: 0 0 0 6px var(--surface), 0 0 0 8px var(--accent-2), 0 0 26px 8px rgba(199, 210, 230, .9); }
.hof-karte.gedenken .hof-bild img { filter: grayscale(.35) brightness(1.08); }
.hof-karte .kreuz { font-family: var(--font-body); font-weight: 400; font-size: .8em; color: var(--muted); }
.hof-gedenken { font-style: italic; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8px 0; margin: 0 0 10px; }
.hof-gedenken a { text-decoration: none; }
.hof-zitat { font-family: var(--font-head); font-style: italic; color: var(--accent); border-top: 1px solid var(--border); padding-top: 10px; margin: 0; }
.hof-garde { margin-top: 24px; }
.garde-reihe { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 16px; }
.garde-mitglied { flex: 1 1 140px; max-width: 190px; }
.garde-mitglied h3 { margin: 4px 0; }
.garde-mitglied p { font-size: .95rem; margin: 0; }

/* Feste */
.card.feste { border: 2px solid var(--accent-2); }
.feste-icon { width: 56px; height: 49px; margin-bottom: 10px; }

/* Karte */
.map { width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

[id] { scroll-margin-top: 150px; }
[hidden] { display: none !important; }

/* Impressum und Datenschutz */
.rechtstext h2 { font-size: 1.15rem; margin-top: 1.6em; }
.rechtstext ul { padding-left: 1.2em; }
.rechtstext li { margin-bottom: .35em; }
