/* ============================================
   EWA European Waterpark Association – Onepager
   Design System: Based on Figma CD Guidelines
   Closely matching Example.pdf layout
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors – exact from design system */
  --color-dark-blue: #29394e;
  --color-bright-blue: #0056a4;
  --color-sun-yellow: #f9bd7d;
  --color-light-blue: #b6dcf1;
  --color-off-white: #f3f3f2;
  --color-white: #ffffff;

  /* Derived */
  --color-bright-blue-hover: #004a8f;
  --color-dark-blue-hover: #1e2d3f;
  --color-text: #29394e;
  --color-text-light: #5a6a7a;
  --color-border: #d0d5da;

  /* Typography – Satoshi with system fallbacks */
  --font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Helvetica, Arial, sans-serif;

  /* Font sizes – exact Figma specs */
  --fs-hero: clamp(2.5rem, 5vw, 4.5rem);       /* 72px desktop */
  --fs-h1: clamp(1.75rem, 3.5vw, 3rem);        /* 48px desktop */
  --fs-h2: clamp(1.5rem, 2.5vw, 2.125rem);     /* 34px */
  --fs-h3: clamp(1.25rem, 2vw, 1.75rem);       /* 28px */
  --fs-h4: clamp(1rem, 1.3vw, 1.125rem);       /* 18px */
  --fs-h6: 0.875rem;                            /* 14px – category labels */
  --fs-body: 1rem;                               /* 16px */
  --fs-small: 0.875rem;                          /* 14px */
  --fs-nav: 0.875rem;                           /* 14px – nav items */

  /* Line heights – exact Figma specs */
  --lh-hero: 1;        /* 72/72 */
  --lh-h1: 1;          /* 48/48 */
  --lh-h2: 1.09;
  --lh-h3: 1.21;
  --lh-body: 1.375;    /* 16/22 */

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --content-width: 954px;  /* Figma: Textblock 954px */
  --nav-height: 60px;
  --top-bar-height: 32px;

  /* Gallery image height (used for background split calc) */
  --gallery-img-height: 240px;

  /* Border radius – minimal per Figma layout */
  --border-radius-btn: 50px;   /* Pill buttons only */
  --border-radius-sm: 4px;     /* Form inputs */
  --border-radius-card: 0px;   /* NO card rounding – matches layout */

  /* Transitions */
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Screen-reader only (visually hidden, accessible to assistive tech) */
.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;
}

/* Show only on mobile (≤768px) */
.mobile-only {
  display: none;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-bright-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-bright-blue-hover);
}

/* --- Typography – exact Figma specs --- */

/*
 * Hero line 1 "Der europäische Verband für": Satoshi Light 300, 72/72
 * Hero line 2 "Wasserparks & Thermen":       Satoshi Medium 500, 72/72, bright blue
 * Trenner:                                    #F9BD7D (Sun Yellow)
 * Category labels:                            Satoshi Medium 500, 14px, line-height 100%, letter-spacing 5px, uppercase
 * Content headlines (h2):                     Satoshi Regular 400, 48/48
 * Body text:                                  Satoshi Regular 400, 16/22
 * Nav items:                                  Satoshi Regular 400, 14px, line-height 100%, letter-spacing 3px, uppercase
 * CTA button text:                            Satoshi Regular 400, 16px, line-height 100%
 */

/*
 * WICHTIG: Damit weight 300 vs 500 sichtbar unterschiedlich wird,
 * muss Satoshi als Variable Font (300–900) oder in den Einzelschnitten
 * Light + Medium geladen sein. Die font-weight-Werte sind korrekt;
 * falls sie im Browser gleich aussehen, fehlen die WOFF2-Dateien
 * im /fonts/-Ordner. → fontshare.com/fonts/satoshi herunterladen.
 */
.hero-title {
  font-size: var(--fs-hero);
  font-weight: 300;             /* Satoshi Light – deutlich dünner als 400/500 */
  font-style: normal;
  line-height: var(--lh-hero);  /* 72/72 = 1 */
  color: var(--color-white);
  letter-spacing: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-title .accent {
  font-weight: 500;             /* Satoshi Medium – spürbar kräftiger als 300 */
  font-style: normal;
  color: var(--color-off-white);  /* Off-White #F3F3F2 – nicht Bright Blue */
  display: block;
}

.hero-title .accent::after {
  content: '';
  display: block;
  width: 75px;              /* Figma: 75px */
  height: 0;                /* Figma: height 0, border macht die Linie */
  border-bottom: 3px solid var(--color-sun-yellow);  /* Figma: border-width 3px, #F9BD7D */
  margin-top: 0.35em;
}

/* Content headline – Satoshi Regular 400, 48/48 */
h1, .h1 {
  font-size: var(--fs-h1);     /* 48px desktop */
  font-weight: 400;             /* Regular */
  line-height: var(--lh-h1);   /* 100% */
  letter-spacing: 0;
  color: var(--color-dark-blue);
}

h2, .h2 {
  font-size: var(--fs-h1);     /* 48px – Content-Headline ist H1-Größe laut Figma */
  font-weight: 400;             /* Regular */
  line-height: 1;               /* 100% */
  letter-spacing: 0;
  color: var(--color-dark-blue);
}

h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: 400;             /* Regular */
  line-height: var(--lh-h3);
  letter-spacing: 0;
  color: var(--color-dark-blue);
}

h4, .h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.28;
}

/* Category label – Satoshi Medium 500, 14px, letter-spacing 5px, uppercase */
.category-label {
  font-size: var(--fs-h6);     /* 14px */
  font-weight: 500;             /* Medium */
  letter-spacing: 5px;          /* Exakt 5px aus Figma */
  text-transform: uppercase;
  color: var(--color-bright-blue);
  margin-bottom: var(--space-xs);
  display: block;
  line-height: 1;               /* 100% */
}

/* Body text – Satoshi Regular 400, 16/22 */
p {
  font-size: var(--fs-body);   /* 16px */
  font-weight: 400;             /* Regular */
  line-height: 1.375;           /* 22/16 = 1.375 */
  letter-spacing: 0;
  color: var(--color-text-light);
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Narrower content column for text-heavy sections (matches layout) */
.container--narrow {
  max-width: var(--content-width);
}

.section {
  padding: 100px 0 0 0;
}

/* Same-bg sections: only the first keeps its top-padding */
.section--dark + .section--dark {
  padding-top: 0;
}

.section--dark {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
}

.section--dark p {
  color: var(--color-light-blue);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section--dark .category-label {
  color: var(--color-sun-yellow);
}

.section--light {
  background-color: var(--color-off-white);
}

.section--white {
  background-color: var(--color-off-white);  /* Off-White #F3F3F2, kein reines Weiß */
}

/* =============================================
   TOP BAR – Bright Blue #0056A4 per Figma
   ============================================= */
.top-bar {
  background: var(--color-bright-blue);  /* #0056A4 – Figma-Vorgabe */
  height: var(--top-bar-height);
  font-size: var(--fs-small);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.lang-switch {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.lang-switch a {
  color: var(--color-light-blue);
  font-size: 0.8125rem;
  font-weight: 700;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.lang-switch a:hover,
.lang-switch a.active {
  opacity: 1;
  color: var(--color-white);
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-white);
  font-size: 0.8125rem;
}

.top-bar__right a {
  color: var(--color-white);
  opacity: 0.7;
}

.top-bar__right a:hover {
  opacity: 1;
  color: var(--color-white);
}

/* =============================================
   NAVIGATION – DARK BLUE background (matches layout!)
   Logo white, menu items white, on dark blue
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark-blue);
  height: var(--nav-height);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Nav links LEFT – Satoshi Regular 400, 14px, letter-spacing 3px, uppercase */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-size: var(--fs-nav);    /* 14px */
  font-weight: 400;             /* Regular – Figma-Vorgabe */
  text-transform: uppercase;
  letter-spacing: 3px;           /* Exakt 3px aus Figma */
  line-height: 1;               /* 100% */
  color: var(--color-white);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-sun-yellow);
}

/* Right side: CTA + Logo */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Nav CTA button – Satoshi Regular 400, 16px, line-height 100% */
.nav-cta .btn {
  font-size: 1rem;              /* 16px – Figma */
  font-weight: 400;             /* Regular */
  letter-spacing: 0;
  line-height: 1;               /* 100% */
  padding: 0.6em 1.6em;
  min-height: auto;
  border-color: var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.nav-cta .btn:hover {
  background: var(--color-white);
  color: var(--color-dark-blue) !important;
}

/* Logo – white (off-white fill) on dark nav */
.nav-logo svg {
  height: 32px;
  width: auto;
}

/* Hamburger – white bars on dark bg */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   BUTTONS – pill shape (border-radius-btn)
   Matching design system: Primary (filled blue),
   Alternative/Secondary (outlined dark)
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-family);
  font-size: 1rem;              /* 16px – Figma */
  font-weight: 400;             /* Regular – Figma */
  letter-spacing: 0;
  line-height: 1;               /* 100% */
  padding: 0.75em 2em;
  border-radius: var(--border-radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
}

.btn--primary {
  background: var(--color-bright-blue);
  color: var(--color-white);
  border-color: var(--color-bright-blue);
}

.btn--primary:hover {
  background: var(--color-bright-blue-hover);
  border-color: var(--color-bright-blue-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 86, 164, 0.25);
}

/* "Alternative" button from design system – dark outlined */
.btn--secondary {
  background: transparent;
  color: var(--color-dark-blue);
  border-color: var(--color-dark-blue);
}

.btn--secondary:hover {
  background: var(--color-dark-blue);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-bright-blue);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-off-white);
  border-color: var(--color-off-white);
  color: var(--color-bright-blue-hover);
  transform: translateY(-1px);
}

.btn--large {
  font-size: var(--fs-body);
  padding: 0.875em 2.5em;
  min-height: 56px;
}

.btn--icon::after {
  content: '→';
  font-size: 1.2em;
  transition: transform var(--transition-fast);
}

.btn--icon:hover::after {
  transform: translateX(4px);
}

/* =============================================
   HERO SECTION – Full-width image,
   left-aligned text, matching layout
   ============================================= */
.hero {
  position: relative;
  min-height: max(65vh, 550px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark-blue);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Hero-Slideshow: alle Slides absolut übereinander */
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
}

/* Paar (jetzt #1): Desktop zentriert */
.hero__slide--1 { object-position: center center; }
/* Kind (jetzt #2): Motiv nach rechts, unten zeigen */
.hero__slide--2 { object-position: 30% 70%; }

/* Erstes Bild sofort sichtbar (bevor JS übernimmt) */
.hero__slide--active {
  opacity: 0.85;
}

/* Alle Bilder im aktiven Zustand – mehr Leuchtkraft als vorher (0.7→0.85) */
.hero__slide[data-active] {
  opacity: 0.85;
}

/* Gradient: links dezent abgedunkelt (Text lesbar), rechts Bild voll sichtbar */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(41, 57, 78, 0.6) 0%,
    rgba(41, 57, 78, 0.35) 40%,
    rgba(41, 57, 78, 0.08) 65%,
    transparent 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: var(--space-3xl) 0;
}

.hero__claim {
  font-size: var(--fs-h4);
  font-weight: 500;
  color: var(--color-sun-yellow);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero__subtitle {
  font-size: var(--fs-h4);           /* 18px statt 16px – besser lesbar auf Foto-Hintergrund */
  font-weight: 500;                  /* Medium statt Regular – kräftiger auf Foto-Hintergrund */
  color: rgba(255, 255, 255, 0.95);
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero__cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* =============================================
   TEXT SECTIONS – 954px container, centered on page
   Category + Headline left-aligned within the block,
   body text also left-aligned within the centered block.
   ============================================= */
.text-section {
  max-width: var(--content-width);  /* 954px Figma */
  margin-left: auto;
  margin-right: auto;
}

.text-section p {
  margin-bottom: var(--space-sm);
  font-weight: 400;   /* Regular */
}

.text-section h2 {
  margin-bottom: var(--space-md);
}

/* Mission box – highlighted with left border accent */
.mission-box {
  max-width: var(--content-width);
  margin: var(--space-xl) auto 0;
  padding: var(--space-lg);
  background: var(--color-white);
  border-left: 4px solid var(--color-bright-blue);
}

.mission-box h3 {
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--color-bright-blue);
  margin-bottom: var(--space-sm);
}

.mission-box p {
  color: var(--color-text);
}

.mission-claim {
  font-style: normal;
  font-weight: 700;
  font-size: var(--fs-h4);
  color: var(--color-bright-blue) !important;
  margin-top: var(--space-sm);
  margin-bottom: 0;
}

/* Team photo – full width with caption */
.team-photo {
  max-width: var(--content-width);
  margin: var(--space-xl) auto 0;
}

.team-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.team-photo figcaption {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin-top: var(--space-xs);
  text-align: center;
}

/* About stats row – centered within content-width */
.about-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: var(--fs-h1);
  font-weight: 900;
  color: var(--color-bright-blue);
  line-height: 1;
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin-top: 0.25em;
}

/* =============================================
   ACTIVITIES – 4 cards, minimal rounding
   ============================================= */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.activity-card {
  background: var(--color-white);
  border-radius: var(--border-radius-card);
  padding: var(--space-lg);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(41, 57, 78, 0.1);
}

.activity-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  background: var(--color-light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
  color: var(--color-dark-blue);
}

.activity-card p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

/* =============================================
   BENEFITS – on dark bg
   ============================================= */
.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.benefit-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.benefit-title {
  font-size: var(--fs-h4);
  font-weight: 500;
}

.benefit-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-bright-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.benefit-item__icon svg {
  width: 14px;
  height: 14px;
  fill: var(--color-white);
}

/* =============================================
   GALLERY – Split background: off-white top / dark blue bottom
   Images sit on light area, captions on dark area in white boxes
   ============================================= */

/* Gallery section: dark blue base with off-white overlay on top half */
.gallery-section {
  position: relative;
  background: var(--color-dark-blue);
  overflow: hidden;
  padding-bottom: 100px; /* Dots + Abstand zu Aktivitäten (deren top ist 0 via dark+dark) */
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* section-padding-top (100px) + image-height = exact split point. */
  height: calc(100px + var(--gallery-img-height));
  background: var(--color-off-white);
  z-index: 0;
}

.gallery-section .container {
  position: relative;
  z-index: 1;
}

/* Slider wrapper */
.gallery-slider {
  position: relative;
}

.gallery-page {
  display: none;
}

.gallery-page.active {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gallery-card {
  overflow: hidden;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  height: 310px;
}

.gallery-card img {
  width: 100%;
  height: var(--gallery-img-height);
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.gallery-card:hover img {
  transform: scale(1.03);
}

/* Caption: White BG, dunkler Text – gleiche Höhe durch flex-grow */
.gallery-card__caption {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  color: var(--color-dark-blue);
  font-size: var(--fs-small);
  font-weight: 400;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  hyphens: none;
  -webkit-hyphens: none;
  -apple-system-secondary-color: none; /* iOS: prevent data detector styling */
}

/* Prevent Safari/WebKit Data Detectors from underlining detected locations in captions */
.gallery-card__caption a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: inherit !important;
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

/* Gallery arrows (desktop only) */
.gallery-arrow {
  position: absolute;
  top: 155px;                     /* Vertikal mittig bei 310px Gesamthöhe */
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-dark-blue);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), opacity var(--transition-fast);
  z-index: 2;
  opacity: 0.9;
}

.gallery-arrow:hover {
  background: var(--color-bright-blue);
  opacity: 1;
}

.gallery-arrow--prev { left: -56px; }
.gallery-arrow--next { right: -56px; }

/* Slider dots on dark area */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  padding: 0;
}

.slider-dot.active {
  background: var(--color-white);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
#stimmen {
  background: var(--color-dark-blue) !important;
}

/* Testimonial cards: override section--dark text colors inside white cards */
.testimonial-card p,
.testimonial-card .testimonial-card__text {
  color: var(--color-text);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.testimonial-card {
  background: var(--color-white);
  padding: var(--space-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Kreisfoto */
.testimonial-card__photo {
  width: 250px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-md);
}

.testimonial-card__photo--placeholder {
  background: var(--color-light-blue);
  display: block;
}

/* Anführungszeichen: näher am Text */
.testimonial-card__quote {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-bright-blue);
  line-height: 0.8;
  margin-bottom: var(--space-xs);
}

/* Altes ::before ausschalten (jetzt per HTML-Element) */
.testimonial-card::before {
  display: none;
}

.testimonial-card__text {
  font-style: italic;
  margin-bottom: var(--space-md);
  font-size: var(--fs-body);
  color: var(--color-text);
  line-height: 1.6;
  text-align: center;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: var(--space-sm);
}

.testimonial-card__name {
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--color-dark-blue);
}

.testimonial-card__role {
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

/* =============================================
   VIDEO SECTION
   ============================================= */
.video-section {
  position: relative;
  background: var(--color-dark-blue);
  padding-top: 100px !important; /* keep spacing from Aktivitäten despite dark+dark collapse */
}

.video-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(41, 57, 78, 0.4);
  cursor: pointer;
  transition: background var(--transition);
}

.video-overlay:hover {
  background: rgba(41, 57, 78, 0.2);
}

.video-overlay.hidden {
  display: none;
}

.play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.video-overlay:hover .play-btn {
  transform: scale(1.1);
}

.play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--color-bright-blue);
  margin-left: 4px;
}

/* =============================================
   MEMBERSHIP SECTION
   ============================================= */
.membership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.membership-info h3 {
  margin-bottom: var(--space-sm);
}

.membership-info p {
  margin-bottom: var(--space-md);
}

.fee-box {
  background: var(--color-white);
  padding: var(--space-lg);
  border-left: 4px solid var(--color-bright-blue);
  margin: var(--space-md) 0;
}

.fee-box p {
  margin: 0;
  color: var(--color-text);
}

.fee-box .fee-note {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin-top: var(--space-xs);
}

/* Document links with decorative dot */
.doc-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.doc-link__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-bright-blue);
  flex-shrink: 0;
}

.doc-link a {
  color: var(--color-bright-blue);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.doc-link a:hover {
  color: var(--color-dark-blue);
  text-decoration: underline;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form {
  background: var(--color-white);
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: 0.4em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75em 1em;
  font-family: var(--font-family);
  font-size: var(--fs-body);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-bright-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 164, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-border);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 0.2em;
  accent-color: var(--color-bright-blue);
}

.form-checkbox label {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* =============================================
   CONTACT INFO ITEMS
   ============================================= */
.contact-info-item {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-md);
}

.contact-info-item p {
  margin-bottom: 0;
}

/* Kontakt-Info stripe: everything top-aligned */
.contact-stripe-grid .contact-info-item {
  align-items: flex-start !important;
}

.contact-stripe-grid .contact-info-item__icon {
  margin-top: 4px;
}

.contact-info-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-bright-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   SOCIAL MEDIA LINKS
   ============================================= */
.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.social-link:hover {
  background: var(--color-bright-blue);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--color-dark-blue);
  color: var(--color-white);
  padding: 38px 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-md);
}

/* Offset footer content to align with Kontakt-Info text (40px icon + 16px gap) */
.footer-grid > div {
  padding-left: 56px;
}

.footer h4 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-h4);
}

.footer p,
.footer a {
  color: var(--color-light-blue);
  font-size: var(--fs-small);
}

.footer a:hover {
  color: var(--color-white);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-light-blue);
  font-size: var(--fs-small);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom p {
  font-size: var(--fs-small);
  color: rgba(182, 220, 241, 0.6);
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  font-size: var(--fs-small);
  color: rgba(182, 220, 241, 0.6);
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in-up.visible {
  animation: fadeInUp 0.5s ease forwards;
}

.fade-in-up.visible:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up.visible:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up.visible:nth-child(4) { animation-delay: 0.2s; }

/* =============================================
   RESPONSIVE – Tablet
   ============================================= */
@media (max-width: 1024px) {
  .membership-grid {
    grid-template-columns: 1fr;
  }

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

  .benefits-list {
    grid-template-columns: 1fr;
  }

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

  /* Tablet Hero-Ausschnitte (iPad portrait ~834px) */
  .hero__slide--1 { object-position: 45% center; }   /* Paar: junge Dame etwas weiter rechts im Viewport */
  .hero__slide--2 { object-position: 50% 70%; }      /* Kind: zentrierter als Desktop-30% */
  .hero__slide--3 { object-position: 55% center; }   /* Young Professionals: Gruppe leicht rechts von Mitte */
}

/* =============================================
   RESPONSIVE – Mobile
   ============================================= */
@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
    --gallery-img-height: 200px;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  /* Mobile Navigation – slides out from dark bg */
  .nav-links {
    display: none;
    position: fixed;
    top: calc(var(--nav-height) + var(--top-bar-height));
    left: 0;
    right: 0;
    background: var(--color-dark-blue);
    flex-direction: column;
    padding: var(--space-md);
    gap: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - var(--nav-height) - var(--top-bar-height));
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: var(--fs-body);
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-cta .btn {
    display: none;
  }

  .mobile-only {
    display: list-item;
  }

  /* Hero */
  .hero {
    min-height: max(55vh, 700px);
  }

  /* Mobile Hero-Ausschnitte pro Slide */
  .hero__slide--1 { object-position: 30% center; }   /* Paar: Frau ist links im Bild (~20-40%) */
  .hero__slide--2 { object-position: 60% center; }   /* Kind: höherer Wert = mehr rechten Bildbereich zeigen = Kind zentrierter */
  .hero__slide--3 { object-position: 66% center; }   /* Young Professionals: Mann sichtbar, nicht komplett unter Text */

  /* Content füllt volle Hero-Höhe, CTAs rutschen nach unten */
  .hero__content {
    display: flex;
    flex-direction: column;
    min-height: max(55vh, 700px);
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .hero__cta {
    flex-direction: column;
    margin-top: auto;            /* Schaltflächen an den unteren Rand drücken */
  }

  .hero__cta .btn {
    width: 100%;
  }

  /* Gallery – komplett auf dunklem BG, kein Split */
  .gallery-section::before {
    display: none;
  }

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

  .gallery-card img {
    height: var(--gallery-img-height);
  }

  /* Pfeile auf Mobil ausblenden */
  .gallery-arrow {
    display: none !important;
  }

  /* Testimonials */
  .testimonials {
    grid-template-columns: 1fr;
  }

  /* Activities */
  .activities-grid {
    grid-template-columns: 1fr;
  }

  /* Team photo: more spacing above on mobile */
  .team-photo {
    margin-top: 50px;
  }

  /* Stats: centered showcase on mobile */
  .about-stats {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
  }

  .stat-item {
    text-align: center;
  }

  .stat-number {
    font-size: 3.5rem;
  }

  /* Mobile spacing: sections before spacers lose bottom padding,
     spacers are reduced so that spacer + next section top-padding = ~100px */
  #aktivitaeten,
  #imagefilm,
  #mehrwert,
  #mitgliedschaft {
    padding-bottom: 0 !important;
  }

  /* Stimmen: no spacer, section padding provides the gap (gradient extends) */
  #stimmen {
    padding-bottom: 36px !important; /* 36 + 64 (Mitgliedschaft top-padding) = 100 */
  }

  /* Video: reduce top spacing on mobile (Aktivitäten flows directly into it) */
  .video-section {
    padding-top: 50px !important;
  }

  .section-spacer {
    height: 36px !important; /* 36 + 64 (section top-padding) = 100 */
  }

  /* Kontakt-Info stripe has 50px inline top-padding, so adjust its spacer */
  #mitgliedschaft + .section-spacer {
    height: 50px !important; /* 50 + 50 (kontakt stripe top-padding) = 100 */
  }

  /* Gallery: mobile card height = 200px image + 70px caption = 270px */
  .gallery-card {
    height: 270px;
  }

  .gallery-card__caption {
    min-height: 70px;
    max-height: 70px;
    display: flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
  }

  /* Mitgliedschaft: reduce inner gap between intro and membership-grid */
  .membership-grid.mt-xl {
    margin-top: var(--space-lg) !important;
  }

  /* Kontakt-Info Stripe: reduce gap between blocks on mobile */
  .section--dark > .container > [style*="display: grid"] {
    gap: 26px !important;
  }

  .section--dark > .container > [style*="display: grid"] .contact-info-item {
    margin-bottom: 0;
  }

  /* Footer: Navigation + Rechtliches nebeneinander, no icon offset */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div {
    padding-left: 0;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

}

/* =============================================
   RESPONSIVE – Small mobile
   ============================================= */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  .navbar, .top-bar, .nav-hamburger,
  .video-overlay, .social-links {
    display: none;
  }

  .hero {
    min-height: auto;
    background: var(--color-dark-blue) !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
}
