/* ============================================
   ROOT TOKENS
   ============================================ */
:root {
  /* Substrate */
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --rule: #E5E2E2;
  --text-mute: #1A1A1A;  /* same as ink — kept as alias for legacy refs, but no muted gray in this system */

  /* Brand (3 reds = 1 hue family) */
  --wine: #8B0E2B;
  --swiss-red: #DC143C;
  --coral: #FF0F3A;

  /* Secondary accents (max 1 per page, distinct semantic roles) */
  --navy: #0F2540;     /* trust / data / B2B credibility */
  --sage: #1F3D2C;     /* calm / consultation / process */
  --blush: #F4EBE8;    /* soft warm pink — used by #peter section background */

  /* Type system */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --text-xs:      clamp(0.75rem,  0.7rem  + 0.2vw,  0.875rem);
  --text-sm:      clamp(0.875rem, 0.85rem + 0.2vw,  1rem);
  --text-base:    clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:      clamp(1.125rem, 1.05rem + 0.4vw,  1.375rem);
  --text-xl:      clamp(1.375rem, 1.25rem + 0.6vw,  1.75rem);
  --text-2xl:     clamp(1.75rem,  1.5rem  + 1.2vw,  2.5rem);
  --text-3xl:     clamp(2.25rem,  1.8rem  + 2.2vw,  3.75rem);
  --text-4xl:     clamp(3rem,     2.2rem  + 3.5vw,  5.5rem);
  --text-display: clamp(4rem,     2.5rem  + 7vw,    10rem);

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --space-4xl: 12rem;

  /* Radius — sharp Swiss-design discipline. Pills + circles only. */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-pill: 9999px;

  /* Motion */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft:   cubic-bezier(0.16, 1,    0.3, 1);
  --dur-quick:   200ms;
  --dur-medium:  400ms;
  --dur-slow:    700ms;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  hyphens: auto;
  -webkit-hyphens: auto;
}
/* Long German compounds — allow break + soft hyphen on display headings. */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================
   AMBIENT LAYER (one slow-drifting radial)
   ============================================ */
.ambient {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 30% 20%,
    rgba(220, 20, 60, 0.05) 0%,
    transparent 50%);
  animation: ambient-drift 50s ease-in-out infinite alternate;
}
@keyframes ambient-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, -6vh) scale(1.15); }
}

/* ============================================
   FILM GRAIN (3% opacity SVG noise)
   ============================================ */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================
   LAYOUT
   ============================================ */
.page {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--space-xl) clamp(1rem, 5vw, 2.5rem);
}

section { padding: var(--space-3xl) 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
section + section { border-top: 0; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
/* Eyebrow — quiet section label with leading horizontal line marker (Mobiliar/Doppio
   editorial idiom). NO frame, NO pill — round shapes are reserved for action items. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}
.eyebrow--accent { color: var(--swiss-red); }
.eyebrow--navy   { color: var(--navy); }
.eyebrow--sage   { color: var(--sage); }

/* Solid (filled) eyebrow — for product/plan badges and number chips on cards.
   Square corners (Swiss: round = action, square = static). No leader line on chips. */
.eyebrow--solid { padding: 0.35rem 0.7rem; border-radius: 0; }
.eyebrow--solid::before { display: none; }
.eyebrow--solid.eyebrow--accent { background: var(--swiss-red); color: var(--paper); }
.eyebrow--solid.eyebrow--navy   { background: var(--navy);      color: var(--paper); }
.eyebrow--solid.eyebrow--sage   { background: var(--sage);      color: var(--paper); }
.eyebrow--solid.eyebrow--wine   { background: var(--wine);      color: var(--paper); }

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 1.5rem + 1.8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
p, .body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
}
.body-lg {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.55;
}
.body-mute { color: var(--text-mute); }
.text-accent { color: var(--swiss-red); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}
.section-desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-mute);
  margin-bottom: var(--space-lg);
}

/* ============================================
   COVER / HEADER
   ============================================ */
.cover {
  padding: var(--space-2xl) 0 var(--space-3xl);
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-md);
}
.brand .web    { font-weight: 400; color: var(--ink); }
.brand .evolve { font-weight: 700; color: var(--swiss-red); }
.cover-meta {
  display: flex;
  gap: var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.cover-meta span { white-space: nowrap; }

.header-logo { height: 18px; width: auto; display: block; }

/* TOC */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}
.toc a {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink);
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  transition: background var(--dur-quick) var(--ease-spring),
              color      var(--dur-quick) var(--ease-spring),
              border-color var(--dur-quick) var(--ease-spring);
}
.toc a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ============================================
   COLOR SYSTEM
   ============================================ */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.swatch {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.swatch-color { flex: 1; min-height: 140px; }
.swatch-info {
  padding: var(--space-md);
  background: var(--paper);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.swatch-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}
.swatch-hex {
  font-family: 'Manrope', monospace;
  font-size: var(--text-sm);
  color: var(--text-mute);
  font-feature-settings: "tnum" 1;
}
.swatch-role {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-top: 0.25rem;
}

/* color group title */
.color-group-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin: var(--space-xl) 0 var(--space-md);
}
.color-group-title:first-of-type { margin-top: 0; }

/* ============================================
   TYPOGRAPHY DEMO
   ============================================ */
.type-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-md);
  align-items: baseline;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--rule);
}
.type-row:last-child { border-bottom: 0; }
.type-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  font-feature-settings: "tnum" 1;
}
.type-sample { font-family: var(--font-display); }

/* ============================================
   SPACING SCALE
   ============================================ */
.spacing-row {
  display: grid;
  grid-template-columns: 120px 80px 1fr;
  gap: var(--space-md);
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.spacing-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
}
.spacing-val {
  font-family: 'Manrope', monospace;
  font-size: var(--text-sm);
  color: var(--text-mute);
}
.spacing-bar {
  height: 8px;
  background: var(--ink);
  border-radius: 2px;
}

/* ============================================
   BUTTONS — PRIMARY (arrow-in-circle)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.6rem 0.6rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-quick) var(--ease-spring),
              transform  var(--dur-quick) var(--ease-spring);
}
.btn:hover { background: #2a2a2a; }
.btn:active { transform: scale(0.97); }

.btn .arrow {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--dur-medium) var(--ease-spring),
              background var(--dur-quick) var(--ease-spring);
  flex-shrink: 0;
}
.btn:hover .arrow {
  transform: translateX(3px) rotate(45deg);
  background: rgba(255,255,255,0.25);
}
.btn .arrow svg {
  width: 14px; height: 14px;
}

/* FAQ accordion icon (Radix Plus) — rotates 45° on open: + → × */
.faq-icon {
  opacity: 0.4;
  flex-shrink: 0;
  transition: transform 200ms var(--ease-spring);
  will-change: transform;
}
details[open] .faq-icon { transform: rotate(45deg); }

/* Variants */
.btn--red    { background: var(--swiss-red); }
.btn--red:hover { background: var(--wine); }
.btn--wine   { background: var(--wine); }
.btn--wine:hover { background: var(--ink); }
.btn--coral  { background: var(--coral); }
.btn--coral:hover { background: var(--swiss-red); }
.btn--ghost  { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ghost .arrow { background: rgba(0,0,0,0.06); }
.btn--ghost:hover .arrow { background: rgba(255,255,255,0.18); }

/* On dark backgrounds */
.on-dark .btn--ghost,
.atmosphere--dark .btn--ghost { color: var(--paper); border: 1px solid rgba(255,255,255,0.35); }
.on-dark .btn--ghost:hover,
.atmosphere--dark .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-dark .btn--ghost .arrow,
.atmosphere--dark .btn--ghost .arrow { background: rgba(255,255,255,0.14); }
.on-dark .btn--ghost:hover .arrow,
.atmosphere--dark .btn--ghost:hover .arrow { background: rgba(0,0,0,0.08); }

/* ============================================
   LINKS — secondary CTA with animated underline
   ============================================ */
.link {
  display: inline;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 0.15em;
  transition: background-size var(--dur-medium) var(--ease-spring);
}
.link:hover { background-size: 100% 1.5px; }
.link--accent { color: var(--swiss-red); }

/* ============================================
   COMPONENT GRID HELPERS
   ============================================ */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.demo {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}
.demo-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-top: auto;
}
.demo--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.demo--dark .demo-label { color: rgba(255,255,255,0.55); }
.demo--wine { background: var(--wine); color: var(--paper); border-color: var(--wine); }
.demo--wine .demo-label { color: rgba(255,255,255,0.65); }
.demo--navy { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.demo--navy .demo-label { color: rgba(255,255,255,0.6); }
.demo--sage { background: var(--sage); color: var(--paper); border-color: var(--sage); }
.demo--sage .demo-label { color: rgba(255,255,255,0.6); }

/* ============================================
   CARDS — base + variants + delight
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--dur-medium) var(--ease-spring),
              box-shadow var(--dur-medium) var(--ease-spring),
              border-color var(--dur-medium) var(--ease-spring),
              background var(--dur-medium) var(--ease-spring);
}
.card--interactive { cursor: pointer; }
.card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 14, 43, 0.06), 0 2px 8px rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.18);
}

/* Top-accent line that grows from left on hover (delight detail) */
.card--interactive::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--swiss-red);
  transition: width var(--dur-medium) var(--ease-spring);
}
.card--interactive:hover::before { width: 100%; }

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.card-body { color: var(--text-mute); font-size: var(--text-base); line-height: 1.55; }
.card-meta {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-mute);
}

/* Arrow that slides in on hover (top-right) */
.card-arrow-corner {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  opacity: 0;
  transform: translate(8px, -8px);
  transition: opacity var(--dur-medium) var(--ease-spring),
              transform var(--dur-medium) var(--ease-spring),
              background var(--dur-quick) var(--ease-spring),
              color var(--dur-quick) var(--ease-spring);
}
.card-arrow-corner svg {
  width: 14px; height: 14px;
  transform: rotate(-45deg);
  transition: transform var(--dur-medium) var(--ease-spring);
}
.card--interactive:hover .card-arrow-corner {
  opacity: 1;
  transform: translate(0, 0);
  background: var(--ink);
  color: var(--paper);
}
.card--interactive:hover .card-arrow-corner svg { transform: rotate(0deg); }

/* Variant — Featured (Wine background, white type, "Empfohlen" badge) */
.card--featured {
  background: var(--wine);
  color: var(--paper);
  border-color: var(--wine);
  position: relative;
}
.card--featured .card-body { color: rgba(255,255,255,0.88); }
.card--featured .card-meta { color: rgba(255,255,255,0.7); }
.card--featured .eyebrow { color: rgba(255,255,255,0.85); border-color: currentColor; }
.card--featured.card--interactive:hover {
  background: #6E0A22;
  border-color: #6E0A22;
  box-shadow: 0 14px 50px rgba(139, 14, 43, 0.35);
}
.card--featured.card--interactive::before { background: var(--coral); }

.badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--coral);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  z-index: 2;
}

/* Variant — Numbered (big number on left, content on right) */
.card--numbered {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
}
.card-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--swiss-red);
  font-feature-settings: "tnum" 1;
  transition: transform var(--dur-medium) var(--ease-spring),
              color var(--dur-medium) var(--ease-spring);
}
.card--numbered.card--interactive:hover .card-number {
  transform: translateY(-4px);
  color: var(--wine);
}
.card-numbered-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Variant — Stat (big stat at top + supporting copy).
   Size matches .h2 (max 3.25rem) so the number never out-shouts the section H2.
   All-red treatment — no within-number color switching. */
.card--stat .card-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.5rem + 1.8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--swiss-red);
  font-feature-settings: "tnum" 1;
}
.card--stat .card-stat-num .accent { color: inherit; }

/* Variant — Testimonial */
.card--testimonial {
  background: var(--paper);
}
.card-quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.card-quote::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--swiss-red);
  margin-bottom: var(--space-md);
}
.card-author {
  margin-top: auto;
  font-size: var(--text-sm);
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card-author strong { color: var(--ink); font-weight: 600; }

/* Variant — Icon-card */
.card-icon {
  width: 2.5rem; height: 2.5rem;
  color: var(--swiss-red);
  transition: transform var(--dur-medium) var(--ease-spring),
              color var(--dur-medium) var(--ease-spring);
}
.card-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.card--interactive:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* Variant — Image teaser (case study) */
.card--image { padding: 0; overflow: hidden; }
.card--image .card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--wine), var(--swiss-red));
  position: relative;
  overflow: hidden;
}
.card--image .card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26,26,26,0.4));
}
.card--image .card-image-content {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-xs);
}
.card--image.card--interactive:hover .card-image::before {
  transform: scale(1.05);
}
.card--image .card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform var(--dur-slow) var(--ease-spring);
}

/* ============================================
   FORMS — Mobiliar pattern (spacious & premium)
   ============================================ */
.form {
  display: grid;
  gap: var(--space-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: var(--space-lg); }
}
.field { display: flex; flex-direction: column; gap: 0.6rem; }
.field-label {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.field-label .req { color: var(--swiss-red); margin-left: 0.25em; font-weight: 400; }
.field-input,
.field-textarea,
.field-select {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  padding: 1.1rem 1.25rem;
  min-height: 3.75rem;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color var(--dur-quick) var(--ease-spring),
              box-shadow   var(--dur-quick) var(--ease-spring),
              background   var(--dur-quick) var(--ease-spring);
}
.field-input::placeholder,
.field-textarea::placeholder { color: #b8b3b3; }
.field-input:hover,
.field-textarea:hover,
.field-select:hover {
  border-color: var(--text-mute);
}
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--swiss-red);
  background: #FCFAFA;
}
.field-textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.field-help {
  font-size: var(--text-sm);
  color: var(--text-mute);
  line-height: 1.5;
}
.field-error {
  font-size: var(--text-sm);
  color: var(--swiss-red);
  display: flex; align-items: center; gap: 0.4rem;
}
.field-error::before { content: "•"; font-size: 1.5em; line-height: 0; }

.form-section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}
.form-section-desc {
  font-size: var(--text-base);
  color: var(--text-mute);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}
.form-section + .form-section {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
}
.form-submit-row {
  margin-top: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.form-submit-row .form-submit-note {
  font-size: var(--text-sm);
  color: var(--text-mute);
  max-width: 360px;
  line-height: 1.5;
}

/* Radio / Checkbox custom (Mobiliar-style large) */
.field-options { display: grid; gap: 0.75rem; }
.field-option {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-base);
  transition: border-color var(--dur-quick) var(--ease-spring),
              background var(--dur-quick) var(--ease-spring);
}
.field-option:hover { border-color: var(--text-mute); background: #FBFAFA; }
.field-option input { width: 20px; height: 20px; accent-color: var(--swiss-red); cursor: pointer; }
.field-option:has(input:checked) { border-color: var(--ink); background: #FCFAFA; }

/* ============================================
   PROCESS STEPS — vertical timeline
   ============================================ */
.process {
  display: grid;
  gap: 0;
}
.process-step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  position: relative;
}
.process-step + .process-step { border-top: 1px solid var(--rule); }
.process-num {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-medium) var(--ease-spring),
              color      var(--dur-medium) var(--ease-spring),
              transform  var(--dur-medium) var(--ease-spring);
}
/* Connecting line between number circles */
.process-step::before {
  content: '';
  position: absolute;
  left: calc(2rem - 1px);
  top: 5rem;
  bottom: -1.5rem;
  width: 1.5px;
  background: var(--rule);
}
.process-step:last-child::before { display: none; }

.process-step.is-active .process-num,
.process-step:hover .process-num {
  background: var(--swiss-red);
  color: var(--paper);
  border-color: var(--swiss-red);
  transform: scale(1.05);
}

.process-content {
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.process-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  font-weight: 500;
}
.process-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.process-body {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-mute);
}
.process-meta {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-top: 0.25rem;
}

/* Mobile: tighter step spacing */
@media (max-width: 640px) {
  .process-step { grid-template-columns: 3rem 1fr; gap: var(--space-md); }
  .process-num { width: 2.75rem; height: 2.75rem; font-size: var(--text-base); }
  .process-step::before { left: calc(1.5rem - 1px); top: 3.75rem; }
}

/* ============================================
   TABLES — 2-column comparison, Swiss style
   ============================================ */
.table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}
.compare-table th,
.compare-table td {
  padding: 1.25rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.compare-table thead th {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--text-mute);
  border-bottom: 1.5px solid var(--ink);
  padding: 1rem 1rem 0.75rem;
}
.compare-table thead th.col-yes {
  color: var(--swiss-red);
  text-align: right;
}
.compare-table tbody td.col-yes {
  text-align: right;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
}
.compare-table tbody td.col-yes .yes { color: var(--sage); }
.compare-table tbody td.col-yes .no  { color: #b8b3b3; }
.compare-table tbody td:first-child {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--ink);
}
.compare-table tbody td:nth-child(2) {
  color: var(--text-mute);
  line-height: 1.5;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover td { background: #FBFAFA; }

/* Mobile: stack rows as label/value pairs */
@media (max-width: 640px) {
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td {
    display: block; width: 100%;
  }
  .compare-table tr {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--rule);
  }
  .compare-table td {
    padding: 0.25rem 0;
    border-bottom: 0;
  }
  .compare-table tbody td:first-child {
    font-size: var(--text-lg);
    margin-bottom: 0.25rem;
  }
  .compare-table tbody td.col-yes { text-align: left; }
}

/* ============================================
   STAT ROW
   ============================================ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: var(--space-lg) var(--space-md);
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings: "tnum" 1;
}
.stat-num .accent { color: var(--swiss-red); }
.stat-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-mute);
}

/* ============================================
   PRICING TILE (with permitted gradient)
   ============================================ */
.pricing-tile {
  background: linear-gradient(125deg, var(--wine) 0%, var(--swiss-red) 55%, var(--coral) 100%);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
}
.pricing-tile .pricing-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.85;
}
.pricing-tile .pricing-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pricing-tile .pricing-num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-feature-settings: "tnum" 1;
}
.pricing-tile .pricing-num small { font-size: 0.4em; font-weight: 500; opacity: 0.85; }
.pricing-tile .pricing-desc { opacity: 0.92; }
.pricing-tile ul { list-style: none; display: grid; gap: 0.5rem; margin-top: var(--space-sm); }
.pricing-tile ul li::before { content: "\2192\00a0\00a0"; opacity: 0.7; }
.pricing-tile .pricing-price-row {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
  padding-top: var(--space-md);
}
.pricing-tile .pricing-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum" 1;
  opacity: 0.95;
}
.pricing-tile .pricing-price small { font-size: 0.6em; font-weight: 400; opacity: 0.8; }

/* ============================================
   NAV (preview)
   ============================================ */
.nav-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space-md);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--paper);
}
.nav-preview .brand { font-size: 1.5rem; margin-bottom: 0; line-height: 1; }
.nav-preview-links { display: flex; gap: var(--space-md); align-items: center; }
.nav-preview-links a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  transition: color var(--dur-quick) var(--ease-spring);
}
.nav-preview-links a:hover { color: var(--swiss-red); }
.nav-preview-links a.active { color: var(--swiss-red); }

/* ============================================
   FOOTER (preview)
   ============================================ */
.footer-preview {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  display: grid;
  gap: var(--space-xl);
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-lg);
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--space-lg);
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}
.footer-col ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-col a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--ink);
  transition: color var(--dur-quick);
}
.footer-col a:hover { color: var(--swiss-red); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-mute);
}

/* ============================================
   NOTE / CALLOUT
   ============================================ */
.note {
  background: rgba(220, 20, 60, 0.04);
  border-left: 3px solid var(--swiss-red);
  padding: 1.25rem 1.5rem;
  margin-bottom: var(--space-lg);
  font-size: var(--text-base);
  line-height: 1.6;
}
.note strong { font-weight: 600; }
.note + .note { margin-top: calc(var(--space-md) * -1 + 0.5rem); }
.note code {
  font-family: 'Manrope', monospace;
  font-size: 0.92em;
  padding: 0.1em 0.3em;
  background: rgba(0,0,0,0.04);
}

/* ============================================
   ATMOSPHERE — signature 3-layer background
   (dark for hero/footer, light for testimonial/manifesto)
   ============================================ */
.atmosphere {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.25rem, 5vw, 4rem);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0;
}

/* Responsive CTA label: long form on desktop, short on small mobile */
.cta-text-short { display: none; }
@media (max-width: 499px) {
  .cta-text-full { display: none; }
  .cta-text-short { display: inline; }
}

/* Layer 1 — animated gradient drift */
.atmosphere::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: 240% 240%;
  animation: atmosphere-flow 70s ease-in-out infinite;
}
@keyframes atmosphere-flow {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 100%; }
}

/* Layer 2 — geometric triangle pattern (80px equilateral grid, matches webevolve.ch hero) */
.atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-size: 8000px 8000px;
  animation: geometryCrawl 100s linear infinite;
  will-change: background-position;
}
@keyframes geometryCrawl {
  0%   { background-position: -800px -400px; }
  100% { background-position: -384.307806px -800px; }
}

/* Layer 3 — mouse-follow spotlight; dark variant uses dark-mask-with-hole (matches webevolve.ch), light variant uses soft glow */
.atmosphere-spot {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.atmosphere--light .atmosphere-spot {
  background: radial-gradient(circle 380px at var(--mx, 50%) var(--my, 50%),
    var(--spot-color, rgba(255, 15, 58, 0.18)),
    transparent 70%);
  transition: background 100ms linear;
}
.atmosphere--dark .atmosphere-spot {
  background-color: rgba(0, 0, 0, 0.55);
  -webkit-mask-image: radial-gradient(550px at var(--mx, 50%) var(--my, 55%),
    rgba(0,0,0,0) 0%, rgba(0,0,0,0) 10%, rgba(0,0,0,0.03) 30%,
    rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.4) 75%, rgba(0,0,0,0.7) 90%, rgba(0,0,0,1) 100%);
  mask-image: radial-gradient(550px at var(--mx, 50%) var(--my, 55%),
    rgba(0,0,0,0) 0%, rgba(0,0,0,0) 10%, rgba(0,0,0,0.03) 30%,
    rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.4) 75%, rgba(0,0,0,0.7) 90%, rgba(0,0,0,1) 100%);
}

.atmosphere-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

/* DARK variant */
.atmosphere--dark {
  background: #2A0810;
  color: var(--paper);
}
.atmosphere--dark::before {
  background: linear-gradient(135deg,
    #2A0810 0%,
    #4A0A1A 25%,
    #6A0E22 50%,
    #4A0A1A 75%,
    #2A0810 100%);
}
.atmosphere--dark::after {
  background-image:
    repeating-linear-gradient(60deg, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 1px, transparent 1px, transparent 80px);
  opacity: 0.4;
  mix-blend-mode: overlay;
}
.atmosphere--dark { --spot-color: rgba(255, 15, 58, 0.16); }

/* LIGHT variant */
.atmosphere--light {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
}
.atmosphere--light::before {
  background: linear-gradient(135deg,
    rgba(255, 15, 58, 0.02) 0%,
    rgba(220, 20, 60, 0.04) 25%,
    rgba(139, 14, 43, 0.05) 50%,
    rgba(220, 20, 60, 0.04) 75%,
    rgba(255, 15, 58, 0.02) 100%);
}
.atmosphere--light::after {
  background-image:
    repeating-linear-gradient(60deg, rgba(26,26,26,0.4) 0, rgba(26,26,26,0.4) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(-60deg, rgba(26,26,26,0.4) 0, rgba(26,26,26,0.4) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg, rgba(26,26,26,0.4) 0, rgba(26,26,26,0.4) 1px, transparent 1px, transparent 80px);
  opacity: 0.22;
  mix-blend-mode: multiply;
}

/* RED variant — wine ↔ swiss-red ↔ coral gradient. Used for footer CTAs (final conversion moment). */
.atmosphere--red {
  background: var(--swiss-red);
  color: var(--paper);
}
.atmosphere--red::before {
  background: linear-gradient(135deg,
    #8B0E2B 0%,
    #B0152F 25%,
    #DC143C 50%,
    #B0152F 75%,
    #8B0E2B 100%);
}
.atmosphere--red::after {
  background-image:
    repeating-linear-gradient(60deg, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 1px, transparent 1px, transparent 80px);
  opacity: 0.32;
  mix-blend-mode: overlay;
}
.atmosphere--red .atmosphere-spot {
  background-color: rgba(0, 0, 0, 0.40);
  -webkit-mask-image: radial-gradient(550px at var(--mx, 50%) var(--my, 55%),
    rgba(0,0,0,0) 0%, rgba(0,0,0,0) 10%, rgba(0,0,0,0.03) 30%,
    rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.4) 75%, rgba(0,0,0,0.7) 90%, rgba(0,0,0,1) 100%);
  mask-image: radial-gradient(550px at var(--mx, 50%) var(--my, 55%),
    rgba(0,0,0,0) 0%, rgba(0,0,0,0) 10%, rgba(0,0,0,0.03) 30%,
    rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.4) 75%, rgba(0,0,0,0.7) 90%, rgba(0,0,0,1) 100%);
}
.atmosphere--red .atmosphere-eyebrow { color: rgba(255,255,255,0.85); }
.atmosphere--red .atmosphere-h .accent { color: #FFE0E6; }
.atmosphere--red .atmosphere-body { color: rgba(255,255,255,0.92); }
.atmosphere--light { --spot-color: rgba(220, 20, 60, 0.07); }

/* Atmosphere content typography */
.atmosphere-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.atmosphere-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}
.atmosphere--dark .atmosphere-eyebrow { color: rgba(255,255,255,0.7); }
.atmosphere--light .atmosphere-eyebrow { color: var(--ink); opacity: 0.65; }

.atmosphere-h {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.atmosphere--dark .atmosphere-h .accent { color: var(--coral); }
.atmosphere--light .atmosphere-h .accent { color: var(--swiss-red); }

.atmosphere-body {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.55;
}
.atmosphere--dark .atmosphere-body { color: rgba(255,255,255,0.85); }

.atmosphere-attrib {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 400;
}
.atmosphere--light .atmosphere-attrib strong { color: var(--ink); font-weight: 600; }
.atmosphere--dark .atmosphere-attrib { color: rgba(255,255,255,0.7); }
.atmosphere--dark .atmosphere-attrib strong { color: var(--paper); font-weight: 600; }

/* Hero CTA row — primary + secondary side-by-side */
.atmosphere-cta-row {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}
/* ============================================
   MOTION DEMO
   ============================================ */
.motion-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.motion-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-family: 'Manrope', monospace;
  font-size: var(--text-sm);
}
.motion-card pre { white-space: pre-wrap; word-break: break-word; }

/* ============================================
   DO / DON'T
   ============================================ */
.dodont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.dodont-cell {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: grid;
  gap: 0.75rem;
}
.dodont-cell.do { border-left: 3px solid var(--sage); }
.dodont-cell.dont { border-left: 3px solid var(--swiss-red); }
.dodont-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
}
.do .dodont-tag    { color: var(--sage); }
.dont .dodont-tag  { color: var(--swiss-red); }
.dodont-list { font-size: var(--text-sm); display: grid; gap: 0.5rem; line-height: 1.55; }

/* ============================================
   ENTRY REVEALS (intersection observer)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms var(--ease-soft) calc(var(--i, 0) * 60ms),
              transform 700ms var(--ease-soft) calc(var(--i, 0) * 60ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================
   SIGNATURE MARK — triangle as foreground motif
   (hairline pattern from atmosphere brought
   forward as a single foreground element,
   max 1 per page)
   ============================================ */
.signature-demo {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: var(--space-2xl) var(--space-xl);
  margin-bottom: var(--space-md);
  position: relative;
}

/* A — Hero accent (asymmetric duo, 7/5) */
.sig-hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-xl);
  align-items: center;
  min-height: 360px;
}
.sig-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}
.sig-hero-headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}
.sig-cluster {
  position: relative;
  display: grid;
  place-items: center end;
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: visible;
}
.sig-cluster svg {
  width: 115%;
  max-width: none;
  height: auto;
  display: block;
  margin-right: -10%;
}

/* B — Section divider (single mark, centered) */
.sig-divider {
  display: grid;
  place-items: center;
  padding: var(--space-3xl) 0;
  text-align: center;
}
.sig-divider svg {
  width: 88px;
  height: auto;
  display: block;
}
.sig-divider-flank {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.4;
}
.sig-divider-flank-top { margin-bottom: var(--space-2xl); }
.sig-divider-flank-bot { margin-top: var(--space-2xl); }

/* C — End-of-page mark */
.sig-endmark {
  display: grid;
  place-items: center;
  padding: var(--space-md) 0;
  text-align: center;
}
.sig-endmark-rule {
  width: 100%;
  height: 1px;
  background: var(--rule);
  margin-bottom: var(--space-2xl);
}
.sig-endmark svg {
  width: 28px;
  height: auto;
  display: block;
  margin-bottom: var(--space-md);
}
.sig-endmark-meta {
  font-family: 'Manrope', sans-serif;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
}

/* D — Verboten (banned print-on-web example) */
.sig-banned {
  position: relative;
  border: 1px solid var(--rule);
  overflow: hidden;
  margin-bottom: var(--space-md);
}
.sig-banned-fill {
  display: block;
  width: 100%;
  height: 320px;
  background-color: #B81F37;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 52' width='60' height='52'><path d='M0,0 L15,26 L30,0 L45,26 L60,0' fill='none' stroke='%23ffffff' stroke-width='4'/><path d='M0,52 L15,26 L30,52 L45,26 L60,52' fill='none' stroke='%23ffffff' stroke-width='4'/></svg>");
  background-size: 120px 104px;
  background-repeat: repeat;
  position: relative;
}
.sig-banned-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 0.6rem 1.4rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* Discipline rules list */
.sig-rules {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 0;
  display: grid;
  gap: 0;
}
.sig-rules li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-sm);
  align-items: baseline;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-base);
  line-height: 1.55;
}
.sig-rules li:last-child { border-bottom: 0; }
.sig-rules .num {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--swiss-red);
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .footer-cols { grid-template-columns: 1fr; gap: var(--space-md); }
  .nav-preview-links { display: none; }
  .nav-preview-links.mobile-shown { display: flex; }
  .type-row { grid-template-columns: 1fr; }
  .spacing-row { grid-template-columns: 100px 1fr; }
  .spacing-row .spacing-val { display: none; }
  .motion-demo { grid-template-columns: 1fr; }
  .dodont { grid-template-columns: 1fr; }
  .sig-hero { grid-template-columns: 1fr; gap: var(--space-lg); }
  .sig-cluster { min-height: 220px; }
  .signature-demo { padding: var(--space-xl) var(--space-md); }
}

/* ============================================
   GRADIENT TEXT (homepage hero — GEBUCHT)
   Ported from src/styles.css:489-525 + 1055-1076 (2026-05-24, plan Phase 3).
   Activates only after body.classList.add('animations-ready') fires.
   ============================================ */
.gradient-text-animated {
  display: inline;
  white-space: normal;
  font-weight: 800;
  color: var(--wine);
}

.animations-ready .gradient-text-animated {
  background: linear-gradient(
    90deg,
    #8B0E2B 0%, #95112D 2%, #9B122F 4%, #A11430 6%, #A71531 8%,
    #AD1633 10%, #B31734 12%, #BA1835 14%, #BE1836 16%, #C31936 18%,
    #C81A37 20%, #CB1A38 22%, #CE1A38 24%, #D11B39 26%, #D71C3A 28%,
    #DC143C 30%, #E2133B 32%, #E8123B 34%, #EE113A 36%, #F1103A 38%,
    #F4103A 40%, #F4103A 42%, #F4103A 44%, #F4103A 46%, #F4103A 48%,
    #F4103A 50%, #F4103A 52%, #F1103A 54%, #EE113A 56%, #E8123B 58%,
    #E2133B 60%, #DC143C 62%, #D71C3A 64%, #D11B39 66%, #CE1A38 68%,
    #CB1A38 70%, #C81A37 72%, #C31936 74%, #BE1836 76%, #BA1835 78%,
    #B31734 80%, #AD1633 82%, #A71531 84%, #A11430 86%, #9B122F 88%,
    #95112D 90%, #8B0E2B 92%, #8B0E2B 94%, #8B0E2B 96%, #8B0E2B 98%,
    #8B0E2B 100%
  );
  background-size: 500% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: btnFlow 33s linear infinite;
  filter: drop-shadow(0 0 50px rgb(255 15 58 / 50%));
  will-change: background-position;
}

.animation-paused .gradient-text-animated {
  animation-play-state: paused !important;
}

@keyframes btnFlow {
  0%   { background-position: 500% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
 * PHASE 3 HOMEPAGE SHELL + SECTION MAP v2 COMPONENTS
 * Extracted from src/index.html.new inline <style> block 2026-05-25.
 * Tokens (--rule, --paper, --ink, --ease-spring, --ease-soft) inherit
 * from Swiss Style Guide base above. No :root redefinition here.
 * ============================================================ */
/* ========================================
   SITE HEADER — clean Swiss, hairline, dropdown
   ======================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--paper);
    transition: box-shadow 240ms var(--ease-spring);
}
#header.scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}
#header > .container {
    padding-top: 18px;
    padding-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}
#header .logo-img {
    display: block;
    height: 18px;
    width: auto;
}
#header nav#site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
/* Normalize display so anchor + dropdown button share the same baseline in the flex row. */
#header nav#site-nav > a:not(.nav-cta),
#header nav#site-nav > .nav-dropdown > button {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0 0 3px;
    cursor: pointer;
    line-height: 1.2;
}
#header nav#site-nav > .nav-dropdown {
    display: inline-flex;
    align-items: center;
}
#header nav#site-nav > a:not(.nav-cta)::after,
#header nav#site-nav > .nav-dropdown > button::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-quick) var(--ease-spring);
}
#header nav#site-nav > a:not(.nav-cta):hover::after,
#header nav#site-nav > a:not(.nav-cta):focus-visible::after,
#header nav#site-nav > .nav-dropdown:hover > button::after,
#header nav#site-nav > .nav-dropdown > button:focus-visible::after,
#header nav#site-nav > .nav-dropdown.is-open > button::after {
    transform: scaleX(1);
}
/* Active page — red underline, always visible, stays red on hover */
#header nav#site-nav > a[aria-current="page"]:not(.nav-cta) {
    font-weight: 600;
}
#header nav#site-nav > a[aria-current="page"]:not(.nav-cta)::after,
#header nav#site-nav > .nav-dropdown[aria-current="page"] > button::after {
    background: var(--swiss-red);
    transform: scaleX(1);
}
#header .nav-dropdown {
    position: relative;
}
#header .nav-dropdown > button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#header .nav-dropdown > button .nav-chev {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
    transition: transform 200ms var(--ease-spring);
}
#header .nav-dropdown:hover > button .nav-chev,
#header .nav-dropdown.is-open > button .nav-chev {
    transform: rotate(180deg);
}
#header .nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: -16px;
    min-width: 320px;
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 200ms var(--ease-spring), transform 200ms var(--ease-spring), visibility 200ms;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}
#header .nav-dropdown:hover .nav-dropdown-panel,
#header .nav-dropdown:focus-within .nav-dropdown-panel,
#header .nav-dropdown.is-open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#header .nav-dropdown-panel a {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    padding: 10px 22px;
    line-height: 1.4;
    transition: background 160ms var(--ease-spring), color 160ms var(--ease-spring);
}
#header .nav-dropdown-panel a:hover,
#header .nav-dropdown-panel a:focus-visible {
    background: var(--cream);
    color: var(--swiss-red);
}
/* Style-guide arrow-in-circle CTA, scaled down to match the 18px logo height. */
#header .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--paper);
    background: var(--swiss-red);
    padding: 4px 4px 4px 14px;
    border-radius: 999px;
    text-decoration: none;
    line-height: 1;
    transition: background var(--dur-quick) var(--ease-spring);
}
#header .nav-cta:hover { background: var(--wine); }
#header .nav-cta::after { display: none !important; }
#header .nav-cta .nav-cta-label { line-height: 1; }
#header .nav-cta .nav-cta-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--dur-medium) var(--ease-spring),
                background var(--dur-quick) var(--ease-spring);
}
#header .nav-cta .nav-cta-arrow svg {
    width: 12px; height: 12px; color: var(--paper);
    transform: rotate(-45deg);
    transition: transform var(--dur-medium) var(--ease-spring);
}
#header .nav-cta:hover .nav-cta-arrow {
    background: rgba(255, 255, 255, 0.28);
}
#header .nav-cta:hover .nav-cta-arrow svg {
    transform: rotate(0deg);
}
/* Push body content below fixed header. Header height = 68px (logo 32 + 18+18 container
   padding). Burger replaces inline nav below mobile breakpoint without changing height. */
body { padding-top: 68px; }

/* ========================================
   HERO SHELL — 2-col grid, atmosphere-dark, Section 1 copy
   ======================================== */
/* Hero uses base .atmosphere atmosphere--dark for background layers (gradient drift + triangle grid + mouse-follow spotlight), matches audit.webevolve.ch. These overrides only adjust the hero-specific padding/min-height/display since base .atmosphere is flex-centered for smaller blocks. */
.hero-shell.atmosphere {
    min-height: 0;
    padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 9vw, 140px);
    display: block;
}
.hero-shell.atmosphere > .container {
    position: relative;
    z-index: 1;
}
.hero-shell-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
@media (max-width: 900px) {
    .hero-shell-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-shell-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--swiss-red);
    margin: 0 0 28px;
    padding-left: 28px;
    position: relative;
}
.hero-shell-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 1px;
    background: var(--swiss-red);
}
/* Big visible punchline (Gefunden. Vertraut. GEBUCHT.) — display-only, NOT an H1.
   Keeps the SEO H1 free for keyword-targeted copy below. Mobile floor bumped
   to 3.25rem (52px) so the headline reads as a true display element on phones. */
.hero-shell-display {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.25rem, 1.4rem + 5vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--paper);
    margin: 0 0 20px;
}
/* Small mobile: drop the ·-separated keyword tail in the eyebrow so the
   H1 keeps "GEO-Agentur Schweiz" only and doesn't wrap awkwardly. */
@media (max-width: 560px) {
    .hero-eyebrow-tail { display: none; }
}
.hero-shell-display .hero-line {
    display: block;
}
.hero-shell-display .hero-line-accent {
    color: var(--coral);
}
.hero-shell-body {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}
.hero-shell-body p {
    margin: 0 0 18px;
}
.hero-shell-body p:last-of-type { margin-bottom: 32px; }
.hero-shell-cta-row {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
}
.hero-shell-image-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    margin-bottom: calc(-1 * clamp(0.5rem, 2vw, 2rem));
}
/* Negative margin-right bleeds the image into the atmosphere on wide viewports.
   Scoped to >=1100px because between 900-1099 the image was clipping past
   the right viewport edge (woman's arm/phone cut off). */
@media (min-width: 1100px) {
    .hero-shell-image-wrap {
        margin-right: calc(-1 * clamp(2rem, 8vw, 8rem));
    }
}
.hero-shell-image-wrap::before {
    content: '';
    position: absolute;
    inset: -22% -18% -18% -22%;
    background: radial-gradient(ellipse at 50% 42%,
        rgba(255, 90, 120, 0.40) 0%,
        rgba(255, 15, 58, 0.18) 28%,
        rgba(220, 20, 60, 0.06) 56%,
        transparent 80%);
    filter: blur(48px);
    mix-blend-mode: screen;
    z-index: 0;
    pointer-events: none;
}
.hero-shell-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    filter: saturate(0.95) contrast(1.03);
    /* Feather the rectangular crop into the wine atmosphere so the cut-off subject
       blends instead of ending hard. Bottom fade is longest (the dominant crop edge);
       top + sides are subtler. */
    -webkit-mask-image:
        linear-gradient(to bottom, transparent 0%, black 10%, black 70%, transparent 100%),
        linear-gradient(to right,  transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image:
        linear-gradient(to bottom, transparent 0%, black 10%, black 70%, transparent 100%),
        linear-gradient(to right,  transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
@media (max-width: 900px) {
    .hero-shell-image-wrap { max-width: 460px; margin: 0 auto; }
}

/* Shared eyebrow utility (used by S7 Peter, S12 Agent-Checks) — small Swiss-Red uppercase label above an H2. Kept as utility class after S2 Manifest band was removed. */
.manifest-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--swiss-red);
    margin: 0 0 28px;
}






/* ========================================
   SECTION 11 — VERGLEICH TABLE
   ======================================== */
.compare-table-wrap { margin-top: var(--space-xl); }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
}
.compare-table thead th {
    text-align: left;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 0 16px;
    border-bottom: 1px solid var(--rule);
}
.compare-table thead th.col-us { color: var(--swiss-red); }
.compare-table thead th.col-them { color: var(--text-muted); }
.compare-table tbody td {
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
    color: var(--ink);
    vertical-align: middle;
}
.compare-table tbody td.col-us,
.compare-table tbody td.col-them {
    width: 110px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}
.compare-table tbody td.col-us { color: var(--swiss-red); }
.compare-table tbody td.col-them { color: #C9C5C4; }
@media (max-width: 600px) {
    .compare-table tbody td.col-us,
    .compare-table tbody td.col-them { width: 56px; font-size: 0.95rem; }
}
.compare-cta { text-align: center; margin-top: var(--space-lg); }

/* ───────────────────────────────────────────────────────────────────
   #vergleich dark variant — bold ink-black substrate with Swiss-Red
   column highlight on the WebEvolve side. Dramatic editorial contrast.
   ─────────────────────────────────────────────────────────────────── */
.vergleich--dark {
    background: #1A1A1A;
    color: #FFFFFF;
    padding: var(--space-3xl) 0;
}
.vergleich--dark .h2,
.vergleich--dark h2 {
    color: #FFFFFF;
}
.vergleich--dark .eyebrow--accent {
    color: var(--coral);
}
.vergleich--dark .text-accent {
    color: var(--coral);
}
.vergleich--dark .compare-table-wrap {
    margin: var(--space-2xl) auto 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}
.vergleich--dark .compare-table thead th {
    color: rgba(255, 255, 255, 0.45);
    border-bottom-color: rgba(255, 255, 255, 0.18);
    padding: var(--space-md) var(--space-sm);
    font-size: 0.72rem;
    letter-spacing: 0.24em;
}
.vergleich--dark .compare-table thead th.col-us {
    color: var(--coral);
    font-weight: 800;
}
.vergleich--dark .compare-table thead th.col-them {
    color: rgba(255, 255, 255, 0.35);
}
.vergleich--dark .compare-table tbody td {
    color: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    padding: var(--space-md) var(--space-sm);
    font-size: 1.0625rem;
}
.vergleich--dark .compare-table tbody td:first-child {
    padding-left: var(--space-lg);
}
.vergleich--dark .compare-table tbody td.col-us {
    color: var(--coral);
    font-size: 1.4rem;
    font-weight: 800;
    background: rgba(220, 20, 60, 0.10);
    width: 130px;
}
.vergleich--dark .compare-table tbody td.col-them {
    color: rgba(255, 255, 255, 0.22);
    font-size: 1.2rem;
    font-weight: 600;
    width: 130px;
}
.vergleich--dark .compare-table tbody tr:last-child td {
    border-bottom: 0;
}
.vergleich--dark .compare-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}
.vergleich--dark .compare-table tbody tr:hover td.col-us {
    background: rgba(220, 20, 60, 0.18);
}
.vergleich--dark .compare-cta {
    margin-top: var(--space-2xl);
}
/* Override the generic <=640px "stacked" rule (swiss.css:1018) so the dark
   variant stays a real table on mobile (criteria left, WebEvolve + Konkurrenz
   right). Otherwise display:block collapses the rows into single columns. */
@media (max-width: 640px) {
    .vergleich--dark .compare-table { display: table; width: 100%; }
    .vergleich--dark .compare-table thead { display: table-header-group; }
    .vergleich--dark .compare-table tbody { display: table-row-group; }
    .vergleich--dark .compare-table tr { display: table-row; padding: 0; border-bottom: 0; }
    .vergleich--dark .compare-table td {
        display: table-cell;
        width: auto;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin: 0;
    }
    .vergleich--dark .compare-table tbody td.col-us,
    .vergleich--dark .compare-table tbody td.col-them { text-align: center; }
}
@media (max-width: 600px) {
    .vergleich--dark .compare-table-wrap { margin-top: var(--space-xl); border-radius: 8px; }
    /* Headers tighten so "Klassische Webagentur" wraps to 2 lines, not 3. */
    .vergleich--dark .compare-table thead th {
        font-size: 0.6rem;
        letter-spacing: 0.08em;
        padding: var(--space-sm) 6px;
    }
    /* Tighter body padding so the criteria column keeps reading room. */
    .vergleich--dark .compare-table tbody td { font-size: 0.9rem; padding: var(--space-sm) 6px; }
    .vergleich--dark .compare-table tbody td:first-child { padding-left: var(--space-sm); }
    /* Wider right columns so the headers above them fit cleanly. */
    .vergleich--dark .compare-table tbody td.col-us { font-size: 1.1rem; width: 100px; }
    .vergleich--dark .compare-table tbody td.col-them { font-size: 1rem; width: 100px; }
}



/* ========================================
   SITE FOOTER — cream block, hairline cols
   ======================================== */
/* Footer uses base .atmosphere atmosphere--dark for the dark wine background + drifting triangle pattern + mouse-spotlight, matches audit.webevolve.ch footer. */
.site-footer.atmosphere {
    background: transparent;
    color: var(--paper);
    padding: clamp(56px, 6vw, 96px) 0 32px;
    min-height: 0;
    display: block;
    border-top: 0;
}
.site-footer > .container {
    position: relative;
    z-index: 1;
}
.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: clamp(24px, 3vw, 56px);
    padding-bottom: var(--space-xl);
}
@media (max-width: 900px) {
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}
@media (max-width: 560px) {
    .site-footer .footer-grid { grid-template-columns: 1fr; }
}
.site-footer .footer-section { display: flex; flex-direction: column; gap: 12px; }
/* CSS-text wordmark (audit-v2 pattern) — avoids the boxed PNG look on dark substrate.
   Acts as the col-1 "eyebrow equivalent": same top cap-line, same bottom padding
   as the .footer-title eyebrows in cols 2-4. Margin-top tuned to align cap-lines. */
.site-footer .footer-logo-link {
    display: inline-block;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--paper);
    text-decoration: none;
}
.site-footer .footer-logo-link .footer-logo-accent { color: var(--swiss-red); }
.site-footer .footer-logo-img { height: 18px; width: auto; }
.site-footer .footer-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--coral);
    margin: 0 0 24px;
}
/* Unified body size across the footer — description, address, links and copyright
   all share var(--text-sm) so there's one font size, three colour values.
   :not(.footer-title) exclusion lets the .footer-title eyebrow keep its own font-size. */
.site-footer .footer-section p:not(.footer-title) {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
    margin: 0;
}
/* :not(.footer-logo-link) so the unified body-link rule doesn't clobber the wordmark
   (which has its own font-size: 1.5rem and weight 800). */
.site-footer .footer-section a:not(.footer-logo-link) {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.55;
    color: var(--paper);
    text-decoration: none;
    transition: color 200ms var(--ease-spring);
}
.site-footer .footer-section a:not(.footer-logo-link):hover { color: var(--coral); }
.site-footer .footer-address {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.62);
}
.site-footer .footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    justify-content: center;
    padding: 28px 0;
}
.site-footer .footer-trust img {
    opacity: 0.92;
    display: block;
}
/* Mirror audit.webevolve.ch .footer-bottom exactly (inherit body font, opacity-muted, no hairline). */
.site-footer .footer-bottom {
    display: block;
    text-align: center;
    padding-top: 0;
    margin-top: var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--paper);
    opacity: 0.75;
    border-top: 0;
}
/* The inner <p> needs an explicit font-size override because the generic
   `p { font-size: var(--text-base) }` rule at swiss.css:198 beats inherit
   from .footer-bottom. Without this, the copyright renders ~2px larger
   than the column links. */
.site-footer .footer-bottom p {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.55;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* skip-link helper */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}
.skip-link:focus { left: 16px; top: 16px; z-index: 200; background: var(--ink); color: var(--paper); padding: 12px 16px; }

/* ============================================================
 * BRIDGE UTILITIES — legacy class compatibility (homepage only)
 * Added 2026-05-25 during Phase 3.5/5 CSS unification.
 * Replaces utilities formerly in src/styles.css (now removed
 * from src/index.html.new only).
 * ============================================================ */

/* .container — 990px outer × 30px side padding = 930px usable content area site-wide. */
.container {
    position: relative;
    z-index: 2;
    max-width: 990px;
    margin: 0 auto;
    padding: 0 30px;
}
@media (max-width: 600px) {
    .container { padding: 0 var(--space-sm); }
}

/* Section flow — atmosphere bands skip the universal hairline. */
.atmosphere { border-bottom: 0; }
.hero-shell { border-bottom: 0; }
.footer-cta-band { border-bottom: 0; }

/* Text utilities used inline on H2 + intro paragraphs. */
.text-center { text-align: center; }
.text-red    { color: var(--swiss-red); }

/* (.fade-in JS observer dropped 2026-05-25 — class no longer in markup.
   Use styleguide .reveal pattern if reveal animations needed again.) */

/* .stat-headline — bespoke sub-heading inside .stat (carries copy that
   elaborates the .stat-num). Sits below .stat-num, above body text. */
.stat .stat-headline {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-base);
    line-height: 1.35;
    margin-top: 0.5rem;
    color: var(--ink);
}

/* Atmosphere band — overrides for S4 (problem-stats) + future dark bands.
   Resets atmosphere defaults that suit hero/footer but not body bands:
   removes min-height + flex-center, applies section-grade padding. */
.atmosphere.atmosphere--band {
    min-height: 0;
    display: block;
    padding: var(--space-3xl) 0;
}

/* Dark-band .stat-row overrides — light dividers, paper text, coral accent. */
.atmosphere--dark .stat-row {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.atmosphere--dark .stat { border-right: 1px solid rgba(255, 255, 255, 0.18); color: var(--paper); }
.atmosphere--dark .stat:last-child { border-right: 0; }
.atmosphere--dark .stat-label    { color: rgba(255, 255, 255, 0.65); }
.atmosphere--dark .stat-num      { color: var(--paper); }
.atmosphere--dark .stat-num .accent { color: var(--coral); }
.atmosphere--dark .stat-headline { color: var(--paper); }
.atmosphere--dark .stat p { color: rgba(255, 255, 255, 0.78); }

/* Product tier groups (S5) — vertical spacing between Tier 1 + Tier 2. */
.product-tier-group + .product-tier-group { margin-top: var(--space-2xl); }
.product-tier-group > .eyebrow { margin-bottom: var(--space-md); }
.product-tier-group > .card-grid { margin-top: var(--space-md); }

/* btn--wine alignment helper (audit-v2 pattern). */
.btn--wine-start { align-self: flex-start; margin-top: var(--space-md); }

/* Card-as-anchor — undo default link styling when an <a> uses .card. */
a.card { text-decoration: none; color: inherit; }

/* Section CTA row — left-aligned button below product grid. */
.section-cta-row {
    margin-top: var(--space-xl);
    display: flex;
    align-items: center;
}

/* Product card icons — scale up from the 15×15 base to match section rhythm. */
#produkte .card-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: var(--space-xs);
}

/* FAQ accordion (S6 + S11) — audit-v2 styleguide pattern. */
.faq-list { margin-top: var(--space-xl); }
.faq-details { border-top: 1px solid var(--rule); padding: var(--space-md) 0; }
.faq-details:last-child { border-bottom: 1px solid var(--rule); }
.faq-summary {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-lg);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    color: var(--ink);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::marker { display: none; }
details[open] .faq-summary { color: var(--swiss-red); }
.faq-answer { margin-top: var(--space-sm); padding-right: 2rem; color: var(--ink); }

/* Peter intro (S7) — ported verbatim from audit.webevolve.ch (.section--about).
   Blush substrate, no atmospheric pattern, headshot + narrative side-by-side. */
.section--about {
    background: var(--blush);
    padding: var(--space-3xl) 0;
}
.about-grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}
.about-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ink);
}
.about-p {
    font-size: var(--text-base);
    margin-top: var(--space-lg);
    color: var(--ink);
}
.about-p--md {
    font-size: var(--text-base);
    margin-top: var(--space-md);
    color: var(--ink);
}
.about-photo-col { text-align: center; }
.about-photo {
    width: clamp(200px, 100%, 280px);
    height: auto;
    display: block;
    margin: 0 auto;
}
.about-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-base);
    margin-top: var(--space-sm);
    color: var(--ink);
}
.about-role {
    font-size: var(--text-sm);
    opacity: 0.7;
    margin-top: 0.25rem;
    color: var(--ink);
}
.about-linkedin {
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
    display: inline-block;
    color: var(--ink);
}
@media (max-width: 768px) {
    .about-grid-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
    /* Mobile: source order — H2 + intro above the portrait. */
}

/* Trust-list (S7 + S13) — inline ✓ checklist. */
.trust-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    font-size: 0.95rem;
}
.trust-list li::before {
    content: '\2713\00a0\00a0';
    color: var(--swiss-red);
    font-weight: 600;
}

/* Atmosphere CTA row — flex row for CTAs in atmosphere bands. */
.atmosphere-cta-row {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
}

.atmosphere--light.atmosphere--band { min-height: 0; }

/* #midpage-statement headline ("Werden Sie empfohlen oder übersehen?") fits one
   line at <=48px in the 930px container. Without this override, var(--text-3xl)
   maxes at 60px and the headline wraps. Measured via agent-browser. */
#midpage-statement .atmosphere-h {
    font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
}

/* Proof (S9) — testimonial card + 2 narrative paragraph blocks (KI-Barometer,
   Schweizer Web-Studie). Reverted from the stat-cards experiment per user
   feedback: full-length narrative copy is more credible than ultra-short stats. */
.proof-testimonial-wrap {
    margin-top: var(--space-xl);
    background: var(--blush);
    border-color: transparent;
    padding: var(--space-xl);
}
.narratives-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}
@media (max-width: 768px) { .narratives-grid { grid-template-columns: 1fr; } }
.narrative > p:not(.eyebrow):not(.narrative-title) { color: var(--ink); }
.narrative-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-lg);
    line-height: 1.3;
    margin: var(--space-sm) 0;
}
/* Section-scoped eyebrow color override — keeps eyebrows muted so the section
   feels calm. Eyebrows on other paper sections stay Swiss-Red. */
#proof .eyebrow--accent {
    color: rgba(26, 26, 26, 0.55);
}
#proof .eyebrow--accent::before {
    background: rgba(26, 26, 26, 0.35);
}

/* #agent-checks (S13) — blush substrate breaks the dark-on-dark-on-red rhythm
   between #midpage-statement and #erstgespraech. Cards are standard .card
   (paper bg, hairline border, lift on hover). */
.section--agent-checks {
    background: var(--blush);
    padding: var(--space-3xl) 0;
}
/* Intro paragraphs between H2 and card grid — give the eye breathing space. */
.section-intro {
    margin-top: var(--space-md);
}
.section-intro + .section-intro {
    margin-top: var(--space-sm);
}
/* Agent-checks card grid: 2 cols desktop, 1 col on small mobile. */
.agent-checks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}
@media (max-width: 720px) {
    .agent-checks-grid { grid-template-columns: 1fr; }
}

/* S13 footer CTA (#erstgespraech) — atmosphere--red atmosphere band. */
.atmosphere--red.atmosphere--band { min-height: 0; }
.atmosphere--red .trust-list li::before { color: var(--paper); }

/* ============================================
   MOBILE NAVIGATION — burger + full-screen overlay
   Pattern from assets-bundle/css/mobile-nav.css (audit-subdomain),
   extended with second-level expansion for Produkte sub-menu.
   ============================================ */
.mn-burger {
    display: none;
    position: relative;
    width: 28px;
    height: 18px;
    padding: 13px 10px;
    box-sizing: content-box;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
}
.mn-burger span {
    position: absolute;
    left: 10px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transform-origin: center;
    transition:
        top 480ms cubic-bezier(0.34, 1.56, 0.64, 1),
        width 380ms var(--ease-spring),
        transform 480ms cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 160ms ease-out;
}
.mn-burger span:nth-child(1) { top: 13px; width: 28px; }
.mn-burger span:nth-child(2) { top: 21px; width: 14px; transform-origin: left; }
.mn-burger span:nth-child(3) { top: 29px; width: 22px; }
.mn-burger:hover span:nth-child(2) { width: 28px; transition-delay: 30ms; }
.mn-burger:hover span:nth-child(3) { width: 28px; transition-delay: 80ms; }
.mn-burger[aria-expanded="true"] span:nth-child(1) {
    top: 21px; width: 28px; transform: rotate(45deg); transition-delay: 120ms;
}
.mn-burger[aria-expanded="true"] span:nth-child(2) {
    width: 0; opacity: 0; transition-delay: 0ms;
}
.mn-burger[aria-expanded="true"] span:nth-child(3) {
    top: 21px; width: 28px; transform: rotate(-45deg); transition-delay: 120ms;
}
.mn-burger:not([aria-expanded="true"]) span:nth-child(2) { transition-delay: 240ms; }

.mn-overlay {
    position: fixed;
    inset: 0;
    background: var(--paper);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: calc(var(--space-3xl) + 16px) clamp(1.5rem, 7vw, 3rem) var(--space-2xl);
    transform: translateX(100%);
    transition: transform 500ms var(--ease-spring);
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mn-overlay.is-open { transform: translateX(0); visibility: visible; }
/* Close button — sits at the same screen point as the burger so users tap to dismiss
   exactly where they tapped to open. (Bumping #header z-index above the overlay would
   also expose the burger morph, but cleanest is a dedicated, accessible close control.) */
.mn-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 48px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border-radius: 50%;
    transition: background 200ms var(--ease-spring), color 200ms var(--ease-spring);
}
.mn-close:hover, .mn-close:focus-visible {
    background: rgba(26, 26, 26, 0.06);
    color: var(--swiss-red);
    outline: 0;
}
.mn-close svg { width: 22px; height: 22px; display: block; }

.mn-overlay-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(26, 26, 26, 0.07);
    counter-reset: mn-item;
}
.mn-overlay-list > li {
    border-bottom: 1px solid rgba(26, 26, 26, 0.07);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 400ms var(--ease-soft), transform 400ms var(--ease-spring);
    counter-increment: mn-item;
}
.mn-overlay-list > li > a,
.mn-overlay-list > li > .mn-group-trigger {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto;
    align-items: baseline;
    gap: var(--space-sm);
    padding: 1.05rem 0.75rem;
    margin: 0 -0.75rem;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-decoration: none;
    background: transparent;
    border: 0;
    width: calc(100% + 1.5rem);
    text-align: left;
    cursor: pointer;
    transition: background-color 240ms var(--ease-spring), color 200ms var(--ease-spring);
}
.mn-overlay-list > li > a::before,
.mn-overlay-list > li > .mn-group-trigger::before {
    content: counter(mn-item, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    font-variant-numeric: tabular-nums;
    color: rgba(26, 26, 26, 0.45);
    align-self: baseline;
    padding-top: 0.4rem;
    transition: color 200ms;
}
.mn-overlay-list > li > a::after {
    content: '→';
    font-size: var(--text-base);
    font-weight: 400;
    opacity: 0.18;
    flex-shrink: 0;
    align-self: center;
    transition: opacity 200ms, transform 280ms var(--ease-spring), color 200ms;
}
.mn-overlay-list > li > a:hover,
.mn-overlay-list > li > a:focus-visible,
.mn-overlay-list > li > .mn-group-trigger:hover,
.mn-overlay-list > li > .mn-group-trigger:focus-visible {
    background-color: rgba(220, 20, 60, 0.05);
}
.mn-overlay-list > li > a:hover::after,
.mn-overlay-list > li > a:focus-visible::after {
    opacity: 1;
    color: var(--swiss-red);
}

/* Second-level group: chevron-toggle + expanding sub-list */
.mn-group-trigger .mn-chev {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    opacity: 0.45;
    align-self: center;
    transition: transform 280ms var(--ease-spring), opacity 200ms, color 200ms;
}
.mn-group-trigger[aria-expanded="true"] .mn-chev {
    transform: rotate(45deg);
    opacity: 1;
    color: var(--swiss-red);
}
.mn-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 420ms var(--ease-spring);
}
.mn-group-trigger[aria-expanded="true"] + .mn-sub { max-height: 480px; }
.mn-sub li {
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 320ms var(--ease-soft) 0ms, transform 320ms var(--ease-spring) 0ms;
}
.mn-group-trigger[aria-expanded="true"] + .mn-sub li {
    opacity: 1;
    transform: none;
}
.mn-group-trigger[aria-expanded="true"] + .mn-sub li:nth-child(1) { transition-delay: 60ms; }
.mn-group-trigger[aria-expanded="true"] + .mn-sub li:nth-child(2) { transition-delay: 110ms; }
.mn-group-trigger[aria-expanded="true"] + .mn-sub li:nth-child(3) { transition-delay: 160ms; }
.mn-group-trigger[aria-expanded="true"] + .mn-sub li:nth-child(4) { transition-delay: 210ms; }
.mn-group-trigger[aria-expanded="true"] + .mn-sub li:nth-child(5) { transition-delay: 260ms; }
.mn-sub a {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto;
    align-items: baseline;
    gap: var(--space-sm);
    padding: 0.85rem 0.75rem;
    margin: 0 -0.75rem;
    width: calc(100% + 1.5rem);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.3;
    color: rgba(26, 26, 26, 0.78);
    text-decoration: none;
    border-top: 1px solid rgba(26, 26, 26, 0.05);
    background-color: transparent;
    transition: background-color 240ms var(--ease-spring), color 200ms;
}
.mn-sub li:first-child a { border-top: 0; }
.mn-sub a::before { content: ''; }
.mn-sub a::after {
    content: '→';
    font-size: var(--text-sm);
    opacity: 0.18;
    align-self: center;
    transition: opacity 200ms, color 200ms;
}
.mn-sub a:hover,
.mn-sub a:focus-visible {
    color: var(--ink);
    background-color: rgba(220, 20, 60, 0.05);
}
.mn-sub a:hover::after,
.mn-sub a:focus-visible::after {
    opacity: 1;
    color: var(--swiss-red);
}
.mn-overlay-list a[aria-current="page"] { color: var(--swiss-red); }
.mn-overlay-list a[aria-current="page"]::before { color: var(--swiss-red); }
.mn-overlay-list a[aria-current="page"]::after { opacity: 1; color: var(--swiss-red); }

.mn-overlay.is-open .mn-overlay-list > li { opacity: 1; transform: none; }
.mn-overlay.is-open .mn-overlay-list > li:nth-child(1) { transition-delay: 140ms; }
.mn-overlay.is-open .mn-overlay-list > li:nth-child(2) { transition-delay: 200ms; }
.mn-overlay.is-open .mn-overlay-list > li:nth-child(3) { transition-delay: 260ms; }

.mn-overlay-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    align-self: flex-start;
    margin-top: var(--space-lg);
    padding: 0.6rem 0.6rem 0.6rem 1.5rem;
    background: var(--swiss-red);
    color: var(--paper);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 500;
    min-height: 3.25rem;
    text-decoration: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 400ms var(--ease-soft), transform 400ms var(--ease-spring), background 200ms var(--ease-spring);
}
.mn-overlay-cta:hover { background: var(--wine); }
.mn-overlay-cta .arrow {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--dur-medium) var(--ease-spring);
}
.mn-overlay-cta:hover .arrow { transform: translateX(3px); }
.mn-overlay-cta .arrow svg {
  width: 14px; height: 14px;
  transform: rotate(-45deg);
  transition: transform var(--dur-medium) var(--ease-spring);
}
.mn-overlay-cta:hover .arrow svg { transform: rotate(0deg); }
.mn-overlay.is-open .mn-overlay-cta { opacity: 1; transform: none; transition-delay: 380ms; }

html.mn-open, html.mn-open body { overflow: hidden; }
/* Burger replaces inline desktop nav at <=880px (was 767px) — kills the awkward
   wrap-to-second-row state between 768 and 900. */
@media (max-width: 880px) {
    .mn-burger { display: block; }
    #header nav#site-nav { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .mn-burger span,
    .mn-overlay,
    .mn-overlay-list > li,
    .mn-overlay-list a,
    .mn-overlay-list a::after,
    .mn-sub,
    .mn-sub li,
    .mn-overlay-cta {
        transition-duration: 1ms !important;
    }
}

/* ============================================
   AUDIT-PATTERN STATS — paper bg, red left-bar columns
   Ported from audit-v2 inline CSS for S4 problem-stats.
   ============================================ */
.section-title-large {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}
.accent-coral { color: var(--coral); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
    align-items: stretch;
}
.stat-item {
    padding: 0 var(--space-md);
    border-left: 2px solid var(--swiss-red);
    display: flex;
    flex-direction: column;
}
.stat-item .stat-num {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: var(--space-xs);
    font-variant-numeric: tabular-nums;
}
.stat-body {
    font-size: var(--text-sm);
    line-height: 1.55;
    flex: 1;
}
.stat-source {
    font-size: var(--text-xs);
    opacity: 0.65;
    margin-top: var(--space-md);
}
.link-source {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color var(--dur-quick) var(--ease-spring);
}
.link-source:hover { color: var(--swiss-red); }

#problem-stats {
    padding: var(--space-3xl) 0;
    background: var(--paper);
    border-top: none !important;
    border-bottom: none !important;
}
#hero {
    border-bottom: none !important;
}
.problem-lead {
    margin-top: var(--space-md);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--ink);
    opacity: 0.85;
}

/* Kernkompetenzen — sticky-anchor sidebar (H2) + numbered rows (definition-list layout) */
.kk-split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: start;
}
.kk-anchor {
    position: sticky;
    top: calc(72px + var(--space-xl));
}
.kk-rows {
    display: flex;
    flex-direction: column;
}
.kk-row {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--rule);
}
.kk-row:last-child {
    border-bottom: 1px solid var(--rule);
}
.kk-row-meta {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}
.kk-num {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--wine);
    letter-spacing: 0.05em;
    min-width: 2ch;
    flex-shrink: 0;
}
.kk-name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.kk-title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--ink);
    opacity: 0.7;
}
.kk-body {
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--ink);
    opacity: 0.8;
}
@media (max-width: 768px) {
    .kk-split {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .kk-anchor {
        position: static;
    }
}

/* Problem-stats card-grid: 3 stat cards on desktop, drops to 1 column at <=720px. */
#problem-stats .card-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-xl);
}
@media (max-width: 720px) {
  #problem-stats .card-grid { grid-template-columns: 1fr; }
}

/* Legacy borderless stat-row layout — preserved for any other section that still uses it. */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
  border: 0;
}
.stat-row-bis-zu {
  font-size: 0.5em;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.55;
  vertical-align: middle;
  letter-spacing: 0;
}
.stat-row-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--swiss-red);
  font-feature-settings: "tnum" 1;
  margin-bottom: var(--space-xs);
}
.stat-row-label {
  display: block;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.7;
  margin-bottom: 4px;
}
.stat-row-source {
  display: block;
  font-size: var(--text-xs);
  color: var(--ink);
  opacity: 0.35;
}
.stat-row-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 768px) {
  .stat-row {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Problem narrative — reading paragraphs + punchline questions between H2 and stats */
.problem-narrative {
  margin: var(--space-lg) 0 var(--space-2xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.problem-narrative p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.85;
}
.problem-questions {
  list-style: none;
  margin: var(--space-sm) 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.problem-questions li {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink);
  display: grid;
  grid-template-columns: 0.5rem 1fr;
  gap: var(--space-sm);
  align-items: start;
}
.problem-questions li::before {
  content: '';
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--swiss-red);
  /* half line-height minus half bullet height → bullet centered on first line */
  margin-top: calc((1em * 1.65 - 0.5rem) / 2);
}

/* ───────────────────────────────────────────────────────────────────
   Stacking-cards-on-scroll (used by #produkte)
   Cards pin via position:sticky and pile up as the user scrolls.
   ─────────────────────────────────────────────────────────────────── */
.stack-reveal {
  padding: var(--space-3xl) 0 var(--space-2xl) 0;
  background: var(--paper);
}
.stack-reveal-header {
  margin-bottom: var(--space-2xl);
}
.stack-reveal-header .body-lg {
  margin-top: var(--space-md);
}
.tier-group {
  margin-bottom: var(--space-3xl);
}
.tier-group:last-of-type {
  margin-bottom: var(--space-2xl);
}
.tier-group > .eyebrow {
  margin-bottom: var(--space-lg);
}
.stack-list {
  display: block;
}

.stack-card {
  position: sticky;
  top: calc(72px + var(--space-md));
  display: block;
  margin-bottom: var(--space-xl);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 -24px 48px -32px rgba(0, 0, 0, 0.12);
  transition: transform var(--dur-medium) var(--ease-soft),
              box-shadow var(--dur-medium) var(--ease-soft);
}
.stack-card:last-child {
  margin-bottom: 0;
}
.stack-card:hover {
  box-shadow: 0 -24px 60px -28px rgba(0, 0, 0, 0.2);
}
.stack-card:hover .card-arrow-corner {
  background: var(--swiss-red);
  color: white;
}
.stack-card-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-2xl);
  min-height: 60dvh;
  position: relative;
}
.stack-card-text-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
}
.stack-card-body-col {
  width: 100%;
  flex: 1;
}
.stack-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
  width: 100%;
}
.stack-card-mark {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--swiss-red);
}
.stack-card .card-icon {
  color: var(--swiss-red);
  width: 18px;
  height: 18px;
  display: block;
}
.stack-card .card-icon svg {
  width: 100%;
  height: 100%;
}
.stack-card .card-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: var(--space-xs) 0 0 0;
  color: var(--ink);
}
.stack-card .card-body {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
  margin: 0;
}
.stack-card .card-meta {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.75;
  margin: 0;
}
.stack-card .card-arrow-corner {
  position: static;
  opacity: 1;
  transform: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink);
  transition: transform var(--dur-quick) var(--ease-spring),
              background var(--dur-quick) var(--ease-spring),
              color var(--dur-quick) var(--ease-spring),
              border-color var(--dur-quick) var(--ease-spring);
}
.stack-card .card-arrow-corner svg {
  width: 16px;
  height: 16px;
  transform: rotate(-45deg);
  transition: transform var(--dur-quick) var(--ease-spring);
}
.stack-card:hover .card-arrow-corner {
  background: var(--swiss-red);
  border-color: var(--swiss-red);
  color: white;
}
.stack-card:hover .card-arrow-corner svg {
  transform: rotate(0deg);
}

/* ───────────────────────────────────────────────────────────────────
   Dark variant of the stack-reveal section — products shine against
   a near-black substrate. Card surfaces lift slightly from the bg.
   ─────────────────────────────────────────────────────────────────── */
.stack-reveal--dark {
  background: #1A1A1A;
  color: #FFFFFF;
  position: relative;
}
/* Geometric triangle grid behind the cards. Recipe matches the hero
   .atmosphere--dark exactly so the lines render with the same fine,
   overlay-blended cleanness — not the raw-white-at-low-opacity fuzz
   that read as wavy/thick on the previous version. */
.stack-reveal--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(60deg,  rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg,   rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 1px, transparent 1px, transparent 80px);
  opacity: 0.4;
  mix-blend-mode: overlay;
}
.stack-reveal--dark > * {
  position: relative;
  z-index: 1;
}
.stack-reveal--dark .h2,
.stack-reveal--dark h2 {
  color: #FFFFFF;
}
.stack-reveal--dark .body-lg,
.stack-reveal--dark .body-mute {
  color: #FFFFFF;
  opacity: 0.75;
}
.stack-reveal--dark .eyebrow--accent {
  color: var(--coral);
}
/* Bold colored cards per variant — Plusvibe-style continuous stack */
.stack-reveal--dark .stack-card[data-variant="red"]   { background: var(--swiss-red); }
.stack-reveal--dark .stack-card[data-variant="wine"]  { background: var(--wine); }
.stack-reveal--dark .stack-card[data-variant="coral"] { background: var(--coral); }
.stack-reveal--dark .stack-card[data-variant="sage"]  { background: #1F3D2C; }
.stack-reveal--dark .stack-card[data-variant="ochre"] { background: #C7811F; }

/* Progressive sticky top — each card pins lower so the previous one's top edge peeks. */
.stack-reveal--dark .stack-card[data-variant] {
  top: calc(72px + var(--space-md) + var(--i, 0) * 28px);
  border-color: transparent;
  box-shadow: 0 -28px 80px -30px rgba(0, 0, 0, 0.55);
}

/* Strip the top chrome on dark-section cards — title leads, Müller-Brockmann editorial */
.stack-reveal--dark .stack-card .stack-card-mark,
.stack-reveal--dark .stack-card .card-icon {
  display: none;
}

/* All colored cards: white text, white-alpha hairline, white arrow corner */
.stack-reveal--dark .stack-card[data-variant] .card-title {
  color: #FFFFFF;
}
.stack-reveal--dark .stack-card[data-variant] .card-body {
  color: #FFFFFF;
  opacity: 0.92;
}
.stack-reveal--dark .stack-card[data-variant] .card-meta {
  color: #FFFFFF;
  opacity: 0.78;
}
.stack-reveal--dark .stack-card[data-variant] .stack-card-foot {
  border-top-color: rgba(255, 255, 255, 0.22);
}
.stack-reveal--dark .stack-card[data-variant] .card-arrow-corner {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
}
.stack-reveal--dark .stack-card[data-variant]:hover .card-arrow-corner {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--ink);
}

/* Tier eyebrow (inline between cards in the stack-list) — adds breathing room */
.stack-reveal--dark .stack-tier-eyebrow {
  margin: var(--space-2xl) 0 var(--space-md) 0;
}
.stack-reveal--dark .stack-tier-eyebrow:first-child {
  margin-top: 0;
}

/* Sentinel spacer at the end of the stack — extends parent's content area so
   all sticky cards remain pinned for a beat before the section ends. */
.stack-spacer {
  min-height: 70dvh;
}
@media (max-width: 900px) {
  .stack-spacer { min-height: 40dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .stack-spacer { min-height: 0; }
}

/* Mobile: keep sticky stacking (Plusvibe-style works on phones too) but tighten
   card padding + drop the 60dvh card-inner floor so cards aren't viewport-tall. */
@media (max-width: 900px) {
  .stack-card-inner {
    min-height: 0;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-md);
  }
}
/* Tighter still on small mobile — minimum side padding so headline + body
   get max reading width. */
@media (max-width: 560px) {
  .stack-card-inner {
    padding: var(--space-md) var(--space-sm);
  }
}
/* Reduced motion: skip the sticky pin entirely — let cards flow normally. */
@media (prefers-reduced-motion: reduce) {
  .stack-card {
    position: static;
  }
}

/* ───────────────────────────────────────────────────────────────────
   Sticky-pinned scroll reveal (LEGACY — no longer used by #produkte,
   kept for any future section that wants the rail+swap pattern)
   ─────────────────────────────────────────────────────────────────── */
.sticky-reveal {
  padding: var(--space-3xl) 0 var(--space-2xl) 0;
  background: var(--paper);
}
.sticky-reveal-header {
  margin-bottom: var(--space-2xl);
}
.sticky-reveal-header .body-lg {
  margin-top: var(--space-md);
}

/* Track: tall scroll region. Stage inside is sticky and pins to viewport.
   Height = (panels) * 100dvh — one viewport of scroll swaps one panel. */
.sticky-reveal-track {
  position: relative;
  height: calc(var(--reveal-panels, 4) * 100dvh);
}
.sticky-reveal[data-panels="3"] .sticky-reveal-track { --reveal-panels: 3; }
.sticky-reveal[data-panels="4"] .sticky-reveal-track { --reveal-panels: 4; }
.sticky-reveal[data-panels="5"] .sticky-reveal-track { --reveal-panels: 5; }

.sticky-reveal-stage {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.sticky-reveal-stage-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-2xl);
  align-items: start;
  padding-top: calc(72px + var(--space-xl));
  padding-bottom: var(--space-xl);
  height: 100%;
  box-sizing: border-box;
}

/* Left rail — numbered nav. Shows progress through panels. */
.reveal-rail {
  position: sticky;
  top: calc(72px + var(--space-xl));
  align-self: start;
}
.reveal-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.reveal-rail-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm);
  align-items: baseline;
  padding: var(--space-xs) 0 var(--space-xs) var(--space-md);
  border-left: 1px solid var(--rule);
  color: var(--ink);
  opacity: 0.35;
  transition: opacity var(--dur-medium) var(--ease-soft),
              border-left-color var(--dur-medium) var(--ease-soft),
              border-left-width var(--dur-medium) var(--ease-soft);
}
.reveal-rail-item.is-active {
  opacity: 1;
  border-left: 2px solid var(--swiss-red);
  padding-left: calc(var(--space-md) - 1px);
}
.reveal-rail-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-feature-settings: "tnum" 1;
}
.reveal-rail-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

/* Panels — absolutely stacked. JS toggles .is-active to swap. */
.reveal-panels {
  position: relative;
  height: 100%;
  min-height: 480px;
}
.reveal-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: var(--space-md);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 600ms var(--ease-soft),
              transform 600ms var(--ease-soft);
  pointer-events: none;
}
.reveal-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.reveal-panel-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.reveal-panel-body {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.85;
}
.reveal-panel-visual {
  border: 1px solid var(--rule);
  border-radius: 4px;
  min-height: 200px;
  background:
    linear-gradient(135deg, rgba(220, 20, 60, 0.025) 0%, transparent 50%),
    var(--paper);
  position: relative;
  align-self: stretch;
}
.reveal-panel-visual::after {
  content: 'Screenshot folgt';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink);
  opacity: 0.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.reveal-panel-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule);
}
.reveal-panel-meta {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  opacity: 0.75;
}
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--swiss-red);
  text-decoration: none;
  transition: gap var(--dur-quick) var(--ease-spring);
}
.btn-arrow:hover { gap: var(--space-sm); }
.btn-arrow .arrow {
  display: inline-flex;
  width: 18px;
  height: 18px;
  transition: transform var(--dur-quick) var(--ease-spring);
}
.btn-arrow:hover .arrow { transform: translateX(4px); }
.btn-arrow .arrow svg { width: 100%; height: 100%; }

/* Mobile + reduced motion: collapse to vertical stack, no sticky */
@media (max-width: 900px) {
  .sticky-reveal-track {
    height: auto;
  }
  .sticky-reveal-stage {
    position: relative;
    height: auto;
    overflow: visible;
  }
  .sticky-reveal-stage-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding-top: 0;
    padding-bottom: 0;
    height: auto;
  }
  .reveal-rail { display: none; }
  .reveal-panels {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
  }
  .reveal-panel {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-reveal-track { height: auto; }
  .sticky-reveal-stage { position: relative; height: auto; overflow: visible; }
  .sticky-reveal-stage-inner { padding-top: 0; padding-bottom: 0; height: auto; }
  .reveal-panels { height: auto; min-height: 0; display: flex; flex-direction: column; gap: var(--space-xl); }
  .reveal-panel {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   View Transitions API — app-like cross-fade between pages.
   Ported from production styles.css. Browsers without support
   (Firefox at time of writing) fall back to normal navigation.
   ============================================================ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-fade-out 150ms ease-out; }
::view-transition-new(root) { animation: vt-fade-in 150ms ease-in; }
@keyframes vt-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes vt-fade-in  { from { opacity: 0; } to { opacity: 1; } }



