/* ==========================================================================
   Off-Road-Tiger Brandenburg e.V. — stil.css
   Mobile first: die Basis-Regeln beschreiben das Telefon.
   Größere Bildschirme kommen ausschließlich über @media (min-width: …) dazu.
   Keine externen Schriften, keine externen Ressourcen.
   ========================================================================== */

/* ---------- Token ---------- */

:root {
  /* Farben: Brandenburger Kiefernwald, Sand, Tigergelb, Rost */
  --wald:        #12271f;
  --wald-hoch:   #1b382c;
  --wald-tief:   #0c1b15;
  --bein:        #ede7d9;
  --sand:        #c0ae88;
  --ocker:       #e0a526;
  --rost:        #b4452a;
  --rost-text:   #ee8a66;
  --linie:       #2c4d3d;

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

  --rand: 1.25rem;   /* seitlicher Rand, wächst auf großen Schirmen */
  --spalte: 34rem;   /* Lesebreite: unter 80 Zeichen */
  --kopf-h: 3.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  background: var(--wald);
  color: var(--bein);
  font-family: var(--schrift);
  font-size: 1.0625rem;      /* 17px — auf dem Telefon gut lesbar */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ocker); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--bein); }

:focus-visible {
  outline: 3px solid var(--ocker);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

.lesetext { max-width: var(--spalte); }

/* Auf dem Telefon stehen die Spalten untereinander und brauchen Luft. */
.zweispaltig > * + * { margin-top: 2.75rem; }

.springen {
  position: absolute;
  left: -9999px;
}
.springen:focus {
  left: 0.75rem; top: 0.75rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--ocker);
  color: var(--wald-tief);
  font-weight: 700;
  border-radius: 4px;
}

/* ---------- Kopf ---------- */

.kopf {
  background: var(--wald-tief);
  border-bottom: 1px solid var(--linie);
}

.kopf-innen {
  height: var(--kopf-h);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--bein);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.marke img { height: 2.1rem; width: auto; }
.marke span { font-size: 1.05rem; }
.marke small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sand);
}

/* Sprungleiste: auf dem Telefon drei gleich breite Ziele, Fingergröße */
.sprungleiste {
  position: sticky;
  top: 0;
  z-index: 19;
  background: var(--wald-hoch);
  border-bottom: 1px solid var(--linie);
}
.sprungleiste ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sprungleiste li { flex: 1; }
.sprungleiste a {
  display: block;
  padding: 0.85rem 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bein);
  text-decoration: none;
}
.sprungleiste a:hover { background: var(--wald); color: var(--ocker); }
.sprungleiste li + li a { border-left: 1px solid var(--linie); }

/* ---------- Öffnungs-Anzeige (der Kern der Seite) ---------- */

.oeffnung {
  padding: 2.25rem 0 0;
}

.oeffnung-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sand);
  margin: 0 0 0.35rem;
}

.oeffnung-datum {
  font-size: clamp(3rem, 15vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.oeffnung-titel {
  font-size: clamp(1.05rem, 4.5vw, 1.35rem);
  font-weight: 700;
  margin: 0.5rem 0 0;
}

.oeffnung-zeit {
  font-size: clamp(1.25rem, 6vw, 1.75rem);
  font-weight: 700;
  color: var(--ocker);
  font-variant-numeric: tabular-nums;
  margin: 0.35rem 0 0;
}

.oeffnung-abstand {
  color: var(--sand);
  margin: 0.25rem 0 0;
}

/* Zustand „heute geöffnet“: das einzige laute Element der Seite */
.oeffnung-marke {
  display: inline-block;
  background: var(--ocker);
  color: var(--wald-tief);
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.6rem;
  border-radius: 3px;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;                 /* Fingerziel */
  padding: 0.75rem 1.4rem;
  background: var(--ocker);
  color: var(--wald-tief);
  font: inherit;
  font-weight: 800;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}
.knopf:hover { background: var(--bein); color: var(--wald-tief); }

.knopf-gruppe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.knopf-gruppe .knopf { flex: 1 1 100%; }   /* Telefon: volle Breite */

.knopf-leer {
  background: transparent;
  color: var(--bein);
  border: 1px solid var(--linie);
}
.knopf-leer:hover { background: var(--wald-hoch); color: var(--ocker); }

/* ---------- Geländebild ---------- */

.gelaendebild {
  margin: 2rem calc(var(--rand) * -1) 0;
}
.gelaendebild img { width: 100%; }
.gelaendebild figcaption {
  padding: 0.6rem var(--rand) 0;
  font-size: 0.85rem;
  color: var(--sand);
  max-width: var(--spalte);
}

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

.abschnitt {
  padding: 2.75rem 0;
  border-top: 1px solid var(--linie);
}
/* Auf Impressum/Datenschutz keine Doppellinie unter dem Kopf */
main > .huelle:first-child .abschnitt { border-top: 0; }

/* Die Rechtsseiten haben ein h1 im Abschnitt. Ohne eigene Groesse nimmt der
   Browser 2em, und ein langes Wort wie "Datenschutzerklaerung" sprengt dann
   die Spalte auf dem Telefon. */
.abschnitt h1 {
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  margin-bottom: 1.25rem;
  hyphens: auto;
  overflow-wrap: break-word;
}

.abschnitt h2 {
  font-size: clamp(1.45rem, 5.5vw, 1.9rem);
  margin-bottom: 1.1rem;
}

.abschnitt h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.4rem;
}

/* ---------- Termine ---------- */

.termine {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--linie);
}

.termin {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--linie);
}

.termin-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}

.termin-datum {
  font-weight: 800;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.termin-zeit {
  color: var(--sand);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.termin-titel {
  display: block;
  color: var(--bein);
}

.termin-hinweis {
  display: block;
  font-size: 0.9rem;
  color: var(--sand);
}

.termin.naechster { border-left: 3px solid var(--ocker); padding-left: 0.85rem; }
.termin.naechster .termin-datum { color: var(--ocker); }

.termin.entfaellt .termin-datum,
.termin.entfaellt .termin-zeit { text-decoration: line-through; }
.termin.entfaellt { opacity: 0.72; }

.termin-fahne {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--rost);
  color: var(--rost-text);
  border-radius: 3px;
}
.termin.naechster .termin-fahne { border-color: var(--ocker); color: var(--ocker); }

.termine-fuss {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--sand);
}

/* ---------- Hinweisblöcke (Motorräder, Hummerfahrten) ---------- */

.hinweis {
  border-left: 3px solid var(--rost);
  padding: 0.1rem 0 0.1rem 1rem;
  margin: 1.5rem 0;
  max-width: var(--spalte);
}
.hinweis strong { color: var(--rost-text); }

.merkmal {
  border-left: 3px solid var(--ocker);
  padding: 0.1rem 0 0.1rem 1rem;
  margin: 1.5rem 0;
  max-width: var(--spalte);
}

/* ---------- Anfahrt ---------- */

.koordinaten {
  margin: 1.25rem 0;
  padding: 0;
}
.koordinaten div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--linie);
}
.koordinaten dt { color: var(--sand); font-size: 0.9rem; }
.koordinaten dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.karte-platz {
  margin-top: 1.25rem;
  background: var(--wald-hoch);
  border: 1px solid var(--linie);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
}
.karte-platz .knopf { margin: 0 0 0.9rem; }
.karte-platz p {
  font-size: 0.9rem;
  color: var(--sand);
  max-width: 30rem;
  margin-inline: auto;
}
.karte-rahmen {
  aspect-ratio: 4 / 3;
  width: 100%;
  border: 1px solid var(--linie);
  border-radius: 4px;
  margin-top: 1.25rem;
}
.karte-rahmen iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Galerie ---------- */

.galerie {
  display: grid;
  grid-template-columns: 1fr;      /* Telefon: eine Spalte */
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.galerie li { margin: 0; }
.galerie figure { margin: 0; }
.galerie a { display: block; }
.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;             /* kein Layoutsprung, auch bei unbekannter Bildgröße */
  object-fit: cover;
  border-radius: 3px;
  background: var(--wald-hoch);
}
.galerie figcaption {
  font-size: 0.85rem;
  color: var(--sand);
  padding-top: 0.35rem;
}

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

.kontakte {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kontakt {
  border-top: 1px solid var(--linie);
  padding-top: 1rem;
}
.kontakt-name { font-weight: 800; font-size: 1.05rem; }
.kontakt-rolle { color: var(--sand); font-size: 0.9rem; }
.kontakt a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;             /* Telefonnummern als Fingerziel */
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

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

.fuss {
  background: var(--wald-tief);
  border-top: 1px solid var(--linie);
  padding: 2rem 0 2.5rem;
  font-size: 0.9rem;
  color: var(--sand);
}
.fuss nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.fuss nav a { min-height: 2.5rem; display: inline-flex; align-items: center; }

/* ---------- Rechtstexte ---------- */

.rechtstext {
  max-width: var(--spalte);
  overflow-wrap: break-word;   /* lange E-Mail-Adressen und Gesetzesnamen */
}
.rechtstext h2 { font-size: 1.2rem; margin: 2rem 0 0.6rem; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext dl { margin: 0 0 1rem; }
.rechtstext dt { font-weight: 700; margin-top: 0.6rem; }
.rechtstext dd { margin: 0; color: var(--sand); }

/* ==========================================================================
   Ab hier: Erweiterungen für größere Bildschirme (min-width)
   ========================================================================== */

@media (min-width: 34rem) {
  :root { --rand: 2rem; }

  .galerie { grid-template-columns: 1fr 1fr; }

  .kontakte { grid-template-columns: 1fr 1fr; }

  .termin-kopf { gap: 0.25rem 1.25rem; }

  .knopf-gruppe .knopf { flex: 0 1 auto; }
}

@media (min-width: 48rem) {
  :root { --kopf-h: 4rem; }

  .marke img { height: 2.6rem; }
  .marke span { font-size: 1.25rem; }

  .oeffnung { padding-top: 3.5rem; }
  .abschnitt { padding: 4rem 0; }

  .galerie { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }

  .sprungleiste li { flex: 0 0 auto; }
  .sprungleiste a { padding-inline: 1.5rem; }

}

@media (min-width: 62rem) {
  /* Erst hier wird aus der Öffnungs-Anzeige und dem Geländebild ein Paar */
  .kopfbereich {
    display: grid;
    grid-template-columns: minmax(20rem, 1fr) 1.15fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
  }
  .oeffnung, .gelaendebild { padding: 0; margin: 0; }
  .gelaendebild figcaption { padding-inline: 0; }
  .gelaendebild img { border-radius: 4px; }

  .zweispaltig {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .zweispaltig > * + * { margin-top: 0; }
  .termine-spalte { max-width: none; }
}

/* ---------- Bewegung nur, wenn erwünscht ---------- */

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

/* ---------- Druck ---------- */

@media print {
  .kopf, .sprungleiste, .karte-platz, .knopf { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
