/* Kaffkrieg: Asphalt, Ortsschilder, Böllerverpackung. */

@font-face { font-family: 'Barlow SC'; src: url(/fonts/barlow-sc-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow SC'; src: url(/fonts/barlow-sc-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow SC'; src: url(/fonts/barlow-sc-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Anton'; src: url(/fonts/anton.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --gelb: #f6c800;
  --rot: #d0121b;
  --rot-tief: #8f0a10;
  --asphalt: #2b2e31;
  --asphalt-2: #34383c;
  --asphalt-3: #454a50;
  --kreide: #e8e8e4;
  --kreide-2: #b9bcbf;
  --weiss: #ffffff;
  --schwarz: #000000;
  --blau: #1c4f9c;
  --whatsapp: #25d366;
  --sign: 'Barlow SC', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --meme: 'Anton', Impact, 'Arial Black', sans-serif;
  --spalte: 680px;
  --rand: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--asphalt);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 60% at 50% 0%, #3a3e42 0%, var(--asphalt) 60%);
  color: var(--kreide);
  font: 500 1.0625rem/1.5 var(--sign);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--gelb); color: #000; padding: 8px 12px; font-weight: 800; }
.sprung:focus { top: 8px; }

/* ---------- Ticker ---------- */
.ticker {
  position: sticky; top: 0; z-index: 50;
  background: #000; color: var(--gelb);
  height: 34px; overflow: hidden;
  border-bottom: 2px solid var(--gelb);
  font: 700 .95rem/34px var(--sign);
}
.ticker__band { display: inline-flex; white-space: nowrap; will-change: transform; padding-left: 100%; }
.ticker__band.laeuft { animation: lauf var(--dauer, 60s) linear infinite; }
.ticker__item { padding-right: 1.2em; }
.ticker__item::before { content: '+++ '; color: var(--rot); font-weight: 800; }
.ticker__item--neu { color: #fff; }
@keyframes lauf { to { transform: translateX(-100%); } }

.demo { margin: 0; background: var(--rot); color: #fff; text-align: center; font: 700 .85rem/1.3 var(--sign); padding: 6px var(--rand); }

/* ---------- Kopf ---------- */
.kopf {
  max-width: calc(var(--spalte) + 2 * var(--rand)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--rand) 6px;
}
.logo { text-decoration: none; }
.logo__schild {
  display: inline-block; padding: 7px 12px 8px;
  background: var(--gelb); color: #000; border-radius: 7px;
  outline: 2px solid #000; outline-offset: -5px;
  font: 800 1.2rem/1 var(--sign);
  box-shadow: 0 6px 14px -6px #000;
}
.kopf__nav { display: flex; align-items: center; gap: 4px; }
.kopf__nav a { text-decoration: none; font-weight: 700; padding: 8px 10px; border-radius: 8px; }
.kopf__nav a:hover { background: var(--asphalt-2); }
.ton { background: none; border: 0; font-size: 1.15rem; padding: 8px; border-radius: 8px; line-height: 1; }
.ton[aria-pressed="false"] { opacity: .45; }

/* ---------- Ortsschild (Zeichen 310) ---------- */
.schild {
  --gr: 1.35rem;
  position: relative; display: inline-block; max-width: 100%;
  font-size: var(--gr); font-family: var(--sign); color: #000; text-decoration: none;
  background: var(--gelb);
  border-radius: .42em;
  padding: .16em;
  box-shadow: inset 0 -.06em 0 rgba(0, 0, 0, .12), 0 .5em 1.1em -.45em rgba(0, 0, 0, .85);
  vertical-align: middle;
}
.schild__innen {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: max(2px, .075em) solid #000; border-radius: .3em;
  padding: .12em .45em .16em;
  line-height: .95; text-align: center;
}
.schild__name { font-weight: 800; letter-spacing: -.012em; overflow-wrap: anywhere; }
.schild__region { font-size: .3em; font-weight: 700; margin-top: .3em; line-height: 1.1; letter-spacing: .01em; }
.schild--lang .schild__name { font-size: .8em; }
.schild--sehrlang .schild__name { font-size: .64em; }
.schild--gross { --gr: clamp(2.7rem, 13.5vw, 5.4rem); }
.schild--gross .schild__innen { padding: .1em .38em .16em; min-width: 4.2em; }
.schild--gross .schild__region { font-size: .24em; }
a.schild:hover { filter: brightness(1.04); }
a.schild:focus-visible { outline-color: #fff; }

/* Ortsende (Zeichen 311): roter Balken von links unten nach rechts oben */
.schild--ende::after {
  content: ''; position: absolute; left: -4%; right: -4%; top: 50%;
  height: .22em; background: var(--rot); border-radius: .03em;
  transform: translateY(-50%) rotate(-14deg);
  box-shadow: 0 .02em .05em rgba(0, 0, 0, .35);
  pointer-events: none;
}
.schild--gross.schild--ende::after { height: .15em; transform: translateY(-50%) rotate(-11deg); }

/* Eingabe im Schild */
.schild--eingabe { width: min(100%, 560px); }
.schild--eingabe .schild__innen { width: 100%; }
.schild__input {
  width: 100%; border: 0; background: transparent; color: #000; text-align: center;
  font: 800 1em/1 var(--sign); letter-spacing: -.012em; padding: 0; margin: 0; caret-color: var(--rot);
  -webkit-appearance: none; appearance: none;
}
.schild__input::placeholder { color: rgba(0, 0, 0, .38); opacity: 1; }
.schild__input:focus { outline: none; }
.schild--eingabe:focus-within { box-shadow: 0 0 0 4px var(--asphalt), 0 0 0 7px #fff, 0 .5em 1.1em -.45em rgba(0, 0, 0, .85); }

/* ---------- Pfosten mit Zusatzzeichen ---------- */
.pfosten { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 0 46px; isolation: isolate; }
.pfosten::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 30px; bottom: 0; width: 14px; transform: translateX(-50%);
  background: linear-gradient(90deg, #5c6167, #c3c7cb 38%, #8a8f95 62%, #5c6167);
  border-radius: 3px 3px 0 0;
}
.pfosten::after {
  content: ''; position: absolute; z-index: -1; left: 50%; bottom: -4px; width: 64px; height: 12px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent);
}
.pfosten--klein { padding-bottom: 28px; gap: 8px; }

.zusatz {
  display: inline-flex; align-items: center; gap: .5em; max-width: 100%;
  background: #fff; color: #000; text-decoration: none;
  border: 2px solid #000; border-radius: 5px;
  box-shadow: 0 0 0 3px #fff, 0 8px 16px -8px rgba(0, 0, 0, .9);
  padding: .32em .8em .36em;
  font: 700 1.02rem/1.2 var(--sign);
  text-align: center;
}
.zusatz--gross { font-size: 1.45rem; font-weight: 800; padding: .3em .7em; }
.zusatz--truppe {
  display: grid; grid-template-columns: auto 1fr auto; gap: .6em; width: 100%; text-align: left;
  padding: .55em .8em; font-size: 1.05rem;
}
.zusatz--truppe:hover { background: #fff8d6; }
.zusatz--truppe:focus-visible { outline: 3px solid var(--gelb); outline-offset: 4px; }
.zusatz__name { font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.zusatz__name small { display: block; font-weight: 600; font-size: .8em; color: #444; }
.zusatz__wert { font-weight: 800; font-variant-numeric: tabular-nums; }
.zusatz__wert::after { content: ' Aura'; font-weight: 600; font-size: .78em; color: #444; }
.zusatz__emoji { font-size: 1.15em; line-height: 1; }

/* ---------- Held ---------- */
.held {
  max-width: calc(var(--spalte) + 2 * var(--rand)); margin: 0 auto;
  padding: 18px var(--rand) 34px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.held__titel, .meme {
  font-family: var(--meme); font-weight: 400; text-transform: uppercase; color: #fff; letter-spacing: .01em;
  text-shadow:
    .045em .045em 0 #000, -.045em .045em 0 #000, .045em -.045em 0 #000, -.045em -.045em 0 #000,
    0 .06em 0 #000, .06em 0 0 #000, 0 -.06em 0 #000, -.06em 0 0 #000, 0 .12em 0 rgba(0, 0, 0, .5);
}
.held__titel { margin: 6px 0 0; font-size: clamp(2.1rem, 9.5vw, 3.6rem); line-height: .98; max-width: 12em; text-wrap: balance; }
.held__text { margin: 0; max-width: 30em; font-size: 1.12rem; font-weight: 700; color: #fff; text-wrap: balance; }
.held__klein { margin: 0; color: var(--kreide-2); font-size: .95rem; }
.held__zurueck { margin: 0; }
.held__zurueck a { font-weight: 800; color: var(--gelb); }

.ansage { margin: 0; max-width: 28em; font: 800 1.2rem/1.3 var(--sign); color: #fff; text-wrap: balance; }
.ansage--rot { color: #fff; background: var(--rot); padding: .45em .8em; border-radius: 8px; box-shadow: 0 4px 0 var(--rot-tief); }

/* Trefferliste der Suche */
.treffer {
  position: absolute; z-index: 30; left: 50%; transform: translateX(-50%); top: calc(100% + 8px);
  width: min(100%, 480px); margin: 0; padding: 4px; list-style: none; text-align: left;
  background: #fff; color: #000; border: 3px solid #000; border-radius: 8px;
  box-shadow: 0 18px 40px -12px #000; font-size: 1rem;
}
.schild--eingabe { position: relative; }
.treffer a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 5px; text-decoration: none; }
.treffer a b { font-weight: 800; font-size: 1.1rem; }
.treffer a small { color: #555; font-weight: 600; text-align: right; }
.treffer a[aria-selected="true"], .treffer a:hover { background: var(--gelb); }
.treffer__leer { padding: 10px 12px; color: #555; }

/* ---------- Abschnitte ---------- */
.block {
  position: relative;
  max-width: calc(var(--spalte) + 2 * var(--rand)); margin: 0 auto;
  padding: 44px var(--rand) 40px;
}
/* Fahrbahnmarkierung als Trenner zwischen den Abschnitten */
.block::before {
  content: ''; position: absolute; top: 0; left: var(--rand); right: var(--rand); height: 6px;
  background: repeating-linear-gradient(90deg, var(--kreide) 0 38px, transparent 38px 66px);
  opacity: .55; border-radius: 1px;
}
.block--erst { padding-top: 22px; }
.block--erst::before { display: none; }
.block__titel { margin: 0 0 16px; font: 800 1.7rem/1.1 var(--sign); color: #fff; text-wrap: balance; letter-spacing: -.005em; }
.block__titel--gross { font-size: clamp(2rem, 8vw, 2.8rem); }
.block__unter { margin: 30px 0 12px; font: 800 1.25rem/1.2 var(--sign); color: #fff; }
.block__text { margin: -6px 0 16px; color: var(--kreide-2); max-width: 36em; }
.leer { margin: 0 0 14px; color: var(--kreide-2); font-weight: 700; }
.mehr { display: inline-block; margin-top: 16px; font-weight: 800; color: var(--gelb); text-underline-offset: 4px; }
.reihe { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.reihe--zwei > * { flex: 1 1 140px; }
.reihe--zwei .knopf { font-size: 1.05rem; padding-inline: .6em; gap: .3em; }

/* ---------- Wegweiser-Tabelle ---------- */
.wegweiser { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.weg {
  display: grid; grid-template-columns: 2.3em 1fr auto; align-items: center; gap: 10px;
  min-height: 58px; padding: 6px 40px 6px 6px;
  background: var(--gelb); color: #000; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
  border-radius: 6px 0 0 6px;
  transition: transform .15s ease-out;
}
.weg:hover { transform: translateX(4px); }
.weg:focus-visible { outline: none; transform: translateX(4px); background: #ffe25a; }
.weg__rang {
  display: grid; place-items: center; align-self: stretch;
  background: #000; color: var(--gelb); border-radius: 4px;
  font: 800 1.15rem/1 var(--sign); font-variant-numeric: tabular-nums;
}
.wegweiser li:nth-child(-n+3) .weg__rang { background: var(--rot); color: #fff; }
.weg__name { font: 800 1.22rem/1.1 var(--sign); min-width: 0; overflow-wrap: anywhere; }
.weg__name small { display: block; font-weight: 700; font-size: .7em; opacity: .7; margin-top: 2px; }
.weg__wert { font: 800 1.25rem/1 var(--sign); font-variant-numeric: tabular-nums; text-align: right; }
.weg__wert small { display: block; font-size: .6em; font-weight: 700; opacity: .65; margin-top: 2px; }

/* ---------- Duelle ---------- */
.duelle { display: grid; gap: 14px; }
.duell {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 10px;
  padding: 16px 12px 14px; border-radius: 12px; text-decoration: none; color: inherit;
  background: rgba(0, 0, 0, .18);
  transition: background .15s;
}
.duell:hover { background: rgba(0, 0, 0, .3); }
.duell__seite { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.duell .schild { --gr: clamp(1.2rem, 5.6vw, 1.6rem); }
.duell--klein .schild { --gr: clamp(1.1rem, 5.2vw, 1.4rem); }
.duell__aura, .arena__aura { font: 800 1.25rem/1 var(--sign); color: #fff; font-variant-numeric: tabular-nums; }
.duell__vs, .arena__vs {
  font-family: var(--meme); color: var(--rot); font-size: 1.9rem; line-height: 1; transform: rotate(-8deg);
  text-shadow: .05em .05em 0 #fff, -.05em .05em 0 #fff, .05em -.05em 0 #fff, -.05em -.05em 0 #fff, 0 .1em 0 #000;
}
.duell .tau, .arena .tau { grid-column: 1 / -1; }

.tau { position: relative; height: 16px; border-radius: 9px; background: #fff; border: 3px solid #000; overflow: visible; }
.tau__a { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gelb); border-radius: 6px 0 0 6px; transition: width .6s cubic-bezier(.2, .9, .3, 1.2); }
.tau__knoten { position: absolute; top: -8px; width: 8px; height: 26px; margin-left: -4px; background: #000; border-radius: 2px; transition: left .6s cubic-bezier(.2, .9, .3, 1.2); }

.arena { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 10px; }
.arena__seite { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.arena .schild { --gr: clamp(1.35rem, 6.6vw, 2.6rem); }
.arena__aura { font-size: clamp(1.6rem, 7vw, 2.4rem); }
.arena__vs { font-size: clamp(2.2rem, 10vw, 3.6rem); }

.truppenduell { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px 10px; align-items: center; }
.truppenduell .zusatz--truppe { grid-template-columns: 1fr; text-align: center; }
.truppenduell .tau { grid-column: 1 / -1; }

/* ---------- Länder, Ligen ---------- */
.laender { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.land { display: grid; grid-template-columns: 7.2em 1fr auto; align-items: center; gap: 12px; font-weight: 800; color: #fff; }
.land__balken { height: 22px; background: var(--asphalt-3); border-radius: 4px; overflow: hidden; border: 2px solid #000; }
.land__balken span { display: block; height: 100%; background: var(--gelb); }
.land--at .land__balken span { background: var(--rot); }
.land--ch .land__balken span { background: #fff; }
.land__wert { font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }

.ligen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.blau {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 13px; min-height: 84px;
  background: var(--blau); color: #fff; text-decoration: none; border-radius: 8px;
  box-shadow: inset 0 0 0 4px var(--blau), inset 0 0 0 6px #fff, 0 10px 18px -10px #000;
}
.blau:hover { filter: brightness(1.12); }
.blau:focus-visible { outline-color: #fff; }
.blau__titel { font: 800 1.12rem/1.15 var(--sign); }
.blau__erster { font-size: .92rem; font-weight: 600; opacity: .88; }
.blau__liste { margin: 0; padding-left: 1.3em; font-size: .92rem; font-weight: 600; }
.blau__liste b { font-variant-numeric: tabular-nums; }

/* ---------- Schritte ---------- */
.schritte { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.schritte li { counter-increment: s; display: grid; grid-template-columns: 2.4em 1fr; gap: 12px; align-items: start; color: var(--kreide); }
.schritte li::before {
  content: counter(s); display: grid; place-items: center; height: 2.4em;
  background: var(--gelb); color: #000; font: 800 1.1rem/1 var(--sign); border-radius: 5px; border: 2px solid #000;
}
.schritte b { color: #fff; }

/* ---------- Ort: Truppen, Ehre, Schreie ---------- */
.truppen { list-style: none; margin: 0 0 18px; padding: 4px 3px; display: grid; gap: 12px; }
.ehre { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ehre li { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 12px; align-items: center; padding: 8px 10px 8px 8px; background: rgba(0, 0, 0, .2); border-radius: 8px; }
.ehre__platz { display: grid; place-items: center; height: 2.2em; background: #000; color: var(--gelb); border-radius: 4px; font-weight: 800; }
.ehre li:first-child .ehre__platz { background: var(--gelb); color: #000; }
.ehre__name { font-weight: 800; color: #fff; min-width: 0; overflow-wrap: anywhere; }
.ehre__name small { display: block; color: var(--gelb); font-weight: 700; font-size: .85em; }
.ehre__aura { font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.abzeichen { display: inline-block; background: var(--rot); color: #fff; font-size: .68em; font-weight: 800; padding: 2px 6px; border-radius: 3px; vertical-align: 2px; }

.schreie { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.schrei { background: rgba(0, 0, 0, .2); border-radius: 10px; padding: 10px 14px; }
.schrei__text { margin: 0; font: 800 1.3rem/1.2 var(--sign); color: #fff; overflow-wrap: anywhere; }
.schrei__wer { margin: 4px 0 0; color: var(--kreide-2); font-size: .92rem; }
.schrei__wer a { color: var(--kreide); }
.melden { background: none; border: 0; color: var(--kreide-2); text-decoration: underline; font-size: .85rem; padding: 4px; margin-left: 4px; }

.nachbarn { list-style: none; margin: 0 0 18px; padding: 3px; display: flex; flex-wrap: wrap; gap: 12px; }
.nachbarn a {
  display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none;
  background: #fff; color: #000; border: 2px solid #000; border-radius: 5px; box-shadow: 0 0 0 3px #fff;
  padding: 7px 11px; font-weight: 600;
}
.nachbarn a:hover { background: var(--gelb); box-shadow: 0 0 0 3px var(--gelb); }
.nachbarn b { font-weight: 800; }
.nachbarn small { color: #555; font-weight: 700; }

.gegner { position: relative; display: grid; gap: 6px; max-width: 420px; }
.gegner label { font-weight: 800; color: #fff; }
.gegner input {
  width: 100%; padding: 12px 14px; border-radius: 6px; border: 3px solid #000; background: #fff; color: #000; font-weight: 700; font-size: 1.05rem;
}
.gegner .treffer { left: 0; transform: none; width: 100%; }

.steckbrief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin: 0; }
.steckbrief div { border-top: 2px solid var(--asphalt-3); padding-top: 8px; }
.steckbrief dt { color: var(--kreide-2); font-size: .9rem; font-weight: 700; }
.steckbrief dd { margin: 2px 0 0; color: #fff; font: 800 1.35rem/1.15 var(--sign); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 52px; padding: .65em 1.2em .7em;
  font: 800 1.15rem/1.1 var(--sign); text-decoration: none; text-align: center;
  background: var(--gelb); color: #000;
  border: 3px solid #000; border-radius: 12px;
  box-shadow: 0 5px 0 #000;
  transition: transform .08s ease-out, box-shadow .08s ease-out, filter .15s;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.knopf:hover { filter: brightness(1.06); }
.knopf:active { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.knopf:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.knopf--zuenden { background: var(--rot); color: #fff; }
.knopf--zuenden::before { content: '🧨'; font-size: 1.05em; }
.knopf--gross { font-size: 1.35rem; min-height: 62px; padding-inline: 1.5em; }
.knopf--breit { width: 100%; }
.knopf--leise { background: transparent; color: #fff; border-color: var(--kreide-2); box-shadow: 0 5px 0 rgba(0, 0, 0, .55); }
.knopf--whatsapp { background: var(--whatsapp); color: #000; }
.knopf[disabled] { opacity: .6; pointer-events: none; }

.teilen { display: flex; flex-wrap: wrap; gap: 12px; }
.teilen > * { flex: 1 1 180px; }
.teilbild { width: 100%; border-radius: 10px; border: 3px solid #000; margin: 0 0 16px; box-shadow: 0 16px 30px -16px #000; }

/* Klebeleiste unten auf Ortsseiten */
.leiste {
  position: sticky; bottom: 0; z-index: 40;
  max-width: calc(var(--spalte) + 2 * var(--rand)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--rand) calc(10px + env(safe-area-inset-bottom));
  background: rgba(20, 22, 24, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 2px solid #000;
  transform: translateY(110%); transition: transform .25s ease-out;
}
.leiste--an { transform: none; }
.leiste__info { color: #fff; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leiste .knopf { min-height: 46px; font-size: 1.02rem; padding: .5em .9em; flex: none; }

/* ---------- Schalter ---------- */
.schalter { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; background: rgba(0, 0, 0, .3); border-radius: 10px; }
.schalter a { padding: 8px 14px; border-radius: 7px; text-decoration: none; font-weight: 800; color: var(--kreide); }
.schalter a[aria-current="page"] { background: var(--gelb); color: #000; }
.schalter + .schalter { margin-left: 8px; }

/* ---------- Kaufblatt (Dialog) ---------- */
.blatt {
  width: min(100%, 560px); max-width: 100%; max-height: 92vh; max-height: 92dvh;
  margin: auto auto 0; padding: 0; border: 0;
  background: var(--asphalt-2); color: var(--kreide);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
  overflow: auto; overscroll-behavior: contain;
}
.blatt[open] { animation: hoch .28s cubic-bezier(.2, .9, .3, 1); }
.blatt::backdrop { background: rgba(0, 0, 0, .62); backdrop-filter: blur(2px); }
@keyframes hoch { from { transform: translateY(40%); opacity: .4; } }
@media (min-width: 640px) {
  .blatt { margin: auto; border-radius: 20px; border: 4px solid var(--gelb); }
}
.blatt__zu { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; height: 0; }
.blatt__zu button {
  margin: 10px 10px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #000;
  background: #fff; color: #000; font-size: 1.05rem; font-weight: 800;
}
.blatt__form { padding: 22px var(--rand) calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.blatt__titel { margin: 0; padding-right: 48px; font: 800 1.6rem/1.1 var(--sign); color: #fff; }
.blatt__titel span { color: var(--gelb); }
.blatt__gegen { margin: -8px 0 0; font-weight: 700; color: var(--kreide-2); }
.blatt__text { margin: -6px 0 0; color: var(--kreide-2); }
.blatt__fehler { margin: 0; background: var(--rot); color: #fff; padding: 10px 12px; border-radius: 8px; font-weight: 700; }
.blatt__klein { margin: 0; color: var(--kreide-2); font-size: .85rem; text-align: center; }
.blatt fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.blatt legend { padding: 0; margin-bottom: 8px; font-weight: 800; color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2px solid var(--kreide-2); background: transparent; border-radius: 999px; padding: 7px 13px;
  font-weight: 700; color: #fff; font-size: .95rem;
}
.chip[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }

/* Böller-Verpackungen */
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.packs legend { grid-column: 1 / -1; }
.pack { position: relative; display: block; cursor: pointer; }
.pack input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pack__box {
  position: relative; display: flex; flex-direction: column; gap: 3px; height: 100%;
  padding: 12px 12px 10px; border-radius: 10px; overflow: hidden;
  background: repeating-linear-gradient(135deg, #d0121b 0 14px, #b70d15 14px 28px);
  color: #fff; border: 3px solid #000; box-shadow: 0 4px 0 #000;
  transition: transform .12s ease-out, box-shadow .12s ease-out;
}
.pack__preis {
  align-self: flex-start;
  display: inline-grid; place-items: center; min-width: 3.3em; height: 3.3em; padding: 0 .3em;
  background: var(--gelb); color: #000; font: 400 1.05rem/1 var(--meme);
  clip-path: polygon(50% 0, 61% 18%, 82% 9%, 80% 31%, 100% 38%, 85% 54%, 97% 73%, 75% 76%, 72% 98%, 54% 86%, 36% 100%, 30% 79%, 8% 82%, 15% 61%, 0 45%, 18% 34%, 13% 12%, 34% 18%);
  text-align: center; line-height: .95;
}
.pack__preis small { display: block; font-size: .55em; font-family: var(--sign); font-weight: 800; }
.pack__name { font: 400 clamp(1.1rem, 5.2vw, 1.5rem)/1 var(--meme); text-transform: uppercase; color: var(--gelb); letter-spacing: .01em; margin-top: 4px; text-shadow: 0 2px 0 #000; overflow-wrap: anywhere; }
.pack__aura { font: 800 1.05rem/1.1 var(--sign); }
.pack__text { font-size: .86rem; line-height: 1.25; opacity: .92; }
.pack__kat { margin-top: auto; padding-top: 6px; font: 700 .72rem/1 var(--sign); color: #000; }
.pack__kat { align-self: flex-start; background: #fff; padding: 3px 6px; border-radius: 3px; margin-top: 8px; }
.pack--dauerfeuer { grid-column: 1 / -1; }
.pack--dauerfeuer .pack__box {
  background: linear-gradient(180deg, #1b1d1f, #000);
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
}
.pack--dauerfeuer .pack__preis { grid-row: 1 / 5; align-self: center; }
.pack--dauerfeuer .pack__name { color: var(--rot); text-shadow: 0 2px 0 #000, 0 0 12px rgba(208, 18, 27, .55); }
.pack--dauerfeuer .pack__kat { grid-column: 2; justify-self: start; }
.pack input:checked + .pack__box { transform: translateY(-3px); box-shadow: 0 0 0 4px var(--gelb), 0 7px 0 #000; }
.pack input:focus-visible + .pack__box { outline: 3px solid #fff; outline-offset: 5px; }
.pack input:checked + .pack__box::after {
  content: '✓'; position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--gelb); color: #000; border-radius: 50%; font-weight: 800; border: 2px solid #000;
}

.feld { display: grid; gap: 6px; }
.feld > span { font-weight: 800; color: #fff; }
.feld i { font-style: normal; font-weight: 600; color: var(--kreide-2); font-size: .88em; }
.feld input, .feld select {
  width: 100%; padding: 12px 14px; min-height: 50px; border-radius: 8px; border: 2px solid #000;
  background: #fff; color: #000; font-weight: 700; font-size: 1.05rem;
}
.feld input::placeholder { color: #8a8a8a; font-weight: 600; }
.haken { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: .95rem; color: var(--kreide); }
.haken input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--gelb); }
.haken a { color: var(--gelb); }
.haken--fehlt span { color: #fff; text-decoration: underline wavy var(--rot); text-underline-offset: 4px; }

/* ---------- Danke ---------- */
.riesig { margin: 10px 0 0; font-size: clamp(3.6rem, 19vw, 8rem); line-height: .9; }
.seite-danke .riesig { animation: aufploppen .7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes aufploppen { 0% { transform: scale(.2) rotate(-14deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(-3deg); } }
.ergebnis { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 30em; text-align: left; }
.ergebnis li { position: relative; padding-left: 26px; font-size: 1.1rem; color: #fff; }
.ergebnis li::before { content: ''; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; background: var(--gelb); border: 2px solid #000; border-radius: 2px; }
.ergebnis b { color: var(--gelb); }
.titel-karte {
  display: grid; gap: 4px; justify-items: center; padding: 14px 22px 16px;
  background: #fff; color: #000; border: 2px solid #000; border-radius: 6px; box-shadow: 0 0 0 4px #fff, 0 14px 28px -12px #000;
  transform: rotate(-1.5deg);
}
.titel-karte__klein { font-weight: 700; font-size: .9rem; color: #444; }
.titel-karte__titel { font: 800 2rem/1.05 var(--sign); }

/* ---------- Textseiten ---------- */
.block--text { color: var(--kreide); }
.block--text h2 { margin: 28px 0 8px; font: 800 1.25rem/1.2 var(--sign); color: #fff; }
.block--text p, .block--text li { max-width: 40em; }
.block--text a { color: var(--gelb); }
.kuendigen { display: grid; gap: 16px; max-width: 420px; margin-top: 20px; }
.tabelle-scroll { overflow-x: auto; }
.admin { border-collapse: collapse; font-size: .85rem; min-width: 760px; }
.admin th, .admin td { border-bottom: 1px solid var(--asphalt-3); padding: 6px 8px; text-align: left; vertical-align: top; }
.admin button { background: var(--gelb); color: #000; border: 0; border-radius: 4px; padding: 4px 8px; font-weight: 800; }

/* ---------- Fuß ---------- */
.fuss {
  max-width: calc(var(--spalte) + 2 * var(--rand)); margin: 40px auto 0;
  padding: 26px var(--rand) calc(90px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--asphalt-3); color: var(--kreide-2); font-size: .9rem;
}
.fuss p { margin: 0 0 10px; max-width: 42em; }
.fuss__nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0; }
.fuss__nav a { color: var(--kreide); font-weight: 700; }
.fuss__klein { font-size: .8rem; }

/* ---------- Toasts und Knall ---------- */
.toasts { position: fixed; left: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 90; display: grid; gap: 8px; pointer-events: none; max-width: calc(100% - 24px); }
.toast {
  background: var(--gelb); color: #000; border: 2px solid #000; border-radius: 8px; padding: 8px 12px;
  font-weight: 800; box-shadow: 0 8px 18px -8px #000; max-width: 340px;
  animation: toast-rein .3s cubic-bezier(.2, 1.4, .4, 1) both;
}
.toast--rot { background: var(--rot); color: #fff; }
.toast.weg-damit { animation: toast-raus .3s ease-in forwards; }
@keyframes toast-rein { from { transform: translateX(-120%); } }
@keyframes toast-raus { to { transform: translateX(-120%); opacity: 0; } }
.knall { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 120; pointer-events: none; }

.wackeln { animation: wackeln .5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes wackeln {
  10%, 90% { transform: translate(-2px, 1px); }
  20%, 80% { transform: translate(4px, -2px); }
  30%, 50%, 70% { transform: translate(-7px, 3px) rotate(-.4deg); }
  40%, 60% { transform: translate(7px, -3px) rotate(.4deg); }
}
.zahl-pop { animation: zahl-pop .6s ease-out; }
@keyframes zahl-pop { 30% { color: var(--gelb); transform: scale(1.25); } }
[data-aura-ort], [data-aura-a], [data-aura-b] { display: inline-block; }

@media (min-width: 720px) {
  .held { padding-top: 26px; }
  .duelle { grid-template-columns: 1fr 1fr; }
  .duell--klein .schild { --gr: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker__band.laeuft { animation: none; }
  .ticker { overflow-x: auto; }
  .ticker__band { padding-left: 12px; }
}
