/* ==========================================================================
   ASIM — Designsystem (03-DESIGN.md)
   Eine Datei für alle Seiten. Keine seitenspezifischen Styles.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Markenfarben — unverändert in Name und Wert */
  --primary: #b8a089;
  --primary-light: #d4b896;
  --primary-dark: #4a3d30;
  --primary-bg: #faf7f4;
  --accent: #a08c78;
  --success: #10B981;
  --dark: #1F2937;
  --gray-900: #111827;
  --gray-50: #F9FAFB;
  --gradient-primary: linear-gradient(135deg, #6b5a48, #a08c78);

  /* Abstufungen bestehender Töne */
  --primary-050: rgba(184, 160, 137, .08);
  --primary-100: rgba(184, 160, 137, .14);
  --primary-200: rgba(184, 160, 137, .24);
  --primary-ink: #6b5a48;          /* Gradient-Startwert, Text auf Hell */
  --success-700: #047857;          /* dunklere Stufe von --success */

  /* Abstände — nur diese Werte */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Typo */
  --t-display: clamp(2.75rem, 1.6rem + 4.2vw, 4.5rem);
  --t-h1: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem);
  --t-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --t-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-micro: 0.8125rem;

  /* Bewegung */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms; --dur: 260ms; --dur-slow: 480ms;

  --maxw: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dunkel (Standard) */
:root, [data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elev: #121212;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-hover: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #F9FAFB;
  --text-2: rgba(249, 250, 251, .72);
  --text-3: rgba(249, 250, 251, .56);
  --accent-text: var(--primary-light);
  --pill-ok-bg: rgba(16, 185, 129, .12);
  --pill-ok: var(--success);
  --pill-prep-bg: rgba(212, 184, 150, .14);
  --pill-prep: var(--primary-light);
  --header-bg: rgba(10, 10, 10, .72);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -24px rgba(0, 0, 0, .6);
  --logo-invert: 0;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-elev: var(--primary-bg);
  --surface: var(--primary-bg);
  --surface-2: #f3eee8;
  --surface-hover: #f1ebe4;
  --line: rgba(74, 61, 48, .1);
  --line-strong: rgba(74, 61, 48, .2);
  --text: var(--gray-900);
  --text-2: #374151;
  --text-3: #4B5563;
  --accent-text: var(--primary-ink);
  --pill-ok-bg: rgba(16, 185, 129, .12);
  --pill-ok: var(--success-700);
  --pill-prep-bg: var(--primary-100);
  --pill-prep: var(--primary-dark);
  --header-bg: rgba(255, 255, 255, .78);
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 24px 48px -28px rgba(74, 61, 48, .28);
  --logo-invert: 1;
  color-scheme: light;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s-7)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul[role="list"], .list-reset { list-style: none; }
::selection { background: var(--primary); color: #0a0a0a; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--text); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--primary); color: #0a0a0a; padding: var(--s-3) var(--s-5); border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-5); }
@media (min-width: 768px) { .container { padding: 0 var(--s-7); } }
.section { padding: var(--s-7) 0; position: relative; }
@media (min-width: 768px) { .section { padding: var(--s-9) 0; } }
.section--tight-top { padding-top: 0; }
.section--surface { background: var(--bg-elev); border-block: 1px solid var(--line); }
main { position: relative; z-index: 1; }

.measure { max-width: 68ch; }
.stack > * + * { margin-top: var(--s-4); }

.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: var(--t-h2); }
.section-head p { margin-top: var(--s-4); color: var(--text-2); font-size: 1.125rem; }

/* ---------- Typo-Bausteine ---------- */
.section-tag {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-micro); line-height: 1.4; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: var(--s-4);
}
.section-tag::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.section-head--center .section-tag::before { display: none; }
.display { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.h1 { font-size: var(--t-h1); line-height: 1.08; }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); }
.lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-2); }
.small { font-size: var(--t-small); }
.micro { font-size: var(--t-micro); line-height: 1.4; }
.gradient-text {
  background: linear-gradient(120deg, var(--primary-light), var(--primary) 45%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="light"] .gradient-text { background-image: var(--gradient-primary); }
.text-link {
  display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; color: var(--accent-text);
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
  transition: gap var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.text-link:hover { gap: var(--s-3); }
.arrow::after { content: "→"; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) var(--s-5); border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.solid { background: var(--primary); color: #0a0a0a; }
.btn.solid:hover { background: var(--primary-light); transform: translateY(-1px); }
[data-theme="light"] .btn.solid { background: var(--primary-dark); color: #fff; }
[data-theme="light"] .btn.solid:hover { background: var(--primary-ink); }
.btn.line { border-color: var(--line-strong); color: var(--text); }
.btn.line:hover { border-color: var(--primary); color: var(--accent-text); }
.btn.sm { min-height: 40px; padding: var(--s-2) var(--s-4); font-size: var(--t-small); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--header-bg); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 700; font-size: 1.125rem; letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; }
.brand .logo-dark { display: none; }
[data-theme="light"] .brand .logo-dark { display: block; }
[data-theme="light"] .brand .logo-light { display: none; }

.nav { display: none; align-items: center; gap: var(--s-1); margin-left: auto; }
.nav > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: var(--s-1); padding: var(--s-2) var(--s-3); border-radius: 999px;
  font-size: var(--t-small); font-weight: 500; color: var(--text-2); transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.nav > a:hover, .nav-trigger:hover, .nav > a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-trigger svg { width: 12px; height: 12px; transition: transform var(--dur-fast) var(--ease); }
.nav-item { position: relative; }
.nav-item[data-open] .nav-trigger svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + var(--s-3)); left: 50%; translate: -50% 0; width: min(680px, 90vw);
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: var(--s-4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-1);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
[data-theme="dark"] .mega { background: #141414; }
.nav-item[data-open] .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: block; padding: var(--s-3); border-radius: var(--radius); transition: background-color var(--dur-fast) var(--ease); }
.mega a:hover { background: var(--surface-2); }
.mega b { display: block; font-size: var(--t-small); font-weight: 600; }
.mega span { display: block; font-size: var(--t-micro); color: var(--text-3); line-height: 1.4; margin-top: 2px; }
.mega .mega-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: var(--s-2); padding-top: var(--s-4); color: var(--accent-text); font-weight: 600; font-size: var(--t-small); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2);
  border: 1px solid var(--line); transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: block; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }
.header-cta { display: none; }
.menu-btn { display: grid; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-actions { margin-left: 0; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--bg); padding: var(--s-5);
  overflow-y: auto; display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: var(--s-3) 0; font-size: 1.125rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav .mobile-group { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); margin: var(--s-6) 0 var(--s-2); font-weight: 600; }
.mobile-nav .btn { margin-top: var(--s-6); width: 100%; }
body.nav-open { overflow: hidden; }

/* ---------- Hintergrund (Aurora, nur Desktop & ohne reduced motion) ---------- */
.aurora { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .42; }
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); opacity: .5;
}
[data-theme="light"] .aurora { opacity: .35; }
@media (max-width: 767px), (prefers-reduced-motion: reduce) { .aurora { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: var(--s-9) 0 var(--s-8); position: relative; }
@media (min-width: 768px) { .hero { padding: var(--s-10) 0 var(--s-9); } }
.hero .badge {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px var(--s-4) 6px var(--s-3);
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: var(--t-micro); font-weight: 500; color: var(--text-2); margin-bottom: var(--s-6);
}
.hero .badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: var(--s-5); max-width: 58ch; }
.hero .btn-row { margin-top: var(--s-7); }
.hero--center { text-align: center; }
.hero--center h1, .hero--center .lead { margin-left: auto; margin-right: auto; }
.hero--center .btn-row { justify-content: center; }

.trust-row { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.trust-row li { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); color: var(--text-2); }
.trust-row svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; }

/* ---------- Karten ---------- */
.card {
  background: var(--surface); border-radius: var(--radius); padding: var(--s-6);
  box-shadow: 0 0 0 1px var(--line) inset; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
a.card:hover, .card.is-interactive:hover { transform: translateY(-2px); background: var(--surface-hover); box-shadow: 0 0 0 1px var(--line-strong) inset, var(--shadow); }
.card h3 { font-size: var(--t-h3); }
.card p { color: var(--text-2); margin-top: var(--s-2); }
.card .card-kicker { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); font-weight: 600; }

.grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Status-Pill ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; line-height: 1.4; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--pill-ok-bg); color: var(--pill-ok); white-space: nowrap;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill[data-status="prep"] { background: var(--pill-prep-bg); color: var(--pill-prep); }

/* ---------- Produktraster (Bento, High-End) ---------- */
.filter { position: relative; display: inline-flex; flex-wrap: wrap; gap: var(--s-1); padding: var(--s-1); margin-bottom: var(--s-6); border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.filter button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-4); border-radius: 999px;
  font-size: var(--t-small); font-weight: 500; color: var(--text-2); transition: color var(--dur) var(--ease);
}
.filter button:hover { color: var(--text); }
.filter button[aria-pressed="true"] { color: var(--bg); }
.filter .count { font-size: 0.75rem; font-variant-numeric: tabular-nums; opacity: .6; }
.filter__pill { position: absolute; z-index: 0; top: var(--s-1); left: 0; height: calc(100% - 8px); border-radius: 999px; background: var(--text); transition: transform var(--dur-slow) var(--ease), width var(--dur-slow) var(--ease); }
.no-js .filter button[aria-pressed="true"], .filter:not(.has-pill) button[aria-pressed="true"] { background: var(--text); }
@media (max-width: 639px) { .filter { border-radius: var(--radius-lg); } .filter__pill { display: none; } .filter button[aria-pressed="true"] { background: var(--text); } }

.product-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: var(--s-3); min-height: 320px;
  padding: var(--s-6); border-radius: 24px; overflow: hidden; text-align: left;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* Lichtkegel, der dem Zeiger folgt */
.product-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(520px circle at var(--mx) var(--my), var(--primary-100), transparent 45%);
  transition: opacity var(--dur) var(--ease);
}
/* Leuchtender Rand */
.product-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: radial-gradient(300px circle at var(--mx) var(--my), var(--primary), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity var(--dur) var(--ease);
}
.product-card:hover, .product-card:focus-within { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong) inset, var(--shadow); }
.product-card:hover::before, .product-card:hover::after, .product-card:focus-within::before, .product-card:focus-within::after { opacity: 1; }
.product-card[hidden] { display: none; }
.product-card .pc-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.pc-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--accent-text);
  background: linear-gradient(145deg, var(--primary-200), var(--primary-050)); box-shadow: 0 0 0 1px var(--primary-200) inset;
  transition: transform var(--dur) var(--ease);
}
.pc-icon svg { width: 24px; height: 24px; }
.product-card:hover .pc-icon { transform: rotate(-6deg) scale(1.05); }
.product-card h3 { font-size: var(--t-h3); letter-spacing: -0.02em; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.product-card h3 a:focus-visible { outline: none; }
.product-card:has(h3 a:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
.product-card .pc-claim { color: var(--accent-text); font-weight: 500; font-size: var(--t-small); margin-top: calc(var(--s-2) * -1); }
.product-card .pc-desc { color: var(--text-2); font-size: var(--t-small); }
.product-card .pc-mods { display: flex; flex-wrap: wrap; gap: 6px; }
.product-card .pc-mods li { font-size: 0.75rem; font-weight: 500; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); box-shadow: 0 0 0 1px var(--line) inset; }
.product-card .pc-foot { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.product-card .pc-price { font-weight: 600; font-size: var(--t-small); }
.pc-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong) inset; color: var(--text); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.pc-go svg { width: 16px; height: 16px; }
.product-card:hover .pc-go { background: var(--primary); color: #0a0a0a; transform: rotate(-45deg); box-shadow: none; }
.product-card.is-muted { background: repeating-linear-gradient(135deg, var(--surface) 0 10px, transparent 10px 20px); }

.product-card.is-featured { background: radial-gradient(120% 90% at 100% 0%, var(--primary-100), transparent 55%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.pc-does { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.pc-does li { position: relative; padding-left: var(--s-5); font-size: var(--t-small); color: var(--text-2); }
.pc-does li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--primary-200); box-shadow: 0 0 0 1px var(--primary) inset; }
.pc-graphic { display: none; color: var(--accent-text); margin-top: var(--s-2); }
.pc-graphic svg { width: 100%; height: auto; }
.flow-lines path { stroke-opacity: .5; stroke-dasharray: 4 6; animation: flow 1.6s linear infinite; }
.flow-nodes rect { fill: var(--primary-050); stroke: currentColor; stroke-opacity: .45; }
.flow-hub { fill: var(--primary-100); stroke: currentColor; animation: hub 2.4s var(--ease) infinite; transform-origin: 260px 95px; }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes hub { 50% { transform: scale(1.08); } }
@media (min-width: 1024px) {
  .product-card.is-featured { grid-column: span 2; grid-row: span 2; padding: var(--s-7); }
  .product-card.is-featured h3 { font-size: var(--t-h1); }
  .product-card.is-featured .pc-desc { font-size: 1.125rem; max-width: 48ch; }
  .product-card.is-featured .pc-does { grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-6); }
  .product-card.is-featured .pc-icon { width: 64px; height: 64px; border-radius: 18px; }
  .product-card.is-featured .pc-icon svg { width: 32px; height: 32px; }
  .pc-graphic { display: block; }
}

/* ---------- Schritte ---------- */
.steps { display: grid; gap: var(--s-4); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: var(--s-6); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: var(--t-h2); font-weight: 700; letter-spacing: -0.02em; color: var(--accent-text); line-height: 1; margin-bottom: var(--s-6);
}
.step.is-hoerl { background: linear-gradient(180deg, var(--primary-050), transparent), var(--surface); }
.step h3 { font-size: var(--t-h3); }
.step p { color: var(--text-2); margin-top: var(--s-2); font-size: var(--t-small); }

/* ---------- Stat-Tile ---------- */
.stats { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-tile { padding: var(--s-5) 0; border-top: 1px solid var(--line-strong); }
.stat-tile b { display: block; font-size: var(--t-h1); line-height: 1; letter-spacing: -0.03em; font-weight: 700; }
.stat-tile span { display: block; margin-top: var(--s-3); font-size: var(--t-micro); line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Bridge-Band ---------- */
.bridge-band {
  position: relative; display: grid; gap: var(--s-5); align-items: center;
  padding: var(--s-7) var(--s-6); border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--primary-100), transparent 55%), var(--surface);
  box-shadow: 0 0 0 1px var(--primary-200) inset;
}
@media (min-width: 900px) { .bridge-band { grid-template-columns: auto 1fr auto; padding: var(--s-7); gap: var(--s-6); } }
.bridge-band__logo { width: 56px; height: 56px; border-radius: 14px; }
.bridge-band__kicker { font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.bridge-band__text { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin-top: var(--s-2); max-width: 46ch; }
.bridge-band__sub { color: var(--text-2); margin-top: var(--s-2); font-size: var(--t-small); max-width: 60ch; }

/* ---------- Logo-Laufband ---------- */
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__set { display: flex; gap: var(--s-3); padding-right: var(--s-3); }
.logo-marquee + .logo-marquee { margin-top: var(--s-3); }
.logo-marquee.is-reverse .logo-marquee__track { animation-direction: reverse; animation-duration: 80s; }
.client {
  display: grid; place-items: center; width: 168px; height: 72px; padding: var(--s-3) var(--s-5); border-radius: var(--radius);
  background: #fff; box-shadow: 0 0 0 1px var(--line) inset;
}
.client img { max-height: 32px; max-width: 120px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.client:hover img { filter: none; opacity: 1; }
.client span { font-weight: 700; font-size: var(--t-micro); letter-spacing: .06em; color: #4B5563; text-transform: uppercase; white-space: nowrap; }
[data-theme="dark"] .client { background: rgba(255, 255, 255, .92); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Partner ---------- */
.partner-grid { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .partner-grid { grid-template-columns: 1.4fr 1fr; } }
.partner-tile { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-7) var(--s-6); }
.partner-tile.is-main { background: linear-gradient(160deg, var(--primary-100), transparent 60%), var(--surface); box-shadow: 0 0 0 1px var(--primary-200) inset; }
.partner-tile .pt-logo { height: 40px; display: flex; align-items: center; gap: var(--s-3); }
.partner-tile .pt-logo img { height: 40px; width: auto; }
.partner-tile .pt-logo .wordmark { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; }
.chip { display: inline-flex; width: fit-content; font-size: 0.75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.logo-on-dark { filter: invert(1); }
[data-theme="light"] .logo-on-dark { filter: none; }

/* ---------- Systeme (Chips mit Tooltip) ---------- */
.systems { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.sys {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: var(--s-2) var(--s-4); border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; font-size: var(--t-small); font-weight: 500;
}
button.sys { cursor: help; }
button.sys::after { content: "i"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; font-weight: 700; background: var(--surface-2); color: var(--text-3); font-style: italic; }
.sys .tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; z-index: 10; width: max-content; max-width: 280px;
  translate: -50% 4px; opacity: 0; visibility: hidden; pointer-events: none;
  background: var(--text); color: var(--bg); padding: var(--s-3) var(--s-4); border-radius: var(--radius);
  font-size: var(--t-micro); line-height: 1.5; font-weight: 400; text-align: left; box-shadow: var(--shadow);
  transition: opacity var(--dur-fast) var(--ease), translate var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
.sys:hover .tip, .sys:focus-visible .tip, .sys[aria-expanded="true"] .tip { opacity: 1; visibility: visible; translate: -50% 0; }

/* ---------- Produktseite ---------- */
.p-hero { padding: var(--s-9) 0 var(--s-8); }
.p-hero .crumbs { display: flex; gap: var(--s-2); font-size: var(--t-micro); color: var(--text-3); margin-bottom: var(--s-6); }
.p-hero .crumbs a:hover { color: var(--text); }
.p-hero .p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.p-hero .p-meta .micro { color: var(--text-3); }
.p-hero h1 { font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.035em; }
.p-hero .claim { font-size: var(--t-h2); font-weight: 500; letter-spacing: -0.02em; color: var(--accent-text); margin-top: var(--s-3); line-height: 1.2; }
.p-hero .lead { margin-top: var(--s-6); max-width: 60ch; }
.p-hero .audience { margin-top: var(--s-4); font-size: var(--t-small); color: var(--text-3); }
.p-hero .btn-row { margin-top: var(--s-7); }

.subnav {
  position: sticky; top: var(--header-h); z-index: 50; background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-block: 1px solid var(--line);
}
.subnav ul { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; padding: var(--s-2) 0; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: var(--s-2) var(--s-4); border-radius: 999px; font-size: var(--t-small); font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="true"] { background: var(--surface-2); color: var(--text); }

.split { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; } }
.split .section-head { margin-bottom: 0; }
.problem-text { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem); line-height: 1.45; letter-spacing: -0.01em; font-weight: 500; color: var(--text); }

.does { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .does { grid-template-columns: repeat(2, 1fr); } }
.does li { display: flex; gap: var(--s-4); padding: var(--s-6); border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.does li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 2px;
  background: var(--primary-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8a089' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.example {
  position: relative; padding: var(--s-7) var(--s-6); border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(100% 120% at 0% 0%, var(--primary-100), transparent 60%), var(--bg-elev);
  box-shadow: 0 0 0 1px var(--primary-200) inset;
}
@media (min-width: 768px) { .example { padding: var(--s-8); } }
.example blockquote { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.875rem); line-height: 1.4; letter-spacing: -0.015em; font-weight: 500; max-width: 38ch; }
.example blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--primary); margin-bottom: var(--s-4); }

.module-card .status-pill { margin-bottom: var(--s-4); }
.module-card h3 { font-size: 1.25rem; }
.module-card .m-claim { color: var(--accent-text); font-size: var(--t-small); font-weight: 500; margin-top: 2px; }
.module-card p { font-size: var(--t-small); }
.note-box { margin-top: var(--s-5); padding: var(--s-5); border-radius: var(--radius); border-left: 2px solid var(--primary); background: var(--surface); color: var(--text-2); font-size: var(--t-small); }
.ref-list { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
@media (min-width: 768px) { .ref-list { grid-template-columns: repeat(2, 1fr); } }
.ref-list .card b { font-size: 1.125rem; }
.ref-list .chip { margin-left: var(--s-2); }

.price-box { display: grid; gap: var(--s-6); padding: var(--s-7) var(--s-6); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
@media (min-width: 900px) { .price-box { grid-template-columns: 1fr 1fr; align-items: end; padding: var(--s-8); } }
.price-box .price { font-size: var(--t-h1); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.price-box ul { display: grid; gap: var(--s-3); color: var(--text-2); font-size: var(--t-small); }
.price-box li { padding-left: var(--s-5); position: relative; }
.price-box li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--primary); }
.tech-note { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px dashed var(--line-strong); display: grid; gap: var(--s-2); }
@media (min-width: 768px) { .tech-note { grid-template-columns: 140px 1fr; } }
.tech-note dt { font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.tech-note dd { font-size: var(--t-small); color: var(--text-3); }

.contact-cta { display: grid; gap: var(--s-6); align-items: end; }
@media (min-width: 900px) { .contact-cta { grid-template-columns: 1.4fr 1fr; } }
.contact-cta h2 { font-size: var(--t-h1); }
.contact-cta address { font-style: normal; color: var(--text-2); font-size: var(--t-small); line-height: 1.8; }
.contact-cta address a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.contact-cta address a:hover { border-color: var(--primary); }

.ways { display: grid; gap: var(--s-4); counter-reset: way; }
@media (min-width: 900px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.ways li { padding: var(--s-6); border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.ways li::before { counter-increment: way; content: counter(way); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-100); color: var(--accent-text); font-weight: 700; font-size: var(--t-small); margin-bottom: var(--s-4); }
.ways b { display: block; }
.ways span { color: var(--text-2); font-size: var(--t-small); }

.signal-list { display: grid; gap: var(--s-2); }
.signal-list a { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); transition: padding-left var(--dur-fast) var(--ease); }
@media (min-width: 768px) { .signal-list a { grid-template-columns: 1fr auto; align-items: center; } }
.signal-list a:hover { padding-left: var(--s-3); }
.signal-list q { font-size: 1.125rem; font-weight: 500; quotes: "„" "“"; }
.signal-list span { color: var(--accent-text); font-weight: 600; font-size: var(--t-small); white-space: nowrap; }
.signal-list span::after { content: " →"; }

/* ---------- Prosa / Rechtstexte ---------- */
.prose { max-width: 75ch; }
.prose h1 { font-size: var(--t-h1); margin-bottom: var(--s-3); }
.prose h2 { font-size: var(--t-h3); margin: var(--s-7) 0 var(--s-3); }
.prose h3 { font-size: 1.125rem; margin: var(--s-6) 0 var(--s-2); }
.prose h4 { font-size: 1rem; margin: var(--s-5) 0 var(--s-2); }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: var(--s-3); }
.prose ul, .prose ol { padding-left: var(--s-5); margin: var(--s-3) 0; display: grid; gap: var(--s-2); }
.prose a { color: var(--accent-text); border-bottom: 1px solid currentColor; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-4) 0; font-size: var(--t-small); }
.prose th, .prose td { text-align: left; padding: var(--s-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose .legal-subtitle { color: var(--text-3); }
.prose .legal-meta, .prose .legal-toc, .prose .legal-highlight, .prose .legal-contact-box { margin: var(--s-5) 0; padding: var(--s-5); border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.prose .legal-info-grid { display: grid; gap: var(--s-2); margin: var(--s-3) 0; }
.prose .legal-info-item { display: grid; gap: var(--s-1); }
@media (min-width: 640px) { .prose .legal-info-item { grid-template-columns: 180px 1fr; } }
.prose .legal-info-label { color: var(--text-3); font-size: var(--t-small); }
.prose .legal-info-value { color: var(--text); }
.prose .legal-section + .legal-section { border-top: 1px solid var(--line); margin-top: var(--s-6); }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-6); background: var(--bg); }
.footer-grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-grid h2 { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 600; margin-bottom: var(--s-4); }
.footer-grid ul { display: grid; gap: var(--s-2); }
.footer-grid a { color: var(--text-2); font-size: var(--t-small); transition: color var(--dur-fast) var(--ease); }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--text-2); font-size: var(--t-small); margin-top: var(--s-4); max-width: 38ch; }
.footer-house { margin-top: var(--s-5); display: inline-flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; font-size: var(--t-small); }
.footer-house img { width: 28px; height: 28px; border-radius: 7px; }
.footer-bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); font-size: var(--t-micro); color: var(--text-3); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Lead-Popup ---------- */
.lead-popup { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--s-4); }
.lead-popup[hidden] { display: none; }
.lead-popup__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .64); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade var(--dur) var(--ease); }
.lead-popup__dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--bg-elev); border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line-strong) inset, 0 40px 80px -20px rgba(0, 0, 0, .6);
  padding: var(--s-7) var(--s-6) var(--s-6); animation: pop var(--dur-slow) var(--ease);
}
[data-theme="dark"] .lead-popup__dialog { background: #141414; }
@media (min-width: 640px) { .lead-popup__dialog { padding: var(--s-7); } }
.lead-popup__close { position: absolute; top: var(--s-4); right: var(--s-4); }
.lead-popup__progress { display: flex; gap: var(--s-2); margin-bottom: var(--s-5); }
.lead-popup__progress span { height: 3px; flex: 1; border-radius: 3px; background: var(--line-strong); transition: background-color var(--dur) var(--ease); }
.lead-popup__progress span.is-on { background: var(--primary); }
.lead-popup h2 { font-size: var(--t-h3); }
.lead-popup .lp-sub { color: var(--text-2); font-size: var(--t-small); margin-top: var(--s-2); }
.lead-popup form { margin-top: var(--s-6); }
.field { display: grid; gap: 6px; margin-bottom: var(--s-4); }
.field label { font-size: var(--t-small); font-weight: 500; }
.field label .opt { color: var(--text-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8a089' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 44px; }
[data-theme="dark"] .field select option { background: #141414; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.field .hint { font-size: var(--t-micro); color: var(--text-3); line-height: 1.5; }
.field .error { font-size: var(--t-micro); color: #f87171; line-height: 1.4; }
[data-theme="light"] .field .error { color: #b91c1c; }
.field.has-error input, .field.has-error textarea { border-color: #f87171; }
.field-row { display: grid; gap: 0 var(--s-4); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-small); color: var(--text-2); margin-bottom: var(--s-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.check a { color: var(--accent-text); border-bottom: 1px solid currentColor; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lead-popup .btn-row { margin-top: var(--s-5); }
.lead-popup .btn-row .btn.solid { flex: 1; }
.form-status { font-size: var(--t-small); margin-top: var(--s-3); color: #f87171; }
.lp-success { text-align: center; padding: var(--s-5) 0 var(--s-2); }
.lp-success .ok { width: 56px; height: 56px; margin: 0 auto var(--s-5); border-radius: 50%; display: grid; place-items: center; background: var(--pill-ok-bg); color: var(--pill-ok); }
.lp-success .ok svg { width: 28px; height: 28px; }
.lp-success p { color: var(--text-2); margin-top: var(--s-3); }
.lp-success .btn { margin-top: var(--s-6); }
body.modal-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.stagger > * { transition-delay: calc(var(--i, 0) * 60ms); }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; }

/* ---------- Reduced Motion: alles aus ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .logo-marquee__track { animation: none; width: auto; flex-wrap: wrap; }
  .logo-marquee__set { flex-wrap: wrap; justify-content: center; }
  .logo-marquee__set[aria-hidden="true"] { display: none; }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .subnav, .site-footer, .aurora, .bg-grid, .lead-popup, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
.prose { overflow-wrap: break-word; hyphens: auto; } .prose a { overflow-wrap: anywhere; } .prose table { display: block; overflow-x: auto; }

/* ---------- Porträt ---------- */
.portrait { position: relative; margin: 0; }
.portrait img { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); }   /* Originalformat 3:2, nicht beschneiden */
.portrait figcaption { position: absolute; bottom: var(--s-3); right: var(--s-3); background: rgba(0, 0, 0, .6); color: #fff; font-size: .7rem; padding: 4px 10px; border-radius: 6px; }

/* ---------- Seitenübergänge ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Scroll-Fortschritt (reines CSS, wo unterstützt) ---------- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gradient-primary); transform-origin: 0 50%; animation: progress linear both; animation-timeline: scroll(root); }
  }
}
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

:root, [data-theme="dark"] { --tl-head: var(--font); --tl-text: var(--text); --tl-text-2: var(--text-2); --tl-card: linear-gradient(180deg, var(--surface-2), var(--surface)); --tl-chip: var(--surface-2); --tl-line: var(--line); --tl-line-strong: var(--line-strong); --tl-glow: var(--primary-100); --tl-shadow: var(--shadow); --tl-accent: var(--primary); --tl-accent-soft: var(--primary-100); --tl-accent-line: var(--primary-200); --tl-accent-text: var(--accent-text); }

/* ---------- Technologien & Anbindungen (gleicher Baustein auf ASIM und hoerl) ---------- */
.tools-legend { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--t-micro); letter-spacing: .04em; color: var(--tl-text-2); }
.tools-grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
.tools-card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-6); border-radius: 22px; background: var(--tl-card); box-shadow: 0 0 0 1px var(--tl-line) inset;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tools-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--mx) var(--my), var(--tl-glow), transparent 45%); transition: opacity var(--dur) var(--ease); }
.tools-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--tl-line-strong) inset, var(--tl-shadow); }
.tools-card:hover::before { opacity: 1; }
.tools-card h3 { font-family: var(--tl-head); font-size: 1.125rem; color: var(--tl-text); letter-spacing: -.01em; }
.tools-card > p { font-size: var(--t-small); color: var(--tl-text-2); }
.tools-list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; padding: var(--s-4) 0 0; list-style: none; }
.tool { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--tl-chip); box-shadow: 0 0 0 1px var(--tl-line) inset; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.tool:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--tl-line-strong) inset; }
.tool__logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08) inset; flex: none; }
.tool__logo img { width: 18px; height: 18px; object-fit: contain; }
.tool.is-wordmark .tool__logo { width: auto; padding: 0 8px; }
.tool.is-wordmark .tool__logo img { width: auto; height: 13px; }
.tool.is-wordmark .tool__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tool__name { font-size: var(--t-small); font-weight: 600; color: var(--tl-text); white-space: nowrap; }
.tool__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tl-accent); box-shadow: 0 0 0 3px var(--tl-accent-soft); }
.tool.is-used { box-shadow: 0 0 0 1px var(--tl-accent-line) inset; }
.tools-card--open { background: transparent; box-shadow: none; border: 1.5px dashed var(--tl-line-strong); justify-content: center; }
.tools-card--open h3 { font-size: var(--t-h3); }
.tools-proto { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); padding: 0; list-style: none; }
.tools-proto li { padding: 4px 12px; border-radius: 999px; font-size: var(--t-micro); font-weight: 600; letter-spacing: .04em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--tl-accent-text); background: var(--tl-accent-soft); }
.tools-note { margin-top: var(--s-5); font-size: var(--t-micro); color: var(--tl-text-2); }
@media (min-width: 1020px) {
  .tools-card--open { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-6); padding: var(--s-6) var(--s-7); }
  .tools-card--open h3 { white-space: nowrap; }
  .tools-card--open .tools-proto { margin-top: 0; }
}

/* ==========================================================================
   iPhone / iOS Safari
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: clip; }           /* iOS ignoriert overflow-x: hidden beim seitlichen Wischen */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

/* Notch & Home-Leiste */
@supports (padding: max(0px)) {
  .container { padding-left: max(var(--s-5), env(safe-area-inset-left)); padding-right: max(var(--s-5), env(safe-area-inset-right)); }
  @media (min-width: 768px) { .container { padding-left: max(var(--s-7), env(safe-area-inset-left)); padding-right: max(var(--s-7), env(safe-area-inset-right)); } }
  .site-footer { padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom)); }
  .mobile-nav { padding-left: max(var(--s-5), env(safe-area-inset-left)); padding-right: max(var(--s-5), env(safe-area-inset-right)); padding-bottom: calc(var(--s-7) + env(safe-area-inset-bottom)); }
  .lead-popup { padding: max(var(--s-4), env(safe-area-inset-top)) max(var(--s-4), env(safe-area-inset-right)) max(var(--s-4), env(safe-area-inset-bottom)) max(var(--s-4), env(safe-area-inset-left)); }
}
.mobile-nav { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.lead-popup__dialog { overscroll-behavior: contain; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }

/* Formularfelder ≥ 16 px, sonst zoomt Safari beim Antippen */
.field input, .field select, .field textarea { font-size: max(16px, 1rem); }

/* Lange Button-Texte dürfen auf schmalen Geräten umbrechen */
@media (max-width: 479px) {
  .btn { white-space: normal; text-align: center; }
  .btn-row > .btn, .pt-actions > .btn { flex: 1 1 100%; }
}

/* Infotexte der System-Chips: nur im geöffneten Zustand im Layout */
.sys .tip { display: none; max-width: min(280px, calc(100vw - 32px)); }
.sys:hover .tip, .sys:focus-visible .tip, .sys[aria-expanded="true"] .tip { display: block; }
@media (max-width: 639px) { .sys .tip { left: 0; translate: 0 0; } .sys:hover .tip, .sys:focus-visible .tip, .sys[aria-expanded="true"] .tip { translate: 0 0; } }

/* Touch: Hover-Effekte nur mit Maus — sonst bleiben Karten nach dem Antippen „angehoben“ */
@media (hover: none) {
  .product-card:hover, .product-card:focus-within, a.card:hover, .card.is-interactive:hover, .tools-card:hover, .tool:hover, .btn.solid:hover, .pt-chips li:hover { transform: none; }
  .product-card:hover::before, .product-card:hover::after, .tools-card:hover::before { opacity: 0; }
  .product-card:hover .pc-icon { transform: none; }
  .product-card:hover .pc-go { transform: none; background: transparent; color: var(--text); box-shadow: 0 0 0 1px var(--line-strong) inset; }
}

/* Tippflächen ≥ 44 px auf Touch-Geräten */
@media (pointer: coarse) {
  .brand, .crumbs a, .footer-bottom nav a, .footer-grid a, .text-link, .mega a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-grid ul { gap: 0; }
  .filter button, .subnav a, .pt-tablist [role="tab"] { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .check input { width: 24px; height: 24px; }
}
/* Rasterspalten dürfen schmaler als ihr Inhalt werden (sonst Überstand auf 320 px) */
.split > *, .pt-arch-row > *, .pt-hero__grid > *, .pt-panel > *, .contact-cta > *, .founder > *, .row > * { min-width: 0; }
.pt-arch-row, .pt-hero__grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1020px) { .pt-arch-row { grid-template-columns: 1.05fr 1fr; } .pt-hero__grid { grid-template-columns: .9fr 1.1fr; } }
@media (max-width: 479px) { .pt-diagram { padding: var(--s-4); } .stats { gap: var(--s-3); } }
.stats > *, .pd-box, .pd-portal li, .pd-eco li { min-width: 0; }
.pt-diagram { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 399px) {
  .stat-tile b { font-size: clamp(1.75rem, 9vw, 2.25rem); }
  .price-box .price { font-size: clamp(1.75rem, 8.5vw, 2.25rem); overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
  .pd-portal li, .pd-eco li { overflow-wrap: anywhere; font-size: .6875rem; }
}

@media (min-width: 900px) { .split--media { grid-template-columns: 7fr 5fr; align-items: center; } }
