:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f5f6;
  --line: #e3e3e6;
  --text: #1b1b1f;
  --muted: #5b6270;
  --accent: #ed2939;        /* Rot der österreichischen Flagge */
  --accent-strong: #c8102e; /* dunkleres Rot für Text auf Weiß (Kontrast) */
  --accent-ink: #ffffff;
  --danger: #b3261e;
  --ok: #1f7a4d;
  --display: "Haettenschweiler", "Impact", "Arial Narrow Bold", "Helvetica Neue Condensed Bold", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

/* hidden muss auch bei Elementen mit eigener display-Angabe (z.B. .button) greifen */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--body);
  /* Footer bleibt auch auf kurzen Seiten (Impressum, Login) ganz unten */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-strong); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1;
  margin: 0 0 .5em;
}

h2 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
h3 { font-size: 1.5rem; color: var(--muted); margin-top: 2.5rem; }
small { font-size: .8em; color: var(--muted); font-weight: 400; }

.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2rem, 44rem); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 46rem);
  display: grid;
  align-items: center;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(180deg, #f23a49, var(--accent) 45%, #d8202f);
  color: #fff;
}
.hero__track { position: absolute; inset: auto 0 0 0; width: 100%; height: 38%; fill: var(--bg); }
.hero__inner { position: relative; padding-block: 5rem 9rem; }
.hero__kicker { margin: 0 0 1rem; color: #fff; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .875rem; }
.hero__title { font-size: clamp(4.5rem, 19vw, 13rem); line-height: .85; margin: 0; transform: skewX(-6deg); transform-origin: left bottom; }
.hero__tagline { font-size: clamp(1.25rem, 3vw, 1.75rem); color: rgba(255, 255, 255, .9); margin: 1rem 0 2.25rem; }

/* Buttons */
.button {
  display: inline-block;
  padding: .9rem 1.75rem;
  border: 0;
  border-radius: .5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 1.0625rem/1.2 var(--body);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.hero .button { background: #fff; color: var(--accent-strong); }
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.button--block { width: 100%; }
.button--small { padding: .5rem 1rem; font-size: .875rem; }
.link-button { background: none; border: 0; padding: 0; color: var(--danger); font: inherit; cursor: pointer; text-decoration: underline; }

/* Veranstalter / Logos */
.presenters { padding-block: 1rem 0; }
.presenters__inner { display: grid; gap: 1.5rem; justify-items: center; text-align: center; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.presenters__text { margin: 0; }
.presenters__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 3rem; }
.presenters__link { display: block; border-radius: .5rem; transition: opacity .15s ease; }
.presenters__link:hover { opacity: .75; }
.presenters__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.presenters__logo { display: block; height: auto; }
.presenters__logo--rollsport { width: clamp(10rem, 24vw, 13rem); }
.presenters__logo--oescv { width: clamp(9rem, 22vw, 12rem); }

/* Sections */
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--form { background: var(--surface); }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 44rem; }
.lead--note { font-size: 1.0625rem; }
.lead--note strong { color: var(--text); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 2.5rem 0 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem 1.5rem; }
.fact dt { color: var(--accent-strong); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fact dd { margin: .25rem 0 0; font-size: 1.25rem; font-weight: 600; }
.fact dd.fact__note { font-size: .9375rem; font-weight: 400; color: var(--muted); }
.form__fee { margin: 0; color: var(--muted); font-size: .9375rem; }
.form__fee strong { color: var(--accent-strong); }

.schedule { list-style: none; padding: 0; margin: 0; max-width: 34rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); }
.schedule li { display: flex; gap: 1.25rem; padding: .85rem 1.5rem; border-bottom: 1px solid var(--line); }
.schedule li:last-child { border-bottom: 0; }
.schedule time { flex: none; width: 8.5rem; color: var(--accent-strong); font-weight: 700; font-variant-numeric: tabular-nums; }
.schedule span { font-weight: 600; }

.prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; max-width: 46rem; }
.prize { border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: .75rem; padding: 1.25rem 1.5rem; background: var(--bg); }
.prize h4 { margin: 0 0 .5rem; font-family: var(--display); font-weight: 400; font-size: 1.75rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1; color: var(--accent-strong); }
.prize p { margin: 0; font-weight: 600; }
.prize ul { margin: 0; padding-left: 1.2rem; font-weight: 600; }
.prize li + li { margin-top: .15rem; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { border: 1px solid var(--line); border-radius: 99rem; padding: .35rem 1rem; font-weight: 600; }

/* Form */
.form { display: grid; gap: 1.25rem; }
/* Umschaltbare Bereiche behalten den Abstand der Formularfelder */
.form > [data-only] { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-weight: 600; font-size: .9375rem; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"], select, textarea {
  width: 100%;
  min-height: 3rem;
  padding: .65rem .85rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: .5rem;
  font: inherit;
  color-scheme: light;
}
textarea { resize: vertical; }
.field_with_errors { display: contents; }
.field_with_errors input, .field_with_errors select, .field_with_errors textarea { border-color: var(--danger); }

.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .9375rem; color: var(--muted); }
.check input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--accent); }

.flash { border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: .5rem; padding: 1rem 1.25rem; background: var(--bg); margin-bottom: 1.25rem; }
.flash--notice { border-left-color: var(--ok); }
.flash--warn { border-left-color: #b26a00; }
.flash--warn .button { margin-top: .75rem; }
.flash--alert { border-left-color: var(--danger); }
.flash ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.flash p { margin: .5rem 0 0; }

/* Admin */
.admin h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 0; }
.section--admin { padding-block: 1.5rem 3rem; }
.wrap--wide { width: min(100% - 2rem, 92rem); }
.wrap--login { width: min(100% - 2rem, 24rem); }
.wrap--login h1 { margin-bottom: 1.5rem; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 2rem 0; }

.adminbar { background: var(--accent); color: #fff; }
.adminbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; padding-block: .6rem; }
.adminbar__brand { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; color: #fff; text-decoration: none; }
.adminbar nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; flex: 1; font-size: .9375rem; }
.adminbar nav a { color: #fff; text-decoration: none; opacity: .92; }
.adminbar nav a:hover { opacity: 1; text-decoration: underline; }
.adminbar__user { display: flex; align-items: center; gap: 1rem; color: rgba(255, 255, 255, .9); font-size: .9375rem; }
.link-button--plain { color: var(--muted); }
.adminbar .link-button--plain { color: #fff; }

.pagehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: .75rem; }
.tags--counts { margin-bottom: 1.25rem; font-size: .9375rem; }
.tags--counts li { font-weight: 400; color: var(--muted); }
.tags--counts strong { color: var(--text); margin-left: .25rem; }

.filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .75rem; }
.filter input[type="search"] { flex: 1 1 14rem; min-height: 2.5rem; padding: .45rem .85rem; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: .5rem; font: inherit; color-scheme: dark; }
.filter select { width: auto; min-height: 2.5rem; padding-block: .45rem; background: var(--surface); }

.form__actions { display: flex; align-items: center; gap: 1.5rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: .5rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; white-space: nowrap; }
.table th, .table td { padding: .6rem .85rem; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--surface); color: var(--muted); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; }
.table tr:last-child td { border-bottom: 0; }
.table__notes { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.table__actions { display: flex; gap: 1rem; align-items: center; }
.table__actions form { margin: 0; }

.prose h1 { font-size: clamp(2.5rem, 7vw, 4rem); }

/* Anmeldeformular: Umschalter, Personen */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kind { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .75rem; }
.kind__option { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem; border: 2px solid var(--line); border-radius: .75rem; background: var(--bg); cursor: pointer; }
.kind__option input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--accent); }
.kind__option span { display: grid; }
.kind__option small { color: var(--muted); font-weight: 400; }
.kind__option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(237, 41, 57, .15); }
.kind__option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.form__heading { margin: 1rem 0 0; font-size: 1.25rem; }
.person { border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem 1.5rem; margin-bottom: 1rem; background: var(--bg); }
.person__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; justify-content: space-between; }
.person__head h2 { font-size: 1.75rem; margin: 0; }
.person__tag { border: 1px solid var(--accent); color: var(--accent-strong); border-radius: 99rem; padding: .15rem .8rem; font-weight: 600; font-size: .9375rem; }
.person__facts { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: .75rem 0 0; }
.person__facts div { display: flex; gap: .5rem; }
.person__facts dt { color: var(--muted); }
.person__facts dd { margin: 0; font-weight: 600; }
.person__results { margin: 1rem 0 0; }
.person__knockout { margin-top: 1rem; }
.person__knockout h4 { margin: 0 0 .5rem; font-family: var(--display); font-weight: 400; font-size: 1.25rem; text-transform: uppercase; color: var(--muted); }
.person__duel { margin: 0 0 .5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; }
.person__pending { margin: .75rem 0 0; }
.person__times { margin-top: 1rem; }
.person__times h4 { margin: 0 0 .5rem; font-family: var(--display); font-weight: 400; font-size: 1.25rem; text-transform: uppercase; color: var(--muted); }

/* Automatische Kategorie */
.category-box { display: grid; gap: .5rem; margin-top: 1rem; padding: .75rem 1rem; border: 1px dashed var(--accent); border-radius: .5rem; background: #fff6f6; }
.category-box__line { margin: 0; }
.category-box__line strong { color: var(--accent-strong); font-size: 1.125rem; }
.category-box .form__hint { font-size: .8125rem; }
.categories { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .5rem; max-width: 46rem; }
.categories li { border: 1px solid var(--line); border-radius: .5rem; padding: .6rem .9rem; background: var(--bg); display: grid; }
.rules { list-style: none; counter-reset: rule; padding: 0; margin: 0; display: grid; gap: .5rem; max-width: 46rem; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 2.25rem 1fr; gap: .1rem .75rem; padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--bg); }
.rules li::before { content: counter(rule); grid-row: span 2; align-self: start; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; }
.rules strong { font-size: 1.0625rem; }
.rules span { color: var(--muted); }
.categories__note { max-width: 46rem; margin-top: .75rem; }
.categories strong { font-size: 1.0625rem; }
.categories span { color: var(--muted); font-size: .875rem; }

/* Mehrere Kinder im Anmeldeformular */
.children { display: grid; gap: 1rem; margin-bottom: 1rem; }
.child-block { border: 1px solid var(--line); border-radius: .75rem; padding: 1rem 1.25rem 1.25rem; background: var(--bg); display: grid; gap: 1.25rem; margin: 0; min-width: 0; }
.child-block__head { display: flex; justify-content: space-between; align-items: center; }
.child-block legend { float: left; padding: 0; font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; }
.child-block__head::after { content: none; }

/* Haftungsausschluss */
.badge { display: inline-block; padding: .1rem .7rem; border-radius: 99rem; font-size: .8125rem; font-weight: 700; border: 1px solid currentColor; white-space: nowrap; }
.badge--pending { color: #8a5a00; background: #fff4d6; }
.badge--uploaded { color: #14508f; background: #e3f0ff; }
.badge--approved { color: #14683b; background: #def5e6; }
.badge--rejected { color: #a3121f; background: #fde4e6; }
.waiver-box { margin-top: 1rem; border: 1px solid var(--line); border-left-width: 5px; border-radius: .5rem; padding: .85rem 1.1rem; background: var(--surface); }
.waiver-box--pending { border-left-color: #d89a00; }
.waiver-box--uploaded { border-left-color: #1f6fc4; }
.waiver-box--approved { border-left-color: var(--ok); }
.waiver-box--rejected { border-left-color: var(--danger); }
.waiver-box p { margin: .5rem 0 0; }
.waiver-box__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.waiver-box__links { font-size: .9375rem; }
.waiver-box__form { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .75rem; }
.waiver-box__form input[type="file"] { flex: 1 1 14rem; min-width: 0; font: inherit; }
.waiver-box__hint { font-size: .8125rem; color: var(--muted); }
.waiver-review { display: grid; gap: .75rem; margin-top: .75rem; }
.waiver-review input[type="text"] { min-height: 2.5rem; }
.waiver-review__buttons { display: flex; gap: .75rem; }
.button--ghost { background: transparent; color: var(--accent-strong); border: 2px solid var(--accent); }
.form__hint--box { border: 1px solid var(--line); border-radius: .5rem; padding: .75rem 1rem; background: var(--bg); }
.waiver__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.waiver__paper { border: 1px solid var(--line); border-radius: .5rem; padding: 2rem; background: #fff; margin-top: 1.5rem; }
.waiver__paper h1 { font-size: 2.25rem; margin-bottom: .25rem; }
.waiver__event { color: var(--muted); margin: 0 0 1.5rem; }
.waiver__person { display: grid; gap: .25rem; margin: 0 0 1.5rem; padding: 1rem; background: var(--surface); border-radius: .5rem; }
.waiver__person div { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem; }
.waiver__person dt { color: var(--muted); }
.waiver__person dd { margin: 0; font-weight: 600; }
.waiver__terms { padding-left: 1.4rem; }
.waiver__terms li { margin-bottom: .6rem; }
.waiver__terms ul { margin: .4rem 0 0; }
.waiver__paper h2 { font-size: 1.5rem; margin: 1.75rem 0 .5rem; }
.waiver__rules { margin: 0; padding-left: 1.4rem; }
.waiver__blank { border-bottom: 1px dotted var(--text); min-height: 1.5rem; }
.waiver__intro { font-weight: 600; }
.waiver__signature { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; margin-top: 3.5rem; }
.waiver__signature div { border-top: 1px solid var(--text); padding-top: .35rem; font-size: .875rem; color: var(--muted); }
.waiver__org { margin-top: 2rem; font-size: .8125rem; }
@media print {
  .no-print, .topbar, .footer, .install { display: none !important; }
  body { background: #fff; display: block; min-height: 0; }
  .section { padding: 0; }
  .waiver__paper { border: 0; padding: 0; margin: 0; }
  .waiver__person { background: none; border: 1px solid #999; }
  a { color: inherit; }
}

/* Kompakte Listen im Backend */
.stats { display: grid; gap: .25rem; margin-bottom: .75rem; font-size: .875rem; }
.stats__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .9rem; margin: 0; }
.stats__label { min-width: 6.5rem; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stats__item { color: var(--text); text-decoration: none; }
.stats__item:hover { text-decoration: underline; }
.stats__item strong { margin-left: .15rem; color: var(--accent-strong); }
.stats__item--sum { margin-left: auto; }
.stats__row--note { color: var(--muted); }
.table--compact { white-space: normal; font-size: .875rem; }
.table--compact th, .table--compact td { padding: .4rem .6rem; vertical-align: top; line-height: 1.35; }
.table--compact td { overflow-wrap: break-word; }
.cell--nowrap { white-space: nowrap; }
.cell--notes { max-width: 13rem; }
.table--compact tbody tr:hover { background: var(--surface); }
.cell__main { display: block; font-weight: 600; }
.cell__sub { display: block; color: var(--muted); font-size: .8125rem; }
.name__first { display: block; }
.name__last { display: block; font-weight: 700; }
.table--compact .table__actions { display: grid; gap: .15rem; align-content: start; white-space: nowrap; }

/* K.-o.-Phase */
.finals { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.finals h2 { font-size: 2rem; }
.seed-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; align-items: end; max-width: 60rem; }
.seed-form select { min-height: 2.5rem; padding-block: .4rem; }
.duels { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.duel { border: 1px solid var(--line); border-radius: .75rem; padding: 1rem 1.25rem; background: var(--bg); display: grid; gap: .5rem; align-content: start; }
.duel--decided { background: var(--surface); }
.duel h3 { margin: 0; font-size: 1.25rem; color: var(--accent-strong); }
.duel__rider { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; }
.duel__rider--winner strong { color: var(--ok); }
.duel__seed { color: var(--muted); font-size: .8125rem; min-width: 8rem; }
.duel__badge { border: 1px solid var(--accent); color: var(--accent-strong); border-radius: 99rem; padding: 0 .55rem; font-size: .75rem; font-weight: 700; }
.duel__badge--win { border-color: var(--ok); color: var(--ok); }
.duel__form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.duel__form label { font-size: .8125rem; color: var(--muted); }
.duel__form select { width: auto; min-height: 2.25rem; padding-block: .3rem; }
.placings { margin: 0 0 1rem; padding-left: 1.5rem; }
.bracket { margin-top: 1.25rem; }
.bracket h3 { margin: 0 0 .25rem; }
.bracket__note { font-size: .875rem; max-width: 46rem; }
.bracket__bye { margin: .25rem 0; }
.bracket__duels { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .75rem; margin: .75rem 0; }
.bracket .duel__seed { min-width: 1.5rem; min-width: 1.75rem; font-weight: 700; color: var(--accent-strong); font-size: .9375rem; }
.bracket .duel h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.25rem; text-transform: uppercase; color: var(--accent-strong); }

/* Ergebnisse */
.results__note { max-width: 46rem; }
.tabs__tab strong { margin-left: .2rem; font-size: .875rem; opacity: .8; }
.tabs__dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ok); vertical-align: 1px; margin-left: .25rem; }
.results__category { margin-top: 2rem; scroll-margin-top: 1rem; }
.results__category h2 { font-size: 2rem; margin-bottom: .5rem; }
.table--results { font-size: .9375rem; }
.table--results .num, .table--compact .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table--results td { vertical-align: middle; }
.results__podium--1 td:first-child { color: #b8860b; font-weight: 800; }
.results__podium--2 td:first-child { color: #6b7280; font-weight: 800; }
.results__podium--3 td:first-child { color: #9a5b25; font-weight: 800; }
.results__best { font-weight: 700; color: var(--accent-strong); }

/* Newsfeed */
.feed { display: grid; gap: 1rem; margin-top: 1.5rem; max-width: 46rem; }
.feed__post { border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: .75rem; padding: 1.25rem 1.5rem; background: var(--bg); scroll-margin-top: 1rem; }
.feed__post:target { background: #fff6f6; box-shadow: 0 0 0 3px rgba(237, 41, 57, .2); }
.feed__post h2 { font-size: 1.75rem; margin: .25rem 0 .5rem; }
.feed__post p { margin: 0 0 .75rem; }
.feed__post p:last-child { margin-bottom: 0; }
.feed__date { color: var(--muted); font-size: .875rem; font-weight: 600; }
.post-admin { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: .5rem; }
.post-admin li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 1rem; border-bottom: 1px solid var(--line); }
.post-admin li:last-child { border-bottom: 0; }
.post-admin li div { display: grid; }
.post-admin form { margin: 0; }

/* Dokumente prüfen */
.adminbar__count { display: inline-block; min-width: 1.4rem; padding: 0 .4rem; border-radius: 99rem; background: #fff; color: var(--accent-strong); font-size: .8125rem; font-weight: 700; text-align: center; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.tabs__tab { padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 99rem; color: var(--text); text-decoration: none; }
.tabs__tab:hover { border-color: var(--accent); }
.tabs__tab--active { background: var(--accent); border-color: var(--accent); color: #fff; }
.review { display: grid; grid-template-columns: minmax(18rem, 24rem) 1fr; gap: 1.5rem; border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; margin-bottom: 1.5rem; background: var(--bg); }
.review h2 { font-size: 1.75rem; margin: 0 0 .75rem; }
.review__facts { display: grid; gap: .35rem; margin: 0 0 1rem; font-size: .9375rem; }
.review__facts div { display: grid; grid-template-columns: 8rem 1fr; gap: .75rem; }
.review__facts dt { color: var(--muted); }
.review__facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.review__preview { min-width: 0; }
.review__preview iframe { width: 100%; height: 36rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); }
.review__preview img { max-width: 100%; max-height: 40rem; border: 1px solid var(--line); border-radius: .5rem; display: block; }
@media (max-width: 56rem) { .review { grid-template-columns: 1fr; } .review__preview iframe { height: 28rem; } }

/* App-Installation */
.install { border-top: 1px solid var(--line); background: var(--surface); }
.install__inner { display: flex; align-items: center; gap: 1rem; padding-block: 1rem; }
.install img { border-radius: 10px; flex: none; }
.install p { margin: 0; flex: 1; display: grid; font-size: .9375rem; }
.install span { color: var(--muted); }
.install__share { vertical-align: -3px; color: var(--accent-strong); }

/* Teilnehmerbereich */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.topbar__inner { display: flex; justify-content: flex-end; gap: .5rem; padding-block: 1rem; }
.topbar a { color: var(--text); font-weight: 600; text-decoration: none; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 99rem; background: rgba(255, 255, 255, .85); }
body:has(.hero) .topbar a { color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .12); }
body:has(.hero) .topbar a:hover { background: #fff; color: var(--accent-strong); border-color: #fff; }
.topbar a:hover { border-color: var(--accent); color: var(--accent-strong); }
.form__hint { margin: 0; color: var(--muted); font-size: .9375rem; }
.form__hint--center { text-align: center; margin-top: 1.25rem; line-height: 2; }
.facts--list { margin: 0 0 1rem; }
.fact--highlight { border-color: var(--accent); }
.fact--highlight dd { color: var(--accent-strong); font-size: 1.75rem; }
.push { display: grid; gap: .75rem; justify-items: start; }
.push p { margin: 0; }
.newsletter-form { display: grid; gap: .75rem; justify-items: start; }
.account__logout { margin-top: 3rem; }
.channels { border: 1px solid var(--line); border-radius: .5rem; padding: .75rem 1rem 1rem; display: grid; gap: .5rem; }
.channels legend { padding-inline: .5rem; color: var(--muted); }
.channels .check { color: var(--text); }
.pagehead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.pagehead__actions form { margin: 0; }
.form__actions--top { margin-top: 1.5rem; }
.time-input { width: 7.5rem; min-height: 2.25rem !important; padding: .3rem .6rem !important; }
.admin h3 { margin-top: 2rem; }
.imprint { display: grid; gap: .5rem; margin: 1.5rem 0 0; }
.imprint div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding-block: .5rem; border-bottom: 1px solid var(--line); }
.imprint dt { color: var(--muted); }
.imprint dd { margin: 0; font-weight: 600; }
@media (max-width: 30rem) { .imprint div { grid-template-columns: 1fr; gap: 0; } }
code { background: var(--surface); padding: .1rem .4rem; border-radius: .25rem; }

/* Footer */
.footer { margin-top: auto; background: var(--accent); border-top: 0; padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom)); color: #fff; font-size: .9375rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; }
.footer nav { display: flex; gap: 1.25rem; }
.footer a { color: #fff; opacity: .9; }
.footer a:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

.archive-banner { background: #fff6f6; border-bottom: 1px solid var(--line); padding-block: .75rem; text-align: center; font-size: .9375rem; }

/* Startseite: ausgewogene, zentrierte Gestaltung (nichts klebt links, rechts bleibt nicht leer) */
body.home .hero__inner { display: grid; justify-items: center; text-align: center; }
body.home .hero__title { transform-origin: center bottom; }
body.home .hero__tagline { max-width: 40rem; }
body.home .section h2, body.home .section h3 { text-align: center; }
body.home .lead { margin-inline: auto; text-align: center; }
body.home .facts { max-width: 56rem; margin-inline: auto; }
body.home .fact { text-align: center; }
body.home .prizes, body.home .categories, body.home .rules { margin-inline: auto; max-width: 52rem; }
body.home .schedule { margin-inline: auto; max-width: 30rem; }
body.home .schedule li { justify-content: center; }
body.home .schedule time { width: 8.5rem; text-align: right; }
body.home .prizes, body.home .categories { justify-content: center; }
body.home .prize { text-align: center; }
body.home .prize ul { display: inline-block; text-align: left; }
body.home .categories li { text-align: center; justify-items: center; }
body.home .categories__note { margin-inline: auto; text-align: center; }
body.home .section--form .wrap { text-align: left; }
body.home .prizes.gear { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); max-width: 46rem; }
body.home .section--form .form__heading { text-align: left; }

/* Statistik */
.tabs--inline { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; margin: 1rem 0 1.5rem; }
.kpi { border: 1px solid var(--line); border-radius: .75rem; padding: .85rem 1rem; background: var(--surface); display: grid; }
.kpi__value { font-family: var(--display); font-size: 2.5rem; line-height: 1; color: var(--accent-strong); }
.kpi__label { color: var(--muted); font-size: .875rem; }
.chart { display: flex; align-items: stretch; gap: 2px; height: 11rem; padding: .5rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); overflow-x: auto; }
.chart__col { flex: 1 0 .6rem; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: .6rem; }
.chart__bar { display: block; width: 100%; min-height: 2px; background: var(--accent); border-radius: 2px 2px 0 0; }
.chart__label { font-size: .625rem; color: var(--muted); height: 1rem; white-space: nowrap; }
.chart--hours .chart__col { flex-basis: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.stats-grid__wide { grid-column: 1 / -1; }
.stats-grid h3 { margin-top: 1rem; }
.account-box { border: 1px solid var(--line); border-radius: .5rem; padding: .75rem 1rem 1rem; display: grid; gap: 1rem; margin: 0; }
.account-box legend { padding-inline: .5rem; font-weight: 700; }

/* Startseite nach dem Rennen */
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.button--outline { background: transparent; color: #fff; border: 2px solid #fff; }
.hero .button--outline:hover { background: rgba(255, 255, 255, .15); }
.recap h2 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.recap .lead { font-size: 1.375rem; color: var(--text); }
.section--results .wrap { max-width: 68rem; }
.results__intro { margin-bottom: 1rem; }
.results__more { text-align: center; margin-top: 2rem; }
.presenters--bottom { padding-block: 3rem 1rem; }
.presenters--bottom .presenters__inner { border-bottom: 0; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.newsletter-form { margin-top: 1.5rem; }
body.home .results__category h2 { text-align: left; }
body.home .tabs { justify-content: center; }
body.home .results__category h2 { text-align: center; }
body.home .bracket h3 { text-align: left; }

