/*
Theme Name: Seelania Child
Template: generatepress
Version: 1.0.24
Text Domain: seelania-child
*/

/* =========================================================
   FG Seelania Steinberg am See – Stylesheet
   ========================================================= */

/* Poppins lokal statt über Google Fonts (keine IP-Übertragung an Google).
   Quelle: @fontsource/poppins 5.2.7, Lizenz: SIL OFL 1.1 (fonts/OFL.txt). */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/poppins-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/poppins-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #c8102e;
  --red-dark: #9c0c23;
  --red-light: #fdecef;
  --gold: #f0a500;
  --gold-dark: #c98600;
  --gold-text: #8f6000; /* Gold für Text auf hellem Grund: 5,5:1 auf Weiß */
  --ink: #201b1d;
  --ink-soft: #55494c;
  --bg: #faf7f4;
  --bg-alt: #f2ece6;
  --card: #ffffff;
  --border: #e8ded6;
  --border-strong: #8c7f78; /* Rahmen von Eingabefeldern: 3,9:1 auf Weiß */
  --shadow: 0 10px 30px -12px rgba(32, 27, 29, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(32, 27, 29, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* scroll-padding: Sprungziele und fokussierte Elemente nicht unter dem Sticky-Header verstecken. */
html { scroll-padding-top: calc(var(--header-h) + 0.6rem); }
/* Erst nach dem Laden sanft scrollen (main.js): Eine laufende Animation zum Anker würde den Sprung nach dem Laden der Galerien überholen. */
@media (prefers-reduced-motion: no-preference) {
  html.sanft-scrollen { scroll-behavior: smooth; }
}
/* Der freigehaltene Platz der Scrollleiste liegt neben dem Overlay und muss genauso dunkel sein. */
html.lightbox-offen { overflow: hidden; scrollbar-gutter: stable; background: #201a1b; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* Fokusring für Tastatur: rot auf hellem Grund, gold auf dunklem. */
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.hero :focus-visible,
.page-hero :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible { outline-color: var(--gold); }
#inhalt:focus { outline: none; }

.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: #fff; }
.skip-link:focus-visible { outline-color: var(--gold); }

/* GeneratePress rückt alle Listen mit margin-left: 3em ein; Listen im Fließtext (.prose) setzen ihren Abstand selbst. */
ul, ol { margin: 0; }
ul { list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Lange Wörter und Links dürfen auf dem Handy nie die Seite breiter machen. */
body { overflow-wrap: break-word; }
/* „Datenschutzerklärung“ ist breiter als ein Handy. Kürzere Wörter bleiben ganz. */
.page-hero h1 { hyphens: auto; hyphenate-limit-chars: 14 6 6; }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-light);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section.alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary,
.btn-primary:focus {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: inherit;
}

.btn-outline {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Nur mit echter Maus: Auf Touch-Geräten bliebe der Hover-Zustand nach dem Tippen hängen. */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--red-dark); }
  .btn-ghost:hover { background: rgba(255,255,255,0.12); }
  .btn-outline:hover { background: var(--red); color: #fff; }
  .btn-gold:hover { background: var(--gold-dark); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: scale(0.97); }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 244, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.7rem;
  white-space: nowrap;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand-logo {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--red-light);
  color: var(--red);
}

.nav-cta { margin-left: 0.5rem; }
/* Muss gegen die allgemeinen Farben von .nav-links a gewinnen, sonst ist die Schrift dunkel auf Rot. */
.nav-links a.nav-cta { color: #fff; }
.nav-links a.nav-cta:hover { background: var(--red-dark); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0; /* GeneratePress setzt 10px 20px, das Symbol säße sonst schief */
}
.nav-toggle:hover,
.nav-toggle:focus { background: var(--card); }

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s var(--ease-out), background 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }
@media (prefers-reduced-motion: reduce) {
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after { transition: none; }
}
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Logo und Menü brauchen zusammen rund 1060 px, darunter gäbe es Überlappungen. */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0.5rem; }
  .nav-cta { margin: 0.5rem 0 0; }
  .nav-links a.nav-cta { display: flex; justify-content: center; }
}
@media (max-width: 1080px) and (prefers-reduced-motion: no-preference) {
  .nav-links {
    transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), display 0.18s allow-discrete;
    opacity: 0;
    transform: translateY(-6px);
  }
  .nav-links.open { opacity: 1; transform: none; }
  @starting-style {
    .nav-links.open { opacity: 0; transform: translateY(-6px); }
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  background: radial-gradient(1100px 480px at 85% -10%, rgba(240,165,0,0.20), transparent 65%),
              linear-gradient(160deg, var(--ink) 0%, #341015 55%, var(--red-dark) 100%);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.35) 0, transparent 60%),
                     radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,0.25) 0, transparent 60%),
                     radial-gradient(2px 2px at 40% 80%, rgba(255,255,255,0.2) 0, transparent 60%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 720px; }

/* Titelfoto aus den Vereinsdaten. Der Schleier ist so stark, dass der Text auch auf einem
   weißen Bild lesbar bleibt (Überschrift 6,7:1, Lead 5,2:1): Das Foto wechselt jedes Jahr. */
.hero--foto { padding: 7rem 0 7.5rem; background: var(--ink); }
.hero--foto::after { display: none; }
.hero--foto .hero-inner { max-width: var(--maxw); }
.hero--foto h1 { max-width: 620px; }
.hero-foto { position: absolute; inset: 0; }
.hero-foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(32, 27, 29, 0.9) 0,
    rgba(32, 27, 29, 0.72) max(50% + 60px, 680px),
    rgba(32, 27, 29, 0.15) 100%);
}
/* Schmal liegt das Foto ganz sichtbar über dem Text und läuft in die dunkle Fläche aus. */
@media (max-width: 900px) {
  .hero--foto { --hero-foto-h: min(66vw, 380px); padding: calc(var(--hero-foto-h) - 2.5rem) 0 3.5rem; }
  .hero-foto { bottom: auto; height: var(--hero-foto-h); }
  .hero-foto::after { background: linear-gradient(180deg, rgba(32, 27, 29, 0) 45%, var(--ink) 100%); }
}

.hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  margin: 1.1rem 0 2rem;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.3rem;
}

.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(240,165,0,0.25);
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Wie .grid-4, aber eine unvollständige letzte Reihe steht mittig. */
.group-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.group-grid > .card { flex: 0 0 calc((100% - 4.5rem) / 4); min-width: 0; }

@media (max-width: 980px) {
  .group-grid > .card { flex-basis: calc((100% - 1.5rem) / 2); }
}
@media (max-width: 620px) {
  .group-grid > .card { flex-basis: 100%; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Reicht der Platz nicht für Titel und Knopf, rutscht der Knopf in eine eigene Zeile und nimmt sie ganz ein. */
.download-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1rem;
  padding: 1.1rem 1.3rem;
  text-decoration: none;
}
.download-card .icon { flex: 0 0 auto; color: var(--red); }
.download-card .download-text { flex: 999 1 13rem; min-width: 0; }
.download-card h4 { margin: 0 0 0.2rem; color: var(--ink); }
.download-card p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.download-card .btn { flex: 1 0 auto; justify-content: center; pointer-events: none; }

/* Nur klickbare Karten reagieren auf die Maus, alle anderen wären ein falsches Versprechen. */
.group-card,
a.card { transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease; }
@media (hover: hover) and (pointer: fine) {
  .group-card:hover,
  a.card:hover { box-shadow: var(--shadow); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .group-card:hover,
  a.card:hover { transform: translateY(-4px); }
}

.card-body { padding: 1.4rem 1.5rem 1.6rem; }

.group-card .card-img {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--red);
  overflow: hidden;
}
.group-card .card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; } /* Hochformat: Köpfe nicht abschneiden */

.group-card .card-img svg { width: 2.75rem; height: 2.75rem; }
.group-card { position: relative; }
.group-card h3 { margin-bottom: 0.35rem; }
.group-card p { font-size: 1rem; margin-bottom: 0.9rem; }
.group-card .link { color: var(--red); font-weight: 700; font-size: 0.95rem; }
/* Die ganze Karte ist klickbar, bleibt aber ein einziger Tab-Stopp. */
.group-card .link::after { content: ""; position: absolute; inset: 0; }
.group-card .link:focus-visible { outline: none; }
.group-card:has(.link:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }

/* Saison-Highlight-Karten: zwei Karten, so breit wie im Dreier-Raster */
.season-grid { max-width: 760px; margin-inline: auto; }
.season-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0;
}
.season-card .card-img {
  aspect-ratio: 2/3;
  background: linear-gradient(145deg, var(--bg-alt), #ffe9c7);
  overflow: hidden;
}
.season-card .card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.season-card .card-body { padding: 1.5rem; }
.season-card .role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.3rem;
}
.season-card h3 { margin-bottom: 0.2rem; }

/* News / Termine */
.news-card { padding: 1.5rem; }
.grid-3.news-single { grid-template-columns: minmax(0, 640px); }
.news-bild {
  display: block;
  width: calc(100% + 3rem);
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: -1.5rem -1.5rem 1rem;
}
.empty-note { margin: 0; }
.empty-note p { margin: 0; }

/* Bild neben "Über uns" auf der Startseite */
.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.about-visual svg { width: 3.5rem; height: 3.5rem; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.news-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.event-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.event-row + .event-row { margin-top: 0.9rem; }
.event-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  background: var(--red-light);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.3rem;
  font-weight: 700;
}
.event-date .day { display: block; font-size: 1.35rem; line-height: 1; }
.event-date .month { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.event-date .year { display: block; font-size: 0.7rem; line-height: 1.2; }
.event-row h4 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.event-row .meta { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
/* Sprungleiste: bleibt beim Scrollen unter dem Header stehen. Am Handy eine Zeile, die seitlich gewischt wird,
   ab 721 px bricht sie um (siehe unten), damit am Desktop kein Eintrag unsichtbar abgeschnitten ist. */
html:has(.group-nav) {
  --group-nav-h: 3.4rem;
  scroll-padding-top: calc(var(--header-h) + var(--group-nav-h) + 0.6rem);
}
#bildarchiv:has(> .group-nav) { padding-top: 0; }
.group-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  height: var(--group-nav-h);
  margin-bottom: 2rem;
  background: rgba(250, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.group-nav .container { height: 100%; }
.group-nav ul {
  position: relative; /* Bezug für offsetLeft in main.js */
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: 100%;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.group-nav ul::-webkit-scrollbar { display: none; }
.group-nav li { flex: none; }
/* margin statt justify-content: Bei zu wenig Platz bleibt so auch der erste Eintrag erreichbar. */
.group-nav li:first-child { margin-left: auto; }
.group-nav li:last-child { margin-right: auto; }
.group-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.group-nav a:focus-visible { outline-offset: -3px; }
.group-nav a[aria-current] { background: var(--red-light); color: var(--red); }
@media (hover: hover) and (pointer: fine) {
  .group-nav a:hover { background: var(--red-light); color: var(--red); }
}
/* Ab Tablet-Breite mehrere Zeilen, jede mittig. --group-nav-h ist hier der Wert für zwei Zeilen; main.js setzt die
   gemessene Höhe, falls es mehr oder weniger Zeilen werden, damit Sprungziele nicht unter der Leiste landen. */
@media (min-width: 721px) {
  html:has(.group-nav) { --group-nav-h: 6.2rem; }
  .group-nav { height: auto; }
  .group-nav ul { flex-wrap: wrap; justify-content: center; row-gap: 0; padding: 0.3rem 0; overflow-x: visible; }
  .group-nav li:first-child, .group-nav li:last-child { margin: 0; }
}

.gallery-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.gallery-block + .gallery-block { margin-top: 2.5rem; }

.gallery-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.season-select {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
}

.gallery-grid button {
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--bg-alt);
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .gallery-grid button:hover img { transform: scale(1.03); }
}

/* Porträt-Archiv (Seerosenorden): einheitliche 3:4-Kacheln mit Saison und Name */
.gallery-portraits { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.4rem 1rem; }
.gallery-portraits button,
.gallery-portraits button:hover,
.gallery-portraits button:focus {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  color: var(--ink);
  font-family: var(--font); /* GeneratePress setzt für button die Systemschrift */
  text-align: center;
}
.gallery-portraits .portrait-img {
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}
.gallery-portraits img { object-position: center 25%; }
.gallery-portraits .portrait-saison {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--red);
}
.gallery-portraits .portrait-name { display: block; font-size: 0.95rem; font-weight: 600; line-height: 1.3; }

.gallery-empty {
  padding: 2.2rem 1rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.15s ease-out, display 0.15s allow-discrete;
}
.lightbox.open { display: flex; opacity: 1; transition-duration: 0.2s; }
@starting-style {
  .lightbox.open { opacity: 0; }
}
.lightbox img {
  max-width: min(90vw, 1000px);
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox img { transition: transform 0.2s var(--ease-out); }
  @starting-style {
    .lightbox.open img { transform: scale(0.97); }
  }
}
.lightbox [hidden] { display: none; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(20, 14, 15, 0.6);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  width: 46px; height: 46px;
  padding: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}
.lightbox-close:focus, .lightbox-prev:focus, .lightbox-next:focus { background: rgba(20, 14, 15, 0.6); color: #fff; }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-count {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.22); }
}
/* Am Handy liegen die Pfeile unter dem Bild statt darauf. */
@media (max-width: 620px) {
  .lightbox { padding: 0.75rem; }
  .lightbox img { max-width: 100%; max-height: 74vh; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
  .lightbox-count { bottom: 1.8rem; }
}

/* ---------- Content pages ---------- */
.prose h2 { margin: 2.2rem 0 0.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1rem; }
/* Aufklappbarer Block „Details“, z. B. die Satzung */
.prose .wp-block-details {
  margin: 1.5rem 0 0;
  padding: 0 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.prose .wp-block-details summary { padding: 1rem 0; font-weight: 700; color: var(--ink); cursor: pointer; }
.prose .wp-block-details[open] { padding-bottom: 0.5rem; }
.prose .wp-block-details[open] summary { margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.prose ul { margin: 0 0 1rem 1.2rem; list-style: disc; }
.prose ol { margin: 0 0 1rem 1.2rem; list-style: decimal; }
.prose ul li { margin-bottom: 0.4rem; color: var(--ink-soft); }

.page-hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(160deg, var(--ink), var(--red-dark));
  color: #fff;
}
.page-hero p { color: rgba(255,255,255,0.8); max-width: 620px; }

.callout {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}
.callout strong { color: var(--red); }

/* Vorstand */
.board-card { text-align: center; padding: 1.75rem 1.25rem; }
.board-avatar {
  width: 96px; height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  display: flex; align-items: flex-end; justify-content: center;
}
.board-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.board-avatar svg { width: 72%; height: 72%; fill: currentColor; opacity: 0.45; }
.board-card .role { font-size: 0.8rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }

/* Contact form */
.form-grid { display: grid; gap: 1.1rem; max-width: 600px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem; /* darunter zoomt iOS beim Antippen in das Feld */
  background: var(--card);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.form-note { font-size: 0.92rem; color: var(--ink-soft); }
.form-submit .btn { width: 100%; justify-content: center; }
.form-status { padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.95rem; margin: 0.75rem 0 0; }
.form-status.ok { background: #e7f6ec; color: #1e7a3c; }
.form-status.error { background: #fbe9e9; color: #b3261e; }

/* Info list (Kontakt/Impressum) */
.info-list { display: grid; gap: 1rem; }
.info-list .item { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-list .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--red-light); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-list .item h4 { font-size: 1rem; margin-bottom: 0.15rem; }
.info-list .item p { font-size: 1rem; margin: 0; }
.info-list .item p a { color: var(--red); text-decoration: underline; text-underline-offset: 0.15em; }
.kontakt-angaben span { display: block; }
.tel-link { white-space: nowrap; }
@media (pointer: coarse) {
  /* Zeilenhöhe 26,4 px + Polster = 44 px Tippfläche */
  .info-list .item p a { display: inline-block; padding-block: 0.55rem; }
}
.seelania-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

.placeholder-note {
  font-size: 0.78rem;
  color: var(--gold-text);
  background: #fff6e0;
  border: 1px dashed #e5c265;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.75rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid + p, .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-grid a, .footer-grid p, .footer-grid li { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: #fff; }

/* Der Bereich beginnt mit der Sprungleiste: Sie soll direkt unter dem Header landen. */
#bildarchiv { scroll-margin-top: calc(-1 * var(--group-nav-h, 0px) - 0.6rem); }

/* Utilities */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
