/* ==========================================================================
   Thalberger Heandltrommler – Stylesheet
   Schlicht, dunkel, mystisch: warmes Schwarz, Nebel, Glut, Nacht-Blaugrau.
   Mobil zuerst. Keine externen Ressourcen.
   ========================================================================== */

/* ---------- Schriften (lokal, SIL OFL) ---------- */
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter";  src: url("../fonts/inter-400.woff2")  format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter";  src: url("../fonts/inter-600.woff2")  format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Design-Tokens ---------- */
:root {
  --c-grund:   #13100d;   /* warmes Schwarz */
  --c-flaeche: #1c1814;   /* leicht angehobene Fläche */
  --c-linie:   #3a322a;   /* feine Trennlinien */
  --c-text:    #efe6d8;   /* Knochenweiß (wie Logo) */
  --c-leise:   #b8ab98;   /* Nebentext, ~8:1 */
  --c-credit:  #a3998b;   /* Bildnennung, ~6.5:1 */
  --c-glut:    #e39a4b;   /* Glut-Akzent, ~8:1 */
  --c-glut-hell: #f2b56f;
  --c-nacht:   #2b3440;   /* kaltes Nacht-Blaugrau */
  --c-nebel:   #8d9aa8;   /* Nebel / kalter Akzent */

  --f-titel: "Oswald", "Arial Narrow", sans-serif;
  --f-text:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rand: 16px;                     /* Seitenrand mobil */
  --breite: 68rem;                  /* max. Inhaltsbreite */
  --abstand: clamp(4rem, 10vw, 7.5rem); /* vertikaler Abschnittsabstand */
  --radius: 4px;
  --schatten: 0 1.25rem 3rem rgb(0 0 0 / .5);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--c-grund);
  color: var(--c-text);
  font: 400 1.0625rem/1.65 var(--f-text);
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  margin: 0 0 1rem;
  font-family: var(--f-titel);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--c-glut); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-glut-hell); }

:focus-visible { outline: 2px solid var(--c-glut-hell); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--c-glut); color: var(--c-grund); }

/* ---------- Hilfsklassen ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* Sprunglink: erst bei Fokus sichtbar */
.skip {
  position: absolute; left: var(--rand); top: -4rem; z-index: 100;
  padding: .6rem 1rem;
  background: var(--c-glut); color: var(--c-grund);
  font-weight: 600; text-decoration: none; border-radius: var(--radius);
}
.skip:focus { top: var(--rand); color: var(--c-grund); }

/* Bildnennung: klein und dezent, aber gut lesbar */
.credit {
  display: block;
  margin-top: .15rem;
  font-size: .8125rem;
  letter-spacing: .02em;
  color: var(--c-credit);
}

/* Knopf */
.knopf {
  display: inline-block;
  padding: .85rem 1.6rem;
  border: 1px solid var(--c-glut);
  border-radius: var(--radius);
  background: var(--c-glut);
  color: var(--c-grund);
  font: 600 .95rem/1 var(--f-titel);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 2rem rgb(227 154 75 / .25);
  transition: background-color .2s, box-shadow .2s, color .2s;
}
.knopf:hover { background: var(--c-glut-hell); color: var(--c-grund); box-shadow: 0 0 2.5rem rgb(227 154 75 / .4); }

.knopf--leise {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-linie);
  box-shadow: none;
}
.knopf--leise:hover { background: transparent; color: var(--c-glut-hell); border-color: var(--c-glut); box-shadow: none; }

/* ---------- Kopf ---------- */
.kopf {
  position: relative; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: .9rem var(--rand);
}

.kopf__marke { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.kopf__marke img { width: auto; filter: drop-shadow(0 0 .5rem rgb(227 154 75 / .18)); }
.kopf__marke img:first-child { height: 3rem; }
.kopf__marke img + img { height: 2.6rem; }
@media (min-width: 40em) {
  .kopf__marke img:first-child { height: 3.6rem; }
  .kopf__marke img + img { height: 3.1rem; }
}

.kopf__nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.kopf__nav a {
  padding: .35rem 0;
  color: var(--c-leise);
  font: 400 .95rem/1.2 var(--f-titel);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.kopf__nav a:hover,
.kopf__nav a[aria-current] { color: var(--c-text); border-bottom-color: var(--c-glut); }

/* ---------- Held (Hero) ---------- */
.held {
  position: relative;
  isolation: isolate;
  display: grid; place-items: center;
  min-height: min(88vh, 52rem);
  min-height: min(88svh, 52rem);
  padding: 4rem var(--rand) 5rem;
  overflow: hidden;
  text-align: center;
}

.held__bild {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.45) saturate(.8);
}

/* Nebel-Verlauf über dem Foto, unten in den Seitengrund auslaufend */
.held::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 45%, rgb(19 16 13 / .15), rgb(19 16 13 / .65) 70%),
    linear-gradient(to bottom, rgb(19 16 13 / .55) 0%, transparent 25%, transparent 60%, var(--c-grund) 100%);
}

/* Langsam ziehender Nebelschleier (sehr dezent) */
.held::after {
  content: ""; position: absolute; inset: -20% -40%; z-index: -1;
  background:
    radial-gradient(ellipse 30% 18% at 30% 70%, rgb(141 154 168 / .14), transparent 70%),
    radial-gradient(ellipse 35% 20% at 70% 80%, rgb(141 154 168 / .10), transparent 70%);
  animation: nebel 40s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes nebel {
  from { transform: translateX(-6%); }
  to   { transform: translateX(6%); }
}

.held__inhalt { max-width: 38rem; }

/* Bildnennung des Hero-Fotos unten rechts */
.held > .credit {
  position: absolute; right: var(--rand); bottom: .75rem;
  margin: 0;
}

.held__logo {
  width: min(22rem, 80vw);
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 .5rem 2rem rgb(0 0 0 / .7));
}

.held__text {
  margin: 0 auto 2rem;
  max-width: 30rem;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  color: var(--c-text);
  text-shadow: 0 1px 12px rgb(0 0 0 / .9);
}

/* ---------- Abschnitte ---------- */
.abschnitt {
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: var(--abstand) var(--rand);
}

/* Glut-Strich über jeder Abschnittsüberschrift */
.abschnitt > h2::before,
.zweispaltig h2::before {
  content: ""; display: block;
  width: 2.5rem; height: 2px; margin-bottom: 1rem;
  background: linear-gradient(to right, var(--c-glut), transparent);
}

.abschnitt__einleitung { max-width: 38rem; margin-bottom: 2.5rem; color: var(--c-leise); }

/* Bilder-Abschnitt: kalter Nachtnebel als Hintergrund, randlos */
#bilder {
  max-width: none;
  background:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgb(43 52 64 / .55), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgb(43 52 64 / .45), transparent 70%);
}
#bilder > * { max-width: var(--breite); margin-left: auto; margin-right: auto; }

/* ---------- Termine ---------- */
.termine { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 1px solid var(--c-linie); max-width: 46rem; }

.termin {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--c-linie);
}

.termin__datum { display: flex; flex-direction: column; font-family: var(--f-titel); line-height: 1.2; }
.termin__tag { color: var(--c-glut); font-size: .85rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.termin__datum-text { color: var(--c-text); font-size: 1.05rem; letter-spacing: .03em; }

.termin__info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.termin__titel { font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; }
.termin__ort { color: var(--c-leise); font-size: .95rem; }

/* Vergangene Termine: zurückgenommen, aber noch lesbar (AA) */
.termin--vorbei .termin__tag,
.termin--vorbei .termin__datum-text,
.termin--vorbei .termin__titel,
.termin--vorbei .termin__ort { color: var(--c-credit); font-weight: 400; }
.termin--vorbei .termin__datum-text { text-decoration: line-through; text-decoration-color: var(--c-linie); }

.hinweis {
  max-width: 46rem;
  padding-left: 1rem;
  border-left: 2px solid var(--c-nacht);
  color: var(--c-leise);
  font-size: .95rem;
}

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.galerie__bild { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--c-flaeche); box-shadow: var(--schatten); }
.galerie__bild a { display: block; height: 100%; }
.galerie__bild img {
  width: 100%; height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .8s ease, filter .8s ease;
  filter: saturate(.9);
}
.galerie__bild--hoch img { aspect-ratio: 2 / 3; }
.galerie__bild a:hover img,
.galerie__bild a:focus-visible img { transform: scale(1.03); filter: saturate(1); }

/* Bildnennung klein unten links — rechts unten sitzt die Signatur des Fotografen im Bild */
.galerie__bild figcaption {
  position: absolute; left: .5rem; bottom: .35rem;
  pointer-events: none;
}
.galerie__bild .credit,
.zweispaltig__bild .credit,
.held > .credit {
  margin: 0;
  font-size: .6875rem;
  color: rgb(239 230 216 / .6);
  text-shadow: 0 0 3px rgb(0 0 0 / .9);
}

/* ---------- Verein (zweispaltig) ---------- */
.zweispaltig { display: grid; gap: 2.5rem; align-items: center; }
.zweispaltig p { max-width: 36rem; }

.zweispaltig__bild { position: relative; margin: 0; }
.zweispaltig__bild img { width: 100%; border-radius: var(--radius); box-shadow: var(--schatten); }
.zweispaltig__bild figcaption { position: absolute; left: .5rem; bottom: .35rem; }

/* ---------- Kontakt ---------- */
.kontakt { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.kontakt a {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem;
  padding: .6rem 1.1rem;
  border: 1px solid var(--c-linie);
  border-radius: var(--radius);
  background: var(--c-flaeche);
  color: var(--c-text);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .2s, color .2s;
}
.kontakt a:hover { border-color: var(--c-glut); color: var(--c-glut-hell); }
.kontakt svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- Fuß ---------- */
.fuss {
  margin-top: 2rem;
  padding: 3.5rem var(--rand) 2.5rem;
  border-top: 1px solid var(--c-linie);
  background: linear-gradient(to bottom, var(--c-grund), #0d0b09);
  text-align: center;
  color: var(--c-leise);
  font-size: .95rem;
}
.fuss__logo { width: 9rem; margin: 0 auto 1.25rem; opacity: .85; }
.fuss__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0; }
.fuss__nav a { color: var(--c-text); }
.fuss__credit { margin: 0; font-size: .8125rem; color: var(--c-credit); }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.rechtstext {
  max-width: calc(44rem + 2 * var(--rand));
  margin: 0 auto;
  padding: 3rem var(--rand) 1rem;
  overflow-wrap: break-word;
}
.rechtstext h1 { margin-bottom: 2rem; }
.rechtstext h2 { margin-top: 2.5rem; font-size: 1.35rem; color: var(--c-text); }
.rechtstext p, .rechtstext li { color: var(--c-leise); }

/* ---------- Ab Tablet ---------- */
@media (min-width: 40em) {
  :root { --rand: 24px; }

  .galerie { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 15rem; grid-auto-flow: dense; }
  .galerie__bild img,
  .galerie__bild--hoch img { aspect-ratio: auto; }
  .galerie__bild--hoch { grid-row: span 2; }
}

/* ---------- Ab Desktop ---------- */
@media (min-width: 60em) {
  :root { --rand: 32px; }

  .galerie { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 14rem; gap: 1.25rem; }
  .zweispaltig { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .galerie__bild a:hover img { transform: none; }
}
