/* ==========================================================================
   SymPatyk – Stylesheet
   Moderne CSS-Features: Cascade Layers, Nesting, OKLCH, color-mix(),
   Container Queries, :has(), :user-invalid, @starting-style, @property,
   View Transitions, Scroll-Driven Animations, text-wrap, field-sizing.
   ========================================================================== */

@layer reset, tokens, base, layout, components, pages, utilities;

/* --- Schriften (lokal gehostet, kein Drittanbieter) ---------------------- */
@font-face {
  font-family: 'Jakarta';
  src: url('/assets/fonts/jakarta.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* --- Reset -------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: none; text-size-adjust: none; }
  img, svg, video { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  ul[class], ol[class] { list-style: none; padding: 0; }
}

/* --- Design Tokens ------------------------------------------------------ */
@layer tokens {
  :root {
    /* Hell/Dunkel folgt dem System; [data-theme] (Umschalter im Header) überschreibt es */
    color-scheme: light dark;
    interpolate-size: allow-keywords;

    /* Markenfarben (fest) */
    --brand-navy: #0a2540;
    --brand-ocean: #1d64a6;
    --brand-coral: #ff6b52;

    /* Farben – light-dark(hell, dunkel) */
    --bg: light-dark(#f8fafc, #061a2e);
    --surface: light-dark(#ffffff, #0a2540);
    --surface-2: light-dark(#eef3f8, #08203a);
    --ink: light-dark(#0a2540, #f8fafc);
    --ink-2: light-dark(#475b73, #a9bacd);
    --on-ink: light-dark(white, #0a2540);
    --line: light-dark(#dde5ee, #1c3a5c);

    /* Primär = Links, Auswahl, Fortschritt: hell Ozeanblau, dunkel Koralle */
    --primary: light-dark(#1d64a6, #ff6b52);
    --primary-hover: light-dark(#0a2540, #ff8a75);
    --primary-soft: light-dark(#e6f0fa, #3a2233);
    --on-primary: light-dark(white, #0a2540);

    /* Call-to-Action: Koralle mit marineblauer Schrift (5,5 : 1) */
    --cta: var(--brand-coral);
    --cta-hover: light-dark(#0a2540, #ff8a75);
    --on-cta: var(--brand-navy);
    --on-cta-hover: light-dark(white, #0a2540);

    --coral: var(--brand-coral);
    --coral-soft: light-dark(#ffece8, #3a2233);
    --coral-ink: light-dark(#b3321c, #ffb3a6);

    --ocean: light-dark(#1d64a6, #4a8fd0);
    --ocean-soft: light-dark(#e6f0fa, #0f3354);
    --ocean-ink: light-dark(#1d64a6, #8ec0ee);
    --sky: light-dark(#bfddf7, #6aa8e0);
    --sky-soft: light-dark(#eef6fd, #0d2a47);
    --sky-ink: light-dark(#0f4c85, #a8d0f2);
    --navy: light-dark(#0a2540, #8fa6c4);
    --navy-soft: light-dark(#e7ecf3, #152f4d);
    --navy-ink: light-dark(#0a2540, #c4d3e6);

    --success: light-dark(oklch(52% 0.13 155), oklch(70% 0.13 155));
    --success-ink: light-dark(oklch(38% 0.1 155), oklch(85% 0.1 155));
    --danger: light-dark(oklch(55% 0.2 25), oklch(68% 0.17 25));
    --danger-ink: light-dark(oklch(42% 0.17 25), oklch(84% 0.1 25));

    /* Typografie */
    --font-sans: 'Jakarta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

    --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
    --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
    --step-1: clamp(1.15rem, 1.07rem + 0.4vw, 1.35rem);
    --step-2: clamp(1.35rem, 1.2rem + 0.75vw, 1.8rem);
    --step-3: clamp(1.65rem, 1.35rem + 1.4vw, 2.5rem);
    --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
    --step-5: clamp(2.5rem, 1.8rem + 3.4vw, 4.6rem);

    /* Abstände & Formen */
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: clamp(2rem, 1.5rem + 2vw, 3rem);
    --space-xl: clamp(3.5rem, 2.5rem + 5vw, 7rem);
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);

    --radius-s: 0.75rem;
    --radius-m: 1.25rem;
    --radius-l: 2rem;
    --radius-pill: 999px;

    --shadow-s: 0 1px 2px oklch(28% 0.06 250 / 0.06), 0 2px 8px oklch(28% 0.06 250 / 0.05);
    --shadow-m: 0 2px 4px oklch(28% 0.06 250 / 0.05), 0 12px 32px -8px oklch(28% 0.06 250 / 0.14);
    --shadow-l: 0 4px 8px oklch(28% 0.06 250 / 0.05), 0 30px 60px -20px oklch(28% 0.07 250 / 0.25);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1);
    --header-h: 4.5rem;
  }
  :root[data-theme='light'] { color-scheme: light; }
  :root[data-theme='dark'] { color-scheme: dark; }
}

/* --- Basis -------------------------------------------------------------- */
@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    hanging-punctuation: first last;
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
  }
  main { flex: 1; }

  h1, h2, h3, h4, .h1, .h2, .h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
    font-variation-settings: 'SOFT' 100, 'WONK' 0;
  }
  h1, .h1 { font-size: var(--step-5); }
  h2, .h2 { font-size: var(--step-4); }
  h3, .h3 { font-size: var(--step-2); }
  h4 { font-size: var(--step-1); }
  p, li { text-wrap: pretty; }

  a {
    color: var(--primary);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
    transition: color 0.2s;
    &:hover { color: var(--primary-hover); }
  }

  :focus-visible {
    outline: 3px solid color-mix(in oklch, var(--primary) 70%, white);
    outline-offset: 3px;
    border-radius: 6px;
  }

  ::selection { background: var(--sky); color: var(--brand-navy); }

  strong { font-weight: 700; }

  /* Markiert Stellen, die noch mit echten Angaben ersetzt werden müssen */
  .placeholder {
    background: var(--sky-soft);
    outline: 1px dashed oklch(70% 0.12 80);
    border-radius: 4px;
    padding: 0 0.25em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* --- Layout ------------------------------------------------------------- */
@layer layout {
  .container {
    width: min(100% - 2 * var(--gutter), 74rem);
    margin-inline: auto;
  }
  .container--narrow { width: min(100% - 2 * var(--gutter), 48rem); }

  .section { padding-block: var(--space-xl); }
  .section--tight { padding-block: var(--space-l); }
  .section--tinted { background: var(--surface-2); }
  .section--wave {
    position: relative;
    background: var(--surface-2);
    &::before {
      content: '';
      position: absolute;
      inset: -3rem 0 auto;
      height: 3.1rem;
      background: var(--surface-2);
      clip-path: ellipse(60% 100% at 50% 100%);
    }
  }

  .section-head {
    max-width: 44rem;
    margin-bottom: var(--space-l);
    > * + * { margin-top: var(--space-s); }
    > p { color: var(--ink-2); font-size: var(--step-1); }
    &.is-center { margin-inline: auto; text-align: center; }
  }

  .grid {
    display: grid;
    gap: var(--gap, var(--space-m));
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 17rem)), 1fr));
  }

  .split {
    display: grid;
    gap: var(--space-l);
    align-items: center;
    @media (width >= 60rem) {
      grid-template-columns: 1fr 1fr;
      gap: var(--space-xl);
      &.split--wide-left { grid-template-columns: 1.3fr 1fr; }
    }
  }

  .stack > * + * { margin-top: var(--flow, 1em); }
}

/* --- Komponenten -------------------------------------------------------- */
@layer components {

  /* Skip-Link */
  .skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--on-ink);
    border-radius: var(--radius-s);
    translate: 0 -200%;
    transition: translate 0.2s;
    &:focus { translate: 0 0; color: var(--on-ink); }
  }

  /* Scroll-Fortschritt (Scroll-Driven Animation) */
  .scroll-progress { display: none; }
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      display: block;
      position: fixed;
      inset: 0 0 auto;
      height: 3px;
      z-index: 60;
      background: linear-gradient(90deg, var(--coral), var(--sky), var(--ocean));
      transform-origin: 0 50%;
      animation: progress linear both;
      animation-timeline: scroll(root);
    }
    @keyframes progress { from { scale: 0 1; } to { scale: 1 1; } }
  }

  /* Buttons */
  .btn {
    --btn-bg: var(--surface);
    --btn-fg: var(--ink);
    --btn-border: var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3.1rem;
    padding: 0.8rem 1.5rem;
    border: 1.5px solid var(--btn-border);
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s, color 0.25s, border-color 0.25s, translate 0.3s var(--ease-out), box-shadow 0.3s;

    .icon { transition: translate 0.3s var(--ease-out); }

    &:hover {
      color: var(--btn-fg);
      translate: 0 -2px;
      box-shadow: var(--shadow-m);
      .icon { translate: 3px 0; }
    }
    &:active { translate: 0 0; }
  }
  .btn--primary {
    --btn-bg: var(--cta);
    --btn-fg: var(--on-cta);
    --btn-border: var(--cta);
    &:hover { --btn-bg: var(--cta-hover); --btn-fg: var(--on-cta-hover); --btn-border: var(--cta-hover); }
  }
  .btn--light {
    --btn-bg: white;
    --btn-fg: var(--brand-navy);
    --btn-border: white;
  }
  .btn--ghost:hover { --btn-border: var(--ink); }
  .btn--sm { min-height: 2.6rem; padding: 0.55rem 1.1rem; font-size: var(--step--1); }
  .btn--block { width: 100%; }

  .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 650;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
    .icon { transition: translate 0.3s var(--ease-out); }
    &:hover, a:hover > & { color: var(--primary-hover); }
    &:hover .icon, a:hover > & .icon { translate: 4px 0; }
  }

  /* Eyebrow / Badges */
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem 0.35rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--ocean-soft);
    color: var(--ocean-ink);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.02em;
    .icon { width: 1.1em; height: 1.1em; }
  }

  .badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--on-ink);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  /* Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    view-transition-name: site-header;
    background: color-mix(in oklch, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;

    &[data-scrolled] {
      border-color: var(--line);
      box-shadow: 0 6px 24px -12px oklch(28% 0.06 250 / 0.15);
    }
  }
  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
    min-height: var(--header-h);
  }

  .brand {
    flex: none;
    display: inline-flex;
    align-items: center;

    img {
      width: auto;
      height: 2.25rem;
      transition: scale 0.4s var(--ease-spring);
      @media (width >= 40rem) { height: 2.75rem; }
    }
    &:hover img { scale: 1.04; }
  }
  .brand--footer img { height: 3.5rem; @media (width >= 40rem) { height: 4rem; } }

  /* Logo: helle Variante (weiße Flächen marineblau) bzw. Original auf dunklem Grund */
  .brand__logo--dark { display: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
      .brand__logo--light { display: none; }
      .brand__logo--dark { display: block; }
    }
  }
  :root[data-theme='dark'] {
    .brand__logo--light { display: none; }
    .brand__logo--dark { display: block; }
  }

  /* Umschalter Hell / Dunkel */
  .theme-toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    &:hover { border-color: color-mix(in oklch, var(--primary) 45%, var(--line)); color: var(--primary); }
    .icon { grid-area: 1 / 1; width: 1.2rem; height: 1.2rem; transition: rotate 0.5s var(--ease-spring), scale 0.3s var(--ease-out), opacity 0.2s; }
    .theme-toggle__sun { opacity: 0; scale: 0.4; rotate: -90deg; }
    &[aria-pressed='true'] {
      .theme-toggle__moon { opacity: 0; scale: 0.4; rotate: 90deg; }
      .theme-toggle__sun { opacity: 1; scale: 1; rotate: 0deg; }
    }
  }

  .nav-toggle {
    display: none;
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);

    .nav-toggle__bars,
    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
      position: absolute;
      left: 50%;
      width: 1.2rem;
      height: 2px;
      margin-left: -0.6rem;
      border-radius: 2px;
      background: var(--ink);
      transition: rotate 0.3s var(--ease-out), translate 0.3s var(--ease-out), opacity 0.2s;
    }
    .nav-toggle__bars { top: 50%; }
    .nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; left: 0; margin: 0; }
    .nav-toggle__bars::before { translate: 0 -6px; }
    .nav-toggle__bars::after { translate: 0 6px; }

    &[aria-expanded='true'] {
      .nav-toggle__bars { background: transparent; }
      .nav-toggle__bars::before { translate: 0 0; rotate: 45deg; }
      .nav-toggle__bars::after { translate: 0 0; rotate: -45deg; }
    }
  }

  /* Hauptnavigation: Desktop = Leiste in der Mitte, Mobil = ausklappbares Panel */
  .site-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-s);

    > ul {
      display: flex;
      gap: 0.15rem;
      margin-inline: auto;
      padding: 0.3rem;
      border: 1px solid var(--line);
      border-radius: var(--radius-pill);
      background: color-mix(in oklch, var(--surface) 70%, transparent);
    }
    > ul > li > a,
    [data-menu-toggle] {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.5rem 1rem;
      border: 0;
      border-radius: var(--radius-pill);
      background: none;
      color: var(--ink);
      font-size: 0.96rem;
      font-weight: 550;
      text-decoration: none;
      white-space: nowrap;
      transition: background 0.2s, color 0.2s;
      &:hover { background: var(--surface-2); color: var(--ink); }
    }
    > ul > li > a[aria-current='page'],
    .has-menu.is-current > [data-menu-toggle] {
      color: var(--primary-hover);
      background: var(--primary-soft);
    }
    .menu-chevron { width: 1rem; height: 1rem; transition: rotate 0.3s var(--ease-out); }
    [aria-expanded='true'] .menu-chevron { rotate: 180deg; }
  }
  .site-nav ul { list-style: none; padding: 0; }
  .has-menu { position: relative; }

  /* Aufklappmenü „Leistungen“ */
  .menu {
    ul { display: grid; gap: 0.15rem; }
    ul a {
      display: flex;
      gap: 0.8rem;
      align-items: flex-start;
      padding: 0.7rem 0.8rem;
      border-radius: var(--radius-s);
      color: var(--ink);
      text-decoration: none;
      transition: background 0.2s;
      &:hover, &[aria-current='page'] { background: var(--surface-2); color: var(--ink); }
      > .icon {
        width: 2.2rem;
        height: 2.2rem;
        padding: 0.5rem;
        border-radius: 0.7rem;
        background: var(--primary-soft);
        color: var(--primary-hover);
      }
      span { display: grid; line-height: 1.3; }
      b { font-weight: 650; }
      small { color: var(--ink-2); font-size: var(--step--1); }
    }
  }
  .menu__all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding: 0.75rem 0.8rem 0.35rem;
    border-top: 1px solid var(--line);
    font-size: var(--step--1);
    font-weight: 650;
    text-decoration: none;
  }

  @media (width >= 62rem) {
    .site-nav__cta { order: 2; }
    .menu {
      position: absolute;
      top: calc(100% + 0.9rem);
      left: 50%;
      width: 22rem;
      padding: 0.5rem;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-m);
      box-shadow: var(--shadow-l);
      translate: -50% 0;
      opacity: 1;
      transition: opacity 0.2s, translate 0.3s var(--ease-out), display 0.3s allow-discrete;
      @starting-style { opacity: 0; translate: -50% -0.5rem; }
      /* unsichtbare Brücke, damit das Menü beim Hinüberfahren offen bleibt */
      &::before { content: ''; position: absolute; inset: -1rem 0 100%; }
    }
    .has-menu:not(.is-open) .menu { display: none; opacity: 0; translate: -50% -0.5rem; }
  }

  @media (width < 62rem) {
    .nav-toggle { display: block; }
    .theme-toggle { margin-left: auto; }
    .site-header__inner { gap: 0.6rem; }
    .site-nav {
      position: absolute;
      inset: calc(100% + 0.5rem) var(--gutter) auto;
      flex-direction: column;
      align-items: stretch;
      max-height: calc(100dvh - var(--header-h) - 1.5rem);
      overflow-y: auto;
      padding: var(--space-s);
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-m);
      box-shadow: var(--shadow-l);
      opacity: 1;
      translate: 0 0;
      transition: opacity 0.25s, translate 0.35s var(--ease-out), display 0.35s allow-discrete;

      > ul { flex-direction: column; margin: 0; padding: 0; border: 0; background: none; }
      > ul > li > a, [data-menu-toggle] {
        width: 100%;
        justify-content: space-between;
        padding: 0.85rem 1rem;
        font-size: var(--step-1);
        border-radius: var(--radius-s);
      }
      .site-nav__cta { min-height: 3.2rem; font-size: var(--step-0); }

      &:not(.is-open) { display: none; opacity: 0; translate: 0 -0.75rem; }
      @starting-style { opacity: 0; translate: 0 -0.75rem; }
    }
    .menu { padding: 0 0 0.5rem 0.5rem; }
    .has-menu:not(.is-open) .menu { display: none; }
    body:has(.site-nav.is-open) { overflow: hidden; }
  }

  /* Karten */
  .card {
    container-type: inline-size;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-s);
    transition: translate 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s;

    p { color: var(--ink-2); }
    > :last-child:is(.link-arrow, .btn) { margin-top: auto; }
  }
  .card--hover:hover {
    translate: 0 -4px;
    box-shadow: var(--shadow-m);
    border-color: color-mix(in oklch, var(--primary) 30%, var(--line));
  }
  a.card { color: inherit; text-decoration: none; }

  /* Alle Icons einheitlich in Ozeanblau – nur beim Hover über das Element wechseln sie auf Koralle */
  .icon-bubble {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 1rem;
    background: var(--ocean-soft);
    color: var(--ocean-ink);
    transition: background-color 0.25s ease, color 0.25s ease;
    .icon { width: 1.5rem; height: 1.5rem; }
  }
  @media (hover: hover) {
    :is(.card, .check-grid li, .contact-item, .choices label):hover .icon-bubble {
      background: var(--coral-soft);
      color: var(--coral-ink);
    }
  }

  /* Karte mit Container Query: breite Karten legen Icon neben Text */
  @container (width > 30rem) {
    .card__row {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: var(--space-m);
      align-items: start;
    }
  }

  /* Check-Listen */
  /* Kundenbewertungen (Startseite) */
  .reviews { --min: 18rem; list-style: none; padding: 0; }
  .review blockquote { margin: 0; }
  .review figcaption { margin-top: auto; color: var(--ink-2); }
  .review .review__stars { color: var(--cta); font-size: 1.25rem; letter-spacing: 0.1em; }
  .review__note { max-width: 60ch; margin-inline: auto; text-align: center; font-size: 0.9em; }
  .review__actions { justify-content: center; }

  .checklist {
    display: grid;
    gap: 0.65rem;
    sup { line-height: 0; }
    li {
      display: grid;
      grid-template-columns: 1.4rem 1fr;
      gap: 0.6rem;
      align-items: start;
      color: var(--ink);
    }
    li::before {
      content: '';
      width: 1.4rem;
      height: 1.4rem;
      margin-top: 0.15rem;
      border-radius: 50%;
      background: var(--ocean-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23237a6c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
    }
    &.is-plus li::before {
      background-color: var(--primary-soft);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
    }
  }

  /* Preis-Karten */
  .pricing {
    display: grid;
    gap: var(--space-m);
    align-items: stretch;
    @media (width >= 64rem) { grid-template-columns: repeat(3, 1fr); }
    @media (40rem <= width < 64rem) {
      grid-template-columns: repeat(2, 1fr);
      > :last-child { grid-column: 1 / -1; }
    }
  }
  .price-card {
    gap: var(--space-m);

    .price-card__head { display: grid; gap: 0.4rem; }
    .price-card__name {
      font-family: var(--font-sans);
      font-size: var(--step--1);
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--primary-hover);
    }
    .price-card__price {
      font-family: var(--font-display);
      font-size: var(--step-4);
      font-weight: 600;
      line-height: 1;
      color: var(--ink);
      small {
        font-family: var(--font-sans);
        font-size: var(--step-0);
        font-weight: 600;
        color: var(--ink-2);
        margin-right: 0.3rem;
      }
    }
    .price-card__for { color: var(--ink-2); font-size: var(--step--1); }
    hr { border: 0; border-top: 1px dashed var(--line); }
    .checklist { font-size: 0.97em; }
    /* „Enthält alles aus …“ – Basis des kleineren Pakets, die Plus-Liste folgt darunter */
    .price-card__base {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.6rem 0.8rem;
      border-radius: var(--radius-s);
      background: var(--ocean-soft);
      color: var(--ink);
      font-size: 0.97em;
      &::before {
        content: '';
        flex: none;
        width: 1.4rem;
        height: 1.4rem;
        border-radius: 50%;
        background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23237a6c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
      }
    }
    .btn { margin-top: auto; }

    &.is-featured {
      border: 2px solid transparent;
      background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        conic-gradient(from var(--angle), var(--coral), var(--sky), var(--ocean), var(--navy), var(--coral)) border-box;
      box-shadow: var(--shadow-l);
      animation: spin-border 8s linear infinite;
      @media (width >= 64rem) { scale: 1.035; z-index: 1; }

      .badge {
        position: absolute;
        top: 0;
        left: 50%;
        translate: -50% -50%;
        background: var(--primary);
        box-shadow: var(--shadow-s);
      }
    }
  }
  @keyframes spin-border { to { --angle: 360deg; } }

  .price-note {
    margin-top: var(--space-m);
    color: var(--ink-2);
    font-size: var(--step--1);
    text-align: center;
  }

  /* Schritte / Ablauf */
  .steps {
    counter-reset: step;
    display: grid;
    gap: var(--space-m);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));

    li {
      counter-increment: step;
      position: relative;
      padding: var(--space-m);
      padding-top: 4.2rem;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-l);
      p { color: var(--ink-2); margin-top: 0.4rem; }
    }
    li::before {
      content: counter(step, decimal-leading-zero);
      position: absolute;
      top: var(--space-m);
      left: var(--space-m);
      font-family: var(--font-display);
      font-size: 2rem;
      font-weight: 700;
      line-height: 1;
      color: transparent;
      -webkit-text-stroke: 1.5px var(--ocean-ink);
      transition: -webkit-text-stroke-color 0.25s ease;
    }
    @media (hover: hover) {
      li:hover::before { -webkit-text-stroke-color: var(--coral); }
    }
  }

  /* FAQ (exklusives Akkordeon über name-Attribut + ::details-content) */
  .faq {
    display: grid;
    gap: 0.75rem;

    details {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-m);
      transition: border-color 0.3s, box-shadow 0.3s;
      &[open] { border-color: color-mix(in oklch, var(--primary) 35%, var(--line)); box-shadow: var(--shadow-s); }
      &::details-content {
        block-size: 0;
        overflow: clip;
        transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
      }
      &[open]::details-content { block-size: auto; }
    }
    summary {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: var(--space-s);
      padding: 1.1rem 1.4rem;
      font-weight: 650;
      cursor: pointer;
      list-style: none;
      &::-webkit-details-marker { display: none; }
      &::after {
        content: '';
        flex: none;
        width: 1.9rem;
        height: 1.9rem;
        border-radius: 50%;
        background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23303548' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
        transition: rotate 0.35s var(--ease-out), background-color 0.3s;
      }
    }
    details[open] summary::after { rotate: 45deg; background-color: var(--primary-soft); }
    .faq__body { padding: 0 1.4rem 1.3rem; color: var(--ink-2); }
  }

  /* Seitenkopf für Unterseiten */
  .page-hero {
    position: relative;
    padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4rem);
    overflow: clip;
    isolation: isolate;

    .container > * + * { margin-top: var(--space-s); }
    h1 { max-width: 20ch; }
    p { max-width: 42rem; font-size: var(--step-1); color: var(--ink-2); }
  }

  /* „Über uns“: Vorstellung mit großem Foto (Foto wählbar im Deploy-Tool; ohne Foto einspaltig) */
  .page-hero .about-hero {
    display: grid;
    gap: var(--space-l);
    align-items: center;
    > * + * { margin-top: 0; }
    /* Handy: Text, Foto, Knöpfe untereinander; Desktop: Text und Knöpfe links, Foto rechts */
    @media (width >= 60rem) {
      &:has(.about-hero__photo) {
        grid-template-columns: 1.15fr 1fr;
        grid-template-areas: "text photo" "actions photo";
        column-gap: var(--space-xl);
        row-gap: var(--space-m);
        .about-hero__text { grid-area: text; align-self: end; }
        .hero__actions { grid-area: actions; align-self: start; }
        .about-hero__photo { grid-area: photo; }
      }
    }
  }
  .about-hero__text > * + * { margin-top: var(--space-s); }
  .about-hero__photo {
    position: relative;
    max-width: 34rem;
    img {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 1;           /* quadratisch: Hoch- und Querformat behalten das Gesicht */
      object-fit: cover;
      object-position: 50% 30%;
      border-radius: var(--radius-l);
      box-shadow: var(--shadow-l);
      background: var(--surface);
    }
    figcaption {
      position: absolute;
      left: 1rem;
      bottom: 1rem;
      display: grid;
      padding: 0.6rem 1rem;
      border-radius: var(--radius-m);
      background: color-mix(in oklch, var(--surface) 90%, transparent);
      backdrop-filter: blur(8px);
      box-shadow: var(--shadow-m);
      line-height: 1.3;
      span { font-size: var(--step--1); color: var(--ink-2); }
    }
  }

  .breadcrumb {
    ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; font-size: var(--step--1); color: var(--ink-2); }
    li + li::before { content: '/'; margin-right: 0.4rem; opacity: 0.5; }
    a { color: var(--ink-2); text-decoration: none; &:hover { color: var(--primary); } }
  }

  /* Deko-Blobs */
  .blob {
    position: absolute;
    z-index: -1;
    width: var(--size, 28rem);
    aspect-ratio: 1;
    border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%;
    background: var(--color, var(--primary-soft));
    filter: blur(2px);
    opacity: 0.8;
    animation: blob 18s ease-in-out infinite alternate;
    pointer-events: none;
  }
  .blob--a { --color: var(--coral-soft); top: -10rem; right: -8rem; }
  .blob--b { --color: var(--ocean-soft); --size: 20rem; bottom: -8rem; left: -8rem; animation-delay: -6s; }
  .blob--c { --color: var(--sky-soft); --size: 16rem; top: 30%; right: 30%; animation-delay: -12s; }
  @keyframes blob {
    50% { border-radius: 58% 42% 45% 55% / 55% 60% 40% 45%; rotate: 12deg; }
    to { border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%; rotate: -8deg; scale: 1.08; }
  }

  /* 3D-Hintergrund (Canvas wird per JS eingesetzt) */
  .bg-3d {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
    transition: opacity 1.2s var(--ease-out);
    -webkit-mask-image: radial-gradient(ellipse 75% 80% at 70% 50%, black 35%, transparent 80%);
    mask-image: radial-gradient(ellipse 75% 80% at 70% 50%, black 35%, transparent 80%);
    @starting-style { opacity: 0; }

    canvas { display: block; width: 100%; height: 100%; }

    @media (width < 62rem) {
      opacity: 0.4;
      -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 75%, transparent);
      mask-image: linear-gradient(to bottom, transparent, black 30%, black 75%, transparent);
    }
  }
  .page-hero .bg-3d { opacity: 0.45; }

  /* Hinweis-Box */
  .note {
    display: flex;
    gap: var(--space-s);
    padding: var(--space-m);
    border-radius: var(--radius-m);
    background: var(--sky-soft);
    border: 1px solid color-mix(in oklch, var(--sky) 60%, transparent);
    .icon { color: var(--ocean-ink); margin-top: 0.2rem; }
  }

  /* Tags */
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    li {
      padding: 0.4rem 0.9rem;
      border-radius: var(--radius-pill);
      background: var(--surface);
      border: 1px solid var(--line);
      font-size: var(--step--1);
      font-weight: 600;
    }
  }

  /* Formular */
  .form {
    display: grid;
    gap: var(--space-m);
  }
  .form__row {
    display: grid;
    gap: var(--space-m);
    @media (width >= 40rem) { grid-template-columns: 1fr 1fr; }
  }
  .field {
    display: grid;
    gap: 0.4rem;

    label, legend { font-weight: 650; font-size: var(--step--1); }
    .req { color: var(--primary); }
    .hint { color: var(--ink-2); font-size: var(--step--1); }

    input, textarea, select {
      width: 100%;
      min-height: 3.2rem;
      padding: 0.8rem 1rem;
      border: 1.5px solid var(--line);
      border-radius: var(--radius-s);
      background: var(--surface);
      transition: border-color 0.2s, box-shadow 0.2s;
      &::placeholder { color: color-mix(in oklch, var(--ink-2) 70%, var(--surface)); }
      &:hover { border-color: color-mix(in oklch, var(--ink) 25%, var(--line)); }
      &:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 4px color-mix(in oklch, var(--primary) 18%, transparent);
      }
      &:user-invalid {
        border-color: var(--danger);
        background: color-mix(in oklch, var(--danger) 4%, var(--surface));
      }
    }
    textarea {
      min-height: 9rem;
      field-sizing: content;
      max-height: 26rem;
      resize: vertical;
    }
    .error {
      display: none;
      color: var(--danger);
      font-size: var(--step--1);
      font-weight: 600;
    }
    &:has(:user-invalid) .error, .error.is-shown { display: block; }
  }
  fieldset.field { border: 0; padding: 0; min-width: 0; }
  fieldset.field legend { margin-bottom: 0.6rem; padding: 0; }

  /* Auswahl-Kacheln (Radio / Checkbox) */
  .choices {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 11rem)), 1fr));
  }
  .choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--surface);
    font-weight: 600;
    font-size: var(--step--1);
    line-height: 1.3;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;

    input {
      appearance: none;
      flex: none;
      width: 1.2rem;
      height: 1.2rem;
      min-height: 0;
      margin: 0;
      padding: 0;
      border: 2px solid color-mix(in oklch, var(--ink) 30%, var(--line));
      border-radius: 50%;
      background: var(--surface);
      transition: border 0.2s var(--ease-out);
      &:checked { border: 6px solid var(--primary); }
      &:focus-visible { outline-offset: 2px; }
    }
    .icon { color: var(--ink-2); }
    small { display: block; font-weight: 500; color: var(--ink-2); }

    &:hover { border-color: color-mix(in oklch, var(--primary) 40%, var(--line)); }
    &:has(input:checked) {
      border-color: var(--primary);
      background: color-mix(in oklch, var(--primary-soft) 55%, var(--surface));
      box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 12%, transparent);
      .icon { color: var(--primary); }
    }
    &:has(input:focus-visible) { outline: 3px solid color-mix(in oklch, var(--primary) 60%, white); outline-offset: 2px; }
  }

  /* Bedingte Felder – rein über :has() gesteuert */
  .conditional {
    display: none;
    padding: var(--space-m);
    border-radius: var(--radius-m);
    background: var(--surface-2);
    animation: fade-in 0.4s var(--ease-out);
  }
  .form:has([name='anliegen'][value='neu']:checked) [data-show~='neu'],
  .form:has([name='anliegen'][value='verbessern']:checked) [data-show~='verbessern'],
  .form:has([name='anliegen'][value='betreuung']:checked) [data-show~='betreuung'] {
    display: grid;
  }
  @keyframes fade-in { from { opacity: 0; translate: 0 -6px; } }

  .hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  .form__privacy {
    font-size: var(--step--1);
    color: var(--ink-2);
  }

  .form__status {
    display: none;
    gap: 0.8rem;
    align-items: start;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-s);
    font-weight: 600;
    &.is-success { display: flex; background: color-mix(in oklch, var(--success) 12%, var(--surface)); color: var(--success-ink); }
    &.is-error { display: flex; background: color-mix(in oklch, var(--danger) 10%, var(--surface)); color: var(--danger-ink); }
  }

  .form [type='submit'] {
    justify-self: start;
    &[aria-busy='true'] {
      pointer-events: none;
      opacity: 0.75;
      .icon { animation: spin 0.8s linear infinite; }
    }
  }
  @keyframes spin { to { rotate: 360deg; } }

  .form.is-sent > :not(.form__status) { display: none; }

  /* Mehrstufiges Kontaktformular */
  .icon--flip { rotate: 180deg; }

  .wizard-progress {
    --progress: 0;
    display: none;
    position: relative;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: var(--space-l);
    counter-reset: none;

    &.is-ready { display: grid; }
    /* Verbindungslinie + Fortschritt */
    &::before, &::after {
      content: '';
      position: absolute;
      top: 1.1rem;
      left: 12.5%;
      height: 3px;
      border-radius: 3px;
      translate: 0 -50%;
    }
    &::before { right: 12.5%; background: var(--line); }
    &::after {
      width: calc(75% * var(--progress));
      background: linear-gradient(90deg, var(--coral), var(--primary));
      transition: width 0.5s var(--ease-out);
    }

    li {
      position: relative;
      z-index: 1;
      display: grid;
      justify-items: center;
      gap: 0.4rem;
      text-align: center;
    }
    span {
      display: grid;
      place-items: center;
      width: 2.2rem;
      height: 2.2rem;
      border-radius: 50%;
      border: 2px solid var(--line);
      background: var(--surface);
      font-weight: 800;
      font-size: 0.9rem;
      color: var(--ink-2);
      transition: background 0.3s, border-color 0.3s, color 0.3s, scale 0.4s var(--ease-spring);
    }
    em { font-style: normal; font-size: var(--step--1); font-weight: 650; color: var(--ink-2); }
    .is-current span { border-color: var(--primary); color: var(--primary); scale: 1.12; box-shadow: 0 0 0 5px var(--primary-soft); }
    .is-current em { color: var(--ink); }
    .is-done span {
      border-color: var(--primary);
      background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 1rem no-repeat;
      color: transparent;
    }
    @media (width < 30rem) { em { font-size: 0.72rem; } }
  }
  .wizard-card:has(.form.is-sent) .wizard-progress { display: none; }

  .wizard__head {
    display: grid;
    gap: 0.25rem;
    margin-bottom: var(--space-m);
    h2:focus { outline: none; }
  }
  .wizard__count {
    font-size: var(--step--1);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-hover);
  }
  .wizard__intro { font-size: var(--step--1); }
  .wizard__step { display: grid; gap: var(--space-m); }
  .wizard__step > .wizard__head { margin-bottom: 0; }

  /* Ohne JS: alles sichtbar, Übersicht & Navigation ausgeblendet */
  .wizard__review, [data-wizard-prev], [data-wizard-next] { display: none; }
  .wizard__nav { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; }

  .wizard.is-wizard {
    .wizard__step { display: none; }
    .wizard__step.is-active {
      display: grid;
      animation: step-in-forward 0.45s var(--ease-out);
      &[data-dir='back'] { animation-name: step-in-back; }
    }
    [data-wizard-prev], [data-wizard-next] { display: inline-flex; }
    [data-wizard-next] { margin-left: auto; }
    [data-wizard-submit], [data-privacy] { display: none; }
    &[data-step='1'] [data-wizard-prev] { visibility: hidden; }
    &[data-step='1'] .wizard__nav { justify-content: flex-end; }
    &[data-step='4'] {
      [data-wizard-next] { display: none; }
      [data-wizard-submit], [data-privacy] { display: inline-flex; }
      [data-privacy] { display: block; }
      [data-wizard-submit] { margin-left: auto; }
    }
  }
  .wizard [type='submit'] { justify-self: auto; }
  .wizard .conditional { padding: 0; background: none; }
  @keyframes step-in-forward { from { opacity: 0; translate: 2rem 0; } }
  @keyframes step-in-back { from { opacity: 0; translate: -2rem 0; } }

  /* Große Auswahl-Kacheln (Schritt 1) */
  .choices--big { --min: 15rem; gap: 0.8rem; }
  .choice--tile {
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.1rem;
    border-radius: var(--radius-m);
    font-size: var(--step-0);
    input { position: absolute; opacity: 0; pointer-events: none; }
    strong { display: block; margin-bottom: 0.15rem; }
    small { font-size: var(--step--1); line-height: 1.45; }
    .choice__icon { flex: none; width: 2.8rem; height: 2.8rem; }
    &::after {
      content: '';
      position: absolute;
      top: 0.9rem;
      right: 0.9rem;
      width: 1.4rem;
      height: 1.4rem;
      border-radius: 50%;
      border: 2px solid var(--line);
      transition: background 0.2s, border-color 0.2s, scale 0.3s var(--ease-spring);
    }
    &:has(input:checked)::after {
      border-color: var(--primary);
      background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
      scale: 1.1;
    }
    > span:last-child { padding-right: 1.6rem; }
  }

  /* Chips (kompakte Einfachauswahl) */
  .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-size: var(--step--1);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    input { position: absolute; opacity: 0; pointer-events: none; }
    .icon { width: 1.1em; height: 1.1em; }
    &:hover { border-color: color-mix(in oklch, var(--primary) 40%, var(--line)); }
    &:has(input:checked) { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
    &:has(input:focus-visible) { outline: 3px solid color-mix(in oklch, var(--primary) 60%, white); outline-offset: 2px; }
  }

  /* Übersicht (Schritt 4) */
  .review { display: grid; gap: 0.75rem; }
  .review__group {
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--surface-2);
    h3 { font-family: var(--font-sans); font-size: var(--step--1); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
    dl { display: grid; grid-template-columns: minmax(6.5rem, auto) 1fr; gap: 0.35rem 1rem; margin-top: 0.6rem; font-size: var(--step--1); }
    dt { color: var(--ink-2); }
    dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
  }
  .review__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .review__edit {
    padding: 0.25rem 0.8rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    &:hover { border-color: var(--primary); }
  }
  .review__text { margin-top: 0.6rem; font-size: var(--step--1); white-space: pre-wrap; overflow-wrap: anywhere; }
  .review__empty { margin-top: 0.4rem; font-size: var(--step--1); color: var(--ink-2); font-style: italic; }

  /* Footer */
  .site-footer {
    margin-top: var(--space-xl);
    padding-bottom: var(--space-m);
    background: var(--surface-2);
    border-top: 1px solid var(--line);

    a { color: var(--ink); text-decoration: none; &:hover { color: var(--primary); } }
  }
  /* Abschluss-Banner: Wellen-Punktfeld (cta-field.js), rotierender Leuchtrand, Spotlight */
  .site-footer__cta {
    --mx: 70%;
    --my: 30%;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-l);
    margin-top: calc(var(--space-xl) * -0.7);
    padding: clamp(2.25rem, 1.25rem + 4vw, 4.5rem);
    border: 2px solid transparent;
    border-radius: var(--radius-l);
    background:
      linear-gradient(var(--brand-navy), var(--brand-navy)) padding-box,
      conic-gradient(from var(--angle), var(--brand-coral), #6aa8e0, var(--brand-ocean), var(--brand-navy) 60%, var(--brand-coral)) border-box;
    color: white;
    box-shadow:
      0 30px 80px -30px color-mix(in oklch, var(--brand-coral) 55%, transparent),
      var(--shadow-l);
    overflow: hidden;
    animation: cta-spin 6s linear infinite;

    /* Spotlight folgt dem Mauszeiger */
    &::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        radial-gradient(28rem circle at var(--mx) var(--my), color-mix(in oklch, var(--brand-coral) 32%, transparent), transparent 60%),
        radial-gradient(circle at 0% 100%, color-mix(in oklch, var(--brand-ocean) 70%, transparent), transparent 55%);
      pointer-events: none;
    }
    canvas {
      position: absolute;
      inset: 0;
      z-index: -2;
      width: 100%;
      height: 100%;
    }

    h2 {
      color: white;
      font-size: var(--step-4);
      line-height: 1.05;
      text-wrap: balance;
    }
    p { opacity: 0.9; text-wrap: pretty; }
    h2 + p { margin-top: 0.9rem; font-size: var(--step-1); }
  }
  .site-footer__cta-text {
    max-width: 40rem;
  }
  .site-footer__cta-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffb3a6;

    &::before {
      content: '';
      width: 0.55rem;
      aspect-ratio: 1;
      border-radius: 50%;
      background: var(--brand-coral);
      box-shadow: 0 0 0 0 var(--brand-coral);
      animation: cta-ping 2s var(--ease-out) infinite;
    }
  }
  .site-footer__cta-hl {
    font-style: italic;
    background: linear-gradient(100deg, var(--brand-coral), #ffb3a6, #6aa8e0, var(--brand-coral)) 0 0 / 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: cta-shimmer 5s linear infinite;
  }
  .site-footer .site-footer__cta-btn {
    position: relative;
    overflow: hidden;
    min-height: 3.6rem;
    padding-inline: 2rem;
    font-size: var(--step-1);
    color: var(--brand-navy);
    box-shadow: 0 0 0 0 color-mix(in oklch, var(--brand-coral) 60%, transparent);
    transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.4s, translate 0.5s var(--ease-spring);

    /* Glanzstreifen beim Überfahren */
    &::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.65) 50%, transparent 70%);
      translate: -110% 0;
      transition: translate 0.7s var(--ease-out);
    }
    &:hover {
      --btn-bg: white;
      --btn-border: white;
      color: var(--brand-navy);
      box-shadow: 0 0 0 10px color-mix(in oklch, var(--brand-coral) 25%, transparent), 0 20px 40px -12px rgb(0 0 0 / 0.5);
      &::after { translate: 110% 0; }
    }
  }
  @keyframes cta-spin { to { --angle: 360deg; } }
  @keyframes cta-shimmer { to { background-position: 300% 0; } }
  @keyframes cta-ping {
    70%, 100% { box-shadow: 0 0 0 0.6rem transparent; }
  }
  .site-footer__grid {
    display: grid;
    gap: var(--space-l);
    padding-block: var(--space-l);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    @media (width >= 60rem) { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }

    ul { display: grid; gap: 0.5rem; list-style: none; padding: 0; }
  }
  .site-footer__about p { margin-top: var(--space-s); color: var(--ink-2); max-width: 22rem; }
  .site-footer__title {
    margin-bottom: 0.9rem;
    font-family: var(--font-sans);
    font-size: var(--step--1);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
  }
  .site-footer__contact li { display: flex; gap: 0.6rem; align-items: center; .icon { color: var(--primary); } }
  .site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-s);
    padding-top: var(--space-m);
    border-top: 1px solid var(--line);
    font-size: var(--step--1);
    color: var(--ink-2);
    ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; }
    a { color: var(--ink-2); }
  }

  /* Rechtstexte */
  .prose {
    --flow: 1em;
    > * + * { margin-top: var(--flow); }
    h2 { font-size: var(--step-2); margin-top: 2.2em; }
    h3 { font-size: var(--step-1); margin-top: 1.8em; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
    ul, ol { padding-left: 1.3em; display: grid; gap: 0.35em; }
    address { font-style: normal; }
  }
}

/* --- Seitenspezifisch --------------------------------------------------- */
@layer pages {

  /* Startseite: Hero */
  .hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(2.5rem, 1rem + 6vw, 6rem) var(--space-xl);
    overflow: clip;
  }
  .hero__grid {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
    @media (width >= 62rem) { grid-template-columns: 1.1fr 1fr; gap: var(--space-l); }
  }
  .hero__content > * + * { margin-top: var(--space-m); }
  .hero__title {
    font-size: var(--step-5);
    em {
      font-style: italic;
      font-variation-settings: 'SOFT' 100, 'WONK' 1;
      color: var(--primary);
      position: relative;
      white-space: nowrap;
    }
    em::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0.02em;
      height: 0.28em;
      z-index: -1;
      border-radius: 1em;
      background: color-mix(in oklch, var(--coral) 45%, transparent);
      transform-origin: left;
      animation: underline 1s 0.4s var(--ease-out) both;
    }
  }
  @keyframes underline { from { scale: 0 1; } }
  .hero__lead { font-size: var(--step-1); color: var(--ink-2); max-width: 36rem; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
  .hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--ink-2);
    li { display: flex; align-items: center; gap: 0.4rem; }
    .icon { color: var(--ocean-ink); }
  }

  /* Hero-Visual: Browser-Mockup aus reinem HTML/CSS */
  .mock {
    position: relative;
    max-width: 34rem;
    margin-inline: auto;
    width: 100%;
    @media (width < 62rem) { margin-block-start: 3.5rem; }
  }
  .mock__window {
    border-radius: var(--radius-l);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-l);
    overflow: hidden;
    rotate: -1.5deg;
    animation: float 7s ease-in-out infinite;
  }
  .mock__bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--line); }
    i:nth-child(1) { background: oklch(75% 0.15 30); }
    i:nth-child(2) { background: oklch(85% 0.14 90); }
    i:nth-child(3) { background: oklch(78% 0.13 150); }
    span {
      flex: 1;
      margin-left: 0.6rem;
      padding: 0.25rem 0.8rem;
      border-radius: var(--radius-pill);
      background: var(--surface);
      font-size: 0.72rem;
      color: var(--ink-2);
    }
  }
  .mock__body {
    display: grid;
    gap: 0.8rem;
    padding: 1.4rem;
  }
  .mock__line {
    height: 0.7rem;
    border-radius: 1rem;
    background: var(--surface-2);
    &.is-title { height: 1.4rem; width: 75%; background: var(--ink); opacity: 0.85; }
    &.is-short { width: 55%; }
  }
  .mock__btn {
    width: 8rem;
    height: 2.2rem;
    border-radius: var(--radius-pill);
    background: var(--primary);
  }
  .mock__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-top: 0.4rem;
    div {
      aspect-ratio: 1 / 0.8;
      border-radius: 0.9rem;
      background: var(--primary-soft);
    }
    div:nth-child(2) { background: var(--ocean-soft); }
    div:nth-child(3) { background: var(--sky-soft); }
  }
  .mock__float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-m);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-m);
    font-size: 0.82rem;
    line-height: 1.3;
    animation: float 6s ease-in-out infinite;
    strong { display: block; font-size: 0.92rem; }
    span { color: var(--ink-2); }
    .icon-bubble { width: 2.4rem; height: 2.4rem; border-radius: 0.8rem; }

    &.is-score { bottom: calc(100% + 1.5rem); right: 1rem; animation-delay: -2s; }
    &.is-lead { bottom: 8%; right: -5%; animation-delay: -4s; }
    @media (width < 40rem) {
      &.is-score { right: 0.5rem; }
      &.is-lead { right: -2%; bottom: -8%; }
    }
  }
  .mock__favicon {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    object-fit: contain;
  }
  @keyframes float {
    50% { translate: 0 -10px; }
  }

  /* Drei Säulen */
  .pillar {
    .pillar__price {
      display: inline-block;
      margin-top: 0.25rem;
      font-weight: 700;
      color: var(--ink);
    }
    ul { font-size: 0.95em; }
  }

  /* Vorteile-Band */
  .benefits {
    display: grid;
    gap: var(--space-m);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    li { display: grid; gap: 0.6rem; }
    h3 { font-family: var(--font-sans); font-size: var(--step-1); font-weight: 700; letter-spacing: 0; }
    p { color: var(--ink-2); }
  }

  /* Zitat / Versprechen */
  .promise {
    position: relative;
    padding: clamp(2rem, 1rem + 4vw, 4rem);
    border-radius: var(--radius-l);
    background: var(--ocean-soft);
    overflow: hidden;
    blockquote {
      font-family: var(--font-display);
      font-size: var(--step-3);
      line-height: 1.25;
      font-weight: 500;
      text-wrap: balance;
    }
    figcaption { margin-top: var(--space-m); font-weight: 650; color: var(--ocean-ink); }
    &::after {
      content: '“';
      position: absolute;
      right: 1.5rem;
      top: -2rem;
      font-family: var(--font-display);
      font-size: 14rem;
      line-height: 1;
      color: color-mix(in oklch, var(--ocean) 60%, transparent);
      pointer-events: none;
    }
  }

  /* Leistungsseite: Sprungnavigation */
  .jump-nav {
    position: sticky;
    top: calc(var(--header-h) + 0.5rem);
    z-index: 10;
    display: flex;
    gap: 0.4rem;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 0.35rem;
    border-radius: var(--radius-pill);
    background: color-mix(in oklch, var(--surface) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-s);
    overflow-x: auto;
    scrollbar-width: none;
    a {
      padding: 0.5rem 1rem;
      border-radius: var(--radius-pill);
      color: var(--ink);
      font-size: var(--step--1);
      font-weight: 650;
      text-decoration: none;
      white-space: nowrap;
      transition: background 0.2s, color 0.2s;
      &:hover, &.is-active { background: var(--ink); color: var(--on-ink); }
    }
    @media (width < 30rem) {
      gap: 0;
      padding: 0.25rem;
      a { padding: 0.5rem 0.6rem; font-size: 0.78rem; }
    }
  }

  .service-block {
    scroll-margin-top: calc(var(--header-h) + 5rem);
  }

  .offer-row {
    display: grid;
    gap: var(--space-m);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  }

  .offer {
    .offer__price {
      display: flex;
      align-items: baseline;
      gap: 0.4rem;
      font-family: var(--font-display);
      font-size: var(--step-3);
      font-weight: 600;
      line-height: 1;
      small { font-family: var(--font-sans); font-size: var(--step--1); color: var(--ink-2); font-weight: 600; }
    }
  }

  /* Care-Box */
  .care {
    display: grid;
    gap: var(--space-l);
    padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
    border-radius: var(--radius-l);
    background:
      radial-gradient(circle at 100% 0%, var(--navy-soft), transparent 55%),
      radial-gradient(circle at 0% 100%, var(--ocean-soft), transparent 55%),
      var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-m);
    @media (width >= 56rem) { grid-template-columns: 1.2fr 1fr; align-items: center; }
    .care__price {
      font-family: var(--font-display);
      font-size: var(--step-4);
      font-weight: 600;
      line-height: 1;
      small { font-family: var(--font-sans); font-size: var(--step-0); color: var(--ink-2); font-weight: 600; }
    }
    .care__tier {
      display: grid;
      gap: 0.4rem;
      & + .care__tier { padding-top: var(--space-s); border-top: 1px solid var(--line); }
      .checklist { font-size: 0.95em; }
    }
  }

  /* Website-Check */
  .check-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    li {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      padding: 1rem 1.2rem;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-m);
      font-weight: 650;
    }
  }

  .report {
    position: relative;
    padding: var(--space-m);
    border-radius: var(--radius-l);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-l);
    rotate: 1.5deg;
    h3 { font-family: var(--font-sans); font-size: var(--step-0); font-weight: 800; }
    ul { display: grid; gap: 0.6rem; margin-top: var(--space-s); }
    li {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.8rem;
      padding: 0.7rem 0.9rem;
      border-radius: var(--radius-s);
      background: var(--surface-2);
      font-size: var(--step--1);
      font-weight: 600;
    }
    .prio {
      padding: 0.15rem 0.6rem;
      border-radius: var(--radius-pill);
      font-size: 0.72rem;
      font-weight: 800;
      &.is-high { background: color-mix(in oklch, var(--danger) 15%, var(--surface)); color: var(--danger-ink); }
      &.is-mid { background: var(--sky-soft); color: var(--sky-ink); }
      &.is-low { background: var(--ocean-soft); color: var(--ocean-ink); }
    }
  }

  /* Kontakt */
  .contact-layout {
    display: grid;
    gap: var(--space-l);
    align-items: start;
    @media (width >= 62rem) { grid-template-columns: 1fr 22rem; }
  }
  .contact-aside {
    display: grid;
    gap: var(--space-m);
    @media (width >= 62rem) { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  }
  .contact-item {
    display: flex;
    gap: var(--space-s);
    align-items: center;
    a { color: var(--ink); font-weight: 650; text-decoration: none; &:hover { color: var(--primary); } }
    span { display: block; font-size: var(--step--1); color: var(--ink-2); }
  }

  /* Preisrechner */
  .calc {
    display: grid;
    gap: var(--space-l);
    align-items: start;
    @media (width >= 62rem) { grid-template-columns: 1fr 23rem; }
  }
  .calc__form { display: grid; gap: var(--space-m); }
  .calc__step {
    min-width: 0;
    margin: 0;
    padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--surface);
    box-shadow: var(--shadow-s);

    legend {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      float: left;
      width: 100%;
      margin-bottom: var(--space-m);
      font-family: var(--font-display);
      font-size: var(--step-1);
      font-weight: 600;
      + * { clear: both; }
    }
    &[hidden] { display: none; }
  }
  .calc__num {
    display: grid;
    place-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-hover);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 800;
  }

  .calc__packages { --min: 13rem; }
  .choice--card {
    align-items: flex-start;
    padding: 1.1rem;
    input { margin-top: 0.2rem; }
    strong { display: block; font-size: var(--step-0); }
    em {
      display: inline-block;
      margin-top: 0.5rem;
      font-style: normal;
      font-weight: 800;
      color: var(--primary-hover);
    }
  }

  .calc__extras { --min: 15rem; }
  .choice--check {
    align-items: flex-start;
    input {
      margin-top: 0.1rem;
      border-radius: 0.4rem;
      &:checked {
        border: 2px solid var(--primary);
        background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
      }
    }
    &.is-included, &.is-unavailable { cursor: default; }
    &.is-included {
      border-style: dashed;
      border-color: color-mix(in oklch, var(--ocean-ink) 40%, var(--line));
      background: var(--ocean-soft);
      box-shadow: none;
      input:checked { border-color: var(--ocean-ink); background-color: var(--ocean-ink); }
      > span::after { content: 'inklusive'; }
    }
    &.is-unavailable {
      opacity: 0.5;
      > span::after { content: 'nicht verfügbar'; background: var(--surface-2); color: var(--ink-2); }
    }
    &.is-included > span::after, &.is-unavailable > span::after {
      display: inline-block;
      margin-top: 0.4rem;
      padding: 0.1rem 0.55rem;
      border-radius: var(--radius-pill);
      background: var(--surface);
      color: var(--ocean-ink);
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }
  }
  .choice--wide { width: 100%; }

  /* Schieberegler */
  .range {
    display: grid;
    gap: 0.75rem;
    .hint { color: var(--ink-2); font-size: var(--step--1); }
  }
  .range__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    label { font-weight: 650; }
    output {
      font-family: var(--font-display);
      font-size: var(--step-2);
      font-weight: 600;
      color: var(--primary-hover);
    }
  }
  input[type='range'] {
    --fill: 20%;
    appearance: none;
    width: 100%;
    height: 0.6rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--primary) var(--fill), var(--surface-2) var(--fill));
    cursor: pointer;
    &::-webkit-slider-thumb {
      appearance: none;
      width: 1.7rem;
      height: 1.7rem;
      border-radius: 50%;
      background: white;
      border: 3px solid var(--primary);
      box-shadow: var(--shadow-m);
      transition: scale 0.2s var(--ease-spring);
    }
    &::-moz-range-thumb {
      width: 1.4rem;
      height: 1.4rem;
      border-radius: 50%;
      background: white;
      border: 3px solid var(--primary);
      box-shadow: var(--shadow-m);
    }
    &:active::-webkit-slider-thumb { scale: 1.15; }
  }

  /* Zähler (+/−) */
  .stepper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    margin-top: var(--space-m);
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-s);
    font-weight: 600;
    font-size: var(--step--1);
    small { display: block; font-weight: 500; color: var(--ink-2); }
  }
  .stepper__ctrl {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-pill);
    overflow: hidden;
    button {
      width: 2.6rem;
      height: 2.6rem;
      border: 0;
      background: var(--surface-2);
      font-size: 1.2rem;
      font-weight: 700;
      &:hover { background: var(--primary-soft); color: var(--primary-hover); }
    }
    input {
      width: 3rem;
      border: 0;
      text-align: center;
      font-weight: 800;
      background: var(--surface);
      -moz-appearance: textfield;
      &::-webkit-inner-spin-button, &::-webkit-outer-spin-button { appearance: none; margin: 0; }
    }
  }

  /* Ergebnis */
  .calc__result {
    gap: 0.6rem;
    @media (width >= 62rem) { position: sticky; top: calc(var(--header-h) + 1.5rem); }
    hr { border: 0; border-top: 1px dashed var(--line); margin-block: 0.5rem; }
    &[aria-busy='true'] .calc__price { opacity: 0.55; }
  }
  .calc__eyebrow {
    font-size: var(--step--1);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2) !important;
  }
  .calc__price {
    font-family: var(--font-display);
    font-size: var(--step-4);
    font-weight: 600;
    line-height: 1.05;
    color: var(--ink) !important;
    font-variant-numeric: tabular-nums;
    transition: opacity 0.2s;
  }
  .calc__range, .calc__note { font-size: var(--step--1); }
  .calc__care {
    justify-self: start;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    background: var(--ocean-soft);
    color: var(--ocean-ink) !important;
    font-size: var(--step--1);
    font-weight: 700;
  }
  .calc__hint {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-s);
    background: var(--sky-soft);
    font-size: var(--step--1);
    animation: fade-in 0.4s var(--ease-out);
    &[hidden] { display: none; }
    > .icon { color: var(--ocean-ink); margin-top: 0.15rem; }
    p { color: var(--ink) !important; }
    button { margin-top: 0.4rem; padding: 0; border: 0; background: none; color: var(--primary); font-size: var(--step--1); }
  }
  .calc__sum-title { font-weight: 700; color: var(--ink) !important; }
  .calc__summary { font-size: var(--step--1); gap: 0.45rem; margin-bottom: var(--space-s); }

  /* Mobile Preisleiste */
  .calc-bar {
    position: fixed;
    inset: auto var(--gutter) max(0.75rem, env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--on-ink);
    text-decoration: none;
    box-shadow: var(--shadow-l);
    translate: 0 150%;
    transition: translate 0.4s var(--ease-out);
    span { font-size: var(--step--1); opacity: 0.8; }
    strong { margin-left: auto; font-size: var(--step-1); }
    &:hover { color: var(--on-ink); }
    &.is-visible { translate: 0 0; }
    @media (width >= 62rem) { display: none; }
  }

  /* Portfolio: eine Beispielwebsite pro Paket, Mini-Vorschau in den Farben der Kundenseite */
  .portfolio { --min: 30rem; }
  .portfolio > li { display: grid; }
  .project {
    --p-bg: var(--surface-2);
    --p-ink: var(--ink);
    --p-font: var(--font-display);
    h3 { font-size: var(--step-2); }
    &:hover { translate: 0 -4px; box-shadow: var(--shadow-m); border-color: color-mix(in oklch, var(--primary) 30%, var(--line)); }
    &:hover .link-arrow .icon { translate: 4px 0; }
    &:has(.project__link:focus-visible) { outline: 3px solid color-mix(in oklch, var(--primary) 70%, white); outline-offset: 3px; }
  }
  .project__link {
    color: inherit;
    text-decoration: none;
    &:focus-visible { outline: none; }
    /* ganze Karte klickbar */
    &::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
  }
  .project__package {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-weight: 650;
    font-size: var(--step--1);
    .badge { background: var(--primary); color: var(--on-primary); }
  }
  .project__features { gap: 0.4rem; font-size: 0.95em; }
  .project__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-top: auto;
    padding-top: var(--space-xs);
  }
  .project__more {
    position: relative;
    z-index: 2;
    color: var(--ink-2);
    font-size: var(--step--1);
    font-weight: 600;
    &:hover { color: var(--primary); }
  }
  .project__preview {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    min-height: 10rem;
    margin: calc(-1 * clamp(0.6rem, 0.4rem + 0.6vw, 1rem));
    margin-bottom: 0;
    padding: 0 1.25rem 1.25rem;
    border-radius: calc(var(--radius-l) - 0.4rem);
    background: var(--p-bg);
    color: var(--p-ink);
    overflow: hidden;
  }
  .project__bar {
    display: flex;
    gap: 0.3rem;
    margin: 0 -1.25rem 1.2rem;
    padding: 0.6rem 0.8rem;
    background: color-mix(in oklch, var(--p-ink) 8%, transparent);
    i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: color-mix(in oklch, var(--p-ink) 25%, transparent); }
  }
  .project__logo { font-family: var(--p-font); font-size: var(--step-3); line-height: 1.05; }
  .project__claim { font-size: var(--step--1); opacity: 0.75; }
  .project__swatches {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.9rem;
    i { width: 1.6rem; height: 1.6rem; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--p-ink) 15%, transparent); }
  }
  .project--dach {
    --p-bg: #1d232b; --p-ink: #f6f4f0; --p-font: var(--font-sans);
    .project__logo { font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
    .project__swatches i:nth-child(1) { background: #e07a2c; }
    .project__swatches i:nth-child(2) { background: #9b3d22; }
    .project__swatches i:nth-child(3) { background: #e8eef3; }
    .project__swatches i:nth-child(4) { background: #f6f4f0; }
  }
  .project--schreinerei {
    --p-bg: #1f1c19; --p-ink: #efe7dc; --p-font: var(--font-sans);
    .project__logo { font-weight: 800; letter-spacing: -0.03em; }
    .project__swatches i:nth-child(1) { background: #c8894a; }
    .project__swatches i:nth-child(2) { background: #6b4226; }
    .project__swatches i:nth-child(3) { background: #3f5a46; }
    .project__swatches i:nth-child(4) { background: #efe7dc; }
  }
  .project--elektro {
    --p-bg: #fff8dc; --p-ink: #0f1b2d; --p-font: var(--font-sans);
    .project__logo { font-weight: 750; letter-spacing: -0.03em; }
    .project__swatches i:nth-child(1) { background: #0f1b2d; }
    .project__swatches i:nth-child(2) { background: #ffd23f; }
    .project__swatches i:nth-child(3) { background: #2c4a75; }
    .project__swatches i:nth-child(4) { background: #e7edf5; }
  }
  .project--sanitaer {
    --p-bg: #e5f3f2; --p-ink: #0b3b45; --p-font: var(--font-sans);
    .project__logo { font-weight: 650; }
    .project__swatches i:nth-child(1) { background: #0b3b45; }
    .project__swatches i:nth-child(2) { background: #35c2c1; }
    .project__swatches i:nth-child(3) { background: #ef6c3b; }
    .project__swatches i:nth-child(4) { background: #f7f4ee; }
  }

  /* Über uns: Werte */
  .values li { display: grid; gap: 0.5rem; }

  /* Danke / 404 */
  .center-hero {
    min-height: 60dvh;
    display: grid;
    place-items: center;
    text-align: center;
    padding-block: var(--space-xl);
    .container > * + * { margin-top: var(--space-m); }
    .big-emoji {
      width: 6rem;
      height: 6rem;
      margin-inline: auto;
      animation: float 5s ease-in-out infinite;
    }
    .hero__actions { justify-content: center; }
  }
}

/* --- Utilities ---------------------------------------------------------- */
@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .text-center { text-align: center; }
  .text-muted { color: var(--ink-2); }
  .mt-s { margin-top: var(--space-s); }
  .mt-m { margin-top: var(--space-m); }
  .mt-l { margin-top: var(--space-l); }
  .mb-l { margin-bottom: var(--space-l); }
  .flex-wrap { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
  .is-center-row { justify-content: center; }
}

/* --- Einblend-Animationen ---------------------------------------------- */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  [data-reveal] {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out);
    &.is-visible { opacity: 1; translate: 0 0; }
  }
  [data-reveal-group] > * {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out);
  }
  [data-reveal-group].is-visible > * {
    opacity: 1;
    translate: 0 0;
    &:nth-child(2) { transition-delay: 0.08s; }
    &:nth-child(3) { transition-delay: 0.16s; }
    &:nth-child(4) { transition-delay: 0.24s; }
    &:nth-child(5) { transition-delay: 0.32s; }
    &:nth-child(6) { transition-delay: 0.4s; }
  }
}

@media (prefers-reduced-motion: no-preference) {

  /* Seitenübergänge zwischen Unterseiten (Cross-Document View Transitions) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.25s var(--ease-out) both; }
  ::view-transition-new(root) { animation: vt-in 0.45s var(--ease-out) both; }
  @keyframes vt-out { to { opacity: 0; translate: 0 -12px; } }
  @keyframes vt-in { from { opacity: 0; translate: 0 16px; } }
}

/* --- Druck -------------------------------------------------------------- */
@media print {
  @page {
    size: A4; margin: 19mm 21mm;
    @top-left { content: ""; width: 40mm; height: 9mm; background: url('/assets/img/logo-document.png') left center / contain no-repeat; }
  }
  .calc-bar, .bg-3d, .site-header, .site-footer, .skip-link, .breadcrumb, .scroll-progress, .blob, .nav-toggle { display: none !important; }
  :root { color-scheme: light !important; }
  body { background: white; min-height: 0; }
  .page-hero { padding-block: 0 var(--space-m); }
  h1, h2, h3 { break-after: avoid-page; }
  p { orphans: 3; widows: 3; }
}
