/* ==========================================================================
   SV Raiba Ruden – Stylesheet
   Farben: Weiß als Basis, Gold #cca117 und Rot #d02d1e als Vereinsfarben.
   Keine externen Ressourcen (keine Google Fonts) – bewusst, wegen DSGVO.

   Die Seite ist derzeit auf die Buchung reduziert; das Stylesheet enthält
   nur, was dafür und für die Rechtsseiten gebraucht wird.
   ========================================================================== */

:root {
  --gold: #cca117;
  --gold-soft: #f6eed7;
  --gold-line: #e8d9a6;
  --gold-ink: #7a5f08;          /* Gold als Textfarbe – kontrastsicher auf Weiß */

  --red: #d02d1e;
  --red-strong: #b32418;        /* für Flächen mit weißer Schrift */
  --red-soft: #fdeceb;

  --ink: #16181d;
  --ink-soft: #4d525c;
  --line: #e4e6ea;
  --bg: #ffffff;
  --bg-soft: #faf9f6;

  --radius: 12px;
  --radius-lg: 20px;
  --wrap: 1120px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.plain { list-style: none; margin: 0; padding: 0; }

/* --- Header ------------------------------------------------------------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 0 0 var(--gold);
}

.site-header__inner { display: flex; align-items: center; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }

/* logo.jpeg hat einen flächigen hellgrauen Hintergrund (kein Alphakanal).
   Die abgerundete Kachel lässt das bewusst wirken. Wird das Logo einmal als
   PNG/SVG mit Transparenz ersetzt, kann background/border-radius hier weg. */
.brand__logo {
  width: 52px; height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: #f2f2f2;
}

.brand__mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-weight: 800; font-size: .95rem; letter-spacing: .04em;
  box-shadow: inset 0 0 0 2px var(--gold);
}

.brand__name { font-size: 1.06rem; font-weight: 800; letter-spacing: -.01em; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--red-strong); color: #fff; }
.btn--primary:hover { background: #9d1f14; color: #fff; }

.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-ink); }

.linklike {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--red-strong); text-decoration: underline; cursor: pointer;
}
.linklike:hover { color: var(--red); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Seitenkopf / Abschnitte -------------------------------------------- */

.page-head {
  padding: clamp(40px, 5vw, 68px) 0 clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft), #fff);
}
.page-head p { color: var(--ink-soft); margin-bottom: 0; max-width: 62ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--red); border-radius: 2px; }

.band { padding: clamp(40px, 5vw, 72px) 0; }

.notice {
  border-radius: var(--radius); padding: 16px 18px; font-size: .95rem;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.notice--warn { border-color: var(--gold-line); background: var(--gold-soft); color: #4a3a04; }
.notice code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

/* --- Buchung: Einwilligungs-Box und Preistabellen ----------------------
   Vor der Einwilligung ist nur die Box sichtbar, danach nur die Tabellen.
   Gesteuert über data-consent am <html>, gesetzt vor dem ersten Paint. */

.gate {
  border: 1px dashed var(--gold-line); background: var(--bg-soft);
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px);
  text-align: center;
}
.gate__text { max-width: 60ch; margin-inline: auto; color: var(--ink-soft); font-size: .95rem; }

.offer { display: none; margin-bottom: clamp(40px, 5vw, 72px); }
.offer:last-child { margin-bottom: 0; }

html[data-consent="granted"] .gate { display: none; }
html[data-consent="granted"] .offer { display: block; }

.offer__title { position: relative; padding-bottom: 12px; }
.offer__title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--gold) 50% 100%);
}

.offer__mount { margin-top: 24px; min-height: 120px; }

/* --- Textseiten (Impressum, Datenschutz) ------------------------------- */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose dl { margin: 0 0 1.2em; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0 0 .7em; }
.prose .todo {
  background: var(--gold-soft); border-left: 3px solid var(--gold);
  padding: 2px 8px; border-radius: 3px; font-weight: 600;
}

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

.site-footer { border-top: 4px solid var(--red); background: var(--bg-soft); margin-top: clamp(40px, 5vw, 72px); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between;
  padding-block: 24px;
  font-size: .88rem; color: var(--ink-soft);
}
.site-footer__meta  { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* --- Einwilligungs-Banner ---------------------------------------------- */

.consent { display: none; }

html[data-consent="unset"] .consent,
html[data-consent-ui="open"] .consent {
  display: block;
  position: fixed; inset: auto 0 0 0; z-index: 90;
  padding: 16px;
}

.consent__box {
  max-width: 640px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 -4px 40px -8px rgba(22, 24, 29, .28);
}
.consent__title { font-size: 1.15rem; margin-bottom: .6em; }
.consent__text { font-size: .92rem; color: var(--ink-soft); }
.consent__text p:last-child { margin-bottom: 0; }

.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.consent__actions .btn { flex: 1 1 200px; }

.consent__links { margin: 14px 0 0; font-size: .82rem; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
