/* ==========================================================================
   Soatsara Mandoky – Stylesheet
   Design-Tokens: Madagaskar-Palette (Weiß / Rot #FC3D32 / Grün #007E3A),
   Typografie: Playfair Display (Headings) + Inter (Body), Mobile First.
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben (Flagge Madagaskars + Kontrast-Varianten für Text, WCAG AA) */
  --white: #FFFFFF;
  /* Konstantes Weiß für Schrift/Icons AUF Bildern & farbigen Flächen –
     bleibt in BEIDEN Themes weiß (--white kippt im Dark Mode auf dunkel). */
  --on-media: #FFFFFF;
  --offwhite: #FCFAF7;
  --tint-green: #F1F8F3;
  --red: #FC3D32;
  --red-dark: #C72C23;
  --green: #007E3A;
  --green-dark: #00602C;
  /* Logo-Lila (aus logo.JPG gesampelt) – Markenakzent für Navbar & Schriftzug */
  --purple: #5A2C74;
  --purple-ink: #5A2C74;   /* Lila als Textfarbe (im Dark Mode aufgehellt) */
  --purple-light: #D8C3F0;
  --tint-purple: #F6F1FA;
  --green-hover: #00602C;
  --ink: #21272B;
  --ink-soft: #4C555B;
  --line: #E8E4DE;
  --nav-bg: rgba(255, 255, 255, 0.92);

  /* Typografie */
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  /* Spacing (8px-Raster) & Radius */
  --space-1: 8px;  --space-2: 16px; --space-3: 24px;
  --space-4: 32px; --space-6: 48px; --space-8: 64px; --space-12: 96px;
  --radius-s: 12px; --radius-m: 18px; --radius-l: 24px; --radius-pill: 999px;

  /* Elevation-Skala (weiche Schatten) */
  --shadow-1: 0 1px 3px rgba(33, 39, 43, 0.06), 0 4px 14px rgba(33, 39, 43, 0.06);
  --shadow-2: 0 4px 10px rgba(33, 39, 43, 0.07), 0 12px 32px rgba(33, 39, 43, 0.10);
  --shadow-3: 0 8px 20px rgba(33, 39, 43, 0.10), 0 24px 56px rgba(33, 39, 43, 0.16);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.8, 0.36, 1);
  --dur-fast: 180ms;
  --dur-med: 280ms;

  --nav-height: 72px;
}

/* ---------- Dark Mode: Token-Overrides (hellere Tonwerte für Akzente,
   Kontraste separat geprüft; Flächen leicht lila getönt) ---------- */
[data-theme="dark"] {
  --white: #18141F;
  --offwhite: #211B2B;
  --tint-green: #1D2E24;
  --tint-purple: #2C2338;
  --red-dark: #FF837B;
  --green: #0B7A40;
  --green-dark: #63CE97;
  --green-hover: #0A6B39;
  --purple-ink: #C9A9E6;
  --ink: #EFE9F5;
  --ink-soft: #B5ABC2;
  --line: #383044;
  --nav-bg: rgba(24, 20, 31, 0.9);

  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 4px 10px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 8px 20px rgba(0, 0, 0, 0.5), 0 24px 56px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] body { background: #120E18; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-2); }

a { color: var(--green-dark); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2 * var(--space-3), 1160px);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed; top: -100px; left: var(--space-2);
  z-index: 200;
  padding: 12px 20px;
  background: var(--green); color: #FFFFFF;
  border-radius: var(--radius-s);
  text-decoration: none; font-weight: 600;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--space-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border: 0; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: var(--red); color: var(--on-media);
  box-shadow: 0 10px 26px rgba(252, 61, 50, 0.35);
}
.btn--primary:hover { background: var(--red-dark); box-shadow: 0 14px 30px rgba(199, 44, 35, 0.4); }

.btn--ghost {
  background: transparent; color: var(--green-dark);
  box-shadow: inset 0 0 0 2px var(--green);
}
.btn--ghost:hover { background: var(--green); color: #FFFFFF; }

.btn--green {
  background: var(--green); color: #FFFFFF;
  box-shadow: var(--shadow-1);
}
.btn--green:hover { background: var(--green-hover); }

.btn--light {
  background: var(--on-media); color: var(--purple);
  box-shadow: var(--shadow-1);
}
.btn--light:hover { box-shadow: var(--shadow-2); }

.btn--card {
  background: var(--tint-green); color: var(--green-dark);
  width: 100%;
}
.btn--card:hover { background: var(--green); color: #FFFFFF; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: var(--offwhite);
  transition: opacity 420ms var(--ease), visibility 420ms;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__pot { position: relative; text-align: center; }
.preloader__pot img { border-radius: 50%; box-shadow: var(--shadow-2); margin-inline: auto; }
.preloader__steam {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px;
}
.preloader__steam span {
  width: 5px; height: 18px; border-radius: var(--radius-pill);
  background: var(--green);
  opacity: 0;
  animation: steam 1.2s ease-in-out infinite;
}
.preloader__steam span:nth-child(2) { animation-delay: 0.25s; background: var(--red); }
.preloader__steam span:nth-child(3) { animation-delay: 0.5s; }
@keyframes steam {
  0%   { opacity: 0; transform: translateY(6px) scaleY(0.7); }
  45%  { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-8px) scaleY(1.1); }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: box-shadow var(--dur-med) var(--ease);
}
.navbar.is-scrolled { box-shadow: var(--shadow-1); }

.navbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  height: 100%;
}

.navbar__brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.navbar__logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.navbar__name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em;
}
.navbar__name em { font-style: italic; color: var(--purple-ink); }

.navbar__list {
  display: flex; gap: var(--space-1);
  list-style: none; margin: 0; padding: 0;
}
.navbar__link {
  display: inline-block;
  padding: 12px 14px;
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
  border-radius: var(--radius-s);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.navbar__link:hover { color: var(--ink); background: var(--tint-purple); }
.navbar__link.is-active { color: var(--purple-ink); }
.navbar__link.is-active::after {
  content: ""; display: block;
  margin: 2px auto 0; width: 18px; height: 3px;
  border-radius: var(--radius-pill);
  background: var(--purple);
}

.navbar__actions { display: flex; align-items: center; gap: var(--space-2); }

/* Sprachumschalter als Dropdown */
.lang-select { position: relative; }
.lang-select__toggle {
  display: flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--offwhite); color: var(--ink);
  font: 600 0.9rem var(--font-body); letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.lang-select__toggle:hover { background: var(--tint-purple); transform: translateY(-1px); }
.lang-select__globe { width: 18px; height: 18px; color: var(--purple-ink); flex: 0 0 auto; }
.lang-select__current { line-height: 1; }
.lang-select__chevron {
  width: 15px; height: 15px; color: var(--ink-soft); flex: 0 0 auto;
  transition: transform var(--dur-fast) var(--ease);
}
.lang-select__toggle[aria-expanded="true"] .lang-select__chevron { transform: rotate(180deg); }

.lang-select__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 172px;
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 120;
}
.lang-select__menu.is-open { opacity: 1; visibility: visible; transform: none; }
.lang-select__option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 44px; padding: 8px 10px;
  border: 0; border-radius: var(--radius-s);
  background: transparent; color: var(--ink);
  font: 500 0.95rem var(--font-body); text-align: left; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lang-select__option:hover { background: var(--tint-purple); }
.lang-select__code {
  flex: 0 0 auto; width: 28px;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.lang-select__name { flex: 1; }
.lang-select__check { width: 18px; height: 18px; color: var(--purple-ink); opacity: 0; flex: 0 0 auto; }
.lang-select__option[aria-checked="true"] { color: var(--purple-ink); }
.lang-select__option[aria-checked="true"] .lang-select__code { color: var(--purple-ink); }
.lang-select__option[aria-checked="true"] .lang-select__check { opacity: 1; }

/* Hell/Dunkel-Umschalter */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--offwhite); color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.theme-toggle:hover { background: var(--tint-purple); transform: translateY(-1px); }
.theme-toggle svg { width: 20px; height: 20px; }
html:not([data-theme="dark"]) .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

/* Burger (nur mobil sichtbar) */
.navbar__burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px;
  padding: 12px;
  background: transparent; border: 0; border-radius: var(--radius-s);
  cursor: pointer;
}
.navbar__burger span {
  display: block; height: 2.5px; width: 100%;
  border-radius: var(--radius-pill);
  background: var(--ink);
  transition: transform var(--dur-med) var(--ease), opacity var(--dur-fast) var(--ease);
}
.navbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Sektionen (allgemein) ---------- */
.section { padding-block: var(--space-8); }
.section--tinted { background: var(--offwhite); }

.section__kicker {
  display: inline-block;
  margin-bottom: var(--space-1);
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red-dark);
}
.section__title { font-size: clamp(1.75rem, 4.5vw, 2.6rem); }
.section__intro { color: var(--ink-soft); max-width: 56ch; }
.section__head { text-align: center; margin-bottom: var(--space-6); }
.section__head .section__intro { margin-inline: auto; }

/* Scroll-Reveal (JS setzt .is-visible; ohne JS bleibt alles sichtbar) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  color: var(--on-media);
}
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide {
  opacity: 0;
  transition: opacity 1200ms ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img, .hero__slide picture {
  width: 100%; height: 100%;
}
.hero__slide img { object-fit: cover; }
.hero__slide.is-active img { animation: hero-zoom 7s ease-out forwards; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero__overlay {
  position: absolute; inset: 0;
  /* Radiale Abdunklung hinter dem Text + vertikaler Verlauf – hält den
     hellen wie dunklen Slide lesbar, unabhängig vom Bildmotiv */
  background:
    radial-gradient(ellipse 82% 60% at 50% 52%, rgba(8, 10, 14, 0.66) 0%, rgba(8, 10, 14, 0.28) 62%, rgba(8, 10, 14, 0) 82%),
    linear-gradient(180deg, rgba(12, 16, 18, 0.6) 0%, rgba(12, 16, 18, 0.42) 42%, rgba(12, 16, 18, 0.68) 100%);
}

.hero__content { position: relative; z-index: 2; text-align: center; padding-block: var(--space-12); }
.hero__kicker {
  font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  font-size: clamp(0.72rem, 2.4vw, 0.9rem);
  margin-bottom: var(--space-2);
  color: #FFE1DE;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.hero__title {
  font-size: clamp(2.6rem, 9vw, 4.8rem);
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 28px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-2);
}
.hero__title span { font-style: italic; font-weight: 600; color: #E7D3FA; }
.hero__slogan {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  max-width: 34ch; margin: 0 auto var(--space-4);
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.6);
}
/* Weißer Button (in beiden Themes weiß) mit roter Markenschrift – Red-Dark
   erfüllt auf Weiß den WCAG-AA-Kontrast; überschreibt .btn--primary. */
.hero__cta {
  font-size: 1.2rem; font-weight: 700; padding: 14px 38px;
  background: var(--on-media); color: var(--red-dark);
  box-shadow: 0 12px 30px rgba(15, 20, 22, 0.28);
}
.hero__cta:hover {
  background: var(--on-media); color: var(--red);
  box-shadow: 0 16px 38px rgba(15, 20, 22, 0.36);
}

.hero__dots {
  position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; gap: 10px;
}
.hero__dot {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; padding: 0;
}
.hero__dot::after {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.hero__dot.is-active::after { background: var(--on-media); transform: scale(1.5); }

.hero__scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  animation: bob 2.2s ease-in-out infinite;
}
.hero__scroll-hint svg { width: 26px; height: 26px; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Über uns ---------- */
.about__grid {
  display: grid; gap: var(--space-6);
  align-items: center;
}
.about__media { position: relative; max-width: 440px; margin-inline: auto; }
.about__media img:first-of-type,
.about__media picture img {
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
}
.about__badge {
  position: absolute; right: -14px; bottom: -18px;
  width: 92px; height: 92px;
  border-radius: 50%; overflow: hidden;
  border: 4px solid var(--on-media);
  box-shadow: var(--shadow-2);
}
.about__badge img { width: 100%; height: 100%; object-fit: cover; }
.about__text .section__title::after {
  content: "";
  display: block;
  width: 74px; height: 4px;
  margin-top: 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--red) 0 50%, var(--green) 50% 100%);
}
.about__text p:not(.section__kicker) { color: var(--ink-soft); }
.about__text .btn { margin-top: var(--space-2); }

/* ---------- Galerie ---------- */
.gallery__grid {
  columns: 1;
  column-gap: var(--space-3);
}
.gallery__item {
  break-inside: avoid;
  margin: 0 0 var(--space-3);
}
.gallery__link {
  position: relative; display: block;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.gallery__link:hover { box-shadow: var(--shadow-3); transform: translateY(-4px); }
.gallery__link img {
  width: 100%;
  transition: transform 480ms var(--ease);
}
.gallery__link:hover img, .gallery__link:focus-visible img { transform: scale(1.05); }
.gallery__caption {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(15, 20, 22, 0.72));
  color: var(--on-media);
  font-size: 0.95rem; font-weight: 500;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.gallery__link:hover .gallery__caption,
.gallery__link:focus-visible .gallery__caption { opacity: 1; transform: none; }
/* Auf Touch-Geräten (kein Hover) Caption immer zeigen – keine Hover-only-Info */
@media (hover: none) {
  .gallery__caption { opacity: 1; transform: none; padding-top: 30px; }
}

/* ---------- Social Cards ---------- */
.social__grid {
  display: grid; gap: var(--space-3);
  grid-template-columns: 1fr;
}
.social-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: var(--space-4) var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  text-align: center;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.social-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.social-card__icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px;
  margin-bottom: var(--space-1);
  color: var(--on-media);
}
.social-card__icon svg { width: 30px; height: 30px; }
.social-card--instagram .social-card__icon { background: radial-gradient(circle at 30% 110%, #FDB443 0%, #F75E44 45%, #D6249F 70%, #285AEB 100%); }
.social-card--tiktok .social-card__icon { background: #101014; }
.social-card--youtube .social-card__icon { background: #FF0000; }
.social-card--facebook .social-card__icon { background: #1877F2; }
.social-card__platform { font-size: 1.25rem; margin: 0; }
.social-card__handle { color: var(--ink-soft); margin: 0 0 var(--space-2); font-size: 0.95rem; overflow-wrap: anywhere; }
.social-card .btn { margin-top: auto; }

/* ---------- Videos / YouTube-Banner ---------- */
.videos__banner {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-l);
  background: linear-gradient(120deg, #421F56, var(--purple) 55%, #6E3A8C);
  color: var(--on-media);
  box-shadow: var(--shadow-2);
}
.videos__icon {
  width: 64px; height: 64px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 20px;
}
.videos__icon svg { width: 32px; height: 32px; }
.videos__title { color: var(--on-media); font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin-bottom: 6px; }
.videos__text p { margin: 0; color: rgba(255, 255, 255, 0.92); }
.videos__text { flex: 1; }

.videos__grid {
  display: grid; gap: var(--space-3);
  grid-template-columns: 1fr;
  margin-top: var(--space-3);
}
.videos__grid:empty { display: none; }
.video-embed {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius-m); overflow: hidden;
  box-shadow: var(--shadow-1);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Kontakt ---------- */
.contact__inner { text-align: center; }
.contact__inner .section__intro { margin-inline: auto; }
.contact__icons {
  display: flex; justify-content: center; gap: var(--space-2);
  list-style: none; margin: var(--space-4) 0 0; padding: 0;
}
.contact__icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--tint-purple); color: var(--purple-ink);
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.contact__icon svg { width: 24px; height: 24px; }
.contact__icon:hover { background: var(--purple); color: #FFFFFF; transform: translateY(-4px); }

/* ---------- Footer ---------- */
.footer {
  background: #3A1B4B;
  background: linear-gradient(180deg, #3A1B4B, #2A1338);
  color: rgba(255, 255, 255, 0.88);
  padding-block: var(--space-6) var(--space-4);
}
.footer__inner {
  display: grid; gap: var(--space-4);
  justify-items: center; text-align: center;
}
.footer__brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--on-media); text-decoration: none;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
}
.footer__brand em { font-style: italic; color: var(--purple-light); }
.footer__brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1) var(--space-3); }
.footer__nav a {
  color: rgba(255, 255, 255, 0.85); text-decoration: none;
  padding: 8px 4px; font-weight: 500;
}
.footer__nav a:hover { color: var(--on-media); text-decoration: underline; text-underline-offset: 4px; }
.footer__social { display: flex; gap: var(--space-2); }
.footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--on-media); background: rgba(255, 255, 255, 0.12);
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.footer__social a:hover { background: var(--red); transform: translateY(-3px); }
.footer__social svg { width: 20px; height: 20px; }
.footer__meta { font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); }
.footer__meta p { margin: 4px 0; }
.footer__legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline; text-underline-offset: 4px;
}
.footer__legal a:hover { color: #FFFFFF; }
.footer__love { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.footer__heart {
  width: 16px; height: 16px; color: var(--red);
  animation: heartbeat 1.8s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.22); }
  24% { transform: scale(1); }
}

/* ---------- Scroll-to-Top ---------- */
.to-top {
  position: fixed; right: var(--space-3); bottom: var(--space-3); z-index: 90;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: var(--purple); color: var(--on-media);
  box-shadow: var(--shadow-2);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease),
              visibility var(--dur-med), background-color var(--dur-fast) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #421F56; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 250;
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 14, 16, 0.9);
  animation: fade-in 240ms ease;
}
.lightbox__figure {
  position: relative; z-index: 1;
  margin: 0; padding: 0;
  max-width: min(92vw, 1100px); max-height: 86svh;
  display: flex; flex-direction: column; align-items: center;
  animation: pop-in 260ms var(--ease);
}
.lightbox__img {
  max-width: 100%; max-height: calc(86svh - 52px);
  width: auto; height: auto;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-3);
}
.lightbox__caption { color: rgba(255, 255, 255, 0.92); padding-top: 14px; font-size: 1rem; text-align: center; }
.lightbox__btn {
  position: absolute; z-index: 2;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: var(--on-media);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.06); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__btn--close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lightbox__btn--prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__btn--next:hover { transform: translateY(-50%) scale(1.06); }

@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.96); } }

/* Kein Scrollen im Hintergrund, solange Lightbox/Menü offen ist */
body.no-scroll { overflow: hidden; }

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 220;
  display: flex; justify-content: center;
  padding: var(--space-2);
  pointer-events: none; /* nur die Karte selbst ist klickbar */
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  pointer-events: auto;
  display: flex; flex-direction: column; gap: var(--space-2);
  width: min(100%, 760px);
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-3);
  animation: banner-in 380ms var(--ease);
}
@keyframes banner-in { from { opacity: 0; transform: translateY(24px); } }
.cookie-banner__text { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.cookie-banner__text a {
  color: var(--green-dark); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-banner__actions .btn { min-height: 44px; padding: 10px 24px; font-size: 0.95rem; }

@media (min-width: 768px) {
  .cookie-banner__inner { flex-direction: row; align-items: center; }
  .cookie-banner__text { flex: 1; }
  .cookie-banner__actions { flex-wrap: nowrap; }
}

/* ---------- Impressum / Rechtliches ---------- */
.legal { padding: calc(var(--nav-height) + var(--space-6)) 0 var(--space-8); }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: var(--space-4); }
.legal h2 {
  font-size: 1.35rem;
  margin: var(--space-6) 0 var(--space-2);
  padding-top: var(--space-2);
}
.legal h2::after {
  content: ""; display: block;
  width: 46px; height: 3px; margin-top: 10px;
  border-radius: var(--radius-pill);
  background: var(--purple);
}
.legal p, .legal address { color: var(--ink-soft); font-style: normal; }
.legal a { color: var(--green-dark); text-underline-offset: 3px; }
.legal .btn { margin-top: var(--space-4); }
.legal__note {
  padding: var(--space-2) var(--space-3);
  background: var(--offwhite);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-s);
}
.legal__updated {
  margin-top: var(--space-6);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Responsive: Tablet (≥ 640px) und Desktop (≥ 1024px)
   ========================================================================== */
@media (min-width: 640px) {
  .gallery__grid { columns: 2; }
  .social__grid { grid-template-columns: repeat(2, 1fr); }
  .videos__banner { flex-direction: row; align-items: center; }
  .videos__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { text-align: left; justify-items: start; }
  .footer__meta { display: flex; justify-content: space-between; width: 100%; flex-wrap: wrap; gap: var(--space-2); }
}

@media (min-width: 768px) {
  .about__grid { grid-template-columns: 5fr 6fr; }
  .about__media { margin-inline: 0; }
}

@media (min-width: 1024px) {
  .gallery__grid { columns: 3; }
  .social__grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding-block: var(--space-12); }
}

/* Mobile Navigation (< 900px) */
@media (max-width: 899px) {
  .navbar__burger { display: flex; }
  .navbar__nav {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-2);
    padding: var(--space-2) var(--space-3) var(--space-3);
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility var(--dur-med);
  }
  .navbar__nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .navbar__list { flex-direction: column; gap: 4px; }
  .navbar__link { display: block; padding: 14px 12px; font-size: 1.05rem; }
  .navbar__link.is-active::after { margin-inline: 0; }
}

/* Sehr schmale Screens: Platz in der Navbar schaffen (Sprache + Theme + Burger) */
@media (max-width: 479px) {
  .navbar__name { display: none; }
  .navbar__actions { gap: var(--space-1); }
  .lang-select__toggle { padding: 6px 8px; gap: 4px; }
  .theme-toggle { width: 40px; height: 40px; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__slide.is-active img { animation: none; }
}
