/* ==========================================================
   1. Kölsche Aape-Sitzung e.V. – Gestaltung
   Vereinsfarben: Rot (RAL 3000 Feuerrot) und Weiß
   ========================================================== */

:root {
  --rot: #AF2B1E;          /* RAL 3000 Feuerrot */
  --rot-dunkel: #8A2017;   /* für Hover / Schatten */
  --rot-hell: #FBEDEB;     /* zarte Hintergrundfläche */
  --weiss: #FFFFFF;
  --text: #2B2422;         /* dunkles Grau für gute Lesbarkeit */
  --text-leise: #6B5F5C;
  --linie: #EAD9D6;
  --gelb: #F4C430;         /* kleiner Akzent (Banane) */
  --radius: 14px;
  --schatten: 0 6px 20px rgba(80, 20, 10, .12);
  --breite: 1100px;
  --schrift: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --schrift-titel: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3 {
  font-family: var(--schrift-titel);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--rot); }
h3 { font-size: 1.3rem; }

.inhalt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 16px;
}

.abschnitt { padding: 56px 0; }
.abschnitt--rot { background: var(--rot); color: var(--weiss); }
.abschnitt--rot h2 { color: var(--weiss); }
.abschnitt--hell { background: var(--rot-hell); }

/* Kölsche Unterzeile über Überschriften */
.koelsch {
  display: inline-block;
  font-family: var(--schrift-titel);
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rot);
  margin-bottom: .3em;
}
.abschnitt--rot .koelsch { color: var(--gelb); }

/* ---------- Kopfzeile / Navigation ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--rot);
  color: var(--weiss);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.kopf .inhalt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 12px;
}
.marke {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--weiss);
  text-decoration: none;
  font-family: var(--schrift-titel);
  line-height: 1.1;
}
.marke:hover { color: var(--weiss); }
.marke img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: var(--weiss);
  border-radius: 50%;
  padding: 6px;
}
.marke small { display: block; font-size: .75rem; opacity: .85; font-family: var(--schrift); }

.menue-knopf {
  display: none;
  background: none;
  border: 2px solid var(--weiss);
  color: var(--weiss);
  border-radius: 8px;
  font-size: 1rem;
  padding: 6px 12px;
  cursor: pointer;
}

.navi ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.navi a {
  display: block;
  padding: 8px 14px;
  color: var(--weiss);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
}
.navi a:hover, .navi a[aria-current="page"] {
  background: var(--weiss);
  color: var(--rot);
}

@media (max-width: 820px) {
  .menue-knopf { display: block; }
  .navi {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--rot-dunkel);
    padding: 8px 16px 16px;
  }
  .navi.offen { display: block; }
  .navi ul { flex-direction: column; }
}

/* ---------- Bühne (Startseite oben) ---------- */
.buehne {
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.12) 0 6px, transparent 7px),
    radial-gradient(circle at 80% 30%, rgba(244,196,48,.35) 0 5px, transparent 6px),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,.15) 0 4px, transparent 5px),
    var(--rot);
  background-size: 120px 120px, 160px 160px, 90px 90px, auto;
  color: var(--weiss);
  text-align: center;
  padding: 64px 0 72px;
}
.buehne img.buehne-logo {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin: 0 auto 20px;
  background: var(--weiss);
  border-radius: 50%;
  padding: 18px;
  box-shadow: var(--schatten);
}
.buehne h1 { margin: 0 0 16px; }
.buehne img.schriftzug { width: min(620px, 100%); margin: 0 auto; }
.buehne .wellkumme { font-family: var(--schrift-titel); font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 12px; }
.buehne p { font-size: 1.2rem; max-width: 640px; margin: 0 auto 28px; }

.ruf {
  font-family: var(--schrift-titel);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  margin: 0 0 12px;
}
.ruf span { display: inline-block; animation: huepf 1.8s ease-in-out infinite; }
.ruf span:nth-child(2) { animation-delay: .2s; }
.ruf span:nth-child(3) { animation-delay: .4s; }
@keyframes huepf {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .ruf span { animation: none; }
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--rot);
  color: var(--weiss);
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--rot);
  transition: transform .15s, background .15s;
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); transform: translateY(-2px); }
.knopf--weiss { background: var(--weiss); color: var(--rot); border-color: var(--weiss); }
.knopf--weiss:hover { background: var(--rot-hell); color: var(--rot-dunkel); border-color: var(--rot-hell); }
.knopf--rahmen { background: transparent; color: var(--rot); }
.knopf--rahmen:hover { background: var(--rot); color: var(--weiss); }
.knopf[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Präsidentin / Zitat ---------- */
.zitat-block {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 40px;
  align-items: center;
}
.zitat-foto {
  position: relative;
}
.zitat-foto img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  border: 6px solid var(--weiss);
  outline: 3px solid var(--rot);
}
.sprechblase {
  position: relative;
  background: var(--rot);
  color: var(--weiss);
  font-family: var(--schrift-titel);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  padding: 24px 28px;
  border-radius: 24px;
  margin: 0 0 20px;
  box-shadow: var(--schatten);
}
.sprechblase::after {
  content: "";
  position: absolute;
  left: -18px;
  top: 40%;
  border: 14px solid transparent;
  border-right-color: var(--rot);
  border-left: 0;
}
.zitat-name { font-weight: 700; color: var(--rot); margin-top: -6px; }
@media (max-width: 760px) {
  .zitat-block { grid-template-columns: 1fr; gap: 28px; }
  .zitat-foto { max-width: 340px; margin: 0 auto; }
  .sprechblase::after {
    left: 40px; top: -18px;
    border: 14px solid transparent;
    border-bottom-color: var(--rot);
    border-top: 0;
  }
}

/* ---------- Kacheln / Karten ---------- */
.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.kachel {
  background: var(--weiss);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 24px;
  border-top: 6px solid var(--rot);
}
.kachel .symbol { font-size: 2.2rem; line-height: 1; margin-bottom: 10px; }

/* Veranstaltungskarte */
.termin {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  overflow: hidden;
  margin-bottom: 28px;
}
.termin-bild { background: var(--rot); position: relative; }
.termin-bild button {
  all: unset;
  cursor: zoom-in;
  display: block;
  height: 100%;
}
.termin-bild img { width: 100%; height: auto; }
.termin-bild > button { padding: 12px; box-sizing: border-box; height: auto; }
.termin-ersatz {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--weiss);
  padding: 20px;
  font-family: var(--schrift-titel);
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.15) 0 5px, transparent 6px),
    radial-gradient(circle at 75% 70%, rgba(244,196,48,.4) 0 4px, transparent 5px),
    var(--rot);
  background-size: 70px 70px, 90px 90px, auto;
}
.termin-ersatz img, .archiv-kachel .titelbild .termin-ersatz img { width: 110px; height: 110px; object-fit: contain; background: var(--weiss); border-radius: 50%; padding: 6px; margin-bottom: 12px; min-height: 0; }
.termin-text { padding: 24px 28px; }
.termin-datum {
  display: inline-block;
  background: var(--rot-hell);
  color: var(--rot-dunkel);
  font-weight: 700;
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.termin dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 12px 0 18px; }
.termin dt { font-weight: 700; color: var(--text-leise); }
.termin dd { margin: 0; }
.termin .hinweis { font-weight: 700; color: var(--rot); }
@media (max-width: 680px) {
  .termin { grid-template-columns: 1fr; }
  .termin-bild > button { max-width: 360px; margin: 0 auto; }
}

/* Archiv-Kacheln */
.archiv-kachel {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--weiss);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
  transition: transform .15s;
}
.archiv-kachel:hover { transform: translateY(-4px); color: var(--text); }
.archiv-kachel .titelbild { aspect-ratio: 4 / 3; background: var(--rot); }
.archiv-kachel .titelbild img { width: 100%; height: 100%; object-fit: cover; }
.archiv-kachel .titelbild .termin-ersatz { min-height: 0; height: 100%; }
.archiv-kachel div.text { padding: 16px 20px 20px; }
.archiv-kachel h3 { margin-bottom: 4px; color: var(--rot); }
.archiv-kachel p { margin: 0; color: var(--text-leise); }
.archiv-jahr { margin: 40px 0 18px; padding-bottom: 6px; border-bottom: 3px solid var(--rot); }
.archiv-jahr:first-child { margin-top: 0; }

/* Galerie */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.galerie button {
  all: unset;
  cursor: zoom-in;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--rot-hell);
}
.galerie button:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.galerie button:hover img { transform: scale(1.05); }

.plakat-klein { max-width: 340px; }
.plakat-klein button { all: unset; cursor: zoom-in; display: block; }
.plakat-klein img { border-radius: 10px; box-shadow: var(--schatten); }

/* Leuchtkasten (Bild groß) */
.leuchtkasten {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 5, 3, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.leuchtkasten.offen { display: flex; }
.leuchtkasten img { max-height: 88vh; max-width: 100%; width: auto; border-radius: 8px; }
.leuchtkasten button {
  position: absolute;
  background: var(--rot);
  color: var(--weiss);
  border: 0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
}
.leuchtkasten .lk-zu { top: 16px; right: 16px; }
.leuchtkasten .lk-zurueck { left: 16px; top: 50%; transform: translateY(-50%); }
.leuchtkasten .lk-vor { right: 16px; top: 50%; transform: translateY(-50%); }

/* Seitenkopf der Unterseiten */
.seitenkopf {
  background: var(--rot);
  color: var(--weiss);
  padding: 48px 0 40px;
  text-align: center;
}
.seitenkopf .koelsch { color: var(--gelb); }
.seitenkopf p { max-width: 680px; margin: 0 auto; font-size: 1.1rem; }

/* Fließtext-Seiten (Impressum etc.) */
.text-seite { max-width: 780px; }
.text-seite h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* Platzhalter – fehlende Angaben gut sichtbar */
.platzhalter {
  background: #FFF3B0;
  color: #6B4E00;
  border: 1px dashed #C9A100;
  border-radius: 4px;
  padding: 0 4px;
  font-style: italic;
}

/* Fußzeile */
.fuss {
  background: var(--text);
  color: #EDE3E1;
  padding: 44px 0 24px;
  margin-top: 0;
}
.fuss a { color: var(--weiss); }
.fuss .spalten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.fuss h3 { color: var(--weiss); font-size: 1.1rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 6px; }
.fuss .klein { text-align: center; font-size: .9rem; opacity: .75; margin-top: 32px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; }

.zentriert { text-align: center; }
.mitte-text { max-width: 720px; margin-left: auto; margin-right: auto; }
.leer-hinweis { text-align: center; color: var(--text-leise); font-style: italic; padding: 24px; }
