/* =========================================================
   Eierlesen – Staffetten-Anmeldung
   Farben, Schrift und Formen nach dem Design-System „TV Ettingen“:
   Blau führt, Rot akzentuiert, Weiss ist der Grund. Kantig, keine Schatten.
   ========================================================= */

:root {
  /* --- TV Ettingen Design-System --- */
  --tve-blau: #0069b4;
  --tve-rot: #ec1e24;
  --tve-indigo: #3853a3;
  --tve-schwarz: #231f20;
  --tabellen-blau: #0070c0;
  --wasserzeichen: #e6f0f9;
  --link: #005aa4;
  --surface: #ffffff;
  --surface-alt: #f9f9f9;
  --surface-footer: #363839;
  --ink-strong: #333333;
  --ink: #747474;
  --ink-footer-heading: #dddddd;
  --on-blau: #ffffff;
  --border: #dadada;
  --border-strong: #949494;
  --focus: var(--link);

  /* Ergänzung: abgedunkeltes tve-rot für kleine Fehlertexte (5.9:1 auf Weiss;
     tve-rot selbst ist nur ab 24px zugelassen) */
  --fehler: #c8161d;

  /* Kategorien (Eier, Badges) */
  --cat-aktiv: var(--tve-rot);
  --cat-plausch: var(--tve-blau);
  --cat-jugend: var(--tve-indigo);
  --cat-muki: #8fbbe3;

  /* Illustration: Strasse, Sägmehl, Korb, Holz-Ei */
  --egg: #fbf6ea;
  --egg-line: #cdbb94;
  --sawdust: #e3c48f;
  --sawdust-dark: #c9a467;
  --straw: #d9b25b;
  --straw-dark: #7a5522;

  --font-sans: "Avenir LTStd", "Avenir Next LT Pro", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 30px;
  --space-7: 40px;
  --space-8: 64px;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--ink-strong);
  background: var(--surface);
}

h1, h2, h3 {
  font-weight: 500;
  color: var(--ink-strong);
  margin: 0 0 var(--space-2);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

[hidden] {
  display: none !important;
}

.overline {
  margin: 0 0 var(--space-2);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- Briefkopf ---------- */

.letterhead {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-4) var(--space-3);
  background: var(--surface);
}

/* die zwei blauen Linien links und rechts des Signets */
.letterhead::before,
.letterhead::after {
  content: "";
  flex: 1;
  max-width: 360px;
  height: 2px;
  background: var(--tve-blau);
  margin-bottom: 22px;
}

.letterhead-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  color: var(--tve-blau);
  font-weight: 500;
  font-size: 15px;
  line-height: 18px;
  text-decoration: none;
}

.letterhead-brand:hover {
  text-decoration: none;
}

.letterhead-brand img {
  display: block;
  width: 56px;
  height: 56px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--tve-blau);
  color: var(--on-blau);
  padding: var(--space-7) 0;
  border-bottom: 4px solid var(--tve-rot);
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
}

.hero-text {
  max-width: 620px;
}

.hero .overline {
  color: var(--on-blau);
}

.hero h1 {
  color: var(--on-blau);
  font-size: clamp(36px, 7vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-3);
}

/* Das Jahr als rote Fläche – wie im Signet */
.year-tag {
  display: inline-block;
  padding: 0 0.18em;
  background: var(--tve-rot);
  color: var(--on-blau);
}

.lead {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 300;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0;
}

.fact {
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: var(--space-3) var(--space-4);
  min-width: 210px;
}

.fact dt {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fact dd {
  margin: 2px 0 0;
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
}

.countdown {
  display: block;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
}

/* ---------- Strecke ---------- */

.track-slot {
  margin-top: var(--space-5);
}

.track-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-3) var(--space-3) var(--space-1);
}

.track {
  display: block;
  width: 100%;
  height: auto;
}

/* Beim Scrollen: kleines Overlay am oberen Bildschirmrand */
.track-card.is-docked {
  position: fixed;
  top: var(--space-2);
  left: 50%;
  z-index: 40;
  width: min(460px, calc(100% - 16px));
  padding: 5px;
  border: 1px solid var(--border-strong);
  border-bottom: 2px solid var(--tve-blau);
  transform: translateX(-50%);
  animation: dock-in 0.25s ease-out;
}

.track-card.is-docked .track-steps {
  display: none;
}

@keyframes dock-in {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* SVG-Farben aus den Tokens */
.t-sidewalk { fill: #d8d5cf; }
.t-edge { stroke: #e9e6e0; stroke-width: 2; }
.t-divider { stroke: #f4f1ea; stroke-width: 4; stroke-dasharray: 26 18; }
.t-white { fill: #f4f1ea; }
.t-white-line { stroke: #f4f1ea; stroke-width: 4; }
.t-throwzone { fill: none; stroke: #f4f1ea; stroke-width: 3; stroke-dasharray: 10 8; }
.team-a { fill: var(--tve-rot); stroke: #fff; stroke-width: 3; }
.team-b { fill: var(--tve-blau); stroke: #fff; stroke-width: 3; }
#barrier .team-a { stroke: none; }
.basket { fill: var(--straw); stroke: var(--straw-dark); stroke-width: 2; }
.chaff { stroke: #fff6d8; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.runner-shadow { fill: #000; opacity: 0.25; }

.track-label {
  fill: #f4f1ea;
  font: 500 20px var(--font-sans);
  letter-spacing: 6px;
}

.runner-number {
  fill: #fff;
  font: 500 17px var(--font-sans);
}

.egg-shape {
  fill: var(--egg);
  stroke: var(--egg-line);
  stroke-width: 1.5;
}

.egg-carried--aktiv { fill: var(--cat-aktiv); stroke: #fff; }
.egg-carried--plausch { fill: #fff; stroke: var(--tve-rot); stroke-width: 2.5; }
.egg-carried--jugend { fill: var(--cat-jugend); stroke: #fff; }
.egg-carried--muki { fill: var(--cat-muki); stroke: #fff; }

.runner {
  transition: transform 0.9s cubic-bezier(0.45, 0.05, 0.25, 1);
}

/* Läufer wippt, solange er rennt */
.runner-body.is-running {
  animation: bob 0.3s ease-in-out 3;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.catcher.is-wobbling {
  animation: wobble 0.6s ease-in-out;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-6deg); }
  60% { transform: rotate(5deg); }
}

.track-steps {
  position: relative;
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  height: 50px;
}

.track-steps li {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.track-steps .pos-0 { left: 8%; }
.track-steps .pos-1 { left: 34%; }
.track-steps .pos-2 { left: 54%; }
.track-steps .pos-3 { left: 73%; }
.track-steps .pos-4 { left: 92%; }

.track-steps button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: 0;
  padding: 2px 4px;
  color: var(--ink);
  font: 500 13px/18px var(--font-sans);
  cursor: pointer;
}

.track-steps button:disabled {
  cursor: default;
}

.track-steps .num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  background: var(--surface);
}

.track-steps .is-done button {
  color: var(--ink-strong);
}

.track-steps .is-done .num {
  background: var(--wasserzeichen);
  border-color: var(--tve-blau);
  color: var(--link);
}

.track-steps .is-current button {
  color: var(--link);
}

.track-steps .is-current .num {
  background: var(--tve-blau);
  border-color: var(--tve-blau);
  color: var(--on-blau);
}

/* ---------- Formular-Karte ---------- */

.form-card {
  margin: var(--space-5) 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-6) clamp(16px, 4vw, 40px) var(--space-7);
  /* Platz für das Strecken-Overlay beim automatischen Scrollen */
  scroll-margin-top: 130px;
}

.loading {
  padding: var(--space-7) 0;
  text-align: center;
  color: var(--ink);
}

.step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  animation: step-in 0.3s ease-out;
}

@keyframes step-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}

.step-title {
  display: block;
  padding: 0;
  font-size: clamp(26px, 4.5vw, 32px);
  line-height: 1.25;
  font-weight: 500;
  color: var(--ink-strong);
  margin-bottom: var(--space-2);
  outline: none;
}

.step-kicker {
  display: table;
  margin-bottom: var(--space-3);
  padding: 2px var(--space-2);
  border-radius: 2px;
  background: var(--tve-blau);
  color: var(--on-blau);
  font: 500 13px/18px var(--font-sans);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.step-intro {
  margin: 0 0 var(--space-5);
  color: var(--ink);
  max-width: 620px;
}

.field {
  margin-bottom: var(--space-4);
}

.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.optional {
  font-weight: 400;
  color: var(--ink);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink-strong);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--fehler);
}

.field-error {
  margin: 6px 0 0;
  color: var(--fehler);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.field-error:empty {
  display: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-5);
}

/* Übernommene (verdeckte) Angaben */
.input-wrap {
  position: relative;
}

.input-wrap.is-kept input {
  padding-left: 38px;
  padding-right: 84px;
  background: var(--wasserzeichen);
  border-style: dashed;
  color: var(--ink-strong);
  letter-spacing: 0.04em;
}

.input-wrap.is-kept::before,
.lock {
  content: "";
  display: inline-block;
  width: 14px;
  height: 16px;
  background:
    linear-gradient(var(--tve-blau), var(--tve-blau)) 0 7px / 14px 9px no-repeat,
    radial-gradient(circle at 50% 100%, transparent 3px, var(--tve-blau) 3.5px 5.5px, transparent 6px) 1px 0 / 12px 9px no-repeat;
}

.input-wrap.is-kept::before {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
}

.unkeep {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--tve-blau);
  background: var(--surface);
  color: var(--link);
  font: 500 13px/18px var(--font-sans);
  padding: 5px 10px;
  border-radius: 0;
  cursor: pointer;
}

.unkeep:hover {
  background: var(--tve-blau);
  color: var(--on-blau);
}

.hint {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  margin: var(--space-1) 0 var(--space-4);
}

.hint .lock {
  vertical-align: -2px;
  margin-right: var(--space-1);
}

.notice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--wasserzeichen);
  padding: var(--space-4);
  margin: 0 0 var(--space-4);
}

.notice .egg-mini {
  flex: none;
  margin-top: 2px;
  width: 20px;
  height: 26px;
}

.notice p {
  margin: 0 0 6px;
}

.notice p:last-child {
  margin-bottom: 0;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--link);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

/* ---------- Buttons ---------- */

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.step-actions-center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: 0;
  font: 500 16px/20px var(--font-sans);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--tve-blau);
  color: var(--on-blau);
}

.btn-primary:hover {
  background: var(--tve-indigo);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: progress;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink-strong);
}

.btn-secondary:hover {
  border-color: var(--tve-blau);
  color: var(--link);
}

.btn-throw {
  padding-left: var(--space-4);
}

.egg-mini {
  display: inline-block;
  width: 16px;
  height: 21px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--egg);
  border: 1px solid var(--egg-line);
}

/* ---------- Sägmehl & Eier (Kategorie) ---------- */

.sawdust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding: var(--space-4);
  background:
    radial-gradient(circle at 20% 30%, var(--sawdust-dark) 0 1.4px, transparent 1.6px) 0 0 / 14px 14px,
    radial-gradient(circle at 70% 60%, #f3e2bf 0 1.2px, transparent 1.4px) 0 0 / 11px 11px,
    var(--sawdust);
}

.egg-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2) var(--space-3);
  border: 2px solid transparent;
  cursor: pointer;
}

.egg-option:hover {
  background: rgba(255, 255, 255, 0.4);
}

.egg-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.egg {
  position: relative;
  width: 58px;
  height: 74px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--egg);
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

/* flacher Glanzpunkt */
.egg::before {
  content: "";
  position: absolute;
  left: 22%;
  top: 16%;
  width: 22%;
  height: 26%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

/* Mulde im Sägmehl (liegt hinter dem Ei, Unterkante aller Eier bei 90px) */
.egg-option::before {
  content: "";
  position: absolute;
  top: 84px;
  left: 50%;
  width: 50px;
  height: 11px;
  margin-left: -25px;
  border-radius: 50%;
  background: var(--sawdust-dark);
  transition: transform 0.35s, opacity 0.35s;
}

.egg--aktiv {
  background: var(--cat-aktiv);
}

.egg--plausch {
  background: linear-gradient(180deg,
    var(--tve-rot) 0 26%, #fff 26% 38%, var(--tve-blau) 38% 62%, #fff 62% 74%, var(--tve-rot) 74% 100%);
}

.egg--jugend {
  background:
    radial-gradient(circle at 30% 40%, #fff 0 2.5px, transparent 3px),
    radial-gradient(circle at 66% 30%, #fff 0 2px, transparent 2.5px),
    radial-gradient(circle at 58% 62%, #fff 0 2.5px, transparent 3px),
    radial-gradient(circle at 32% 76%, #fff 0 2px, transparent 2.5px),
    radial-gradient(circle at 74% 78%, #fff 0 2px, transparent 2.5px),
    var(--cat-jugend);
}

.egg--muki {
  width: 48px;
  height: 62px;
  margin-top: 12px;
  background:
    radial-gradient(circle at 35% 35%, var(--tve-blau) 0 2.5px, transparent 3px),
    radial-gradient(circle at 66% 50%, var(--tve-blau) 0 2.5px, transparent 3px),
    radial-gradient(circle at 42% 72%, var(--tve-blau) 0 2.5px, transparent 3px),
    var(--wasserzeichen);
}

.egg-name {
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
}

.egg-option input:focus-visible + .egg {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.egg-option input:checked + .egg {
  transform: translateY(-12px) rotate(-8deg);
}

.egg-option:has(input:checked)::before {
  transform: scaleX(0.7);
  opacity: 0.5;
}

.egg-option:has(input:checked) {
  background: var(--surface);
  border-color: var(--tve-blau);
}

.egg-option:has(input:checked) .egg-name {
  color: var(--link);
}

/* ---------- Startnummern (Läufer) ---------- */

.bibs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.bib {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 0 var(--space-3) var(--space-3);
}

/* Sicherheitsnadeln */
.bib::before,
.bib::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #b9bec2;
}

.bib::before { left: 8px; }
.bib::after { right: 8px; }

.bib-number {
  display: block;
  margin: 0 calc(-1 * var(--space-3)) var(--space-2);
  padding: 4px 0 2px;
  background: var(--tve-rot);
  color: var(--on-blau);
  text-align: center;
  font: 500 28px/1.15 var(--font-sans);
}

.bib label {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.bib .field {
  margin: 0;
}

.bib input {
  min-height: 42px;
  padding: 8px 10px;
}

.bib .input-wrap.is-kept input {
  padding-left: 32px;
  padding-right: 70px;
}

.bib .input-wrap.is-kept::before {
  left: 10px;
}

.bib .unkeep {
  padding: 4px 8px;
  font-size: 12px;
}

.catcher-field {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: var(--space-4);
}

.catcher-field label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.basket-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--straw);
  border: 2px solid var(--straw-dark);
}

/* ---------- Zusammenfassung ---------- */

.summary {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.summary-group {
  border: 1px solid var(--border);
  padding: var(--space-4);
  background: var(--surface);
}

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.summary-head h3 {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.summary dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-1) var(--space-4);
  margin: 0;
}

.summary dt {
  color: var(--ink);
}

.summary dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.summary .is-masked {
  letter-spacing: 0.04em;
}

.summary .is-masked .lock {
  margin-right: 6px;
  vertical-align: -2px;
}

.summary .empty {
  color: var(--ink);
  font-weight: 400;
}

/* Honeypot – für Menschen unsichtbar */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Banner & Ergebnis ---------- */

.banner {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  border: 1px solid var(--tve-rot);
  border-top-width: 4px;
}

.banner strong {
  display: block;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  color: var(--fehler);
}

.splat {
  flex: none;
  width: 30px;
  height: 26px;
  border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%;
  background: radial-gradient(circle at 50% 50%, #f5b301 0 7px, var(--egg) 7.5px);
  border: 1px solid var(--egg-line);
}

.result {
  text-align: center;
  padding: var(--space-3) 0;
  animation: step-in 0.3s ease-out;
}

.result h2 {
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1.1;
  color: var(--tve-blau);
  outline: none;
}

.result > p {
  max-width: 560px;
  margin: 0 auto var(--space-5);
  color: var(--ink);
  font-size: 17px;
  line-height: 26px;
}

.result .summary {
  text-align: left;
  max-width: 560px;
  margin: 0 auto var(--space-3);
}

.result-art {
  display: grid;
  place-items: center;
  height: 150px;
  margin-bottom: var(--space-2);
}

.big-basket {
  position: relative;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: 5px solid var(--straw-dark);
  background:
    radial-gradient(circle at 30% 40%, #fff6d8 0 3px, transparent 3.5px),
    radial-gradient(circle at 70% 35%, #fff6d8 0 2.5px, transparent 3px),
    radial-gradient(circle at 60% 72%, #fff6d8 0 3px, transparent 3.5px),
    radial-gradient(circle at 25% 68%, #fff6d8 0 2px, transparent 2.5px),
    var(--straw);
}

.big-egg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 56px;
  margin: -30px 0 0 -22px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--egg);
  border: 1px solid var(--egg-line);
  animation: egg-land 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

@keyframes egg-land {
  0% { transform: translate(-160px, -140px) rotate(-200deg) scale(0.7); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: none; }
}

.barrier-art {
  width: 260px;
  max-width: 80%;
  height: 46px;
  border: 2px solid var(--ink-strong);
  background: repeating-linear-gradient(-45deg, var(--tve-rot) 0 22px, #fff 22px 44px);
}

/* ---------- Wanderpokal ---------- */

.trophy {
  display: grid;
  grid-template-columns: 1fr minmax(0, 360px);
  gap: var(--space-6);
  align-items: center;
  margin: var(--space-7) 0 0;
  padding: var(--space-5);
  border: 1px solid var(--border);
}

.trophy h2 {
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.25;
}

.trophy-text p {
  color: var(--ink);
  margin: 0;
}

.trophy-art {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trophy-egg {
  display: block;
  width: 110px;
  height: auto;
  margin-bottom: -2px;
}

.wood { fill: #c08447; }
.wood-dark { fill: #a46a35; }
.wood-grain { stroke: #7b4b22; stroke-width: 2; fill: none; opacity: 0.45; }
.wood-shine { stroke: #e3b27a; stroke-width: 6; stroke-linecap: round; fill: none; }

/* Beton-Fundament mit den Metallplättchen */
.trophy-base {
  width: 100%;
  padding: var(--space-2);
  background:
    radial-gradient(circle at 25% 30%, #8d8c87 0 1px, transparent 1.4px) 0 0 / 12px 12px,
    radial-gradient(circle at 70% 70%, #b9b8b3 0 0.8px, transparent 1.2px) 0 0 / 9px 9px,
    #a3a29d;
}

.plaques {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  gap: 6px;
}

/* Ein Plättchen = eine Zeile: Jahr und Name nebeneinander */
.plaques li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: 3px 15px;
  background: #eceef0;
  border: 1px solid #8f959a;
  color: #3e444a;
}

/* Schrauben */
.plaques li::before,
.plaques li::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #b9bec2;
  border: 1px solid #8f959a;
}

.plaques li::before { left: 5px; }
.plaques li::after { right: 5px; }

.plaque-year {
  flex: none;
  font-size: 12px;
  line-height: 18px;
  color: #5d646b;
  font-variant-numeric: tabular-nums;
}

.plaque-name {
  min-width: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.plaques .is-empty .plaque-name {
  color: #a3a9ae;
  font-weight: 400;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--space-8);
  padding: var(--space-6) 0 var(--space-7);
  background: var(--surface-footer);
  border-top: 2px solid var(--tve-blau);
  color: var(--ink-footer-heading);
  font-size: 15px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-footer p {
  margin: 0;
}

.site-footer .overline {
  margin-bottom: var(--space-1);
}

.site-footer a {
  color: var(--ink-footer-heading);
  text-decoration: underline;
}

.motto {
  align-self: flex-end;
  font-weight: 500;
}

/* ---------- 404 ---------- */

.notfound {
  margin-top: var(--space-7);
  text-align: center;
}

.notfound h1 {
  font-size: clamp(36px, 8vw, 52px);
  color: var(--tve-blau);
}

.splat-big {
  width: 120px;
  height: 100px;
  background: radial-gradient(circle at 50% 50%, #f5b301 0 28px, var(--egg) 29px);
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .sawdust {
    grid-template-columns: 1fr 1fr;
  }

  .bibs {
    grid-template-columns: 1fr 1fr;
  }

  .trophy {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-5) var(--space-4);
  }
}

@media (max-width: 560px) {
  .letterhead {
    gap: var(--space-3);
    padding-top: var(--space-3);
  }

  .hero {
    padding: var(--space-5) 0;
  }

  .fact {
    min-width: 0;
    flex: 1 1 140px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .track-slot {
    margin-top: var(--space-4);
  }

  .track-card {
    padding: var(--space-2) var(--space-2) 2px;
  }

  .track-steps {
    height: 44px;
  }

  .track-steps .name {
    font-size: 11px;
  }

  .track-steps li:not(.is-current) .name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .form-card {
    scroll-margin-top: 100px;
  }

  .step-actions .btn {
    padding: var(--space-3) var(--space-4);
  }

  .summary dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .summary dd {
    margin-bottom: 6px;
  }

  .plaques li {
    padding: 3px 14px;
  }
}

@media (max-width: 380px) {
  .bibs {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
