/* ============================================================
   ULF SCHREINER — DESIGN SYSTEM (refactored with CSS nesting)
   All shared styles: variables, reset, components, animations
   To retheme: edit the :root variables block only.
   ============================================================ */

/* syne-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Syne";
  font-style: normal;
  font-weight: 400;
  src: url("../assets/fonts/syne-v24-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* syne-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Syne";
  font-style: normal;
  font-weight: 600;
  src: url("../assets/fonts/syne-v24-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* syne-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Syne";
  font-style: normal;
  font-weight: 700;
  src: url("../assets/fonts/syne-v24-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* dm-sans-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  src: url('../assets/fonts/dm-sans-v17-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* dm-sans-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  src: url('../assets/fonts/dm-sans-v17-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* dm-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/dm-sans-v17-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* dm-sans-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  src: url('../assets/fonts/dm-sans-v17-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* dm-sans-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  src: url('../assets/fonts/dm-sans-v17-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* meow-script-regular - latin + latin-ext (used for hero-tag handwriting) */
@font-face {
  font-display: swap;
  font-family: 'Meow Script';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/meow-script-v6-latin_latin-ext-regular.woff2') format('woff2');
}

/* ── 1. DESIGN TOKENS ─────────────────────────────────────── */

:root {
  /* Background layers */
  --color-bg: #0a0d14;
  --color-bg-deep: #0d1624;
  --color-bg-card: #0D1624A6;

  /* Brand colors */
  --color-blue: #1a3a6b;
  --color-teal: #2aada0;
  --color-teal-lt: #49c5b6;
  --color-frost: #d4eef0;

  /* Text */
  --color-white: #f2f6f8;
  --color-muted: #7a9aaa;

  /* Accent */
  --color-accent: #f0a500;

  /* External brand colors — locked values, not theme-shifted */
  --color-google-star: #fbbc04;

  /* Per-page accent — override in page-specific CSS */
  --color-page: var(--color-teal);

  /* Borders */
  --border-subtle: #FFFFFF0F;
  --border-teal: #49C5B626;
  --border-card: #49C5B614;

  /* Typography */
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-script: "Meow Script", "Segoe Script", "Bradley Hand", cursive;

  /* Semantic theme tokens */
  --color-text: #f2f6f8;
  --color-text-secondary: #D4EEF0C7;
  --color-text-muted: #7a9aaa;
  --color-surface: #0a0d14;
  --color-surface-deep: #0d1624;
  --color-surface-card: #0D1624A6;
  --color-surface-card-hover: #0D1624E6;
  --color-border: #FFFFFF0F;
  --color-border-accent: #49C5B626;
  --color-border-card: #49C5B614;
  --color-nav-bg: #0A0D14F2;
  --color-nav-bg-clear: transparent;
  --color-nav-gradient: linear-gradient(
    to bottom,
    #0A0D14EB 0%,
    transparent 100%
  );
  --color-nav-link: #F2F6F8B8;
  --color-nav-mobile-bg: #0A0D14FA;
  --color-overlay-dark: #0A0D14B2;
  --color-card-text: #D4EEF0D1;
  --color-card-text-dim: #D4EEF0B8;
  --color-card-text-faint: #D4EEF0A6;
  --color-card-text-ghost: #D4EEF094;
  --color-marquee-bg: #0D162480;
  --color-marquee-text: #49C5B68C;
  --color-process-bg: #49C5B61A;
  --color-process-num: #49C5B61F;
  --color-ghost-btn: #F2F6F8B2;
  --color-cursor-ring: #49C5B673;
  --color-outline-stroke: #49C5B6B2;
  --color-footer-copy: #7A9AAA85;
  --color-form-bg: #FFFFFF0A;
  --color-form-border: #FFFFFF12;
  --color-placeholder: #7A9AAA59;
  --color-form-note: #7A9AAA99;
  --color-focus-bg: #49C5B60D;
  --color-focus-border: #49C5B659;
  --color-chip-border: #FFFFFF1F;
  --color-chip-hover: #49C5B666;
  --color-chip-selected-bg: #49C5B61A;
  --color-phone-icon-bg: #49C5B61F;
  --color-card-gradient: #2AADA01F;
  --color-row-hover: #49C5B60A;
  --color-svc-icon-bg: #49C5B614;
  --color-svc-icon-hover: #49C5B62E;
  --color-hover-overlay: #0A0D14EB;

  /* Teal band accent — gold highlight on teal backgrounds */
  --color-band-highlight: #f7d76b;

  /* Error/validation — form error states */
  --color-error: #ff7a7a;
  --color-error-dim: #ff9a9a;
  --color-error-glow: #ffb3b3;
  --color-error-bg: #ff7a7a14;
  --color-error-border: #ff7a7a40;

  /* Transparent black/white at common opacities */
  --color-black-20: #00000033;
  --color-black-12: #0000001F;
  --color-black-10: #0000001A;
  --color-black-06: #0000000F;
  --color-black-03: #00000008;
  --color-white-pure: #ffffff;
  --color-white-60: #FFFFFF99;

  /* Avatar/member fallback backgrounds */
  --color-avatar-bg: #0a1220;

  /* Emergency/accent backgrounds */
  --color-accent-tint: #F0A50026;
  --color-accent-border: #F0A50040;
  --color-accent-muted: #F0A500B2;
  --color-accent-bg-subtle: #F0A5000F;
  --color-accent-border-subtle: #F0A50033;

  /* Figure/avatar accent colors (team page) */
  --color-fig-orange: #e05a1e;
  --color-fig-purple: #9b6fd4;
  --color-fig-gold: #c8a800;
  --color-fig-rose: #e05f8e;
  --color-fig-sky: #3ab8f0;
  --color-fig-lime: #7ec84a;
  --color-fig-teal-bright: #6de0cc;

  /* Spacing — fluid */
  --space-xs: clamp(8px, 0.6vw + 6px, 12px);
  --space-sm: clamp(16px, 1.2vw + 12px, 24px);
  --space-md: clamp(28px, 2.2vw + 20px, 44px);
  --space-lg: clamp(40px, 3vw + 28px, 60px);
  --space-xl: clamp(56px, 4.5vw + 36px, 90px);
  --space-2xl: clamp(72px, 7vw + 40px, 140px);
  --space-3xl: clamp(80px, 8vw + 42px, 160px);
  --space-4xl: clamp(100px, 10vw + 48px, 200px);

  /* Layout */
  --page-padding: clamp(18px, 3.5vw + 8px, 60px);

  /* Radii */
  --radius-pill: 100px;
  --radius-sm: 4px;
  --radius-md: 10px;

  /* Icon-wrapper sizes (shared by service icons, contact icons, theme toggle, nav mobile toggle) */
  --size-icon: 44px;
  --size-icon-lg: 56px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-std: cubic-bezier(0, 0, 0.3, 1);
  --t-fast: 0.3s;
  --t-med: 0.4s;
  --t-slow: 0.85s;

  /* Card elevation — dark mode: borders only */
  --shadow-card: none;
  --shadow-card-hover: none;
}

/* ── 1B. LIGHT THEME ─────────────────────────────────────── */

[data-theme="light"] {
  --color-bg: #f7f4ec;
  --color-bg-deep: #ebe9e2;
  --color-bg-card: #ffffff;
  --color-white: #1a1814;
  --color-frost: #2a2822;
  /* darker than the dark-mode #49c5b6: must hit ≥ 4.5:1 on the cream bg #f7f4ec
     because em-accents on every section h2 use this token as foreground text */
  --color-teal-lt: #0e6f55;
  --color-muted: #514b42;
  --color-accent: #e8960a;
  --color-text: #1a1814;
  --color-text-secondary: #1A1814D6;
  --color-text-muted: #514b42;
  --color-surface: #f7f4ec;
  --color-surface-deep: #ebe9e2;
  --color-surface-card: #ffffff;
  --color-surface-card-hover: #ffffff;
  --color-border: #28201624;
  --color-border-accent: #13806C66;
  --color-border-card: #2820161A;
  --border-subtle: #2820161F;
  --border-teal: #13806C4C;
  --border-card: #28201614;
  --color-nav-bg: #F7F4ECF2;
  --color-nav-bg-clear: transparent;
  --color-nav-gradient: linear-gradient(
    to bottom,
    #F7F4ECEB 0%,
    transparent 100%
  );
  --color-nav-link: #1A1814D6;
  --color-nav-mobile-bg: #F7F4ECFA;
  --color-overlay-dark: #F7F4ECB2;
  --color-card-text: #1A1814E0;
  --color-card-text-dim: #1A1814C7;
  --color-card-text-faint: #1A1814AD;
  --color-card-text-ghost: #1A18148F;
  --color-marquee-bg: #ebe9e2;
  --color-marquee-text: #13806CD9;
  --color-process-bg: #13806C1F;
  --color-process-num: #13806C61;
  --color-ghost-btn: #1A1814C7;
  --color-cursor-ring: #13806C85;
  --color-outline-stroke: #13806CC7;
  --color-footer-copy: #1A18149E;
  --color-form-bg: #ffffff;
  --color-form-border: #28201629;
  --color-placeholder: #1A181470;
  --color-form-note: #1A1814A8;
  --color-focus-bg: #13806C0F;
  --color-focus-border: #13806C73;
  --color-chip-border: #28201633;
  --color-chip-hover: #13806C80;
  --color-chip-selected-bg: #13806C1F;
  --color-phone-icon-bg: #13806C1F;
  --color-card-gradient: #13806C14;
  --color-row-hover: #13806C14;
  --color-svc-icon-bg: #13806C1A;
  --color-svc-icon-hover: #13806C2E;
  --color-hover-overlay: #0A0D14EB;
  --color-band-highlight: #fde08a;
  --color-error: #c83232;
  --color-error-dim: #c83232;
  --color-error-glow: #a02020;
  --color-error-bg: #c8323214;
  --color-error-border: #c8323240;
  --color-avatar-bg: #e8e5e0;
  --color-black-20: #28201633;
  --color-black-12: #28201629;
  --color-black-10: #2820161A;
  --color-black-06: #2820160F;
  --color-black-03: #2820160A;
  --shadow-card:
    0 1px 2px #28201612, 0 8px 24px #28201617;
  --shadow-card-hover:
    0 2px 4px #28201617, 0 16px 40px #28201621;
}

/* ── 1C. THEME TOGGLE ────────────────────────────────────── */

.nav-theme-item {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size-icon);
  height: var(--size-icon);
  background: none;
  border: 1.5px solid var(--color-text-muted);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 101;
  color: var(--color-text-muted);
  transition:
    color var(--t-fast),
    border-color var(--t-fast),
    background var(--t-fast);

  &:hover {
    color: var(--color-teal-lt);
    border-color: var(--color-border-accent);
    background: var(--color-process-bg);
  }

  &:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 3px;
  }

  .icon-sun,
  .icon-moon {
    position: absolute;
    width: 18px;
    height: 18px;
    transition:
      opacity 0.3s,
      transform 0.3s;
  }

  /* Dark: show sun, hide moon */
  .icon-sun {
    opacity: 1;
    transform: rotate(0deg);
  }
  .icon-moon {
    opacity: 0;
    transform: rotate(-90deg);
  }
}

[data-theme="light"] .theme-toggle {
  /* Not scrolled — over dark hero, slightly brighter than dark-mode muted */
  border-color: #D2E8EECC;
  color: #D2E8EECC;

  .icon-sun {
    opacity: 0;
    transform: rotate(90deg);
  }
  .icon-moon {
    opacity: 1;
    transform: rotate(0deg);
  }
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: clip;
}

html.js-ready body {
  cursor: none;
}
html.js-ready body:has(:focus-visible) {
  cursor: auto;
}

@media (pointer: coarse) {
  html.js-ready body {
    cursor: auto;
  }
  #cursor,
  #cursor-ring {
    display: none;
  }
  .btn,
  .service-card,
  .btn-submit,
  .chip,
  .phone-link,
  .w-cta,
  .theme-toggle {
    cursor: pointer;
  }
}

a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--color-teal);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  /* transform-based off-screen position avoids the layout-reflow that
     animating `top` would trigger every frame */
  transform: translateY(calc(-100% - 32px));
  transition: transform 0.2s;

  &:focus {
    transform: translateY(0);
  }
}

:focus-visible {
  outline: 2px solid var(--color-teal-lt);
  outline-offset: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ── 3. TYPOGRAPHY SCALE ──────────────────────────────────── */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.display-xl {
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.display-lg {
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  line-height: 1.04;
}
.display-md {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-outline-stroke);
}
.text-teal {
  color: var(--color-teal-lt);
}
.text-page {
  color: var(--color-page);
}
.text-muted {
  color: var(--color-muted);
}

/* ── 4. CUSTOM CURSOR ─────────────────────────────────────── */

#cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 10px;
  height: 10px;
  background: var(--color-teal-lt);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    transform 0.12s,
    background 0.25s;
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-cursor-ring);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    transform 0.35s ease,
    opacity 0.35s;
}

body:has(a:hover) {
  #cursor {
    background: var(--color-accent);
  }
  #cursor-ring {
    opacity: 0;
  }
}

[data-theme="light"] body:has(#hero:hover):not(:has(a:hover)) {
  #cursor {
    background: #5dd4c0;
  }
  #cursor-ring {
    border-color: #5dd4c085;
  }
}

/* ── 5. NAVIGATION ────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--page-padding);
  isolation: isolate;

  /* Promote the nav to its own GPU layer so the (later, when .scrolled is
     active) backdrop-filter blur can be cached instead of re-rasterized on
     every scroll frame. translateZ(0) is the cross-browser layer hint;
     will-change is the modern intent declaration. Together they prevent the
     stutter that otherwise occurs when mobile browsers collapse the URL bar
     during scroll. */
  transform: translateZ(0);
  will-change: backdrop-filter, transform;

  .nav-logo,
  .nav-mobile-toggle {
    position: relative;
    z-index: 1;
  }

  /* z-index alone — .nav-links is a flex item, so z-index applies without
     position. Avoids overriding mobile's `position: fixed` slide-out menu. */
  .nav-links {
    z-index: 1;
  }

  .nav-cta {
    border: 1.5px solid var(--color-teal);
    color: var(--color-teal);
    padding: 10px 26px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    transition:
      background var(--t-fast),
      color var(--t-fast);

    &:hover {
      background: var(--color-teal);
      color: var(--color-bg);
    }
  }
}

.site-nav.scrolled {
  background: var(--color-nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

[data-theme="light"] .site-nav:not(.scrolled)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #080E1440 0%,
    #080E1424 40%,
    #080E1410 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .site-nav.scrolled {
  .nav-logo {
    img { filter: none; }
    &:hover img { filter: brightness(0.85); }
  }

  .nav-links {
    a { color: #1E1E1ED1; }
    a:hover,
    a.active { color: var(--color-teal); }
    a.active { font-weight: 700; }
    .nav-cta {
      border-color: var(--color-teal);
      color: var(--color-teal);
      &:hover {
        background: var(--color-teal);
        color: #fff;
      }
    }
  }

  .theme-toggle {
    border-color: #1E1E1E59;
    color: #1E1E1E80;
    &:hover {
      border-color: var(--color-border-accent);
      color: var(--color-teal);
      background: var(--color-process-bg);
    }
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;

  img {
    /* Stays under the 44px theme-toggle, so the nav bar height is unchanged. */
    height: 43px;
    width: auto;
    filter: brightness(1.8) contrast(1.1);
    transition: filter var(--t-fast);
  }

  &:hover img {
    filter: brightness(2) contrast(1.1);
  }

  &:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 4px;
    border-radius: 2px;
  }
}

[data-theme="light"] .nav-logo {
  img { filter: brightness(1.8) contrast(1.1); }
  &:hover img { filter: brightness(2) contrast(1.1); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;

  a {
    color: var(--color-nav-link);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color var(--t-fast);

    &:hover {
      color: var(--color-teal);
    }

    &.active {
      color: var(--color-teal);
      font-weight: 600;
    }
  }
}

[data-theme="light"] .nav-links {
  a { color: #FFFFFFF0; }
  a:hover { color: #5dd4c0; }
  a.active { color: #5dd4c0; }
  .nav-cta {
    border-color: var(--color-teal);
    &:hover {
      background: var(--color-teal);
      color: #fff;
    }
  }
}

[data-theme="light"] .site-nav:not(.scrolled) .nav-cta:hover {
  color: #fff;
}

/* ── 6. FOOTER ────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 44px var(--page-padding);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}

.footer-brand img {
  /* Matches the nav-logo height exactly — same logo.svg, same on-screen size. */
  height: 43px;
  width: auto;
  filter: brightness(1.6);
}

[data-theme="light"] .footer-brand img {
  filter: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  list-style: none;

  a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    transition: color var(--t-fast);

    &:hover {
      color: var(--color-teal-lt);
    }

    &:focus-visible {
      outline: 2px solid var(--color-teal);
      outline-offset: 4px;
      border-radius: 2px;
    }
  }
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-footer-copy);
}

/* ── 7. BUTTONS ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform var(--t-fast),
    background var(--t-fast),
    opacity var(--t-fast);
}

html.js-ready .btn {
  cursor: none;
}

/* ── Arrow pseudo-element ── */
.with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;

  &::after {
    content: "";
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><line x1='4' y1='12' x2='20' y2='12'/><polyline points='13 5 20 12 13 19'/></svg>")
      center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><line x1='4' y1='12' x2='20' y2='12'/><polyline points='13 5 20 12 13 19'/></svg>")
      center / contain no-repeat;
    transition: transform var(--t-fast);
  }

  &:hover::after,
  :hover > &::after,
  .service-card:hover &::after {
    transform: translateX(4px);
  }
}

.btn-primary {
  background: var(--color-teal);
  color: #ffffff;
  &:hover {
    background: color-mix(in srgb, var(--color-teal) 82%, black);
  }
}

.btn-ghost {
  background: none;
  color: var(--color-ghost-btn);
  padding-left: 0;
  padding-right: 0;
  font-size: 0.85rem;
  &:hover {
    color: var(--color-white);
    transform: none;
  }
}

.btn-page {
  background: var(--color-page);
  color: var(--color-white);
  &:hover {
    opacity: 0.88;
  }
}

.btn-urgent {
  background: #F0A5001F;
  border: 1px solid #F0A50066;
  color: var(--color-accent);
  &:hover {
    background: #F0A50038;
  }
}

.btn-band {
  background: var(--color-bg);
  color: var(--color-teal-lt);
  padding: 18px 42px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  &:hover {
    background: var(--color-bg-deep);
  }
}

.btn-submit {
  background: var(--color-teal);
  color: var(--color-white);
  border: none;
  padding: 18px 44px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  &:hover {
    background: var(--color-teal-lt);
  }
}

html.js-ready .btn-submit {
  cursor: none;
}

/* ── 8. MARQUEE BAND ──────────────────────────────────────── */

/* ── MARQUEE — uppercase tracked display, mid-dot separator, edge mask, pause-on-hover ── */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  padding: clamp(10px, 1.2vw, 16px) 0;
  background: var(--color-marquee-bg);
  border-block: 1px solid color-mix(in srgb, var(--color-marquee-text) 22%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-track > span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--color-marquee-text);
}
.marquee-track > span::after {
  content: "·";
  margin-inline: clamp(22px, 2.8vw, 36px);
  color: color-mix(in srgb, var(--color-marquee-text) 45%, transparent);
  font-size: 1.6em;
  line-height: 1;
  transform: translateY(-0.05em);
}
/* index gets contrasting (gold) dots — separator becomes a brand accent */
.marquee-wrap.is-accent .marquee-track > span::after {
  color: var(--color-accent);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ── 9. HERO ──────────────────────────────────────────────── */

.hero-section {
  position: relative;
  height: 100vh;       /* Fallback */
  height: 100svh;      /* Small viewport — stabil, kein Reflow beim URL-Bar-Toggle */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--page-padding) 80px;
  overflow: hidden;

  h1 {
    position: relative;
    margin-bottom: 24px;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.02;

    .accent,
    em {
      font-style: normal;
      color: var(--color-teal-lt);
    }
  }
}

[data-theme="light"] .hero-section {
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
      ellipse 75% 95% at 0% 100%,
      #080E14AD 0%,
      #080E1480 28%,
      #080E1442 55%,
      transparent 80%
    );
    pointer-events: none;
    z-index: 1;
  }

  h1 { color: #f2f6f8; }
  h1 .accent,
  h1 em { color: #7fe7d0; }

  .hero-tag,
  h1,
  .hero-desc,
  .hero-actions,
  .hero-year,
  .hero-scroll { z-index: 2; }

  .btn-ghost {
    color: #F2F6F8C7;
    &:hover { color: #f2f6f8; }
  }
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) saturate(0.7);
  }

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #0A0D1466;
  }
}

[data-theme="light"] .hero-image {
  img { filter: brightness(0.85) saturate(0.85); }
  &::after { background: #0A0D1433; }
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-deco {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  overflow: hidden;
  pointer-events: none;
  color: var(--color-page);

  svg {
    width: 100%;
    height: 100%;
  }
}

.hero-year {
  position: absolute;
  top: 120px;
  right: var(--page-padding);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted);
  writing-mode: vertical-rl;
  opacity: 0.5;
}

[data-theme="light"] .hero-year { color: #F2F6F899; }

.hero-scroll {
  position: absolute;
  bottom: var(--space-md);
  right: var(--page-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.45;

  span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted);
    writing-mode: vertical-rl;
  }
}

[data-theme="light"] .hero-scroll span { color: #F2F6F899; }

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-teal-lt), transparent);
  animation: scrollline 1.8s ease-in-out infinite;
}
.site-nav.scrolled ~ main .scroll-line {
  animation-play-state: paused;
}

.hero-tag {
  position: relative;
  display: inline-block;
  font-family: var(--font-script);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-page);
  margin-bottom: 24px;

  /* SVG written by svg-text-animate replaces text content. */
  & svg {
    display: block;
    overflow: visible;
  }
}

/* Inline handwriting accent — used for words like "live" inside large headlines. */
.script-write {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.45em;
  margin-right: 0.08em;
  display: inline-block;
  line-height: 1;

  & svg {
    display: inline-block;
    overflow: visible;
    /* svg-text-animate sets `vertical-align: text-top` inline; the SVG height
       includes Meow Script's descender depth, which leaves the visible glyphs
       sitting ~15 % of font-size below the surrounding text baseline. Lift them. */
    transform: translateY(-0.15em);

    /* Recolor the fill — the lib already animates `fill-opacity` from 0→1 in
       sync with the stroke draw, so leave that property alone or the letters
       will appear solid before the writing animation runs. */
    & path {
      fill: currentColor;
    }
  }
}

/* Static fallback: while the SVG hasn't been rendered yet, hide raw text to avoid
   a flash of plain font before JS swaps it in. JS removes this state on init. */
.hero-tag:not(.hero-tag-rendered),
.script-write:not(.hero-tag-rendered) {
  visibility: hidden;
}

[data-theme="light"] .hero-tag {
  color: color-mix(in srgb, var(--color-page) 75%, white);
}

.hero-desc {
  position: relative;
  max-width: 560px;
  font-size: 1.02rem;
  line-height: 1.72;
  color: #F2F6F8D9;
  margin-bottom: 36px;
}

[data-theme="light"] .hero-desc { color: #F2F6F8E6; }

.hero-actions {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: center;
}

/* ── 10. COMMON SECTIONS ──────────────────────────────────── */

.intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-subtle);
}

.intro-left {
  padding: 100px 80px 100px var(--page-padding);
  border-right: 1px solid var(--border-subtle);
}

.intro-right {
  padding: 100px var(--page-padding) 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    max-width: 420px;
  }
}

.stat-row {
  display: flex;
  gap: 50px;
  margin-top: 56px;
}

.stat {
  .num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1;
    letter-spacing: -0.03em;

    span {
      color: var(--color-page);
    }
  }

  .label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-top: 6px;
  }
}

/* Phone CTA block */
.phone-cta-section {
  padding: var(--space-3xl) var(--page-padding);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
}

.phone-cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;

  .btn,
  .phone-link {
    width: fit-content;
  }
  p {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--color-card-text-dim);
  }
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--t-fast);

  &:hover {
    color: var(--color-teal-lt);
  }

  &:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 4px;
    border-radius: 4px;
  }
}

.phone-icon {
  width: 48px;
  height: 48px;
  background: var(--color-phone-icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal-lt);
  flex-shrink: 0;
}

.phone-hint {
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-top: -10px;
}

/* ── 11. CARD COMPONENTS ──────────────────────────────────── */

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-card);
  padding: 52px 40px 46px;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--t-med),
    background var(--t-med);
}

.card-accent-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-page);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.card-accent-top:hover::before {
  transform: scaleX(1);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 72px;

  p {
    max-width: 280px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-muted);
    text-align: right;
  }
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-page);
  margin-bottom: var(--space-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-page);
  margin-bottom: 28px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  margin-bottom: 14px;
}
.card-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-card-text-faint);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 260px;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(0.8);
    transition: filter var(--t-slow);

    &:hover {
      filter: brightness(0.85) saturate(1);
    }
  }
}

.hoverable-row {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--page-padding));
    right: calc(-1 * var(--page-padding));
    top: 0;
    bottom: 0;
    background: var(--color-row-hover);
    opacity: 0;
    transition: opacity var(--t-fast);
  }

  &:hover::before {
    opacity: 1;
  }
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid;
}

/* ── 12. PROCESS TIMELINE ─────────────────────────────────── */

.process-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal-lt);
  margin-bottom: 16px;
}

.process-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 var(--space-xl);
}
.process-heading em {
  font-style: italic;
  color: var(--color-teal-lt);
}

/* ── PROCESS · Foto-Zickzack ─────────────── */
.proc-head {
  margin: 0 0 var(--space-xl);
}
.proc-head .process-heading {
  margin-bottom: 0;
}

.proc-flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(52px, 7vw, 112px);
}

.proc-row {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
}
.proc-row:nth-child(even) {
  grid-template-columns: 0.94fr 1.06fr;
}
.proc-row:nth-child(even) .proc-media {
  order: 2;
}

.proc-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--color-border-card);
  box-shadow: var(--shadow-card);
  background: var(--color-bg);
}
.proc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.012);
  transition: transform 0.9s var(--ease-out);
}
.proc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 80% 0%, #2aada01a, transparent 60%);
  opacity: 1;
  transition: opacity var(--t-med) var(--ease-out);
}
.proc-row:hover .proc-media img {
  transform: scale(1.055);
}
.proc-row:hover .proc-media::after {
  opacity: 0;
}

.proc-body {
  max-width: 30rem;
}
.proc-bar {
  display: block;
  width: 42px;
  height: 2px;
  background: var(--color-teal-lt);
  margin-bottom: 22px;
  transform-origin: left center;
  transition: transform var(--t-med) var(--ease-out);
}
.proc-row:hover .proc-bar {
  transform: scaleX(1.65);
}
.proc-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 1rem + 1.3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin: 0 0 14px;
}
.proc-body p {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

.proc-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(48px, 7vw, 96px);
}
.proc-footer-line {
  width: 28px;
  height: 1px;
  background: var(--color-muted);
}
.proc-footer span:last-child {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  .proc-row,
  .proc-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .proc-row:nth-child(even) .proc-media {
    order: 0;
  }
  .proc-media {
    aspect-ratio: 16 / 10;
  }
  .proc-body {
    max-width: 100%;
  }
}

/* ── 13. SCROLL REVEAL ANIMATIONS ────────────────────────── */

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
}

html.js-ready {
  .reveal {
    opacity: 0;
    transform: translateY(36px);

    &.visible {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ── DECORATIVE SECTION CUTOUT ────────────────────────────────────────────
   Themed transparent image that bleeds into a lower section (generalized from
   the kundendienst .kd-van). Per-page CSS owns position/size; this base owns
   the reveal-from-left entrance, grounding shadow, and the parallax target.
   Entrance via .reveal (js/reveal.js); js/parallax.js adds a tiny
   element-relative vertical drift to `.sec-cutout img`. */
.sec-cutout { pointer-events: none; }
.sec-cutout img {
  display: block;
  will-change: transform;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.5));
}
[data-theme="light"] .sec-cutout img {
  filter: drop-shadow(0 18px 20px rgba(20, 16, 12, 0.28));
}
/* slide in from the left — out-specifies html.js-ready .reveal (translateY) */
html.js-ready .sec-cutout.reveal         { opacity: 0; transform: translateX(-40px); }
html.js-ready .sec-cutout.reveal.visible { opacity: 1; transform: translateX(0); }

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.22s;
}
.reveal-delay-3 {
  transition-delay: 0.34s;
}
.reveal-delay-4 {
  transition-delay: 0.46s;
}

/* ── 14. KEYFRAMES ────────────────────────────────────────── */

@keyframes scrollline {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.hero-anim-1 {
  animation: fadeUp 0.7s 0.2s both var(--ease-out);
}
.hero-anim-2 {
  animation: fadeUp 0.9s 0.38s both var(--ease-out);
}
.hero-anim-3 {
  animation: fadeUp 0.9s 0.56s both var(--ease-out);
}
.hero-anim-4 {
  animation: fadeUp 0.9s 0.72s both var(--ease-out);
}
.hero-anim-5 {
  animation: fadeUp 0.9s 0.88s both var(--ease-out);
}

/* ── 15. PANTOUFLE — STATEMENT, DIVIDERS ─────────────────── */

.statement-section {
  padding: var(--space-3xl) var(--page-padding);
  text-align: center;
  overflow: hidden;
}

.statement-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  word-break: break-word;
}

[data-theme="light"] .statement-text {
  color: var(--color-text);
  .text-outline {
    -webkit-text-stroke: 2px var(--color-teal);
    color: transparent;
  }
}

.image-divider {
  width: 100%;
  height: clamp(260px, 45vh, 500px);
  overflow: hidden;
  position: relative;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55) saturate(0.7);
    transition: filter 1.2s var(--ease-out);
  }

  &:hover img {
    filter: brightness(0.7) saturate(0.9);
  }
}

[data-theme="light"] .image-divider {
  img { filter: brightness(0.8) saturate(0.85); }
  &:hover img { filter: brightness(0.92) saturate(1); }
}

.gallery-asymmetric {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
  overflow: hidden;

  .gallery-hero {
    grid-row: 1 / 3;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(0.7);
    transition: filter var(--t-slow);

    &:hover {
      filter: brightness(0.85) saturate(1);
    }
  }
}

[data-theme="light"] .gallery-asymmetric img {
  filter: brightness(0.75) saturate(0.85);
  &:hover { filter: brightness(0.95) saturate(1); }
}

.highlight-band {
  padding: var(--space-lg) var(--page-padding);

  h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 3rem);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 700px;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }
}

.band-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ── 16. MOBILE NAV TOGGLE ───────────────────────────────── */

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: var(--size-icon);
  min-height: var(--size-icon);
  position: relative;
  z-index: 101;

  &:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
    border-radius: 4px;
  }

  span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition:
      transform var(--t-fast),
      opacity var(--t-fast);

    + span {
      margin-top: 6px;
    }
  }

  &[aria-expanded="true"] {
    span {
      width: 20px;
      &:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
      }
      &:nth-child(2) {
        opacity: 0;
      }
      &:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
      }
    }
  }
}

/* ── 17. RESPONSIVE — TABLET (≤1024px) ──────────────────── */

@media (max-width: 1024px) {
  .nav-mobile-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color var(--t-fast);

    &[aria-expanded="true"] {
      width: var(--size-icon);
      height: var(--size-icon);
      border: 1.5px solid #FFFFFF26;
      border-radius: 50%;
      padding: 0;
      z-index: 2;
      background: #FFFFFF0A;

      &:hover {
        border-color: var(--color-teal-lt);
        background: #FFFFFF14;
      }
    }
  }

  [data-theme="light"] .nav-mobile-toggle {
    span { background: #f2f6f8; }
    &[aria-expanded="true"] {
      border-color: #0000001F;
      span { background: #1a1a1a; }
    }
  }

  [data-theme="light"] .site-nav.scrolled .nav-mobile-toggle span {
    background: #1a1a1a;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 88vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-nav-mobile-bg);
    backdrop-filter: blur(20px);
    padding: 88px 28px 0;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.4s var(--ease-out),
      visibility 0s 0.4s;
    z-index: 1;
    border-left: 1px solid var(--border-subtle);
    border-radius: 16px 0 0 16px;

    &.open {
      transform: translateX(0);
      visibility: visible;
      transition:
        transform 0.4s var(--ease-out),
        visibility 0s 0s;
    }

    li {
      border-bottom: 1px solid var(--border-subtle);
      &:first-child {
        border-top: 1px solid var(--border-subtle);
      }
    }

    a {
      display: block;
      padding: 18px 0;
      font-size: 0.88rem;
      letter-spacing: 0.1em;
      text-align: left;
      transition:
        color var(--t-fast),
        padding-left 0.25s;

      &:hover {
        padding-left: 8px;
      }

      &.active {
        position: relative;
        &::before {
          content: "";
          position: absolute;
          left: -28px;
          top: 50%;
          transform: translateY(-50%);
          width: 3px;
          height: 20px;
          background: var(--color-teal-lt);
          border-radius: 0 2px 2px 0;
        }
      }
    }

    /* Kontakt CTA → full-width button at bottom */
    li:has(.nav-cta) {
      order: 99;
      margin-top: auto;
      padding: 24px 0 40px;
      border: none;
    }

    .nav-cta {
      display: block;
      width: 100%;
      padding: 18px 0;
      background: var(--color-teal);
      color: #fff;
      border: none;
      border-radius: 8px;
      text-align: center;
      font-weight: 600;
      font-size: 0.9rem;
      letter-spacing: 0.14em;

      &:hover {
        padding-left: 0;
        background: var(--color-teal-lt);
      }
    }
  }

  [data-theme="light"] .nav-links.open {
    a { color: #1E1E1ED1; }
    a:hover { color: var(--color-teal); }
    a.active { color: var(--color-teal); }
    a.active::before { background: var(--color-teal); }
  }

  [data-theme="light"] .nav-links .nav-cta {
    background: var(--color-teal);
    color: #fff;
  }

  /* Kontakt-CTA im Mobile-Slide-out ist immer ein Teal-Button → Text in
     jedem Zustand (light/dark, scrolled/not, active/not) weiß. !important
     überschreibt die globalen .nav-links a / a.active / .scrolled-Regeln,
     die sonst die Hintergrundfarbe ungelesen machen würden. */
  .nav-links .nav-cta,
  .nav-links a.nav-cta.active {
    color: #fff !important;
  }

  /* Theme toggle pill in panel */
  .nav-theme-item {
    order: -1;
    position: absolute;
    top: 44px;
    transform: translateY(-50%);
    left: 28px;
    border: none !important;
    padding: 0;
    margin: 0;

    .theme-toggle {
      width: auto;
      height: auto;
      padding: 5px 12px 5px 8px;
      background: #FFFFFF0A;
      border: 1px solid var(--border-subtle);
      border-radius: 100px;
      gap: 6px;

      .icon-sun,
      .icon-moon {
        position: static;
        width: 16px;
        height: 16px;
      }

      &::after {
        content: "Hell";
        font-family: var(--font-display);
        font-size: 0.65rem;
        font-weight: 500;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--color-muted);
      }
    }
  }

  [data-theme="light"] .nav-theme-item .theme-toggle {
    background: #00000008;
    border-color: #0000001A;
    color: #1A1814A6;
    &::after { content: "Dunkel"; }
  }

  /* Layout adjustments */
  .intro-left {
    padding: 80px 48px 80px var(--page-padding);
  }
  .intro-right {
    padding: 80px var(--page-padding) 80px 48px;
  }

  .band-inner {
    align-items: center;
    text-align: center;
  }
  .highlight-band .btn-band {
    align-self: center;
  }

  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
    height: auto;
  }
  .phone-cta-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
  }
  .footer-links {
    gap: 20px;
  }

  .gallery-asymmetric {
    gap: 4px;
  }
  .image-divider {
    height: clamp(200px, 35vh, 400px);
  }

  /* Cursor hidden via @media (pointer: coarse) above */
}

/* ── BODY-SCROLL-LOCK bei offenem Mobile-Menü ─────────────── */
/* Outside the @media so the scroll lock also kicks in on narrow desktop
   windows where the hamburger is visible. iOS Safari ignores overflow:hidden
   on body in some contexts, so touch-action: none is added as a fallback. */
body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* ── 18. RESPONSIVE — MOBILE (≤768px) ───────────────────── */

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 100vh;   /* Fallback */
    min-height: 100svh;
    padding-top: 120px;
    padding-bottom: 48px;

    h1 {
      font-size: clamp(2.2rem, 8vw, 3.2rem);
    }
  }

  .hero-desc {
    font-size: 0.92rem;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-year,
  .hero-scroll {
    display: none;
  }

  .intro-section {
    grid-template-columns: 1fr;
  }
  .intro-left {
    padding: 60px var(--page-padding);
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .intro-right {
    padding: 48px var(--page-padding);
    p {
      max-width: 100%;
    }
  }

  .stat-row {
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
  }
  .stat {
    flex: 1;
    min-width: 80px;
    .num {
      font-size: 2.4rem;
    }
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    p {
      text-align: left;
      max-width: 100%;
    }
  }

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

  .phone-cta-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: var(--space-xl) var(--page-padding);
  }
  .phone-link {
    font-size: 1.3rem;
  }

  .site-footer {
    justify-items: start;
    gap: 20px;
    padding: 32px var(--page-padding);
  }
  .footer-links {
    justify-content: flex-start;
    gap: 12px;
  }

  .statement-section {
    padding: var(--space-3xl) var(--page-padding);
  }
  .statement-text {
    font-size: clamp(2rem, 9vw, 4rem);
  }
  /* Outline deutlich dünner auf Mobile — bei kleinen Font-Größen wirken
     selbst 1px-Stroke noch zu fett */
  .statement-text .text-outline {
    -webkit-text-stroke-width: 0.75px;
  }
  [data-theme="light"] .statement-text .text-outline {
    -webkit-text-stroke-width: 1px;
  }

  .gallery-asymmetric {
    grid-template-columns: 1fr;
    .gallery-hero {
      grid-row: auto;
    }
  }

  .image-divider {
    height: clamp(180px, 30vh, 300px);
  }
}

/* ── 19. RESPONSIVE — SMALL MOBILE (≤480px) ─────────────── */

@media (max-width: 480px) {
  .nav-links {
    width: 100%;
  }
  .hero-section h1 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }
  .hero-tag {
    font-size: 2rem;
  }
  .btn {
    padding: 14px 28px;
    font-size: 0.82rem;
  }
  .statement-text {
    font-size: clamp(1.6rem, 8.5vw, 3rem);
  }
  .highlight-band h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}

/* ── 20. FORM VALIDATION ─────────────────────────────────── */

.field-error {
  font-size: 0.75rem;
  color: var(--color-error);
  margin-top: 6px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.field.has-error {
  & input,
  & textarea {
    border-color: var(--color-error-border);
  }
  & label {
    color: var(--color-error-dim);
  }
  & .field-line {
    background: var(--color-error);
  }
}

.form-alert {
  margin: 16px 0 0;
  padding: 14px 18px;
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-error-glow);
}

/* ── 21. LEAFLET MAP ────────────────────────────────────────
   Wird als Default-Karte (DSGVO-freundliche Alternative zu Google Maps) auf
   der Kontaktseite genutzt. Nach Consent ersetzt ein Google-Maps-iframe
   den Leaflet-Container. */

.map-marker-inner {
  width: 20px;
  height: 20px;
  background: var(--color-teal);
  border: 3px solid var(--color-white-pure);
  border-radius: 50%;
  box-shadow: 0 2px 8px var(--color-black-12);
}

html:not([data-theme="light"]) .leaflet-tile-pane,
html:not([data-theme="light"]) #map > .map-frame {
  filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.9) saturate(0.85);
}

/* ── 22. COOKIE BANNER ─────────────────────────────────────
   DSGVO-konforme Bottom-Banner-UI, eingeblendet bei erstem Besuch und über
   "Cookie-Einstellungen" im Footer wieder erreichbar. */

.cookie-banner {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 200; /* über fixer Nav (100), unter Modals falls vorhanden */
  margin-inline: auto;
  max-width: 720px;
  padding: clamp(18px, 2vw, 24px) clamp(20px, 2.4vw, 28px);
  background: var(--color-bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  font-family: var(--font-body);
  color: var(--color-card-text);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.35s ease-out;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
[data-theme="light"] .cookie-banner {
  background: var(--color-bg-card);
  border-color: var(--color-black-10);
  box-shadow: 0 18px 60px var(--color-black-12);
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 720px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--color-card-text);
}
.cookie-banner-text p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--color-card-text-faint);
}
.cookie-banner-links {
  margin-top: 8px !important;
  font-size: 0.78rem !important;
}
.cookie-banner-links a {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-links span {
  margin-inline: 6px;
  color: var(--color-card-text-faint);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
@media (min-width: 720px) {
  .cookie-banner-actions {
    flex-direction: column;
    min-width: 180px;
  }
}

.cookie-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--color-card-text);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cookie-btn:hover {
  background: color-mix(in srgb, var(--color-card-text) 8%, transparent);
}
.cookie-btn:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}
.cookie-btn-accept {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-bg-deep);
}
.cookie-btn-accept:hover {
  background: var(--color-teal-lt, var(--color-teal));
  border-color: var(--color-teal-lt, var(--color-teal));
}
[data-theme="light"] .cookie-btn { border-color: var(--color-black-10); }
[data-theme="light"] .cookie-btn-accept { color: var(--color-bg-card); }

/* footer "Cookie-Einstellungen" trigger — mirrors the .footer-links a styles
   so it sits visually identical to Kontakt / Impressum / Datenschutz. The
   element stays a <button> for correct semantics (action, not navigation). */
.cookie-settings-trigger {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: inherit;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  text-decoration: none;
  cursor: pointer;
  text-align: inherit;
  transition: color var(--t-fast);
}
.cookie-settings-trigger:hover {
  color: var(--color-teal-lt);
}
.cookie-settings-trigger:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── 23. REDUCED MOTION ───────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee-track {
    animation: none;
  }
  .scroll-line {
    animation: none;
  }

  .hero-anim-1,
  .hero-anim-2,
  .hero-anim-3,
  .hero-anim-4,
  .hero-anim-5 {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-tag,
  .script-write {
    visibility: visible !important;
  }

  #cursor,
  #cursor-ring {
    display: none !important;
  }
  body {
    cursor: auto !important;
  }
}
