/* ============================================================================
   L&A · Liebe & Alltag — Design System
   --------------------------------------------------------------------------
   Aesthetic: "Warm Editorial / Organic".
   Palette anchored to the brand logo (magenta-rose + grey) extended with the
   accessible support colours from the brand kit (plum, cream, sage, apricot).
   Type: Fraunces (display serif) + Source Sans 3 (legible humanist body).
   Built mobile-first, WCAG AA, with CSS-only motion (JS only enhances).
   ========================================================================= */

/* ----------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* — Brand surfaces — */
  --cream:      #FAF4EC;   /* page ground — warm, easy on older eyes      */
  --cream-2:    #F4E9D8;   /* warmer panel band                           */
  --sand:       #EEE0CB;   /* deepest warm panel                          */
  --paper:      #FFFDF9;   /* raised card surface                         */

  /* — Ink (text) — */
  --plum:       #3D3A42;   /* primary text — ~10:1 on cream               */
  --plum-soft:  #5C5662;   /* secondary text — ~6:1 on cream              */
  --plum-mute:  #837C8B;   /* tertiary / captions                         */

  /* — Rose (primary brand accent, from the logo) — */
  --rose:       #D8487F;   /* the logo magenta-rose                       */
  --rose-600:   #C23A6E;
  --rose-700:   #A82E5F;   /* AA-safe rose for links & small text on cream*/
  --rose-100:   #F7DCE8;
  --rose-50:    #FCEEF4;

  /* — Sage (secondary, calm / nature / care) — */
  --sage:       #7E9A82;
  --sage-700:   #506A55;   /* AA-safe sage text                           */
  --sage-100:   #E6EDE4;
  --sage-50:    #F1F5EF;

  /* — Apricot (energy / highlight only) — */
  --apricot:    #E8B97A;
  --apricot-700:#9C6A23;   /* AA-safe apricot text                        */
  --apricot-100:#F9ECD6;

  /* — Functional — */
  --ok:         #2F7D55;
  --err:        #B23A48;
  --line:       #E6D9C6;   /* hairline on cream                           */
  --line-soft:  #EFE5D5;

  /* — Warm-tinted shadows (never flat grey) — */
  --sh-sm: 0 2px 8px rgba(61, 58, 66, .06), 0 1px 2px rgba(61, 58, 66, .06);
  --sh-md: 0 14px 34px -16px rgba(120, 60, 80, .30), 0 4px 10px -6px rgba(61,58,66,.10);
  --sh-lg: 0 40px 80px -32px rgba(120, 50, 80, .38), 0 10px 24px -12px rgba(61,58,66,.12);
  --sh-rose: 0 18px 40px -14px rgba(216, 72, 127, .45);

  /* — Type — */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Source Sans 3", "Segoe UI", Tahoma, sans-serif;

  /* fluid type scale */
  --fs-eyebrow: .82rem;
  --fs-body:    1.1875rem;             /* 19px base for senior legibility   */
  --fs-lead:    clamp(1.25rem, 1.05rem + .8vw, 1.5rem);
  --fs-h3:      clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
  --fs-h2:      clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-h1:      clamp(2.6rem, 1.8rem + 4.2vw, 5rem);
  --fs-display: clamp(3rem, 1.9rem + 5.4vw, 6rem);

  /* — Spacing / layout — */
  --shell: 1240px;
  --shell-narrow: 880px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --section-y: clamp(4rem, 7vw, 7.5rem);
  --radius:   18px;
  --radius-lg:28px;
  --radius-pill: 999px;

  /* — Spacing scale (8px rhythm) — */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-8: 3rem;    --sp-10: 4rem;

  /* — Motion: easing tokens (physics-based, per motion-design skill) — */
  --ease:        cubic-bezier(.2, .7, .2, 1);   /* general */
  --ease-out:    cubic-bezier(.16, 1, .3, 1);   /* entrances — fast in, soft settle */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);  /* position changes */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1); /* playful overshoot (sparingly) */
  --dur-micro: .14s;   /* button press, toggles            */
  --dur-fast:  .22s;   /* hover states                     */
  --dur-base:  .32s;   /* cards, dropdowns                 */
  --dur-slow:  .7s;    /* section reveals                  */

  /* — Component tokens (Layer 3) — */
  --ring: 0 0 0 3px var(--cream), 0 0 0 6px var(--rose); /* focus ring */
  --btn-grad: linear-gradient(135deg, var(--rose) 0%, var(--rose-700) 100%);

  /* — Z-index scale — */
  --z-base: 1; --z-sticky: 100; --z-overlay: 200; --z-toast: 300;
}

/* ----------------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--plum);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  /* Prevent layout overflow from pushing beyond viewport */
  max-width: 100vw;
}

/* Lock page scrolling on mobile when navigation menu is open */
html.nav-open, html.nav-open body {
  overflow: hidden !important;
  height: 100% !important;
  position: relative;
}

/* Paper grain — subtle atmosphere over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--plum);
  font-optical-sizing: auto;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--rose-700); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--rose-600); }

strong, b { font-weight: 700; }

/* Selection */
::selection { background: var(--rose-100); color: var(--plum); }

/* Focus — clearly visible, brand-coloured (double ring reads on any background) */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}
/* Keep a real outline for high-contrast / forced-colors users */
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid; box-shadow: none; }
}

/* Anchored sections clear the sticky header */
:target { scroll-margin-top: 110px; }
[id] { scroll-margin-top: 96px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 999;
  background: var(--plum);
  color: var(--cream);
  padding: .85rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--cream); }

/* ----------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   ------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
  /* Prevent shell from ever overflowing the viewport */
  box-sizing: border-box;
}
.shell.narrow { max-width: var(--shell-narrow); }

.section { padding-block: var(--section-y); position: relative; }

/* Eyebrow / kicker label */
.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6ch;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose-700);
}
.eyebrow::before {
  content: "";
  width: 1.9rem; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow.centered { justify-content: center; }

.lead { font-size: var(--fs-lead); color: var(--plum-soft); line-height: 1.6; }

/* Section heading block */
.sec-head { max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head h2 { font-size: var(--fs-h2); margin-top: .7rem; }
.sec-head p { margin-top: 1rem; }

/* Decorative little heart divider (echoes the logo) */
.heart-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--rose);
}
.heart-rule::before, .heart-rule::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--line) 40%, var(--line));
}
.heart-rule::after { transform: scaleX(-1); }

/* ----------------------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--rose);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6ch;
  min-height: 54px;
  padding: .85rem 1.7rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  text-align: center;
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: var(--dur-micro); }

.btn-primary {
  color: #fff;
  background: var(--btn-grad);
  box-shadow: var(--sh-rose);
}
/* light sheen that sweeps across on hover */
.btn-primary::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 24px 50px -14px rgba(216,72,127,.6); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-outline {
  color: var(--plum);
  background: transparent;
  border-color: var(--plum);
}
.btn-outline:hover { color: var(--plum); background: var(--plum); color: var(--cream); transform: translateY(-3px); }

.btn-ghost {
  color: var(--rose-700);
  background: var(--rose-50);
}
.btn-ghost:hover { color: var(--rose-700); background: var(--rose-100); transform: translateY(-3px); }

.btn-lg { min-height: 60px; font-size: 1.15rem; padding-inline: 2.1rem; }
.btn-block { width: 100%; }

/* Inline text link with animated underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5ch;
  font-weight: 700;
  text-decoration: none;
  color: var(--rose-700);
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ----------------------------------------------------------------------------
   5. HEADER / NAV
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(61,58,66,.5);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 84px;
  padding-block: .55rem;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; padding: 4px; }
.brand-logo { height: 60px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .brand-logo { height: 52px; }

.primary-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.4vw, 1.2rem);
  list-style: none;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: .55rem .7rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--plum);
  text-decoration: none;
  border-radius: 9px;
  position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: .7rem; right: .7rem; bottom: .32rem;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-list a:hover { color: var(--rose-700); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--rose-700); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.btn-phone {
  min-height: 48px;
  padding: .55rem 1.1rem;
  font-size: 1rem;
  color: var(--plum);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: .55ch;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-phone:hover { color: var(--plum); border-color: var(--rose); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.btn-phone .ic { color: var(--rose); }
.btn-phone small { display:block; font-size:.66rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color: var(--plum-mute); line-height:1; margin-bottom:2px; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 2px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2.5px;
  background: var(--plum);
  border-radius: 3px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { position: absolute; transform: translateY(-7px); }
.nav-toggle span::after  { position: absolute; transform: translateY(7px); }
.nav-toggle span { position: relative; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); }

/* ----------------------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3rem, 6vw, 6rem) clamp(4rem, 7vw, 7rem); overflow: hidden; max-width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { max-width: 38rem; }
.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
  margin-top: 1.1rem;
}
.hero h1 .ink-rose { color: var(--rose); font-style: italic; }
.hero-copy .lead { margin-top: 1.4rem; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* Trust strip under hero */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.6rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.trust-strip li {
  display: flex; align-items: center; gap: .55ch;
  list-style: none;
  font-weight: 600;
  font-size: .98rem;
  color: var(--plum-soft);
}
.trust-strip .ic { color: var(--sage-700); flex-shrink: 0; }

/* Hero visual: layered organic composition */
.hero-visual { position: relative; }
.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255,255,255,.6);
  animation: floatFigure 8s ease-in-out infinite;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease-out);
}
.hero-figure:hover .hero-image {
  transform: scale(1.05);
}
.hero-badge {
  position: absolute;
  right: 8px; bottom: 28px;
  z-index: 3;
  background: var(--paper);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  box-shadow: var(--sh-md);
  display: flex; align-items: center; gap: .8rem;
  max-width: 250px;
  border: 1px solid var(--line-soft);
  animation: floatBadge 6s ease-in-out infinite alternate;
}
.hero-badge .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--rose); line-height: 1; }
.hero-badge .lbl { font-size: .92rem; line-height: 1.25; color: var(--plum-soft); font-weight: 600; }

@keyframes floatFigure {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(6px) scale(1.02); }
}

/* floating blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(8px); z-index: 0; pointer-events: none; }
.hero .blob-1 { width: min(420px, 90vw); height: min(420px, 90vw); background: radial-gradient(circle at 30% 30%, var(--rose-100), transparent 70%); top: -120px; right: -80px; opacity: .8; }
.hero .blob-2 { width: min(380px, 90vw); height: min(380px, 90vw); background: radial-gradient(circle at 50% 50%, var(--sage-100), transparent 70%); bottom: -140px; left: -120px; opacity: .8; }
.hero .blob-3 { width: min(260px, 70vw); height: min(260px, 70vw); background: radial-gradient(circle at 50% 50%, var(--apricot-100), transparent 70%); top: 40%; left: 36%; opacity: .6; }

/* ----------------------------------------------------------------------------
   7. PHOTO PLACEHOLDERS (warm illustrated fills, clearly marked)
   ------------------------------------------------------------------------- */
.ph-photo {
  position: relative;
  width: 100%; height: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 15% 10%, var(--rose-100) 0%, transparent 55%),
    radial-gradient(120% 100% at 90% 90%, var(--sage-100) 0%, transparent 55%),
    radial-gradient(80% 80% at 70% 20%, var(--apricot-100) 0%, transparent 60%),
    var(--cream-2);
  isolation: isolate;
}
.ph-photo::after { /* grain over the placeholder */
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  mix-blend-mode: multiply; pointer-events: none;
}
.ph-photo svg { width: min(62%, 280px); height: auto; position: relative; z-index: 1; }
.ph-tag {
  position: absolute;
  left: 14px; top: 14px;
  z-index: 2;
  background: color-mix(in srgb, var(--plum) 88%, transparent);
  color: var(--cream);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .35rem .7rem;
  border-radius: 8px;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------------------
   8. SERVICE CARDS (offset / editorial, not a flat grid)
   ------------------------------------------------------------------------- */
.services { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.cards-offset {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
  align-items: start;
}
.cards-offset > *:nth-child(2) { transform: translateY(2.5rem); }
.cards-offset > *:nth-child(3) { transform: translateY(.9rem); }
.cards-offset > *:nth-child(4) { transform: translateY(1.8rem); }

.s-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.s-card::before { /* corner wash */
  content: ""; position: absolute; inset: auto -40% -55% auto;
  width: 75%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--rose-50), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.s-card:hover { transform: translateY(-8px); box-shadow: var(--sh-md); border-color: var(--rose-100); }
.s-card:hover::before { opacity: 1; }

.s-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  background: var(--cream-2);
}
.s-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}
.s-card:hover .s-card-image {
  transform: scale(1.06);
}

.s-card-body {
  padding: clamp(1.4rem, 2.2vw, 2rem);
  padding-top: 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.s-card .s-icon {
  position: absolute;
  top: -46px;
  left: clamp(1.4rem, 2.2vw, 2rem);
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--paper);
  color: var(--rose);
  box-shadow: var(--sh-md);
  border: 1px solid var(--line-soft);
  z-index: 3;
  transition: transform var(--dur-base) var(--ease-spring), background .3s var(--ease), color .3s var(--ease);
}
.s-card:nth-child(2) .s-icon { color: var(--sage-700); }
.s-card:nth-child(3) .s-icon { color: var(--apricot-700); }
.s-card:nth-child(4) .s-icon { color: var(--plum); }

.s-card h3 { font-size: var(--fs-h3); margin-top: 0.8rem; margin-bottom: .6rem; position: relative; z-index: 1; }
.s-card p { color: var(--plum-soft); position: relative; z-index: 1; margin-bottom: 1.2rem; }
.s-card .link-arrow { margin-top: auto; position: relative; z-index: 1; }

/* ----------------------------------------------------------------------------
   9. FUNDING BAND (the conversion centrepiece)
   ------------------------------------------------------------------------- */
.funding {
  background: linear-gradient(135deg, var(--plum) 0%, #2c2932 100%);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.funding::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(216,72,127,.45), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(126,154,130,.4), transparent 55%);
}
.funding > * { position: relative; z-index: 1; }
.funding h2, .funding h3 { color: var(--cream); }
.funding .eyebrow { color: var(--apricot); }
.funding .lead { color: rgba(250,244,236,.85); }
.funding-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.funding .big-figure {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: .9;
  color: #fff;
}
.funding .big-figure span { color: var(--apricot); }
.funding .figure-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 1.75rem 1.9rem;
  backdrop-filter: blur(4px);
}
.funding-note { font-size: .95rem; color: rgba(250,244,236,.7); margin-top: 1rem; }

/* ----------------------------------------------------------------------------
   10. "WHY US" + STATS
   ------------------------------------------------------------------------- */
.feature-split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.check-list { list-style: none; padding: 0; display: grid; gap: 1rem; margin-top: 1.6rem; }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; font-size: 1.08rem; }
.check-list .ic {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sage-100); color: var(--sage-700);
  display: grid; place-items: center; margin-top: 2px;
}
.check-list strong { display: block; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  text-align: center;
}
.stat { padding: 1.4rem 1rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--sh-sm); }
.stat .n { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--rose); line-height: 1; }
.stat .t { display: block; margin-top: .5rem; font-weight: 600; color: var(--plum-soft); font-size: .98rem; }

/* ----------------------------------------------------------------------------
   11. PROCESS (so einfach geht's)
   ------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step .num {
  font-family: var(--font-display);
  font-size: 3.3rem; font-weight: 600; line-height: 1;
  color: var(--rose-100);
  -webkit-text-stroke: 1.5px var(--rose);
  margin-bottom: .8rem;
  display: block;
}
.step h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.step p { color: var(--plum-soft); }
.steps.connected .step:not(:last-child)::after {
  content: ""; position: absolute; top: 1.7rem; left: 4.2rem; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--rose) 0 8px, transparent 8px 16px);
  opacity: .45;
}

/* ----------------------------------------------------------------------------
   12. TESTIMONIALS
   ------------------------------------------------------------------------- */
.testimonials { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.quote {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
}
.quote .mark { font-family: var(--font-display); font-size: 3.4rem; line-height: .6; color: var(--rose-100); height: 1.6rem; }
.quote blockquote { font-size: 1.1rem; color: var(--plum); margin: .4rem 0 1.3rem; }
.quote .who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--rose); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
}
.quote .who b { display: block; }
.quote .who span { font-size: .9rem; color: var(--plum-mute); }
.stars { color: var(--apricot); letter-spacing: 2px; margin-bottom: .8rem; }

/* ----------------------------------------------------------------------------
   13. CTA BAND
   ------------------------------------------------------------------------- */
.cta-band { position: relative; }
.cta-inner {
  background:
    radial-gradient(90% 140% at 100% 0%, var(--rose-100), transparent 60%),
    radial-gradient(90% 140% at 0% 100%, var(--sage-100), transparent 55%),
    var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 4.2rem);
  text-align: center;
  box-shadow: var(--sh-md);
  position: relative; overflow: hidden;
}
.cta-inner h2 { font-size: var(--fs-h2); }
.cta-inner .lead { margin: 1rem auto 0; max-width: 50ch; }
.cta-inner .hero-cta { justify-content: center; }

/* ----------------------------------------------------------------------------
   14. PAGE HERO (interior pages)
   ------------------------------------------------------------------------- */
.page-hero { position: relative; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3.5rem); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 80% at 100% 0%, var(--rose-50), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, var(--sage-50), transparent 55%);
}
.page-hero .shell { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--fs-h1); margin-top: 1rem; }
.page-hero .lead { margin-top: 1.3rem; max-width: 56ch; }
.breadcrumb { display: flex; gap: .5ch; flex-wrap: wrap; font-size: .92rem; color: var(--plum-mute); list-style: none; padding: 0; }
.breadcrumb a { color: var(--plum-mute); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--rose-700); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .5ch; color: var(--line); }

/* ----------------------------------------------------------------------------
   15. SERVICE DETAIL (alternating editorial rows)
   ------------------------------------------------------------------------- */
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  scroll-margin-top: 110px;
}
.detail-row + .detail-row { border-top: 1px solid var(--line); }
.detail-row:nth-child(even) .detail-media { order: -1; }
.detail-media { position: relative; }
.detail-media-img-wrap {
  border-radius: var(--radius-lg);
  aspect-ratio: 5 / 4;
  box-shadow: var(--sh-md);
  overflow: hidden;
  background: var(--cream-2);
  border: 1px solid var(--line-soft);
}
.detail-media-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease);
}
.detail-row:hover .detail-media-img-wrap img {
  transform: scale(1.04);
}
.detail-copy h2 { font-size: var(--fs-h2); }
.detail-copy .tag { display:inline-flex; align-items:center; gap:.5ch; font-weight:700; font-size:.85rem; letter-spacing:.14em; text-transform:uppercase; color: var(--sage-700); background: var(--sage-50); padding:.35rem .8rem; border-radius:999px; }
.bullets { list-style: none; padding: 0; display: grid; gap: .75rem; margin: 1.4rem 0; }
.bullets li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.bullets .ic { color: var(--rose); margin-top: .35rem; flex-shrink: 0; }
.for-whom { background: var(--cream-2); border-left: 4px solid var(--apricot); padding: 1rem 1.3rem; border-radius: 0 12px 12px 0; font-size: 1.02rem; }
.for-whom b { color: var(--apricot-700); }

/* ----------------------------------------------------------------------------
   16. FAQ ACCORDION
   ------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 1rem; max-width: 820px; }
.faq-item { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-sm); transition: border-color .25s var(--ease); }
.faq-item[open], .faq-item.open { border-color: var(--rose-100); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.5rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--plum);
  text-align: left;
}
.faq-q .pm { flex-shrink: 0; width: 30px; height: 30px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; inset: 50% 4px auto 4px; height: 2.5px; background: var(--rose); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-q .pm::after { transform: rotate(90deg); }
.faq-item.open .faq-q .pm::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.5rem 1.4rem; color: var(--plum-soft); margin: 0; }

/* ----------------------------------------------------------------------------
   17. CONTACT
   ------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1.4rem; align-content: start; }
.info-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--sh-sm);
}
.info-card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--rose-50); color: var(--rose); display: grid; place-items: center; flex-shrink: 0; }
.info-card h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.info-card a { font-weight: 700; text-decoration: none; }
.info-card p, .info-card a { font-size: 1.05rem; }
/* Let contact grid/card items shrink below their content's intrinsic width
   so form inputs and the long e-mail never cause horizontal overflow on mobile. */
.contact-grid > *, .contact-info, .info-card, .info-card > div, .map-embed { min-width: 0; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  box-shadow: var(--sh-md);
}
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 700; margin-bottom: .45rem; color: var(--plum); }
.field label .req { color: var(--rose-700); }
.field .hint { font-size: .88rem; color: var(--plum-mute); margin-top: .35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--plum);
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: .85rem 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rose); background: var(--paper);
  box-shadow: 0 0 0 4px var(--rose-50);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--err); }
.field .err-msg { display: none; color: var(--err); font-size: .9rem; margin-top: .4rem; font-weight: 600; }
.field.invalid .err-msg { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }

.checkbox-field { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.checkbox-field input { width: 24px; height: 24px; margin-top: 3px; accent-color: var(--rose); }
.checkbox-field label { font-weight: 500; font-size: .98rem; color: var(--plum-soft); margin: 0; }

.form-success {
  display: none;
  background: var(--sage-50); border: 1px solid var(--sage); color: var(--sage-700);
  border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-weight: 600;
}
.form-success.show { display: block; }

.map-embed { margin-top: clamp(2.5rem, 5vw, 4rem); }
.map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Rose filter styling for embedded map */
.map-rose-filter {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.map-rose-filter .map-frame {
  border: none;
}
.map-rose-filter iframe {
  filter: grayscale(100%) contrast(1.1) brightness(0.95) sepia(10%);
  transition: filter var(--dur-slow) var(--ease);
}
.map-rose-filter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rose);
  mix-blend-mode: color;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity var(--dur-slow) var(--ease);
  border-radius: var(--radius-lg);
}
.map-rose-filter:hover iframe {
  filter: grayscale(20%) contrast(1) brightness(1) sepia(0%);
}
.map-rose-filter:hover::after {
  opacity: 0.12;
}

/* ----------------------------------------------------------------------------
   18. ABOUT / PROSE
   ------------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { font-size: var(--fs-h2); margin-top: 2.4rem; }
.prose h3 { font-size: var(--fs-h3); margin-top: 1.8rem; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: .7rem; }
.prose ul li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; }
.prose ul li::before { content: "♥"; color: var(--rose); font-size: .9em; line-height: 1.7; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.value { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--sh-sm); }
.value .ic { color: var(--rose); margin-bottom: .8rem; }
.value h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.value p { color: var(--plum-soft); font-size: 1rem; }

/* Legal / document pages */
.doc { max-width: 760px; }
.doc h2 { font-size: var(--fs-h3); margin-top: 2.2rem; margin-bottom: .6rem; }
.doc h3 { font-size: 1.2rem; margin-top: 1.4rem; margin-bottom: .4rem; }
.doc p, .doc li { color: var(--plum-soft); }
.doc ul { padding-left: 1.2rem; display: grid; gap: .4rem; margin-top: .5rem; }
.doc address { font-style: normal; }
.note-box { background: var(--apricot-100); border: 1px solid var(--apricot); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.4rem 0; color: var(--apricot-700); font-weight: 600; }
.note-box.info { background: var(--sage-50); border-color: var(--sage); color: var(--sage-700); }

/* Placeholder marker (so the client can spot what to replace) */
.ph {
  background: var(--apricot-100);
  border-bottom: 2px dashed var(--apricot-700);
  padding: 0 .2em;
  border-radius: 3px;
  color: var(--apricot-700);
  font-weight: 600;
  white-space: nowrap;
}

/* ----------------------------------------------------------------------------
   19. FOOTER
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--plum);
  color: rgba(250,244,236,.78);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
  position: relative; z-index: 1;
  margin-top: var(--section-y);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.6rem, 3vw, 2.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .footer-logo { background: var(--cream); border-radius: 14px; padding: .8rem 1rem; display: inline-block; }
.footer-brand .footer-logo img { height: 64px; width: auto; }
.footer-brand p { margin-top: 1.1rem; max-width: 32ch; font-size: 1rem; }
.footer-col h4 { color: var(--cream); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .65rem; }
.footer-col a { color: rgba(250,244,236,.78); text-decoration: none; font-weight: 500; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.footer-contact li { display: flex; gap: .7ch; align-items: flex-start; }
.footer-contact .ic { color: var(--rose); flex-shrink: 0; margin-top: 3px; }
.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--cream); transition: background .2s var(--ease), transform .2s var(--ease); }
.socials a:hover { background: var(--rose); transform: translateY(-3px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  padding-top: 1.6rem; font-size: .9rem; color: rgba(250,244,236,.6);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-bottom a { color: rgba(250,244,236,.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-disclaimer { font-size: .82rem; color: rgba(250,244,236,.45); margin-top: 1rem; max-width: 80ch; }

/* ----------------------------------------------------------------------------
   20. MOTION — page-load reveal + scroll reveal
   ------------------------------------------------------------------------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* Staggered page-load choreography — ~70ms between items, capped (motion-design) */
.load-seq > * { animation: riseIn .8s var(--ease-out) both; }
.load-seq > *:nth-child(1) { animation-delay: .04s; }
.load-seq > *:nth-child(2) { animation-delay: .12s; }
.load-seq > *:nth-child(3) { animation-delay: .20s; }
.load-seq > *:nth-child(4) { animation-delay: .28s; }
.load-seq > *:nth-child(5) { animation-delay: .36s; }
.load-seq > *:nth-child(6) { animation-delay: .44s; }

.hero-visual { animation: riseIn 1s var(--ease-out) both; animation-delay: .30s; }

/* Scroll reveal (JS toggles .is-visible) */
.reveal { opacity: 0; transform: translateY(28px) scale(.99); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; will-change: auto; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }

/* ----------------------------------------------------------------------------
   21. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  /* Mobile nav */
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: static; }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-130%);
    transition: transform .4s var(--ease);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overflow-x: hidden;
    /* Ensure nav doesn't cause horizontal overflow */
    width: 100vw;
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list a { padding: 1rem .4rem; font-size: 1.15rem; border-bottom: 1px solid var(--line-soft); }
  .nav-list a::after { display: none; }
  .header-cta .btn-phone small { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero {
    background-image: linear-gradient(to bottom, rgba(250, 244, 236, 0.88), rgba(250, 244, 236, 0.94)), url('../assets/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .hero .blob { display: none; }
  .hero-figure { display: none; }
  .hero-visual {
    max-width: 100%;
    margin-top: 1.5rem;
    animation: none;
  }
  .hero-badge {
    position: static;
    max-width: 100%;
    width: 100%;
    animation: none;
    box-shadow: var(--sh-sm);
  }
  .funding-grid, .feature-split, .contact-grid { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 1.6rem; }
  .detail-row:nth-child(even) .detail-media { order: 0; }
  .cards-offset { grid-template-columns: 1fr; }
  /* Reset desktop offset transforms — but only when the scroll-driven sticky
     card animation is NOT active (older browsers without animation-timeline) */
  @supports not (animation-timeline: scroll()) {
    .cards-offset > * { transform: none; }
  }
  .quote-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .steps.connected .step::after { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }

  /* Prevent any overflowing wrappers on tablet/mobile */
  .funding { overflow: hidden; }
  /* hero-copy uses word-break instead of overflow:hidden to avoid clipping animations */
  .hero-copy { max-width: 100%; word-break: break-word; overflow-wrap: break-word; }
  .cta-inner { overflow: hidden; }
}

@media (max-width: 640px) {
  /* Footer: single column on small phones */
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  /* Shrink header to fit smaller screens */
  .header-inner { min-height: 68px; }
  .brand-logo { height: 48px; }

  /* Buttons full-width in hero */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; text-align: center; }

  /* Trust strip: single column */
  .trust-strip { flex-direction: column; gap: .5rem; }

  /* Funding band: prevent inner content overflow */
  .funding .big-figure { font-size: clamp(2.8rem, 16vw, 5rem); }
  .figure-card { padding: 1.2rem 1rem; }

  /* CTA band */
  .cta-inner .hero-cta { flex-direction: column; align-items: stretch; }
  .cta-inner .hero-cta .btn { width: 100%; }

  /* Step numbers */
  .step .num { font-size: 2.6rem; }

  /* Form: make sure fields don't overflow */
  .field input, .field select, .field textarea { font-size: 1rem; }

  /* Footer contact links wrapping */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .footer-bottom nav { gap: 1rem 1.6rem; }
}

@media (max-width: 560px) {
  .header-cta .btn-phone span.txt { display: none; }
  .btn-phone { padding: .55rem .8rem; }
  .hero-cta .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-badge { right: 8px; left: 8px; max-width: none; bottom: 12px; }

  /* Page hero heading */
  .page-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }

  /* Prose & doc pages */
  .faq-q { font-size: 1.05rem; padding: 1rem 1.1rem; }
  .faq-a p { padding: 0 1.1rem 1.2rem; }
}

@media (max-width: 380px) {
  :root {
    --fs-body: 1.0625rem;
    --fs-h1: clamp(2rem, 10vw, 2.8rem);
    --fs-h2: clamp(1.6rem, 8vw, 2.2rem);
    --gutter: 1rem;
  }
  .stats { grid-template-columns: 1fr; }
  .hero-cta .btn { font-size: 1rem; padding: .8rem 1.2rem; min-height: 50px; }
  .btn-lg { font-size: 1rem; min-height: 52px; padding-inline: 1.4rem; }
}

/* ----------------------------------------------------------------------------
   22. REDUCED MOTION
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .load-seq > *, .hero-visual { animation: none; }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-cta, .cta-band, body::before,
  .scroll-progress, .to-top { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================================
   23. ENHANCEMENTS — skills pass (icons, scroll experience, micro-interactions)
   ========================================================================= */

/* — Inline-SVG icons (replacing emoji per ui-ux-pro-max "no emoji icons") — */
.ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.ic svg { display: block; }
/* keep the 48px square / 30px circle icon boxes intact */
.info-card .ic, .check-list .ic { line-height: 0; }

/* Testimonial stars become crisp SVGs in a tidy row */
.stars { display: inline-flex; align-items: center; gap: 3px; line-height: 0; }
.stars svg { display: block; }

/* — Scroll progress bar (CSS scroll-driven, native, zero JS) — */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0;
  height: 3px; z-index: var(--z-toast);
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--rose), var(--apricot));
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: growProgress linear;
    animation-timeline: scroll(root);
  }
}
@keyframes growProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* — Subtle hero parallax (scroll-driven, decorative blobs only) — */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero .blob-1 { animation: driftUp linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero .blob-2 { animation: driftDown linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero-badge   { animation: floatBadge linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }

    /* Service Cards scroll convergence animation in "Unsere Leistungen" section (DESKTOP ONLY) */
    @media (min-width: 921px) {
      .services .s-card:nth-child(1) {
        animation: convergeLeft linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 45%;
      }
      .services .s-card:nth-child(2) {
        animation: convergeMiddle linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 45%;
      }
      .services .s-card:nth-child(3) {
        animation: convergeRight linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 45%;
      }
      .services .s-card:nth-child(4) {
        animation: convergeRight2 linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 45%;
      }
    }

    /* Welcome Text scroll gather animation */
    .scroll-gather .char-span {
      animation: gatherChar linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }
  }
}
@keyframes driftUp   { to { transform: translateY(-60px); } }
@keyframes driftDown { to { transform: translateY(40px); } }
@keyframes floatBadge{ to { transform: translateY(-18px); } }

@keyframes convergeLeft {
  from { transform: translateX(-80px) translateY(2.5rem) scale(0.9); opacity: 0; }
  to { transform: translateX(0) translateY(0) scale(1); opacity: 1; }
}
@keyframes convergeMiddle {
  from { transform: translateY(5rem) scale(0.9); opacity: 0; }
  to { transform: translateY(2.5rem) scale(1); opacity: 1; }
}
@keyframes convergeRight {
  from { transform: translateX(80px) translateY(2.5rem) scale(0.9); opacity: 0; }
  to { transform: translateX(0) translateY(0.9rem) scale(1); opacity: 1; }
}
@keyframes convergeRight2 {
  from { transform: translateX(80px) translateY(3rem) scale(0.9); opacity: 0; }
  to { transform: translateX(0) translateY(1.8rem) scale(1); opacity: 1; }
}

/* Text gather scroll animation base styles */
.scroll-gather {
  perspective: 500px;
}
.char-span {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity;
}
.char-space {
  display: inline-block;
  width: 0.28em;
}

@keyframes gatherChar {
  from {
    transform: translateX(calc(var(--dist) * 12px)) rotateX(calc(var(--dist) * 4deg));
    opacity: 0;
  }
  to {
    transform: translateX(0) rotateX(0);
    opacity: 1;
  }
}

/* Animated text reveal styles */
.animated-text-words {
  display: block;
}
.word-span {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  will-change: transform, opacity;
}
.reveal.is-visible .word-span {
  animation: wordReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--index) * 60ms);
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-text-chars {
  display: block;
}
.char-span-reveal {
  display: inline-block;
  opacity: 0;
  will-change: opacity;
}
.char-space-reveal {
  display: inline-block;
  width: 0.28em;
}
.reveal.is-visible .char-span-reveal {
  animation: charReveal 0.25s linear forwards;
  animation-delay: calc(var(--index) * 14ms);
}

@keyframes charReveal {
  to {
    opacity: 1;
  }
}

/* Checklist item staggered word animation and checkmark pop-in */
.reveal.is-visible .check-list li .ic {
  opacity: 0;
  transform: scale(0.6);
  animation: iconReveal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Checklist icon staggered delay overrides */
.reveal.is-visible .check-list li:nth-child(1) .ic { animation-delay: 200ms; }
.reveal.is-visible .check-list li:nth-child(2) .ic { animation-delay: 600ms; }
.reveal.is-visible .check-list li:nth-child(3) .ic { animation-delay: 1000ms; }
.reveal.is-visible .check-list li:nth-child(4) .ic { animation-delay: 1400ms; }

/* Checklist text staggered word overrides */
.reveal.is-visible .check-list li:nth-child(1) .word-span { animation-delay: calc((var(--index) * 50ms) + 200ms); }
.reveal.is-visible .check-list li:nth-child(2) .word-span { animation-delay: calc((var(--index) * 50ms) + 600ms); }
.reveal.is-visible .check-list li:nth-child(3) .word-span { animation-delay: calc((var(--index) * 50ms) + 1000ms); }
.reveal.is-visible .check-list li:nth-child(4) .word-span { animation-delay: calc((var(--index) * 50ms) + 1400ms); }

@keyframes iconReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero Entrance Animation Sequence (inspired by MynaHero) */

/* 1. Main Title Container Animation */
.hero-title {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(30px);
  will-change: opacity, filter, transform;
  animation: heroTitleReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 100ms;
}

@keyframes heroTitleReveal {
  to {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

/* 2. Individual Title Words Stagger */
.hero-title .word-span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
  animation: heroWordReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc((var(--index) * 150ms) + 200ms);
}

@keyframes heroWordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3. Description Paragraph Fade-Up */
.hero-copy .lead {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.2s; /* delay matches MynaHero's 1.2s */
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4. Trust Strip (Labels) Staggered Spring Fade-Up */
.hero-copy .trust-strip li {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
  animation: heroSpringFadeUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero-copy .trust-strip li:nth-child(1) { animation-delay: 1.8s; }
.hero-copy .trust-strip li:nth-child(2) { animation-delay: 1.95s; }
.hero-copy .trust-strip li:nth-child(3) { animation-delay: 2.1s; }

/* 5. CTA Buttons Spring Fade-Up */
.hero-copy .hero-cta {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
  animation: heroSpringFadeUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 2.4s; /* delay matches MynaHero's 2.4s */
}

@keyframes heroSpringFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 6. Hero Visual Image Scale & Blur Reveal */
.hero-image {
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.96);
  will-change: opacity, filter, transform;
  animation: heroImageReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 300ms;
}

@keyframes heroImageReveal {
  to {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
  }
}

/* General Blur Fade utility */
.blur-fade {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(6px);
  will-change: opacity, filter, transform;
}
.blur-fade.animate-now,
.reveal.is-visible .blur-fade {
  animation: blurFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes blurFadeIn {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(-6px);
  }
}


/* ── Mobile sticky stacking card scroll animation ──────────────────────────
   Cards stack like a deck as you scroll: each new card slides in from below
   and pins just below the header while the previous one scales down and dims.
   Requires scroll-driven animations (Chrome 115+, Safari 18+).
   ────────────────────────────────────────────────────────────────────────── */
@supports (animation-timeline: scroll()) {
  @media (max-width: 920px) and (min-height: 650px) and (prefers-reduced-motion: no-preference) {

    /* — Container: flex column with generous scroll room — */
    .services .cards-offset {
      display: flex;
      flex-direction: column;
      gap: 6vh;            /* breathing room between cards while scrolling */
      padding-bottom: 30vh; /* extra space so the last card can fully settle */
    }

    /* — Each card becomes a sticky layer — */
    .services .s-card {
      position: sticky;
      /* pin just below the sticky header (84px) + a comfortable gap */
      top: calc(84px + 1rem);
      transform-origin: top center;
      will-change: transform, filter, box-shadow;

      /* Entry: card rises up from slightly below as it enters view */
      animation:
        stickyCardEntry  0.5s cubic-bezier(0.16, 1, 0.3, 1) both,
        stickyCardExit   linear both;

      animation-timeline:
        view(),        /* for entry */
        view();        /* for exit / scale-down */

      animation-range:
        entry 0% entry 40%,   /* entry animation range */
        exit  0% exit  100%;  /* exit (scale + dim) range */

      isolation: isolate;
      opacity: 1 !important;
    }

    /* Per-card depth variables: lower cards scale down more and sit deeper */
    .services .s-card:nth-of-type(1) {
      --exit-scale:  0.82;
      --exit-dim:    0.72;
      --exit-shadow: 0 32px 64px -20px rgba(61, 58, 66, .38);
      z-index: 10;
    }
    .services .s-card:nth-of-type(2) {
      --exit-scale:  0.91;
      --exit-dim:    0.84;
      --exit-shadow: 0 24px 48px -16px rgba(61, 58, 66, .28);
      z-index: 20;
    }
    .services .s-card:nth-of-type(3) {
      --exit-scale:  1;
      --exit-dim:    1;
      --exit-shadow: var(--sh-sm);
      z-index: 30;
    }
    .services .s-card:nth-of-type(4) {
      --exit-scale:  1;
      --exit-dim:    1;
      --exit-shadow: var(--sh-sm);
      z-index: 40;
    }
  }
}

/* Card enters by rising from 40px below with a fade-in */
@keyframes stickyCardEntry {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Card exits by shrinking down, dimming, and casting a deeper shadow */
@keyframes stickyCardExit {
  to {
    transform: scale(var(--exit-scale, 0.88));
    filter: brightness(var(--exit-dim, 0.8));
    box-shadow: var(--exit-shadow, var(--sh-md));
  }
}

/* Fallback @keyframes for older name (keep for any cached references) */
@keyframes scaleStickyCard {
  to {
    transform: scale(var(--target-scale, 0.88));
    filter: brightness(0.86);
  }
}



/* — Back-to-top control — */
.to-top {
  position: fixed;
  right: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-right));
  bottom: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-bottom));
  z-index: var(--z-overlay);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: none; cursor: pointer;
  border-radius: 50%;
  color: #fff; background: var(--btn-grad);
  box-shadow: var(--sh-rose);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out),
              visibility var(--dur-base);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -14px rgba(216,72,127,.6); }
.to-top svg { display: block; }

/* — Micro-interaction polish — */
.s-icon { transition: transform var(--dur-base) var(--ease-spring); }
.s-card:hover .s-icon { transform: rotate(-6deg) scale(1.08) translateY(-4px); }
.info-card { transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--rose-100); }
.value { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.value:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.value .ic { transition: transform var(--dur-base) var(--ease-spring); }
.value:hover .ic { transform: scale(1.12); }
.quote { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.quote:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.footer-col a, .breadcrumb a { transition: color var(--dur-fast) var(--ease); }
.btn-phone, .nav-list a, .link-arrow, .socials a, a { transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }

/* Hairline gradient accent on section panels for depth */
.funding, .cta-inner, .form-card { position: relative; }

/* — Typography & rhythm refinements — */
h1, h2, h3, h4 { font-feature-settings: "ss01", "liga", "calt"; }
.lead { text-wrap: balance; }
.prose p, .doc p { max-width: 68ch; }      /* hold measure for comfort */

/* Reduced-motion: also neutralise scroll-driven + micro animations */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { animation: none; transform: scaleX(0); }
  .hero .blob-1, .hero .blob-2, .hero-badge { animation: none; }
  .s-card:hover .s-icon, .value:hover .ic { transform: none; }
  .btn-primary::after { display: none; }
  .to-top { transition: opacity .001ms; }
  .blur-fade, .hero h1.blur-fade {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* ============================================================================
   24. BOLD VISUAL LAYER — immediately visible on first glance
   ========================================================================= */

/* Eyebrow → pill badge  (replaces the dash-prefix approach) */
.eyebrow {
  background: var(--rose-50);
  border: 1.5px solid var(--rose-100);
  border-radius: var(--radius-pill);
  padding: .3rem 1rem .28rem;
}
.eyebrow::before { display: none; }

/* Eyebrows inside dark panels keep legibility */
.funding .eyebrow {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.22);
  color: var(--apricot);
}
.cta-inner .eyebrow {
  background: rgba(216,72,127,.15);
  border-color: rgba(216,72,127,.25);
  color: var(--rose-700);
}

/* Hero — warm branded gradient instead of plain cream */
.hero {
  background:
    radial-gradient(ellipse 90% 75% at 92% -5%, var(--rose-100) 0%, transparent 52%),
    radial-gradient(ellipse 85% 65% at 4%  108%, var(--sage-100) 0%, transparent 52%),
    linear-gradient(158deg, #FDF0F5 0%, var(--cream) 48%);
}
/* Make the decorative blobs a bit more prominent */
.hero .blob-1 { opacity: 1; }
.hero .blob-2 { opacity: .95; }
.hero .blob-3 { opacity: .8; }

/* Service cards — distinct colored top-stripe per service */
.s-card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--rose) 0%, var(--rose-600) 100%);
  z-index: 4;
}
.s-card:nth-child(2)::after {
  background: linear-gradient(90deg, var(--sage) 0%, var(--sage-700) 100%);
}
.s-card:nth-child(3)::after {
  background: linear-gradient(90deg, var(--apricot) 0%, #C88A3A 100%);
}
.s-card:nth-child(4)::after {
  background: linear-gradient(90deg, var(--plum-soft) 0%, var(--plum) 100%);
}

/* Stat numbers — more impact */
.stat .n { font-size: clamp(2.8rem, 5.5vw, 4rem); }
.stat { border-top: 4px solid var(--rose-100); }
.stats > .stat:nth-child(2) { border-top-color: var(--sage-100); }
.stats > .stat:nth-child(3) { border-top-color: var(--apricot-100); }
.stats > .stat:nth-child(4) { border-top-color: var(--rose-100); opacity: .85; }

/* Value cards — colored left-border accent for instant visual variety */
.value { border-left: 3px solid var(--rose-100); }
.values-grid > .value:nth-child(3n+2) { border-left-color: var(--sage-100); }
.values-grid > .value:nth-child(3n)   { border-left-color: var(--apricot-100); }

/* Quote cards — subtle left accent */
.quote { border-left: 3px solid var(--rose-100); }

/* Section-level backgrounds — break the monotone cream */
.section.services    { background: var(--cream-2); }
.section.testimonials { background: var(--paper); }

/* Mobile Hero Background override (cascaded at the end to override desktop styling) */
@media (max-width: 920px) {
  .hero {
    background: url('../assets/bg.png') no-repeat center center / cover !important;
    padding-block: clamp(4.5rem, 9vw, 9rem);
    /* Prevent hero from ever exceeding viewport */
    max-width: 100%;
    overflow: hidden;
  }
  .hero-copy {
    background: rgba(255, 253, 249, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: var(--sp-6) var(--sp-5);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--sh-lg);
    /* Prevent text or children from overflowing */
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* ============================================================================
   25. SAFE AREA INSETS (notch support for iOS)
   ========================================================================= */
.site-header {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.site-footer {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}
.shell {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
