/* ==========================================================================
   Budokan-Marl e.V.: Stylesheet
   Schlichter One-Pager: viel Weißraum, Rot nur als Akzent.
   ========================================================================== */

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("/assets/fonts/merriweather-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("/assets/fonts/merriweather-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --rot: #b3191f;
  --rot-dunkel: #8e1217;
  --text: #222222;
  --text-leise: #666666;
  --grau: #f6f5f3;
  --linie: #e5e3df;
  --weiss: #ffffff;

  --font-text: "Open Sans", Arial, Helvetica, sans-serif;
  --font-titel: "Merriweather", Georgia, "Times New Roman", serif;

  --radius: 6px;
  --breite: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --kopf-hoehe: 68px;
}

/* ---------- Basis ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--kopf-hoehe);
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--weiss);
}

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

a { color: var(--rot); }
a:hover { color: var(--rot-dunkel); }

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

h1, h2, h3 {
  font-family: var(--font-titel);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.2em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--text);
  color: var(--weiss);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--schmal { max-width: calc(760px + 2 * var(--gutter)); }

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--grau { background: var(--grau); }

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}
.kopf__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--kopf-hoehe);
}

.marke { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.marke:hover { color: var(--text); }
.marke__logo { width: 44px; height: 44px; flex: none; }
.marke__name { font-family: var(--font-titel); font-size: 1.15rem; font-weight: 700; white-space: nowrap; }

.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}
.nav__link:hover { color: var(--rot); }

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

@media (max-width: 799px) {
  .nav-toggle { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--weiss);
    border-bottom: 1px solid var(--linie);
    box-shadow: 0 8px 16px rgb(0 0 0 / 0.06);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav__link { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--linie); }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
}

/* ---------- Titelbereich ---------- */

.hero {
  padding-block: clamp(56px, 9vw, 112px);
  text-align: center;
  background: var(--grau);
  border-bottom: 1px solid var(--linie);
}
.hero__logo { width: clamp(140px, 22vw, 200px); height: auto; margin: 0 auto 28px; }
.hero h1 { margin-bottom: 0.4em; }
.hero p { max-width: 40ch; margin-inline: auto; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-leise); }

/* ---------- Training ---------- */

.angebote {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.angebot {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}
.angebot__bild { aspect-ratio: 4 / 3; overflow: hidden; background: var(--grau); }
.angebot__bild img { width: 100%; height: 100%; object-fit: cover; }
.angebot__text { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.angebot__text h3 { margin-bottom: 0.2em; }
.angebot__zielgruppe { margin-bottom: 0.9em; font-size: 0.9rem; font-weight: 600; color: var(--rot); }
.angebot__text > p:not(.angebot__zielgruppe) { color: var(--text-leise); }

/* ---------- Trainingszeiten ---------- */

.plan {
  width: 100%;
  border-collapse: collapse;
  background: var(--weiss);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--linie);
}
.plan thead th {
  padding: 12px 18px;
  border-bottom: 1px solid var(--linie);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-leise);
  text-align: left;
}
.plan tbody th,
.plan td { padding: 12px 18px; text-align: left; vertical-align: top; }
.plan tbody + tbody th,
.plan tbody + tbody tr:first-child td { border-top: 1px solid var(--linie); }
.plan tbody th { width: 18%; font-weight: 700; }
.plan__zeit { white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan__training { font-weight: 600; }
.plan__gruppe { font-weight: 400; color: var(--text-leise); }
.plan__ort { color: var(--text-leise); }

@media (max-width: 640px) {
  .plan, .plan tbody, .plan tr, .plan th, .plan td { display: block; width: 100%; }
  .plan thead { display: none; }
  .plan tbody { padding: 14px 18px; }
  .plan tbody + tbody { border-top: 1px solid var(--linie); }
  .plan tbody th, .plan td { padding: 0; border: 0 !important; }
  .plan tbody th { margin-bottom: 6px; }
  .plan tr + tr { margin-top: 10px; }
  .plan__ort { font-size: 0.9rem; }
}

.hinweis { margin: 20px 0 0; color: var(--text-leise); }

/* ---------- Verein ---------- */

.verein { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 860px) { .verein { grid-template-columns: 1fr 1fr; } }
.verein__text p { color: var(--text-leise); }
/* leichter Zoom blendet den eingebrannten Rahmen des alten Fotos aus */
.verein__bild { overflow: hidden; border-radius: var(--radius); }
.verein__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: scale(1.06); }

.galerie {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 6vw, 64px);
}
@media (max-width: 700px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
.galerie figure { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); }
.galerie img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Team ---------- */

.personen {
  display: grid;
  gap: 32px 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 112px), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.person { text-align: center; }
.person__foto {
  width: 110px;
  aspect-ratio: 1;
  margin: 0 auto 12px;
  overflow: hidden;
  border-radius: 50%;
  background: #e4e1dc;
}
/* Zoom blendet die eingebrannten Rahmen der alten Porträts aus */
.person__foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.person__foto--platzhalter {
  display: grid;
  place-items: center;
  font-family: var(--font-titel);
  font-size: 2rem;
  font-weight: 700;
  color: #8f8a82;
}
.person__name { margin: 0; font-weight: 700; }
.person__rolle { margin: 0; font-size: 0.9rem; color: var(--text-leise); }

.vorstand { margin: clamp(40px, 6vw, 56px) 0 0; padding-top: 24px; border-top: 1px solid var(--linie); color: var(--text-leise); }
.vorstand strong { color: var(--text); }

/* ---------- Kontakt ---------- */

.kontakt {
  display: grid;
  gap: 32px 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.kontakt h3 { font-size: 1.1rem; margin-bottom: 1em; }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.liste li { line-height: 1.5; }
.liste span { display: block; font-size: 0.875rem; color: var(--text-leise); }
.liste a { overflow-wrap: anywhere; }

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

.seite h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.prose h2 { margin: 1.6em 0 0.5em; font-size: 1.35rem; }
.prose h3 { margin: 1.4em 0 0.4em; font-size: 1.1rem; }

/* ---------- Fußzeile ---------- */

.fuss { border-top: 1px solid var(--linie); font-size: 0.9rem; color: var(--text-leise); }
.fuss__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px;
}
.fuss p { margin: 0; }
.fuss ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.fuss a { color: var(--text-leise); text-decoration: none; }
.fuss a:hover { color: var(--rot); text-decoration: underline; }

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