/* Vorzeigeseite - bewusst ohne fremde Schriften und ohne Skripte:
   Eine Google-Schrift wuerde die IP-Adresse jedes Besuchers an Google geben. */

:root {
  --rot: #6E1423;          /* Vereinsrot, dieselbe Farbe wie in der Karate-App */
  --rot-hell: #f6eced;
  --text: #1f1a1b;
  --grau: #5d5557;
  --linie: #e4dcdd;
  --grund: #ffffff;
  --flaeche: #faf7f7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --rot: #e0798a;
    --rot-hell: #3a1f24;
    --text: #efe9ea;
    --grau: #b3a9ab;
    --linie: #3b3335;
    --grund: #181415;
    --flaeche: #211b1d;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.rahmen { max-width: 880px; margin: 0 auto; padding: 0 16px; }

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

/* ---- Kopf ---- */
.kopf { border-bottom: 1px solid var(--linie); }
.kopf .rahmen { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.kopf .name { font-weight: 600; text-decoration: none; color: var(--text); }
.kopf nav a { margin-left: 18px; text-decoration: none; font-size: 15px; }

/* ---- Einstieg ---- */
.einstieg { padding: 56px 0 40px; }
.einstieg .dachzeile { color: var(--rot); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.einstieg h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 0 0 16px; }
.einstieg .unter { font-size: 19px; color: var(--grau); max-width: 640px; margin: 0; }

.eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 32px; }
.eckdaten div { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 14px 16px; }
.eckdaten b { display: block; font-size: 15px; }
.eckdaten span { font-size: 14px; color: var(--grau); }

/* ---- Abschnitte ---- */
section { padding: 40px 0; border-top: 1px solid var(--linie); }
h2 { font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
h2 + .einleitung { color: var(--grau); margin: 0 0 24px; max-width: 680px; }
h3 { font-size: 18px; margin: 0 0 4px; }

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.karte { border: 1px solid var(--linie); border-radius: 10px; padding: 16px 18px; }
.karte p { margin: 0; font-size: 15.5px; color: var(--grau); }

.liste { padding: 0; margin: 0; list-style: none; }
.liste li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--linie); position: relative; }
.liste li:last-child { border-bottom: 0; }
.liste li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--rot); }

.hinweis { background: var(--rot-hell); border-left: 4px solid var(--rot); border-radius: 6px; padding: 14px 18px; margin-top: 24px; font-size: 15.5px; }

/* ---- Bildschirmfotos ---- */
/* Vier Bilder: breit alle in einer Reihe, sonst zwei mal zwei. Eine Reihe mit
   drei und einem einzelnen darunter sah verloren aus, und ein Bild allein
   waere am Handy bildschirmhoch. */
.fotos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 720px) { .fotos { grid-template-columns: repeat(4, 1fr); } }
.fotos figure { margin: 0; }
.fotos a { display: block; cursor: zoom-in; }
.fotos a:focus-visible img { outline: 3px solid var(--rot); outline-offset: 2px; }

.rolle { margin-top: 32px; }
.rolle:first-of-type { margin-top: 8px; }
.rolle h3 { font-size: 20px; margin: 0 0 4px; }
.rolle > p { margin: 0 0 14px; color: var(--grau); max-width: 680px; font-size: 16px; }

/* ---- Bild gross ---- */
#gross { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
#gross::backdrop { background: rgba(0, 0, 0, .85); }
#gross[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
#gross img { max-width: calc(100vw - 32px); max-height: calc(100vh - 90px); width: auto; height: auto; border-radius: 14px; background: #fff; }
#gross .gross-text { color: #fff; margin: 10px 16px 0; font-size: 15px; text-align: center; }
#gross button { position: fixed; background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; }
#gross button:hover { background: rgba(255, 255, 255, .3); }
#gross .gross-zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
#gross .gross-weiter { right: 12px; top: 50%; transform: translateY(-50%); }
#gross .gross-zu { right: 12px; top: 12px; }

/* Am Handy lagen Pfeile und Kreuz ueber dem Bild: Pfeile nach unten neben die
   Beschriftung, oben Platz fuers Kreuz. Blaettern geht dort auch per Wischen. */
@media (max-width: 720px) {
  #gross[open] { justify-content: flex-start; padding-top: 70px; }
  #gross img { max-height: calc(100vh - 170px); }
  #gross .gross-text { margin: 10px 70px 0; }
  #gross .gross-zurueck, #gross .gross-weiter { top: auto; bottom: 16px; transform: none; }
}
.fotos img { width: 100%; height: auto; display: block; border: 1px solid var(--linie); border-radius: 14px; }
.fotos figcaption { font-size: 14px; color: var(--grau); margin-top: 6px; }
.foto-fehlt { aspect-ratio: 9 / 16; border: 2px dashed var(--linie); border-radius: 14px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; color: var(--grau); font-size: 14px; }

/* ---- Rechtstexte ---- */
.text { padding: 40px 0 56px; max-width: 720px; }
.text h1 { font-size: 32px; margin: 0 0 24px; }
.text h2 { font-size: 20px; margin: 28px 0 6px; }
.text p { margin: 0 0 12px; }

/* Platzhalter, die vor dem Ausliefern ersetzt sein MUESSEN - absichtlich grell */
.fehlt { background: #ffe14d; color: #000; padding: 0 4px; font-weight: 600; }

/* ---- Fuss ---- */
.fuss { border-top: 1px solid var(--linie); padding: 24px 0 40px; font-size: 14px; color: var(--grau); }
.fuss .rahmen { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.fuss a { color: var(--grau); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .einstieg { padding: 36px 0 28px; }
  /* Am Handy passt der Name neben drei Links nicht in eine Zeile - die Seite
     ist kurz genug, um sie ohne Sprungmarken durchzublaettern. */
  .kopf nav { display: none; }
}
