@font-face { font-family: "Zilla Slab"; font-weight: 600; font-display: swap; src: url(/fonts/zilla-slab-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 700; font-display: swap; src: url(/fonts/zilla-slab-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(/fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/source-sans-3-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(/fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(/fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); }

:root {
  --blue: #17458f;        /* Rotary Royal Blue */
  --blue-deep: #0f3270;
  --gold: #f7a81b;        /* Rotary Gold */
  --ink: #1c2a44;
  --muted: #56627a;
  --mist: #eaf0f7;
  --line: #c9d5e6;
  --green: #2f6b45;
  --red: #b3261e;
  --white: #fff;
  --slab: "Zilla Slab", Rockwell, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  /* Eigenes Foto für den Kopfbereich: Datei nach /public/img/hero.jpg legen und hier aktivieren */
  --hero-photo: none; /* url(/img/hero.jpg) */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); color: var(--blue); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- Kopfzeile ---------- */
.top { background: var(--blue-deep); color: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-family: var(--slab); font-weight: 600; font-size: 1.15rem; }
.brand:hover { color: var(--white); }
.brand .wheel { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--gold); display: grid; place-items: center; font-size: .8rem; color: var(--gold); }
.brand img { height: 40px; width: auto; }
.top nav { display: flex; gap: 22px; align-items: center; font-size: 1rem; }
.top nav a { color: #d6e1f3; text-decoration: none; }
.top nav a:hover { color: var(--white); }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1.05rem/1 var(--sans); padding: 15px 24px; border-radius: 4px; border: 2px solid transparent; cursor: pointer; text-decoration: none; }
.btn-gold { background: var(--gold); color: #1b1300; }
.btn-gold:hover { background: #ffb935; color: #1b1300; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-sm { padding: 9px 14px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Kopfbereich mit Scorekarte ---------- */
.hero {
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(23,69,143,.97) 0%, rgba(23,69,143,.9) 45%, rgba(15,50,112,.75) 100%),
    var(--hero-photo) center/cover no-repeat,
    var(--blue);
  padding: clamp(48px, 8vw, 96px) 0 0;
}
.hero .host { font-size: 1.1rem; color: #cfdcf0; margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); max-width: 12ch; }
.hero .edition { display: block; font-size: .42em; color: var(--gold); margin-bottom: .2em; letter-spacing: 0; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 46ch; margin: 22px 0 30px; color: #e3ebf7; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: clamp(40px, 6vw, 64px); }
.hero .actions .note { font-size: .98rem; color: #cfdcf0; margin-left: 6px; }

/* Die Scorekarte: Kopfzeile wie "Loch", Werte darunter */
.scorecard { background: var(--white); color: var(--ink); border-top: 6px solid var(--gold); border-radius: 6px 6px 0 0; box-shadow: 0 -2px 0 rgba(0,0,0,.04); overflow-x: auto; }
.scorecard table { width: 100%; border-collapse: collapse; min-width: 640px; }
.scorecard th, .scorecard td { text-align: left; padding: 12px 18px; border-right: 1px solid var(--line); vertical-align: top; }
.scorecard th:last-child, .scorecard td:last-child { border-right: 0; }
.scorecard th { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--muted); background: var(--mist); border-bottom: 1px solid var(--line); }
.scorecard td { font-family: var(--slab); font-weight: 600; font-size: 1.25rem; line-height: 1.25; color: var(--blue); }
.scorecard td small { display: block; font-family: var(--sans); font-weight: 400; font-size: .9rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 720px) {
  .scorecard table, .scorecard tbody, .scorecard tr, .scorecard th, .scorecard td { display: block; min-width: 0; }
  .scorecard thead { display: none; }
  .scorecard td { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 18px; }
  .scorecard td::before { content: attr(data-label); display: block; font-family: var(--sans); font-weight: 600; font-size: .85rem; color: var(--muted); }
}

/* ---------- Abschnitte ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.mist { background: var(--mist); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose { max-width: 62ch; font-size: 1.12rem; }
.prose p:last-child { margin-bottom: 0; }

/* Ablauf: echte Reihenfolge, Zeiten links */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--blue); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 0 0 26px 24px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue); }
.timeline li:last-child { padding-bottom: 0; }
.timeline .time { font-family: var(--slab); font-weight: 700; color: var(--blue); font-size: 1.15rem; }
.timeline h3 { font-size: 1.15rem; margin-bottom: 2px; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

.fees { width: 100%; border-collapse: collapse; font-size: 1.05rem; margin-bottom: 26px; }
.fees td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fees td.price { text-align: right; font-family: var(--slab); font-weight: 700; font-size: 1.2rem; color: var(--blue); white-space: nowrap; padding-left: 16px; }
.fees tr.sub td { color: var(--muted); }
.plain { margin: 0; padding-left: 1.1em; }
.plain li { margin-bottom: 6px; }
.subhead { font-size: 1.2rem; color: var(--ink); margin: 0 0 12px; }

/* ---------- Formular ---------- */
.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 32px; }
@media (max-width: 920px) { .reg-grid { grid-template-columns: 1fr; } }
form fieldset { border: 0; padding: 0; margin: 0 0 30px; }
form legend { font-family: var(--slab); font-weight: 700; font-size: 1.3rem; color: var(--ink); padding: 0; margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .98rem; margin-bottom: 5px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .hint { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1.05rem/1.3 var(--sans); color: var(--ink); background: var(--white);
  border: 1.5px solid #aebbd0; border-radius: 4px; padding: 11px 12px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,69,143,.18); }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.field .err { color: var(--red); font-size: .92rem; margin-top: 4px; }

.choice { display: grid; gap: 10px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid #aebbd0; border-radius: 4px; padding: 13px 14px; cursor: pointer; background: var(--white); }
.choice label:has(input:checked) { border-color: var(--blue); background: #f2f6fc; box-shadow: inset 4px 0 0 var(--blue); }
.choice input { margin-top: 4px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.choice .txt { flex: 1; }
.choice .price { font-family: var(--slab); font-weight: 700; color: var(--blue); white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid #aebbd0; border-radius: 4px; overflow: hidden; }
.stepper button { width: 42px; height: 42px; border: 0; background: var(--mist); font-size: 1.3rem; cursor: pointer; color: var(--blue); }
.stepper output { min-width: 44px; text-align: center; font-weight: 700; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary { position: sticky; top: 20px; background: var(--white); border: 2px solid var(--blue); border-radius: 6px; padding: 22px; }
.summary h3 { color: var(--blue); margin-bottom: 12px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 1rem; }
.summary dd { margin: 0; text-align: right; white-space: nowrap; }
.summary .total { border-top: 2px solid var(--ink); margin-top: 10px; padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.summary .total strong { font-family: var(--slab); font-size: 1.8rem; color: var(--blue); }
.summary p { font-size: .95rem; color: var(--muted); margin: 14px 0 0; }

.alert { border-radius: 4px; padding: 14px 16px; margin: 0 0 20px; font-weight: 600; }
.alert-error { background: #fbeceb; color: #7d1a14; border-left: 4px solid var(--red); }
.alert-info { background: #fff6e2; color: #5c3d00; border-left: 4px solid var(--gold); }
.closed { background: var(--white); border: 2px solid var(--line); border-radius: 6px; padding: 28px; max-width: 60ch; }

/* ---------- Statusseite ---------- */
.status-card { background: var(--white); border-radius: 6px; border: 1px solid var(--line); padding: clamp(22px, 4vw, 40px); max-width: 820px; }
.badge { display: inline-block; font-weight: 700; font-size: .95rem; padding: 5px 12px; border-radius: 999px; }
.badge-open { background: #fff1d6; color: #7a4d00; }
.badge-paid { background: #e2f1e7; color: #1f5a35; }
.badge-cancelled { background: #eceff3; color: #555; }
.pay { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border: 2px solid var(--blue); border-radius: 6px; padding: 20px; margin: 24px 0; }
.pay dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.pay dt { color: var(--muted); }
.pay dd { margin: 0; font-weight: 600; word-break: break-word; }
.pay img { width: 170px; height: 170px; image-rendering: pixelated; border: 1px solid var(--line); }
.pay figcaption { font-size: .85rem; color: var(--muted); max-width: 170px; margin-top: 6px; }
@media (max-width: 640px) { .pay { grid-template-columns: 1fr; } }
.copy { margin-left: 6px; font: 600 .82rem var(--sans); border: 1px solid var(--line); background: var(--mist); color: var(--blue); border-radius: 3px; padding: 2px 7px; cursor: pointer; }

/* ---------- Fußzeile ---------- */
footer { background: var(--blue-deep); color: #c6d3ea; padding: 40px 0; font-size: .98rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer a { color: var(--white); }
.legal h1 { color: var(--blue); font-size: 2.4rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.4rem; margin: 28px 0 8px; }
.legal { max-width: 70ch; }
