/* =====================================================================
   SHOOT & RUN BAHRDORF – GEMEINSAME GESTALTUNG (alle Seiten)
   ---------------------------------------------------------------------
   Diese Datei wird von der Startseite UND allen Unterseiten
   (Downloads, Galerie, Impressum, Datenschutz, Beginn) benutzt.
   Bearbeitet wird sie NUR in  www/shootandrun/css/basis.css .
   Das Skript  verteilen.sh  kopiert sie in die anderen Ordner.

   Inhalt:
   1. Schriften   2. Farben & Maße   3. Grundlagen   4. Kopfzeile
   5. Buttons     6. Textseiten      7. Fußzeile     8. Lightbox
   9. Platzhalter für fehlende Bilder
   ===================================================================== */


/* ---------- 1. Schriften (selbst gehostet, ohne Google) ---------- */
@font-face { font-family: "Big Shoulders"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/big-shoulders-800.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/big-shoulders-900.woff2") format("woff2"); }
@font-face { font-family: "Public Sans";   font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/public-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Public Sans";   font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/public-sans-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans";   font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/public-sans-700.woff2") format("woff2"); }


/* ---------- 2. Farben & Maße ---------- */
:root {
  /* Vereinsfarben – bitte so lassen */
  --rot:        #CC0000;   /* Flächen, große Schrift. Auf Schwarz nur für GROSSE Schrift (Kontrast 3,4:1) */
  --rot-hell:   #FF1A1A;   /* kleine rote Schrift auf Schwarz (Kontrast 5:1) */
  --rot-dunkel: #8B0000;   /* Hover auf roten Buttons */
  --schwarz:    #0A0A0A;
  --schwarz-2:  #141414;
  --schwarz-3:  #1E1E1E;
  --weiss:      #F5F5F5;
  --grau:       #999999;   /* nur auf Schwarz verwenden (Kontrast 7:1) */

  /* abgeleitete Töne */
  --text-hell:   #D6D6D6;  /* Fließtext auf Schwarz */
  --text-dunkel: #3A3A3A;  /* Nebentext auf Weiß */
  --linie-dunkel: #333333;
  --linie-hell:   #BBBBBB;
  --fokus:       var(--weiss);

  /* Schriften */
  --f-plakat: "Big Shoulders", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-text:   "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;

  /* Abstände */
  --rand: max(16px, 4vw);                 /* seitlicher Rand */
  --abschnitt: clamp(56px, 9vw, 120px);   /* Abstand oben/unten pro Abschnitt */
  --max: 1320px;                          /* maximale Inhaltsbreite */
  --kopf-hoehe: 60px;

  color-scheme: dark;
}


/* ---------- 3. Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-hoehe) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--schwarz);
  color: var(--weiss);
  font: 400 1.0625rem/1.6 var(--f-text);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0 0 1em; }

.inhalt { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--rand); }

/* Plakat-Überschriften */
.plakat {
  font-family: var(--f-plakat);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.005em;
  margin: 0;
}
.plakat--gross  { font-size: clamp(2.8rem, 6.4vw, 5.4rem); }
.plakat--mittel { font-size: clamp(2rem, 4vw, 3.2rem); }
.plakat--klein  { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; line-height: 1; }

/* „Nur für Screenreader“ */
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprunglink { position: absolute; left: 8px; top: -100px; z-index: 300; background: var(--weiss); color: var(--schwarz); padding: 10px 14px; font-weight: 700; }
.sprunglink:focus { top: 8px; }

/* Helle Fläche (Papier) */
.hell { background: var(--weiss); color: var(--schwarz); --fokus: var(--schwarz); color-scheme: light; }


/* ---------- 4. Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 100;
  background: var(--schwarz);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
/* Milchglas-Effekt, wo der Browser es kann */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .kopf { background: rgba(10,10,10,0.72); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); }
}
.kopf__inner {
  height: var(--kopf-hoehe);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: none;
}
.marke {
  font: 900 1.55rem/1 var(--f-plakat);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.marke b { color: var(--rot-hell); font-weight: 900; }
.menue { display: flex; gap: clamp(14px, 1.8vw, 26px); list-style: none; margin: 0; padding: 0; }
.menue a {
  font: 700 0.875rem/1 var(--f-text);
  color: var(--text-hell);
  text-decoration: none;
  padding: 8px 0;
  white-space: nowrap;
}
.menue a:hover, .menue a[aria-current="page"] { color: var(--weiss); text-decoration: underline; text-underline-offset: 6px; }
.menue-knopf {
  display: none;
  background: none; border: 1px solid var(--linie-dunkel); color: var(--weiss);
  font: 700 0.9rem/1 var(--f-text);
  padding: 10px 14px; cursor: pointer;
  align-items: center; gap: 10px;
}
.menue-knopf__striche { display: inline-block; width: 18px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.menue-knopf__striche::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.menue-knopf[aria-expanded="true"] .menue-knopf__striche { border-color: transparent; }
.menue-knopf[aria-expanded="true"] .menue-knopf__striche::after { top: 3px; border-top-color: currentColor; transform: rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-knopf__striche::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; transform: rotate(-45deg); }
.zurueck { font: 700 0.9rem/1 var(--f-text); color: var(--text-hell); text-decoration: none; }
.zurueck:hover { color: var(--weiss); text-decoration: underline; }

@media (max-width: 1080px) {
  .menue-knopf { display: inline-flex; }
  .menue {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--schwarz);
    border-bottom: 1px solid var(--linie-dunkel);
    padding: 8px var(--rand) 20px;
    max-height: calc(100vh - var(--kopf-hoehe)); overflow-y: auto;
  }
  .menue.offen { display: flex; }
  .menue a { display: block; font-size: 1.05rem; padding: 14px 0; border-bottom: 1px solid var(--schwarz-3); }
}


/* ---------- 5. Buttons ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  font: 700 1rem/1.2 var(--f-text);
  text-decoration: none;
  text-align: center;
  background: var(--rot); color: #FFFFFF;
  border: 2px solid var(--rot);
  cursor: pointer;
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); text-decoration: none; }
.knopf--hell { background: var(--weiss); color: var(--schwarz); border-color: var(--weiss); }
.knopf--hell:hover { background: var(--schwarz); color: var(--weiss); border-color: var(--schwarz); }
.knopf--rahmen { background: transparent; color: inherit; border-color: currentColor; }
.knopf--rahmen:hover { background: var(--weiss); color: var(--schwarz); border-color: var(--weiss); }
.hell .knopf--rahmen:hover { background: var(--schwarz); color: var(--weiss); border-color: var(--schwarz); }
/* deaktivierter Anmelde-Button */
.knopf[aria-disabled="true"],
.knopf[aria-disabled="true"]:hover {
  background: transparent; color: #C8C8C8; border-color: #6A6A6A; cursor: not-allowed;
}
.hell .knopf[aria-disabled="true"] { color: var(--text-dunkel); border-color: #8A8A8A; }

.textlink { font-weight: 700; text-decoration: underline; text-decoration-color: var(--rot-hell); text-decoration-thickness: 2px; }
.hell .textlink { text-decoration-color: var(--rot); }
.textlink:hover { text-decoration-thickness: 3px; }


/* ---------- 6. Textseiten (Unterseiten) ---------- */
.seitenkopf { padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--linie-dunkel); }
.seitenkopf .plakat { font-size: clamp(3.4rem, 12vw, 9rem); }
.seitenkopf p { max-width: 60ch; color: var(--text-hell); margin-top: 20px; margin-bottom: 0; font-size: 1.15rem; }
.fliesstext { max-width: 72ch; padding-block: 40px var(--abschnitt); }
.fliesstext h2 { font: 800 clamp(1.5rem, 3vw, 2rem)/1.05 var(--f-plakat); text-transform: uppercase; margin: 2.2em 0 0.6em; }
.fliesstext h3 { font: 700 1.1rem/1.3 var(--f-text); margin: 1.6em 0 0.4em; }
.fliesstext p, .fliesstext li { color: var(--text-hell); }
.fliesstext strong { color: var(--weiss); }
.fliesstext ul { padding-left: 1.2em; margin: 0 0 1em; }
.fliesstext li { margin-bottom: 0.4em; }
.fliesstext li::marker { color: var(--rot-hell); }
.fliesstext a { color: var(--weiss); }


/* ---------- 7. Fußzeile ---------- */
.fuss { background: var(--schwarz); border-top: 1px solid var(--linie-dunkel); padding-block: 56px 40px; color: var(--text-hell); font-size: 0.95rem; }
.fuss__raster { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.fuss__marke { font: 900 clamp(2.4rem, 5vw, 3.6rem)/0.88 var(--f-plakat); text-transform: uppercase; color: var(--weiss); margin: 0 0 12px; }
.fuss__marke b { color: var(--rot); }
.fuss p { margin: 0 0 6px; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fuss a { color: var(--weiss); }
.fuss__klein { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--schwarz-3); font-size: 0.82rem; color: var(--grau); display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
@media (max-width: 760px) { .fuss__raster { grid-template-columns: minmax(0, 1fr); } }


/* ---------- 8. Lightbox (Bild groß ansehen) ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0;
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  background: rgba(10, 10, 10, 0.96); color: var(--weiss);
}
.lightbox::backdrop { background: rgba(10, 10, 10, 0.96); }
.lightbox__buehne { position: absolute; inset: 64px 72px 72px; display: flex; align-items: center; justify-content: center; }
.lightbox__buehne img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__text { position: absolute; left: 72px; right: 72px; bottom: 20px; margin: 0; font-size: 0.95rem; color: var(--text-hell); display: flex; gap: 16px; justify-content: space-between; }
.lightbox__text span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox button {
  position: absolute; background: var(--schwarz-3); color: var(--weiss);
  border: 1px solid var(--linie-dunkel); width: 52px; height: 52px; cursor: pointer;
  font: 400 1.6rem/1 var(--f-text);
}
.lightbox button:hover { background: var(--weiss); color: var(--schwarz); }
.lightbox__zu { top: 8px; right: 8px; }
.lightbox__zurueck { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__weiter { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__buehne { inset: 64px 8px 120px; }
  .lightbox__text { left: 16px; right: 16px; bottom: 76px; }
  .lightbox__zurueck, .lightbox__weiter { top: auto; bottom: 12px; transform: none; }
}

/* ---------- 9. Platzhalter für fehlende Bilder ---------- */
.platzhalter {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; height: 100%; min-height: 120px;
  background: #3A3A3A; color: #E0E0E0;
  border: 2px dashed #8A8A8A;
  font: 700 0.95rem/1.4 ui-monospace, "DejaVu Sans Mono", monospace;
  padding: 16px;
}
.platzhalter small { display: block; font-weight: 400; color: #C8C8C8; }

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

/* Lightbox offen: Seite dahinter nicht scrollen */
html.lightbox-offen { overflow: hidden; }

/* Hinweisleiste im Testmodus (?testdatum=…) */
.testleiste { margin: 0; padding: 8px var(--rand); background: #FFD400; color: #000; font: 700 0.9rem/1.3 var(--f-text); text-align: center; }

/* 404-Seite */
.fehlerseite { border-bottom: 0; min-height: 60vh; }
.fehlerseite .plakat span { color: var(--rot); }
.fehlerseite .knopf { margin-top: 16px; }


/* =====================================================================
   10. Anmelde-Block und Countdown (Startseite + Beginn-Seite)
   ===================================================================== */
.anmeldung-block { display: grid; justify-items: start; gap: 10px; }
.anmeldung-block__hinweis { margin: 0; font-size: 0.92rem; color: var(--text-hell); max-width: 40ch; }
.anmeldung-block__hinweis:empty { display: none; }
.countdown__titel { font-weight: 700; margin: 0 0 12px; }
.countdown__zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 4px solid currentColor; }
.countdown__zahlen div { padding: 10px 0 0 10px; border-left: 1px solid rgba(255,255,255,0.45); font-weight: 700; font-size: 0.9rem; }
.countdown__zahlen div:first-child { border-left: 0; padding-left: 0; }
.countdown__zahlen span { display: block; font: 900 clamp(3rem, 7vw, 5.6rem)/0.9 var(--f-plakat); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .countdown__zahlen span { font-size: clamp(2.4rem, 13vw, 3.6rem); }
  .countdown__zahlen div { padding-left: 6px; font-size: 0.8rem; }
}


/* =====================================================================
   11. Unterseiten
   ===================================================================== */
/* Menü der Unterseiten */
.unternav { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.unternav a { font: 700 0.9rem/1 var(--f-text); color: var(--text-hell); text-decoration: none; padding: 8px 0; }
.unternav a:hover, .unternav a[aria-current="page"] { color: var(--weiss); text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 520px) {
  .unternav { gap: 14px; }
  .unternav li:first-child a::before { content: "← "; }
  .unternav a { font-size: 0.85rem; }
}
@media (max-width: 400px) { .unternav li:not(:first-child) { display: none; } }

/* Downloads */
.dokumente-seite { padding-bottom: var(--abschnitt); }
.dokumente { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 48px; padding-top: 48px; }
.dokumente ul { list-style: none; margin: 0; padding: 0; border-top: 4px solid var(--weiss); }
.dokumente li { border-bottom: 1px solid var(--linie-dunkel); }
.dokumente a { display: grid; gap: 4px; padding: 18px 48px 18px 0; text-decoration: none; position: relative; }
.dokumente a::after { content: "↓"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 900 2rem/1 var(--f-plakat); color: var(--rot-hell); }
.dokumente a:hover .dokumente__titel { text-decoration: underline; text-decoration-color: var(--rot-hell); }
.dokumente__titel { font: 800 clamp(1.3rem, 2.4vw, 1.7rem)/1.1 var(--f-plakat); text-transform: uppercase; }
.dokumente__info { color: var(--text-hell); font-size: 0.92rem; }
.dokumente__warnung { margin: -8px 0 16px; font-size: 0.85rem; color: var(--grau); }
@media (max-width: 760px) { .dokumente { grid-template-columns: minmax(0, 1fr); } }

/* Galerie */
.galerie-seite { padding-block: 40px var(--abschnitt); }
.galerie-seite__status { color: var(--text-hell); }
.kapitel + .kapitel { margin-top: 64px; }
.kapitel h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 20px; }
.kapitel__zahl { font: 700 0.95rem/1 var(--f-text); text-transform: none; color: var(--grau); }
.kapitel__raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.kapitel__bild { display: block; padding: 0; border: 0; background: var(--schwarz-3); aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; }
.kapitel__bild img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .kapitel__bild img { transition: transform 0.35s ease; }
  .kapitel__bild:hover img { transform: scale(1.03); }
}
@media (max-width: 520px) { .kapitel__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; } }

/* Impressum */
.impressum { padding-block: 40px 0; }
.impressum > section:not(.fliesstext) { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 48px; padding-top: 40px; }
.impressum dl { margin: 0; border-top: 4px solid var(--weiss); }
.impressum dl > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linie-dunkel); }
.impressum dt { font-weight: 700; color: var(--grau); font-size: 0.92rem; }
.impressum dd { margin: 0; }
.impressum__rest { padding-top: 16px; }
@media (max-width: 760px) {
  .impressum > section:not(.fliesstext) { grid-template-columns: minmax(0, 1fr); }
  .impressum dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Beginn (Anmeldestatus) */
.beginn { padding-block: clamp(40px, 7vw, 88px) var(--abschnitt); }
.beginn__ueber { color: var(--text-hell); font-weight: 700; margin-bottom: 16px; }
.beginn__titel { font-size: clamp(4rem, 15vw, 12rem); }
.beginn__titel span { color: var(--rot); }
.beginn__raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px 48px; align-items: end; margin-top: 40px; }
.beginn__text { font-size: 1.2rem; max-width: 44ch; color: var(--text-hell); }
.beginn__frist { font-weight: 700; }
.beginn .countdown__zahlen span { color: var(--weiss); }
.beginn .countdown__zahlen div { border-left-color: var(--linie-dunkel); }
.beginn__mehr { margin-top: 56px; color: var(--text-hell); }
@media (max-width: 760px) { .beginn__raster { grid-template-columns: minmax(0, 1fr); } }
