/* ============================================================
   SPORTFÖRDERVEREIN IMST — MAIN STYLESHEET
   Colors: Red #c0001d | Grey #898a8d | White #ffffff
   ============================================================ */

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  --color-red:        #c0001d;
  --color-red-dark:   #96001a;
  --color-red-light:  #e8002380;
  --color-grey:       #898a8d;
  --color-grey-light: #e8e9ea;
  --color-grey-dark:  #4a4b4e;
  --color-dark:       #1a1f2e;
  --color-dark-2:     #2d3340;
  --color-white:      #ffffff;
  --color-off-white:  #f8f9fa;
  --color-text:       #2d3340;
  --color-text-muted: #6b7280;

  --font-heading:     'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body:        'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:      0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.07);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);

  --header-h:    72px;
  --container:   1200px;
  --section-py:  80px;

  --transition:  .22s cubic-bezier(.4,0,.2,1);
}

/* ─── Base ───────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

p { line-height: 1.7; margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { transition: color var(--transition); }
a:hover { color: var(--color-red); }

/* ─── Layout Utilities ───────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: var(--section-py);
}
.section--bg-light { background: var(--color-off-white); }
.section--bg-dark  { background: var(--color-dark); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 10px;
}
.section-header__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 12px;
}
.section-header--light .section-header__title,
.section-header--light .section-header__subtitle {
  color: var(--color-white);
}
.section-header--light .section-header__label {
  color: var(--color-grey-light);
}
.section-header__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
}

.section-footer { text-align: center; margin-top: 48px; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .65em 1.5em;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.btn--primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: var(--color-white);
}
.btn--secondary {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}
.btn--secondary:hover {
  background: var(--color-dark-2);
  border-color: var(--color-dark-2);
  color: var(--color-white);
}
.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,.6);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn--white {
  background: var(--color-white);
  color: var(--color-red);
  border-color: var(--color-white);
}
.btn--white:hover {
  background: var(--color-off-white);
  color: var(--color-red-dark);
}
.btn--ghost {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-grey-light);
}
.btn--ghost:hover {
  background: var(--color-off-white);
  border-color: var(--color-grey);
}
.btn--lg { padding: .8em 2em; font-size: 1rem; }
.btn--sm { padding: .45em 1em; font-size: .85rem; }
.btn--block { width: 100%; justify-content: center; }

@media (max-width: 480px) {
  .btn--full-mobile { width: 100%; justify-content: center; }
}

/* ─── HEADER ─────────────────────────────────────────────── */
/*
 * Z-Index-Hierarchie:
 *   .site-header       → 1000  (fixed, backdrop via ::before)
 *   .primary-nav       → 1010  (AUSSERHALB des headers im DOM → Root-Stacking-Context)
 *   .mobile-nav-overlay→ 1005  (zwischen header und nav-drawer, kein backdrop-filter)
 *   .hamburger         → 1020  (immer klickbar)
 *
 * WARUM nav außerhalb des headers?
 * backdrop-filter auf ::before erzeugt einen Stacking Context für den Header.
 * Kinder eines Stacking-Context-Elements können nie höher stapeln als das Element selbst.
 * → Nav (Kind von header z-1000) wäre immer unter dem Overlay (z-1005).
 * Außerhalb ist .primary-nav im Root-Context mit eigenem z-index: 1010 → korrekt.
 */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow var(--transition);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 46, .92);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  transition: background var(--transition);
  z-index: 0;
}
.site-header.is-scrolled::before { background: rgba(26, 31, 46, .98); }
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.25); }

.header-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ─── PRIMARY NAV (Desktop + Mobile Drawer) ─────────────── */
/*
 * Desktop: nav sitzt als position:fixed in der Header-Zeile,
 * ausgerichtet an der rechten Seite des Containers.
 * Mobile: vollbreiter Drawer von rechts.
 */
.primary-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1010;
  display: flex;
  align-items: center;
  /* Rechts am Container ausgerichtet (container padding = 24px) */
  padding-right: max(24px, calc((100vw - var(--container)) / 2 + 24px));
}

/* Desktop nav-placeholder nimmt den Platz im header-inner flex-layout */
.nav-placeholder { flex: 1; }

/* Nav-Menü */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu li a {
  display: block;
  padding: .45em .9em;
  font-family: var(--font-heading);
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  letter-spacing: .01em;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item > a {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.nav-menu .nav-cta,
.nav-menu li a.nav-cta {
  background: var(--color-red);
  color: #fff !important;
  padding: .45em 1.1em;
  margin-left: 8px;
  border-radius: var(--radius);
}
.nav-menu .nav-cta:hover,
.nav-menu li a.nav-cta:hover { background: var(--color-red-dark) !important; }

/* Mobile-Only: Titel im Drawer — auf Desktop ausgeblendet */
.mobile-nav-header { display: none; }

/* ─── HAMBURGER ─────────────────────────────────────────── */
.hamburger {
  display: none;
  position: relative;
  z-index: 1020;  /* immer über nav-panel und overlay */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,.08); }
.hamburger__bar {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.is-open .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .hamburger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE NAV OVERLAY ────────────────────────────────── */
/* Kein backdrop-filter hier – würde im Root-Context alles hinter ihm blurren */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1005;
}
.mobile-nav-overlay.is-visible { display: block; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  max-height: 900px;
  /* JS setzt --hero-h per CSS-Variable für stabiles Mobile-Verhalten */
}
.hero-swiper { width: 100%; height: 100%; }

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #1a2b4a;
  isolation: isolate;
}
/* Hintergrundbild als <img> → kein Mobile-Zoom */
.hero-slide__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(26,31,46,.85) 0%, rgba(26,31,46,.4) 100%);
}
/* Content-Wrapper über Bild und Overlay */
.hero-slide__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  padding-left: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  padding-right: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  padding-bottom: 40px;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-slide__title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .hero-slide__subtitle { font-size: .95rem; margin-bottom: 24px; }
  .hero-slide__actions { flex-direction: column; gap: 10px; }
  .hero-slide__actions .btn { width: 100%; justify-content: center; }
}
.hero-slide__eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}
.hero-slide__title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 700px;
}
.hero-slide__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.8);
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.6;
}
.hero-slide__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Swiper customization */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: #fff;
  background: rgba(255,255,255,.12);
  width: 48px; height: 48px;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: background var(--transition);
}
.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after { font-size: 18px; font-weight: 700; }
.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover { background: rgba(255,255,255,.22); }

.hero-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,.5);
  opacity: 1;
  width: 8px; height: 8px;
  transition: all var(--transition);
}
.hero-swiper .swiper-pagination-bullet-active {
  background: var(--color-red);
  width: 28px;
  border-radius: 4px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.hero-scroll-hint__line {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  border-radius: 1px;
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%   { transform: scaleY(1); opacity: 1; }
  50%  { transform: scaleY(.5); opacity: .4; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* ─── NEWS CARDS ─────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.news-card__image-wrap {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}
.news-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .news-card__image { transform: scale(1.04); }

.news-card__image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--color-grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-grey);
}
.news-card__image-placeholder svg { width: 48px; height: 48px; }

.news-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card__meta { margin-bottom: 8px; }
.news-card__date {
  font-size: .78rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: .02em;
}
.news-card__cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--color-red);
  background: rgba(192,0,29,.08);
  border-radius: 100px;
  padding: 2px 8px;
  margin-left: 6px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.news-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.news-card__title a:hover { color: var(--color-red); }
.news-card__title--h2 { font-size: 1.15rem; }
.news-card__excerpt {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-red);
  margin-top: auto;
}
.news-card__link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.news-card__link:hover svg { transform: translateX(4px); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

/* ─── EVENTS LIST ────────────────────────────────────────── */
.events-list { display: flex; flex-direction: column; gap: 0; }

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-grey-light);
  transition: background var(--transition);
}
.event-item:last-child { border-bottom: none; }
.events-list--full .event-item { padding: 24px 0; }

.event-item__date {
  flex-shrink: 0;
  width: 60px;
  background: var(--color-red);
  border-radius: var(--radius);
  padding: 8px 6px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.event-item__day {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.event-item__month {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .9;
}

.event-item__body { flex: 1; min-width: 0; }
.event-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}
.event-item__title--h2 { font-size: 1.15rem; }
.event-item__title a:hover { color: var(--color-red); }

.event-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}
.event-item__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.event-item__meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }

.event-item__excerpt {
  font-size: .88rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}
.event-item__action { flex-shrink: 0; align-self: center; }

/* ─── ABOUT SPLIT ────────────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-split__content .section-header__label { text-align: left; }
.about-split__content h2 { text-align: left; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.about-split__content p { color: var(--color-text-muted); margin-bottom: 20px; }
.about-split__lead { font-size: 1.1rem; color: var(--color-text) !important; font-weight: 500; }

.about-stats {
  display: flex;
  gap: 32px;
  margin: 32px 0 36px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
}
.stat__label {
  font-size: .78rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 4px;
}

.about-split__visual { position: relative; }
.about-split__img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.about-split__img-placeholder {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.about-logo-emblem img,
.about-logo-emblem .custom-logo {
  width: 100px; height: auto;
  filter: brightness(0) invert(1);
}
.about-logo-text {
  text-align: center;
  color: rgba(255,255,255,.7);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-logo-text strong { font-size: 1rem; color: #fff; }
.about-logo-text em { font-size: .8rem; font-style: normal; }

/* ─── GALLERY PREVIEW ────────────────────────────────────── */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-preview-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  cursor: pointer;
}
.gallery-preview-item__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-preview-item:hover .gallery-preview-item__img { transform: scale(1.06); }
.gallery-preview-item__placeholder {
  width: 100%; height: 100%;
  background: var(--color-dark-2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3);
}
.gallery-preview-item__placeholder svg { width: 32px; height: 32px; }

.gallery-preview-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.gallery-preview-item:hover .gallery-preview-item__overlay { opacity: 1; }
.gallery-preview-item__title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: .88rem;
  font-weight: 600;
}

/* Gallery Albums Grid */
.gallery-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.gallery-album-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-album-card__image { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.gallery-album-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-album-card:hover .gallery-album-card__img { transform: scale(1.05); }
.gallery-album-card__placeholder {
  width: 100%; height: 100%;
  background: var(--color-grey-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-grey);
}
.gallery-album-card__placeholder svg { width: 48px; height: 48px; }
.gallery-album-card__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-album-card:hover .gallery-album-card__overlay { opacity: 1; }
.gallery-album-card__icon { width: 40px; height: 40px; color: #fff; }
.gallery-album-card__body { padding: 16px 20px; background: var(--color-white); }
.gallery-album-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.gallery-album-card__date { font-size: .78rem; color: var(--color-text-muted); }

/* Photo Gallery (Lightbox grid) */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.photo-gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  cursor: zoom-in;
}
.photo-gallery__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-gallery__item:hover .photo-gallery__img { transform: scale(1.05); }
.photo-gallery__item-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transition: opacity var(--transition);
}
.photo-gallery__item:hover .photo-gallery__item-overlay { opacity: 1; }
.photo-gallery__item-overlay svg { width: 28px; height: 28px; }

/* ─── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__img { max-width: 100%; max-height: 85vh; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition);
}
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ─── CTA BLOCK ──────────────────────────────────────────── */
.section--cta {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  padding-block: 60px;
}
.cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-block__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #fff;
  margin-bottom: 8px;
}
.cta-block__text { color: rgba(255,255,255,.85); max-width: 520px; font-size: 1rem; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,.75); }

.footer-main { padding-block: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}

.footer-col--brand {}

/* footer-logo img rules — see full rules in ─── LOGO section */
.footer-logo-text { color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; margin-bottom: 10px; }
.footer-tagline { font-size: .88rem; color: rgba(255,255,255,.5); margin-bottom: 20px; }

.footer-social { display: flex; gap: 10px; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.social-link:hover { background: var(--color-red); color: #fff; }
.social-link svg { width: 18px; height: 18px; }

.footer-col__title {
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
}

.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-nav a:hover { color: #fff; padding-left: 4px; }

.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 14px; }
.footer-contact p { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: rgba(255,255,255,.65); margin: 0; }
.footer-contact a:hover { color: #fff; }
.footer-icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; opacity: .5; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-block: 20px;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.35); margin: 0; }
.footer-legal-nav { display: flex; gap: 20px; }
.footer-legal-nav a { font-size: .82rem; color: rgba(255,255,255,.35); transition: color var(--transition); }
.footer-legal-nav a:hover { color: rgba(255,255,255,.7); }

/* ─── PAGE HERO ──────────────────────────────────────────── */
.main-content { padding-top: var(--header-h); }

.page-hero {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 56px;
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}
.page-hero--simple { min-height: 220px; display: flex; align-items: center; }
.page-hero--has-image { min-height: 340px; }

.page-hero__bg-image {
  position: absolute; inset: 0;
}
.page-hero__bg-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,31,46,.85) 0%, rgba(26,31,46,.55) 100%);
}
.page-hero__content {
  position: relative; z-index: 1;
  padding-block: 40px;
}
.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 10px;
}
.page-hero--simple .section-header__label { text-align: left; }
.page-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin: 0;
}
.page-hero__meta { font-size: .88rem; color: rgba(255,255,255,.6); margin-top: 8px; }

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-hidden] { opacity: .4; }

/* ─── POST CONTENT ───────────────────────────────────────── */
.post-content-wrap {
  max-width: 800px;
  margin-inline: auto;
  padding-block: 56px;
}
.post-content h2, .post-content h3, .post-content h4 { margin-block: 1.5em .5em; }
.post-content p { color: var(--color-text-muted); }
.post-content a { color: var(--color-red); text-decoration: underline; }
.post-content img { border-radius: var(--radius); margin-block: 1.5em; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.post-content li { margin-bottom: .4em; color: var(--color-text-muted); }

.post-back { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--color-grey-light); }

/* ─── MEMBERSHIP FORM ────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.benefit-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  text-align: center;
}
.benefit-item__icon { font-size: 2.2rem; margin-bottom: 12px; }
.benefit-item__title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.benefit-item p { font-size: .88rem; color: var(--color-text-muted); margin: 0; }

.form-wrap { max-width: 720px; margin-inline: auto; }
.form-intro { margin-bottom: 40px; }
.form-intro__title { font-size: 1.75rem; margin-bottom: 8px; }
.form-intro__text { color: var(--color-text-muted); }
.form-intro__text span { color: var(--color-red); font-weight: 700; }

.sfv-form {}
.form-row { margin-bottom: 0; }
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.form-label span { color: var(--color-red); }

.form-input {
  width: 100%;
  padding: .7em 1em;
  border: 1.5px solid var(--color-grey-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(192, 0, 29, .1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }

.form-group--checkbox .form-checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .88rem; color: var(--color-text-muted); cursor: pointer;
}
.form-checkbox {
  width: 18px; height: 18px;
  flex-shrink: 0; margin-top: 1px;
  accent-color: var(--color-red);
}
.form-group--checkbox a { color: var(--color-red); text-decoration: underline; }

.form-actions { margin-top: 32px; }
.btn__loading { display: none; }
.btn.is-loading .btn__text { display: none; }
.btn.is-loading .btn__loading { display: inline; }

.form-message {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-top: 20px;
  font-size: .9rem;
}
.form-message svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.form-message p { margin: 0; }
.form-message--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form-message--success svg { color: #16a34a; }
.form-message--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-message--error svg { color: #dc2626; }
.form-message[hidden] { display: none !important; }

/* ─── ÜBER UNS ───────────────────────────────────────────── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: center;
}
.about-intro__text { min-width: 0; overflow: hidden; overflow-wrap: break-word; word-break: break-word; }
.about-intro__text h1,
.about-intro__text h2,
.about-intro__text h3 { margin-bottom: 20px; }
.about-intro__text .lead { font-size: 1.15rem; font-weight: 500; color: var(--color-dark); margin-bottom: 20px; }
.about-intro__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-intro__logo-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  opacity: .9;
}

/* Optionaler Begleittext über den Stat-Kacheln */
.stats-intro-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.stats-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.stats-card .stat__number { font-size: 2.2rem; }

/* ─── STATISTIKEN FULL-WIDTH ────────────────────────────── */
.stats-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px 32px;
  text-align: center;
}
.stat-full__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-red);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-full__label {
  font-size: .85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 600;
}

/* ─── TEAM / VORSTAND ────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  text-align: center;
}

/* Foto: volle Kartenbreite, quadratisch zugeschnitten */
.team-card__circle {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-red);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__circle .team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Fallback-Initial wenn kein Foto */
.team-card__circle .team-card__initial {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

/* Text-Bereich unter dem Bild */
.team-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 13px 16px 6px;
}
.team-card__role {
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 16px 20px;
}
.team-empty { text-align: center; padding: 40px; color: var(--color-text-muted); }

@media (max-width: 600px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ─── EVENT DETAIL ───────────────────────────────────────── */
.event-detail-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
  padding-block: 48px;
}
.event-info-card {
  background: var(--color-off-white);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.event-info-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--color-grey-dark); text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; }
.event-info-card__list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.event-info-card__item { display: flex; flex-direction: column; gap: 4px; }
.event-info-card__item dt {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.event-info-card__item dt svg { width: 14px; height: 14px; }
.event-info-card__item dd { font-size: .95rem; font-weight: 500; color: var(--color-dark); }
.event-info-card__item small { font-size: .78rem; color: var(--color-text-muted); }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: .75rem; font-weight: 600; letter-spacing: .03em; }
.badge--red { background: rgba(192,0,29,.1); color: var(--color-red); }

.event-detail-content { padding-top: 4px; }
.event-detail-content .post-content { max-width: none; }
.event-detail-content__placeholder { color: var(--color-text-muted); font-style: italic; }

/* ─── LEGAL / IMPRESSUM ──────────────────────────────────── */
.legal-content {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 56px;
}
.legal-content h2 { font-size: 1.5rem; margin-bottom: 20px; }
.legal-content h3 { font-size: 1.1rem; margin-top: 32px; margin-bottom: 8px; color: var(--color-grey-dark); }
.legal-content p { color: var(--color-text-muted); margin-bottom: 12px; }
.legal-content a { color: var(--color-red); text-decoration: underline; }

/* ─── NO RESULTS ─────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 64px 24px;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-inline: auto;
}
.no-results p { margin-bottom: 24px; }

/* ─── PAGINATION ─────────────────────────────────────────── */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: .88rem;
  font-weight: 600;
  border: 1.5px solid var(--color-grey-light);
  color: var(--color-text);
  transition: all var(--transition);
}
.pagination .page-numbers:hover { border-color: var(--color-red); color: var(--color-red); }
.pagination .page-numbers.current { background: var(--color-red); border-color: var(--color-red); color: #fff; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 64px; }

  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .about-split__visual { order: -1; max-width: 480px; }
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
  .event-detail-wrap { grid-template-columns: 1fr; }
  .event-info-card { position: static; }
  .about-intro { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 48px; --header-h: 64px; }

  /* Hamburger einblenden */
  .hamburger { display: flex; }

  /* Nav-Placeholder im header auf mobile verstecken */
  .nav-placeholder { display: none; }

  /* ── Mobile Nav: Drawer von rechts ── */
  .primary-nav {
    /* Überschreibt Desktop-Styles */
    height: auto;
    padding-right: 0;
    align-items: flex-start;
    /* Drawer */
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: var(--color-dark-2);
    padding: 72px 0 40px;
    transform: translateX(110%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -8px 0 40px rgba(0,0,0,.6);
  }
  .primary-nav.is-open { transform: translateX(0); }

  /* Mobile-Only Titel-Zeile im Drawer */
  .mobile-nav-header {
    display: flex;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 64px;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .mobile-nav-header__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
  }

  /* Nav-Menü im Drawer: vertikal */
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding: 8px 16px;
  }
  .nav-menu li { width: 100%; }
  .nav-menu li a {
    padding: .8em 1em;
    font-size: 1rem;
    border-radius: var(--radius);
    width: 100%;
    box-sizing: border-box;
  }
  .nav-menu .nav-cta,
  .nav-menu li a.nav-cta {
    margin-left: 0;
    margin-top: 12px;
    justify-content: center;
  }

  /* ── BUG FIX: Slider-Pfeile nicht in den Hero-Text ── */
  .hero { height: 90vh; min-height: 500px; max-height: none; }

  /* Pfeile nach unten verschieben, weg vom Text */
  .hero-swiper .swiper-button-next,
  .hero-swiper .swiper-button-prev {
    top: auto;
    bottom: 56px;  /* über der Pagination */
    transform: none;
    width: 40px;
    height: 40px;
  }
  .hero-swiper .swiper-button-prev { left: 16px; }
  .hero-swiper .swiper-button-next { right: 16px; }
  .hero-swiper .swiper-button-next::after,
  .hero-swiper .swiper-button-prev::after { font-size: 14px; }

  /* Hero Content: genug Platz für Pfeile unten lassen */
  .hero-slide__content {
    padding-bottom: 120px;  /* Platz für Pfeile + Pagination */
  }

  .hero-slide__actions { flex-direction: column; gap: 10px; max-width: 260px; }
  .hero-slide__actions .btn { justify-content: center; }
  .hero-slide__title  { font-size: 1.8rem; }
  .hero-slide__subtitle { font-size: .95rem; }

  .cta-block { flex-direction: column; text-align: center; }
  .cta-block__text { margin-inline: auto; }

  .form-row--split { grid-template-columns: 1fr; gap: 0; }

  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .news-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 20px; }
}

@media (max-width: 480px) {
  .gallery-preview-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .page-hero { padding-block: 48px 40px; }
  .page-hero__title { font-size: 1.6rem; }
}

/* ─── LOGO (header + footer) ─────────────────────────────── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-logo__img {
  width: 52px; height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  color: #fff;
}
.site-logo__sub {
  font-size: .68rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Custom-logo WordPress — the_custom_logo() outputs <a class="custom-logo-link"><img class="custom-logo"> */
.site-logo .custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo .custom-logo-link img,
.site-logo .custom-logo { height: 52px; width: auto; object-fit: contain; }

/* Fallback logo link (text + icon side by side) */
.site-logo__link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Footer logo — fallback (<img class="footer-logo__img">) and custom WP logo */
.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 14px;
  text-decoration: none;
}
/* No filter here — logo keeps its original colors against the dark footer bg */
.footer-logo__img,
.footer-logo .custom-logo,
.footer-logo .custom-logo-link img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}
.footer-logo .custom-logo-link {
  display: inline-block;
}

/* ─── UTILITY ────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Smooth reveal animation */

/* WordPress alignment */
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--color-text-muted); text-align: center; margin-top: 6px; }

/* ─── WORDPRESS ADMIN BAR ────────────────────────────────── */
/* Wenn Admin-Bar sichtbar, Header nach unten verschieben */
.admin-bar .site-header,
.admin-bar .primary-nav {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header,
  .admin-bar .primary-nav {
    top: 46px;
  }
}

/* ─── KONTAKTSEITE ───────────────────────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

/* Formular */
.contact-form__honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.contact-form__row--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.contact-form__label { font-size: .88rem; font-weight: 600; color: var(--color-text); }
.contact-form__label span { color: var(--color-accent); }
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-grey-light);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  transition: border-color .2s;
  box-sizing: border-box;
}
.contact-form__input:focus,
.contact-form__textarea:focus { outline: none; border-color: var(--color-accent); }
.contact-form__textarea { resize: vertical; min-height: 140px; }
.contact-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-form__privacy { font-size: .8rem; color: var(--color-text-muted); margin: 0; }
.contact-form__privacy a { color: var(--color-accent); }
.contact-form__submit { display: inline-flex; align-items: center; gap: 10px; }
.contact-form__spinner {
  width: 18px; height: 18px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.contact-form__feedback {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-weight: 500;
}
.contact-form__feedback--success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.contact-form__feedback--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* Kontaktinfos (Sidebar) */
.contact-info__block { margin-bottom: 40px; }
.contact-info__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; color: var(--color-text); }
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: .93rem;
  color: var(--color-text-muted);
}
.contact-info__item a { color: var(--color-text); text-decoration: none; }
.contact-info__item a:hover { color: var(--color-accent); }
.contact-info__item address { font-style: normal; line-height: 1.6; }
.contact-info__icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-accent); margin-top: 2px; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-form__row--2col { grid-template-columns: 1fr; gap: 0; }
  .contact-form__footer { flex-direction: column; align-items: flex-start; }
}

/* ─── Events empty state ─────────────────────────────────── */
.events-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-muted);
  width: 100%;
}
.events-empty p { margin-bottom: 16px; }

/* ─── Abgelaufener Termin ─────────────────────────────────── */
.event-past-note {
  font-size: .85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(0,0,0,.04);
  border-radius: var(--radius-sm);
}
