/* =========================================================
   JH FamilySync — Editorial Landing
   Onest (body) + Instrument Serif (display, italic accents)
   ========================================================= */

/* ---------- Skip-to-Content (WCAG 2.1 AA) ---------- */
.skip-link {
  position: absolute;
  top: -100px; left: 0;
  background: #1f3a5f;
  color: white;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

:root {
  --primary: #6C8EF5;
  --primary-dark: #5277E3;
  --primary-deep: #3A5BBE;
  --accent: #FF8AB1;
  --accent-dark: #C73E72; /* WCAG AA: darkened from #F0689A so small eyebrow/badge text passes 4.5:1 on white/cream */
  --rose: #FFE9F1;
  --lavender: #EDE5FF;
  --cream: #FAF7F2;
  --ink: #1A1B2E;
  --ink-soft: #2A2C44;
  --sub: #5B5C7A;
  --mute: #4D506B; /* WCAG AA strict: 6.5:1 on white, 6.1:1 on cream — passes AAA für normalen Text auf jedem Hintergrund inkl. Phone-Mockup-Karten */
  --line: rgba(26, 27, 46, 0.08);
  --line-strong: rgba(26, 27, 46, 0.18);
  --surface: #FFFFFF;
  --bg: #F5F6FA;
  --bg-cream: #FAF7F2;
  --bg-dark: #1A1B2E;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(26, 27, 46, 0.06);
  --shadow-md: 0 18px 48px rgba(108, 142, 245, 0.16);
  --shadow-lg: 0 40px 100px rgba(26, 27, 46, 0.18);
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Onest', 'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -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(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  /* Verhindert Layout-Shifts beim Browser-Zoom dadurch dass Scrollbar-Width
     reserviert wird statt dass sie ein-/ausblendet. */
  scrollbar-gutter: stable;
}

/* Layout-Stabilität: sections enthalten ihre eigenen Layouts, Animationen
   verursachen keine Reflows im Parent. */
section {
  contain: layout style;
}

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

a {
  color: var(--primary-deep);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--primary-deep); text-decoration: underline; }

p { margin: 0 0 1em; color: var(--sub); }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Grain noise overlay — adds tactile depth */
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

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

details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker,
details > summary::marker { display: none; }

/* ───────────────── Typography Hierarchy ───────────────── */

/* Globaler Instrument Serif-Glyph-Fix: erzwingt Standard-Glyphen ohne Swashes,
   verzierte J-Schwänze (WONK-Achse) oder Single-Storey-g (SOFT-Achse).
   Spezifische Regeln dürfen opsz/wght überschreiben — WONK 0 + SOFT 0
   müssen aber überall durchsetzen (in Variation-Settings mit aufnehmen). */
h1, h2, h3, h4, h5, h6,
[class*="display"],
.legal-brand, .brand-name, .mobile-menu__logo,
.faq h3, .feature-card h3, .pain-point h3,
section h2 em, section h2 strong {
  font-feature-settings: 'salt' 0, 'ss01' 0, 'ss02' 0, 'ss03' 0, 'ss04' 0, 'liga' 1, 'kern' 1;
  font-variation-settings: 'WONK' 0, 'SOFT' 0;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vmin, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 28px;
  font-variation-settings: "opsz" 144, "WONK" 0, "SOFT" 0;
}
.display .line { display: block; }
.display .line-2 { color: var(--primary-deep); font-style: italic; font-weight: 700; }
.display .line-3 { font-weight: 900; }

.display-2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vmin, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 16px;
  font-variation-settings: "opsz" 120, "WONK" 0, "SOFT" 0;
}
.display-2 em {
  font-style: italic;
  font-weight: 700;
  color: var(--primary-deep);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 18px;
}

.pre-headline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(26, 27, 46, 0.06);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.pre-headline .ch-flag { display: inline-flex; align-items: center; }

.lead {
  font-size: clamp(1.05rem, 1.5vmin, 1.22rem);
  line-height: 1.55;
  color: var(--sub);
  max-width: 52ch;
  margin-bottom: 36px;
  font-weight: 500;
}

/* ───────────────── Buttons ───────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-arrow {
  display: inline-block;
  transition: transform .25s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 36px rgba(26, 27, 46, 0.22);
}
.btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(26, 27, 46, 0.28);
  color: #fff;
}

.btn-accent {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 16px 40px rgba(255, 138, 177, 0.34);
}
.btn-accent:hover {
  background: #B0325C;
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(255, 138, 177, 0.46);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(108, 142, 245, 0.06);
  border-color: var(--primary);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* ───────────────── Header / Nav ───────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  will-change: transform;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-header.header--hidden {
  transform: translateY(-100%);
}

.site-header.header--scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Offset main content so it doesn't sit under the fixed header */
main { padding-top: 72px; }

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(108, 142, 245, 0.30);
}
.brand-name {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 800;
  /* Standard-Glyphen erzwingen — keine Swashes oder alternative Buchstabenformen
     (greift falls Instrument Serif als Fallback rendert, bevor Onest geladen ist) */
  font-feature-settings:
    'salt' 0,
    'ss01' 0,
    'ss02' 0,
    'ss03' 0,
    'ss04' 0,
    'liga' 1,
    'kern' 1;
  font-variation-settings:
    'opsz' 24,
    'SOFT' 0,
    'WONK' 0;
}

.nav-menu { position: relative; display: flex; align-items: center; }
.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
  transition: background .2s, border-color .2s;
}
.nav-toggle:hover {
  background: rgba(108, 142, 245, 0.08);
  border-color: rgba(108, 142, 245, 0.32);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hamburger {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute; left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s;
}
.hamburger::before { top: -6px; }
.hamburger::after  { top:  6px; }

/* Desktop dropdown is hidden on mobile (mobile uses fullscreen overlay instead). */
.nav-links {
  display: none;
}

@media (min-width: 920px) {
  .nav-toggle {
    display: none !important;
  }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .nav-links a {
    display: block;
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background .2s, color .2s;
  }
  .nav-links a:hover {
    background: rgba(108, 142, 245, 0.10);
    color: var(--primary-deep);
  }
  .nav-links .nav-cta {
    margin-left: 10px;
    padding: 11px 22px;
    background: var(--ink);
    color: #fff;
    text-align: center;
  }
  .nav-links .nav-cta:hover { background: var(--ink-soft); color: #fff; }
}

/* ───────────────── Fullscreen Mobile Menu Overlay ───────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  overflow-y: auto;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(255, 233, 241, 0.7), transparent 60%),
    radial-gradient(ellipse 60% 70% at 90% 90%, rgba(237, 229, 255, 0.55), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.mobile-menu__inner {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.mobile-menu.open .mobile-menu__inner {
  transform: translateY(0);
}
.mobile-menu__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .2s, transform .2s;
}
.mobile-menu__close:hover {
  background: #fff;
  transform: rotate(90deg);
}
.mobile-menu__close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.mobile-menu__brand {
  text-align: center;
  margin-top: 8px;
}
.mobile-menu__logo {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  letter-spacing: -0.02em;
  /* Standard-Glyphen erzwingen — Instrument Serif hat sonst eine wellige "J"
     mit gebogenem Schwanz (WONK-Achse). WONK 0 + SOFT 0 = klare Standard-J. */
  font-feature-settings:
    'salt' 0,
    'ss01' 0,
    'ss02' 0,
    'ss03' 0,
    'ss04' 0,
    'liga' 1,
    'kern' 1;
  font-variation-settings:
    'wght' 700,
    'opsz' 24,
    'SOFT' 0,
    'WONK' 0;
}
.mobile-menu__tagline {
  font-size: 12px;
  color: var(--sub);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
  display: block;
}
.mobile-menu__nav {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.mobile-menu__nav li {
  border-bottom: 1px solid var(--line);
}
.mobile-menu__nav li:first-child {
  border-top: 1px solid var(--line);
}
.mobile-menu__nav a {
  display: block;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus-visible {
  color: var(--primary-deep);
  padding-left: 8px;
}
.mobile-menu__cta {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(26, 27, 46, 0.22);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.mobile-menu__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 27, 46, 0.32);
  background: var(--ink-soft);
  color: #fff;
}
.mobile-menu__footer {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--sub);
  margin-top: 4px;
}
.mobile-menu__footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.mobile-menu__footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}
body.menu-open {
  overflow: hidden;
}
@media (min-width: 920px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ───────────────── HERO ───────────────── */
.hero {
  position: relative;
  padding: 72px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(255, 233, 241, 0.7), transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 30%, rgba(237, 229, 255, 0.5), transparent 60%),
    var(--cream);
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.blob-1 {
  width: 380px;
  height: 380px;
  background: var(--accent);
  top: -120px;
  right: -120px;
}
.blob-2 {
  width: 280px;
  height: 280px;
  background: var(--primary);
  bottom: -80px;
  left: -80px;
  opacity: 0.32;
}

/* Floating decorative shapes — soft pastels, slow drift.
   Adds family-warmth without fighting the editorial typography. */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.42;
  pointer-events: none;
  will-change: transform;
  animation: floatShape 12s ease-in-out infinite;
}
.floating-shape.fs-1 {
  width: 220px; height: 220px;
  background: #FDE68A; /* warm peach-yellow */
  top: 8%; left: -3%;
  animation-delay: 0s;
}
.floating-shape.fs-2 {
  width: 170px; height: 170px;
  background: #FBCFE8; /* soft pink */
  top: 58%; right: 8%;
  animation-delay: -4s;
}
.floating-shape.fs-3 {
  width: 190px; height: 190px;
  background: #DBEAFE; /* powder blue */
  bottom: 6%; left: 36%;
  animation-delay: -8s;
}
@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(14px, -22px) scale(1.04); }
  66% { transform: translate(-16px, 12px) scale(0.97); }
}

/* Hero side illustration — abstract family-of-circles SVG */
.hero-illustration {
  position: absolute;
  top: 4%;
  right: 2%;
  width: 110px;
  height: 110px;
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
  animation: gentleSway 9s ease-in-out infinite;
}
.hero-illustration .hi-c {
  transform-origin: center;
  animation: hiBob 4s ease-in-out infinite;
}
.hero-illustration .hi-c-2 { animation-delay: -1s; }
.hero-illustration .hi-c-3 { animation-delay: -2s; }
.hero-illustration .hi-c-4 { animation-delay: -3s; }
@keyframes hiBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes gentleSway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@media (max-width: 880px) {
  .hero-illustration { display: none; }
}

/* Accent-highlight — warm marker pen for headline words */
.accent-mark {
  background: linear-gradient(120deg, transparent 0%, rgba(253, 230, 138, 0.7) 30%, rgba(251, 207, 232, 0.6) 70%, transparent 100%);
  padding: 0 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr;
  align-items: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.86rem;
  color: var(--mute);
  font-weight: 600;
  margin-top: 4px;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (min-width: 900px) {
  .hero { padding: 100px 0 140px; }
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
  }
}

/* ───────────────── Hero Visual (Phone-Mockups) ───────────────── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Fixed height verhindert Reflow wenn Phone-Mockup-Inhalte sich ändern */
  min-height: 580px;
  contain: layout style;
}

.phone {
  position: relative;
}

.phone-bezel {
  width: 280px;
  background: #0d0e1c;
  border-radius: 44px;
  padding: 9px;
  box-shadow:
    0 50px 120px rgba(26, 27, 46, 0.34),
    0 18px 38px rgba(26, 27, 46, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  background: #0d0e1c;
  border-radius: 14px;
  z-index: 3;
}
.phone-screen {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFE 100%);
  border-radius: 36px;
  height: 540px;
  padding: 46px 14px 18px;
  overflow: hidden;
  position: relative;
}

.phone-front {
  transform: rotate(-4deg) translateY(-10px);
  z-index: 2;
}
.phone-back {
  position: absolute;
  top: 40px;
  right: -40px;
  transform: rotate(8deg) scale(0.86);
  z-index: 1;
  opacity: 0.94;
}

/* Mockup-Inhalte ---------------------------------------- */
.m-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 12px 14px;
}
.m-dots {
  display: inline-flex;
  gap: 3px;
}
.m-dots span {
  width: 4px; height: 4px;
  background: var(--ink);
  border-radius: 50%;
}

.m-app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 10px;
}
.m-app-logo {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 2px 6px rgba(108, 142, 245, 0.3);
}
.m-app-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
}

.m-section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 8px 6px 10px;
}
.m-anlaesse-head {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 2px 6px 14px;
}

.m-event {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 10px;
  margin-bottom: 7px;
  box-shadow: 0 2px 8px rgba(26, 27, 46, 0.06);
  border: 1px solid var(--line);
}
.m-event-time {
  font-size: 12px;
  font-weight: 800;
  color: var(--mute);
  min-width: 36px;
}
.m-event-bar {
  width: 3px;
  height: 28px;
  border-radius: 2px;
  background: var(--ec, var(--primary));
}
.m-event-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 138, 177, 0.12);
  font-size: 16px;
}
.m-event-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.m-event-text strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-event-text span {
  font-size: 12px;
  color: var(--mute);
  font-weight: 600;
}

.m-occasion {
  background: linear-gradient(135deg, rgba(255, 138, 177, 0.10), rgba(255, 138, 177, 0.04));
  border-color: rgba(255, 138, 177, 0.32);
}

.m-anlass {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}
.m-anlass:last-child { border-bottom: none; }
.m-anlass-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--ec) 14%, transparent);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.m-filters {
  display: flex;
  gap: 5px;
  padding: 0 6px 12px;
  overflow: hidden;
}
.m-chip {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--sub);
  border: 1px solid var(--line);
}
.m-chip-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Floating push toast */
.push-toast {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: rgba(26, 27, 46, 0.96);
  color: #fff;
  padding: 12px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 28px 60px rgba(26, 27, 46, 0.36);
  max-width: 260px;
  z-index: 5;
  backdrop-filter: blur(12px);
}
.toast-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--accent);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 14px var(--accent); transform: scale(1); }
  50% { box-shadow: 0 0 22px var(--accent), 0 0 0 6px rgba(255, 138, 177, 0.18); transform: scale(1.12); }
}
.toast-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.toast-text strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.toast-text span {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 640px) {
  .hero-visual { min-height: 500px; }
  .phone-bezel { width: 240px; }
  .phone-screen { height: 480px; padding: 42px 12px 14px; }
  .phone-back { right: -20px; transform: rotate(8deg) scale(0.78); top: 30px; }
  .push-toast { left: 50%; transform: translateX(-50%); bottom: -10px; max-width: 240px; }
}

/* ───────────────── STORY / Pain Points ───────────────── */
.story {
  background: #ffffff;
  color: var(--ink);
  padding: 110px 0 130px;
  position: relative;
  overflow: hidden;
}
.story::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 177, 0.16), transparent 70%);
  pointer-events: none;
}

.story-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 70px;
}
.story-head .eyebrow { color: var(--accent-dark); }
.story-head h2 { color: var(--ink); }
.story-head em {
  color: var(--accent-dark);
  font-style: italic;
  font-weight: 700;
}

.quotes {
  display: grid;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto 80px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .quote.q-1 { transform: translateY(0); }
  .quote.q-2 { transform: translateY(40px); }
  .quote.q-3 { transform: translateY(10px); }
}

.quote {
  position: relative;
  padding: 36px 26px 30px;
  border-radius: 22px;
  background: rgba(26, 27, 46, 0.03);
  border: 1px solid rgba(26, 27, 46, 0.08);
  transition: background .3s, border-color .3s, box-shadow .35s;
}
.quote:hover {
  background: rgba(26, 27, 46, 0.05);
  border-color: rgba(255, 138, 177, 0.40);
  box-shadow: 0 18px 40px rgba(26, 27, 46, 0.08);
}
.quote .quote-mark {
  transition: transform .4s var(--ease-out), opacity .3s;
}
.quote:hover .quote-mark {
  transform: translateY(-2px) rotate(-4deg);
  opacity: 0.7;
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vmin, 1.42rem);
  font-style: italic;
  line-height: 1.32;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}
.quote-mark {
  position: absolute;
  top: 6px;
  left: 22px;
  font-family: var(--font-display);
  font-size: 76px;
  line-height: 1;
  color: var(--accent-dark);
  font-weight: 900;
  font-style: italic;
}

.story-resolve {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vmin, 2.2rem);
  font-style: italic;
  font-weight: 500;
  color: rgba(26, 27, 46, 0.78);
  max-width: 32ch;
  margin: 0 auto;
  line-height: 1.32;
}
.story-resolve strong {
  display: inline-block;
  margin-top: 6px;
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

/* ───────────────── FEATURES ───────────────── */
.features {
  padding: 110px 0;
  background: #f8fafc;
}

.features-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 80px;
}

.feature {
  display: grid;
  gap: 50px;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; padding-top: 0; }

.feature-meta {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
}
.feature-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vmin, 4.5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: var(--accent-dark);
  letter-spacing: -0.04em;
}
.feature-tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sub);
}

.feature-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vmin, 2.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 18px;
}
.feature-body p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--sub);
  max-width: 48ch;
}
.feature-body em {
  color: var(--primary-deep);
  font-style: italic;
  font-weight: 700;
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}
.phone-feat .phone-bezel {
  width: 260px;
}
.phone-feat .phone-screen {
  height: 500px;
}

@media (min-width: 880px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 80px 0;
  }
  .feature-reverse .feature-meta,
  .feature-reverse .feature-body { order: 2; }
  .feature-reverse .feature-visual { order: 1; }
}

/* Push-Stack mockup (Feature 03) */
.push-stack {
  position: relative;
  width: 100%;
  max-width: 360px;
  min-height: 380px;
  padding: 20px 0;
}
.push-mock {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(26, 27, 46, 0.96);
  color: #fff;
  padding: 14px 18px;
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(26, 27, 46, 0.28);
  position: absolute;
  width: 100%;
  backdrop-filter: blur(10px);
}
.push-mock .pm-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 12px var(--accent);
  animation: dotPulse 2.4s ease-in-out infinite;
}
.push-mock.pm-2 .pm-dot { animation-delay: -0.8s; }
.push-mock.pm-3 .pm-dot { animation-delay: -1.6s; }
.push-mock div {
  display: flex;
  flex-direction: column;
  line-height: 1.34;
}
.push-mock strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.push-mock span {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.push-mock.pm-1 { top: 0; transform: rotate(-3deg); z-index: 3; }
.push-mock.pm-2 { top: 90px; transform: translateX(40px) rotate(2deg); z-index: 2; opacity: 0.92; }
.push-mock.pm-3 { top: 180px; transform: translateX(-20px) rotate(-1deg); z-index: 1; opacity: 0.86; }

/* ───────────────── FAMILIES ───────────────── */
.families {
  padding: 110px 0;
  background: #ffffff;
}

.families-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
}

.family-cards {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .family-cards { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

.family-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .25s;
}
.family-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--rose);
  z-index: 0;
  opacity: 0.5;
  transition: transform .5s var(--ease-out), opacity .3s;
}
.family-card:nth-child(2)::before { background: var(--lavender); }
.family-card:nth-child(3)::before { background: rgba(108, 142, 245, 0.18); }

.family-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px rgba(26, 27, 46, 0.12);
  border-color: rgba(108, 142, 245, 0.30);
}
.family-card:hover::before {
  transform: scale(1.6);
  opacity: 0.7;
}

.family-illu {
  position: relative;
  z-index: 1;
  font-size: 2.4rem;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  margin-bottom: 22px;
  transition: transform .4s var(--ease-out), background .25s, box-shadow .3s;
}
.family-card:hover .family-illu {
  transform: translateY(-3px) rotate(-4deg) scale(1.06);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(26, 27, 46, 0.10);
}

.family-card h4 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}
.family-card p {
  position: relative;
  z-index: 1;
  font-size: 0.97rem;
  color: var(--sub);
  margin: 0;
  line-height: 1.55;
}

/* ───────────────── SWITZERLAND STRIP ───────────────── */
.switzerland {
  padding: 110px 0;
  background: #fefcf5;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.switzerland::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 142, 245, 0.10), transparent 70%);
  pointer-events: none;
}

.sw-grid {
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .sw-grid { grid-template-columns: 1.1fr 1fr; gap: 100px; }
}

.sw-flag {
  display: inline-block;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(213, 43, 30, 0.32);
  border-radius: 8px;
  overflow: hidden;
}

.sw-text h2 { color: var(--ink); }
.sw-text em { color: var(--accent-dark); }
.sw-text p {
  color: rgba(26, 27, 46, 0.72);
  font-size: 1.08rem;
  line-height: 1.62;
  max-width: 46ch;
}

.cantons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
@media (min-width: 600px) and (max-width: 899px) {
  .cantons { grid-template-columns: repeat(9, 1fr); }
}
@media (min-width: 900px) {
  .cantons { grid-template-columns: repeat(7, 1fr); gap: 9px; }
}
.cantons li {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 12px 0;
  text-align: center;
  background: rgba(26, 27, 46, 0.03);
  border: 1px solid rgba(26, 27, 46, 0.08);
  border-radius: 10px;
  color: rgba(26, 27, 46, 0.78);
  transition: background .2s, border-color .2s, transform .2s;
}
.cantons li:hover {
  background: rgba(255, 138, 177, 0.14);
  border-color: rgba(255, 138, 177, 0.42);
  color: var(--ink);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px rgba(255, 138, 177, 0.18);
}

/* ───────────────── FAQ ───────────────── */
.faq {
  padding: 110px 0;
  background: #ffffff;
}
.faq-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 24px;
  transition: border-color .25s, box-shadow .25s;
}
.faq details:hover {
  border-color: rgba(108, 142, 245, 0.25);
}
.faq details[open] {
  border-color: rgba(108, 142, 245, 0.36);
  box-shadow: 0 8px 24px rgba(108, 142, 245, 0.10);
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  letter-spacing: -0.01em;
}
.faq summary::after {
  content: '';
  width: 16px; height: 16px;
  flex-shrink: 0;
  background:
    linear-gradient(var(--primary), var(--primary)) center/16px 2px no-repeat,
    linear-gradient(var(--primary), var(--primary)) center/2px 16px no-repeat;
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--sub);
  font-size: 1rem;
  line-height: 1.65;
}

/* ───────────────── Final CTA ───────────────── */
.cta-final {
  padding: 130px 0;
  text-align: center;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 138, 177, 0.22), transparent 60%),
    radial-gradient(circle at 85% 70%, rgba(108, 142, 245, 0.28), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #0d0e1c 100%);
  color: #fff;
  position: relative;
}
.cta-final-inner {
  max-width: 680px;
  margin: 0 auto;
}
.cta-final h2 {
  font-size: clamp(2.2rem, 5vmin, 3.6rem);
  margin-bottom: 36px;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
}
.cta-final em {
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
}
.cta-sub {
  margin: 22px 0 0;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

/* ───────────────── Footer ───────────────── */
.site-footer {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-top: 1px solid rgba(31, 58, 95, 0.08);
  color: var(--sub);
  padding: 80px 24px 24px;
  position: relative;
}
.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__col--brand {
  gap: 4px;
}
.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-footer__logo:hover { color: var(--primary-deep); }
.site-footer__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(60, 91, 190, 0.18);
}
.site-footer__tagline {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--sub);
  margin: 8px 0 16px;
  max-width: 360px;
}
.site-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer__badge {
  background: #fff;
  border: 1px solid rgba(31, 58, 95, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sub);
  letter-spacing: 0.01em;
}
.site-footer__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}
.site-footer__col a {
  font-size: 0.92rem;
  color: var(--sub);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  width: fit-content;
}
.site-footer__col a:hover {
  color: var(--primary-deep);
  transform: translateX(2px);
}
.site-footer__bottom {
  max-width: 1120px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 58, 95, 0.08);
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.site-footer__bottom p { margin: 0; color: inherit; }
@media (max-width: 880px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .site-footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .site-footer { padding: 56px 20px 20px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { margin-top: 40px; }
}

/* ───────────────── Sticky Beta-CTA Bar ───────────────── */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(140%);
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  box-shadow: 0 24px 60px rgba(26, 27, 46, 0.36);
  z-index: 150;
  transition: transform .45s var(--ease-out), opacity .25s;
  opacity: 0;
  pointer-events: none;
  max-width: calc(100vw - 28px);
}
.sticky-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-text {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cta .btn-accent {
  box-shadow: none;
}

@media (max-width: 540px) {
  .sticky-cta { padding: 8px 8px 8px 16px; gap: 12px; }
  .sticky-text { font-size: 0.78rem; }
  .sticky-cta .btn-sm { padding: 9px 14px; font-size: 0.82rem; }
}

/* ───────────────── Reveal Animations ───────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: 0ms;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero text staggered animation on load */
.hero-text.is-visible .display .line {
  display: block;
  animation: lineReveal 1s var(--ease-out) both;
}
.hero-text.is-visible .display .line-1 { animation-delay: 0.1s; }
.hero-text.is-visible .display .line-2 { animation-delay: 0.25s; }
.hero-text.is-visible .display .line-3 { animation-delay: 0.4s; }

@keyframes lineReveal {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Phone-Mockups: GPU-isoliert, stabil unter Zoom + Resize.
   Frühere Float-Animationen entfernt — sie verursachten sichtbares
   "Wackeln" wenn der Browser-Zoom geändert wurde. */
.phone {
  will-change: transform;
  contain: layout style;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════ Scroll-Progress + Back-to-Top ═══════════════════════ */

/* Scroll-Progress Bar — fixed top, above sticky header */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1001;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary, #6C8EF5), var(--accent, #FF8AB1));
  transition: width 0.1s ease-out;
  will-change: width;
}

/* Back-to-Top — circular Scroll-Progress Ring */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 998;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), bottom 0.3s ease;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.back-to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.back-to-top__track {
  fill: none;
  stroke: rgba(26, 27, 46, 0.10);
  stroke-width: 3;
}
.back-to-top__progress {
  fill: none;
  stroke: url(#backToTopGradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 163.36;   /* 2 * π * 26 */
  stroke-dashoffset: 163.36;
  transition: stroke-dashoffset 0.12s ease-out;
  filter: drop-shadow(0 1px 4px rgba(108, 142, 245, 0.4));
}
.back-to-top__inner {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(26, 27, 46, 0.28);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  z-index: 1;
}
.back-to-top:hover .back-to-top__inner {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(26, 27, 46, 0.4);
  animation: backToTopBounce 0.9s ease infinite;
}
@keyframes backToTopBounce {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(-6px); }
}
.back-to-top__pct {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--sub);
  background: rgba(255, 255, 255, 0.96);
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(26, 27, 46, 0.1);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  white-space: nowrap;
}
.back-to-top:hover .back-to-top__pct,
.back-to-top:focus-visible .back-to-top__pct {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--accent, #FF8AB1);
  outline-offset: 4px;
}
/* Lift back-to-top above sticky beta CTA bar when both are visible */
.sticky-cta.is-visible ~ .back-to-top.show {
  bottom: 96px;
}
@media (max-width: 640px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }
  .sticky-cta.is-visible ~ .back-to-top.show {
    bottom: 84px;
  }
}

/* ==========================================================================
   Cookie Banner — elegant corner card with cookie illustration
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  max-width: 380px;
  width: calc(100% - 48px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: cookie-bounce 0.6s ease-out 0.5s;
}
@keyframes cookie-bounce {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  25% { transform: translateY(-4px) scale(1.02) rotate(-1deg); }
  75% { transform: translateY(-2px) scale(1.01) rotate(1deg); }
}

.cookie-banner__card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 24px 24px 20px;
  box-shadow:
    0 20px 60px rgba(31, 58, 95, 0.15),
    0 4px 16px rgba(31, 58, 95, 0.06),
    0 0 0 1px rgba(31, 58, 95, 0.04);
  position: relative;
  overflow: hidden;
}
.cookie-banner__card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cookie-banner__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.cookie-banner__close:hover {
  background: rgba(31, 58, 95, 0.06);
  color: var(--ink);
}

.cookie-banner__icon {
  display: inline-flex;
  margin-bottom: 8px;
  animation: cookie-spin 12s linear infinite;
  position: relative;
  z-index: 1;
}
@keyframes cookie-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cookie-banner__content {
  position: relative;
  z-index: 1;
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-variation-settings: 'WONK' 0, 'SOFT' 0;
}
.cookie-banner__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--sub);
  margin: 0 0 18px;
}
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.cookie-banner__btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  flex: 1;
}
.cookie-banner__btn--secondary {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid rgba(31, 58, 95, 0.12);
}
.cookie-banner__btn--secondary:hover {
  background: rgba(31, 58, 95, 0.04);
  color: var(--ink);
}
.cookie-banner__btn--primary {
  background: linear-gradient(135deg, #1f3a5f 0%, #2d4a7a 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(31, 58, 95, 0.25);
}
.cookie-banner__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(31, 58, 95, 0.35);
}
.cookie-banner__more {
  display: block;
  font-size: 12px;
  color: var(--primary-deep);
  text-decoration: underline;
  text-align: center;
  transition: color 0.2s;
}
.cookie-banner__more:hover {
  color: var(--primary-deep);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-banner.show,
  .cookie-banner__icon {
    animation: none !important;
    transition: opacity 0.2s ease !important;
  }
}

/* =========================================================
   SECTION TRANSITIONS — Clean implicit background bands
   ---------------------------------------------------------
   No wave dividers. Each section has its own solid (or gentle)
   background color; transitions read as soft editorial bands.
   ========================================================= */

/* ---------- Sparkle accents on section headlines ---------- */
.sparkle {
  display: inline-block;
  color: #F5B945; /* warm gold — bridges cream + accent */
  font-size: 0.55em;
  vertical-align: middle;
  margin: 0 10px;
  transform-origin: center;
  animation: sparkleTwinkle 2.6s ease-in-out infinite;
  user-select: none;
}
.sparkle.sp-right { animation-delay: 1.3s; }

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(1) rotate(0deg); }
  50%      { opacity: 1;    transform: scale(1.35) rotate(15deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle { animation: none; opacity: 0.7; }
}

/* ---------- Stagger child reveals inside a section ---------- */
.quotes [data-reveal].is-visible,
.family-cards [data-reveal].is-visible,
.feature[data-reveal].is-visible {
  transition-delay: var(--stagger, 0ms);
}
.quotes > [data-reveal]:nth-child(1) { --stagger: 0ms; }
.quotes > [data-reveal]:nth-child(2) { --stagger: 120ms; }
.quotes > [data-reveal]:nth-child(3) { --stagger: 240ms; }

.family-cards > [data-reveal]:nth-child(1) { --stagger: 0ms; }
.family-cards > [data-reveal]:nth-child(2) { --stagger: 120ms; }
.family-cards > [data-reveal]:nth-child(3) { --stagger: 240ms; }

/* Tighter section padding + lighter sparkle on phones */
@media (max-width: 640px) {
  .sparkle { font-size: 0.5em; margin: 0 6px; }
  .story        { padding: 72px 0 80px; }
  .features     { padding: 72px 0; }
  .families     { padding: 72px 0; }
  .switzerland  { padding: 72px 0; }
  .faq          { padding: 72px 0; }
  .cta-final    { padding: 80px 0; }
}

/* ---------- Language Switcher (nav + legal-header) ---------- */
/* ── Language Switcher ──────────────────────────────────────────
   Pill mit Globe-Icon + 3 Sprach-Codes. Active = brand-rose,
   passt zum editorial-magazin Look (warmes Rosé statt schwarzem
   Ink). Hohe Spezifität via .nav-links/.legal-header/.mobile-menu
   weil .nav-links a { color: var(--ink) } sonst gewinnt und der
   weisse Active-Text unsichtbar wird. */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lang-switcher__globe {
  color: var(--accent-dark);
  margin-right: 4px;
  flex-shrink: 0;
  opacity: 0.85;
}
.nav-links .lang-switcher__btn,
.legal-header .lang-switcher__btn,
.mobile-menu .lang-switcher__btn {
  display: inline-block !important;
  padding: 5px 10px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  font-family: var(--font-body, "Onest", "Inter", sans-serif);
  font-size: 11px !important;
  font-weight: 800 !important;
  color: var(--sub) !important;
  background: transparent !important;
  text-decoration: none !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  line-height: 1 !important;
}
.nav-links .lang-switcher__btn:hover,
.legal-header .lang-switcher__btn:hover,
.mobile-menu .lang-switcher__btn:hover,
.nav-links .lang-switcher__btn:focus-visible,
.legal-header .lang-switcher__btn:focus-visible,
.mobile-menu .lang-switcher__btn:focus-visible {
  color: var(--accent-dark) !important;
  background: rgba(199, 62, 114, 0.08) !important;
  transform: none !important;
  padding-left: 10px !important; /* override .mobile-menu__nav a:hover padding-left */
}
.nav-links .lang-switcher__btn--active,
.legal-header .lang-switcher__btn--active,
.mobile-menu .lang-switcher__btn--active {
  background: var(--accent-dark) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(199, 62, 114, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
.nav-links .lang-switcher__btn--active:hover,
.legal-header .lang-switcher__btn--active:hover,
.mobile-menu .lang-switcher__btn--active:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
}

/* Mobile-Menu Variante: zentriert, etwas grösser */
.mobile-menu__lang {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}
.mobile-menu__lang .lang-switcher {
  padding: 4px 8px 4px 12px;
}
.mobile-menu__lang .lang-switcher__btn {
  font-size: 12px !important;
  padding: 6px 12px !important;
}

@media (prefers-reduced-motion: reduce) {
  .lang-switcher__btn { transition: none !important; }
}

/* ---------- Global prefers-reduced-motion (WCAG 2.1 AA) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Specifically disable the floating blob animations */
  .floating-shape, .hero-decorations, .sparkle,
  .back-to-top__inner, .cookie-banner__icon {
    animation: none !important;
  }
  /* Static visibility instead of fade-in reveal */
  .reveal, [class*="reveal"] {
    opacity: 1 !important;
    transform: none !important;
  }
}
