/* ---------- Fonts (lokal gehostet, DSGVO-konform) ---------- */
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #12202f;
  --ink-2: #1c2e40;
  --ink-3: #2a3f55;
  --paper: #f7f6f2;
  --surface: #ffffff;
  --line: #e3e1da;
  --text: #1a222c;
  --muted: #56606c;
  --on-ink: #f3f1ea;
  --on-ink-muted: #a9b4c0;
  --accent: #f2a93b;
  --accent-strong: #e0921f;
  --accent-soft: #fbecd2;
  --accent-text: #9a5b06; /* Akzent als Textfarbe auf hellem Grund (AA) */

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.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; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow { color: var(--accent); }

.section { padding-block: var(--section); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.875rem); margin-top: 14px; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.125rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: rgba(243, 241, 234, .3); color: var(--on-ink); }
.btn-ghost:hover { border-color: var(--on-ink); background: rgba(243, 241, 234, .06); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-3); }

/* ---------- Header ---------- */
body { padding-top: 72px; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-ink); }
.brand svg { width: 38px; height: 38px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-name span { display: block; height: 1.15em; overflow: hidden; font-size: .75rem; color: var(--on-ink-muted); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: var(--on-ink-muted); text-decoration: none; font-size: .9375rem; font-weight: 500;
  padding: 10px 14px; border-radius: 8px; transition: color .2s var(--ease);
}
.nav a:not(.btn):hover { color: var(--on-ink); }
.nav .btn { min-height: 42px; padding: 8px 18px; font-size: .9375rem; margin-left: 8px; }
/* Dropdown „Leistungen“ (details/summary, funktioniert ohne JS) */
.nav-drop { position: relative; }
.nav-drop summary {
  display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  color: var(--on-ink-muted); font-size: .9375rem; font-weight: 500;
  padding: 10px 14px; border-radius: 8px; transition: color .2s var(--ease);
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.nav-drop[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.nav-drop summary:hover, .nav-drop[open] summary { color: var(--on-ink); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; min-width: 280px;
  display: grid; gap: 2px; padding: 8px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 24px 48px -20px rgba(18, 32, 47, .45);
}
.nav .nav-drop-menu a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--text); font-size: .9375rem; font-weight: 600; text-decoration: none;
}
.nav .nav-drop-menu a small { display: block; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.nav .nav-drop-menu a:hover, .nav .nav-drop-menu a[aria-current="page"] { background: var(--paper); color: var(--text); }
.nav .nav-drop-menu .menu-all { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; padding-top: 12px; color: var(--accent-text); font-weight: 500; }

@media (max-width: 860px) {
  .nav > a:not(.btn) { display: none; }
  .brand-name span { display: none; }
  .nav-drop-menu { left: auto; right: -96px; min-width: min(300px, calc(100vw - 32px)); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-ink);
  padding-block: clamp(56px, 9vw, 112px) clamp(72px, 10vw, 128px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(242, 169, 59, .14), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); margin-top: 20px; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { margin-top: 24px; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--on-ink-muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 40px 0 0; padding: 0; list-style: none; font-size: .875rem; color: var(--on-ink-muted); }
.hero-tags li { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero-figure { margin: 0; }
.flow { width: 100%; max-width: 480px; margin-inline: auto; }
.flow .wire { stroke: rgba(243, 241, 234, .18); stroke-width: 2; }
.flow .pulse { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 10; stroke-linecap: round; animation: flow 1.6s linear infinite; }
.flow .pill { fill: var(--ink-2); stroke: rgba(243, 241, 234, .16); }
.flow .pill-label { fill: var(--on-ink); font-family: "Jakarta", sans-serif; font-size: 14px; font-weight: 600; }
.flow .pill-dot { fill: var(--accent); }
.flow .hub { fill: var(--ink-2); stroke: var(--accent); stroke-width: 2; }
.flow .hub-ring { fill: none; stroke: rgba(242, 169, 59, .25); stroke-width: 1.5; }
.flow .hub-wave { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.flow .spark { fill: var(--accent); filter: drop-shadow(0 0 4px rgba(242, 169, 59, .9)); }
@media (prefers-reduced-motion: no-preference) {
  .flow .hub-wave { animation: wave 3.2s var(--ease) infinite; }
  .flow .hub-wave + .hub-wave { animation-delay: 1.6s; }
}
@keyframes wave { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
.flow-caption { margin-top: 14px; text-align: center; font-size: .8125rem; color: var(--on-ink-muted); }
@keyframes flow { to { stroke-dashoffset: -28; } }

/* ---------- Intro ---------- */
.intro .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.intro h2 { font-size: clamp(2rem, 4vw, 2.875rem); margin-top: 14px; }
.intro-body p + p { margin-top: 20px; }
.intro-body p:first-child { font-size: clamp(1.1875rem, 2vw, 1.375rem); line-height: 1.55; color: var(--text); font-weight: 500; }
.intro-body p { color: var(--muted); }
.callout {
  margin-top: 32px; display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--radius); background: var(--accent-soft); color: var(--text);
}
.callout svg { flex: none; width: 24px; height: 24px; color: var(--accent-text); margin-top: 2px; }
.callout p { color: var(--text); font-size: .9875rem; }

/* ---------- Services ---------- */
.services { background: var(--surface); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative; padding: clamp(28px, 3.5vw, 40px); border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
/* Kartenzeilen (Kopf, Titel, Text, Tags, Fazit) über alle Karten einer Reihe ausrichten */
.card { display: flex; flex-direction: column; }
.card .chips { margin-top: auto; padding-top: 18px; }
@supports (grid-template-rows: subgrid) {
  .card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .card .chips { margin-top: 0; align-self: start; }
}
.card:hover { border-color: #d3cfc3; transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(18, 32, 47, .25); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--ink); color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }
.card-num { font-size: .8125rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.card h3 { font-size: 1.375rem; }
.card p { margin-top: 12px; color: var(--muted); }
.card .benefit { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { font-size: .8125rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }

/* ---------- Audience ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.audience {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.audience .icon { background: var(--accent-soft); color: var(--accent-text); }
.audience h3 { font-size: 1.5rem; margin-top: 8px; }
.audience p { color: var(--muted); }

/* ---------- Why ---------- */
.why { background: var(--ink); color: var(--on-ink); }
.why .section-head p { color: var(--on-ink-muted); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(243, 241, 234, .1); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(243, 241, 234, .1); }
.why-item { background: var(--ink); padding: clamp(28px, 3.5vw, 40px); }
.why-item:first-child { grid-column: span 2; background: var(--ink-2); }
.why-item:first-child h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.why-item:first-child p { font-size: 1.125rem; max-width: 560px; }
.why-item .num { font-size: .8125rem; font-weight: 600; color: var(--accent); letter-spacing: .08em; }
.why-item h3 { font-size: 1.25rem; margin-top: 14px; }
.why-item p { margin-top: 10px; color: var(--on-ink-muted); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; position: relative; isolation: isolate; }
.steps::before, .steps::after { content: ""; position: absolute; z-index: -1; top: 23px; left: 24px; right: calc((100% - 64px) / 5 - 24px); height: 2px; background: var(--line); }
.steps::after { background: var(--accent); transform: scaleX(0); transform-origin: left center; }
@supports not (animation-timeline: view()) { .steps::after { display: none; } }
.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step); position: relative; z-index: 1; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); color: var(--ink); font-weight: 700;
}
.step:first-child::before { background: var(--accent); border-color: var(--accent); }
.step h3 { font-size: 1.125rem; margin-top: 20px; }
.step p { margin-top: 8px; color: var(--muted); font-size: .9875rem; }

/* ---------- Reference ---------- */
.reference { padding-top: 0; }
.ref-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg);
  background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden;
}
.ref-box::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 169, 59, .18), transparent 65%); pointer-events: none;
}
.ref-box h2 { font-size: clamp(1.875rem, 3.6vw, 2.5rem); margin-top: 14px; }
.ref-box p { margin-top: 18px; color: var(--on-ink-muted); }
.ref-box .btn { margin-top: 28px; }
.ref-list { position: relative; z-index: 1; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ref-list li {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 12px;
  background: rgba(243, 241, 234, .05); border: 1px solid rgba(243, 241, 234, .1); font-weight: 500;
}
.ref-list small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 2px; }
.ref-box p + p { margin-top: 12px; }
.ref-list svg { flex: none; width: 20px; height: 20px; color: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.gallery figure { margin: 0; }
.gallery .g-wide { grid-column: 1 / -1; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--ink); border: 1px solid var(--line); }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s var(--ease); }
.gallery .g-wide img { aspect-ratio: 1900 / 785; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.gallery figcaption strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); border-block: 1px solid var(--line); }
.faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent); border-color: var(--accent); }
.faq summary:hover::after { border-color: var(--ink); }
.faq details p { padding: 0 56px 24px 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-head { text-align: center; }
.contact h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-top: 14px; }
.contact .lead { margin: 18px auto 0; max-width: 560px; color: var(--muted); font-size: 1.125rem; }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; max-width: 980px; margin: 48px auto 0; align-items: start; }

.contact-form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.contact-form h3 { font-size: 1.375rem; }
.form-note { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.field { margin-top: 20px; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; min-height: 48px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field textarea:hover { border-color: #cfcabd; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); background: var(--surface); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: .8125rem; }
.field ::placeholder { color: #6b737d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { width: 100%; margin-top: 24px; }
.form-privacy { margin-top: 14px; font-size: .8125rem; color: var(--muted); text-align: center; }
.form-privacy a { color: var(--accent-text); }

.contact-cards { display: grid; gap: 12px; text-align: left; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
a.contact-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact-card .icon { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.contact-card .icon svg { width: 20px; height: 20px; }
.contact-card small { display: block; font-size: .8125rem; color: var(--muted); }
.contact-card strong { display: block; font-weight: 600; overflow-wrap: anywhere; }

/* Mobile Schnellkontakt-Leiste */
.quickbar { display: none; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-cards { order: -1; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .quickbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(247, 246, 242, .96); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -16px rgba(18, 32, 47, .35);
  }
  .quickbar .btn { min-height: 50px; padding: 10px 14px; }
  .quickbar .btn svg { width: 20px; height: 20px; }
  .quickbar .btn:hover svg { transform: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-block: 40px; font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .brand svg { width: 32px; height: 32px; }
.site-footer nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.site-footer nav a { color: var(--on-ink-muted); text-decoration: none; padding: 12px 0; }
.site-footer nav a:hover { color: var(--on-ink); }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--accent-text); }
.todo { background: var(--accent-soft); color: var(--text); padding: 2px 6px; border-radius: 4px; font-weight: 600; }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s var(--ease) both; }
  .reveal-2 { animation-delay: .1s; }
  .reveal-3 { animation-delay: .2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Inhalte gleiten beim Hineinscrollen sanft ein */
    .section-head, .intro-body, .card, .audience, .why-item, .step, .ref-box,
    .gallery figure, .faq details, .contact-card {
      animation: scroll-in linear both;
      animation-timeline: view();
      animation-range: entry 0px entry 160px;
    }
    /* leichte Staffelung nebeneinanderliegender Elemente */
    .cards > :nth-child(2n), .audience-grid > :nth-child(2n), .gallery > :nth-child(odd):not(:first-child),
    .contact-cards > :nth-child(2), .why-grid > :nth-child(3n+2) { animation-range: entry 40px entry 200px; }
    .why-grid > :nth-child(3n) { animation-range: entry 80px entry 240px; }
    .steps > :nth-child(2) { animation-range: entry 30px entry 190px; }
    .steps > :nth-child(3) { animation-range: entry 60px entry 220px; }
    .steps > :nth-child(4) { animation-range: entry 90px entry 250px; }
    .steps > :nth-child(5) { animation-range: entry 120px entry 280px; }

    /* Ablauf: Verbindungslinie füllt sich */
    .steps::after { animation: fill-x linear both; animation-timeline: view(); animation-range: cover 15% cover 55%; }

    /* Header wird nach dem Scrollen kompakter */
    .site-header { animation: header-solid linear both; animation-timeline: scroll(root); animation-range: 0 240px; }
    .site-header .wrap { animation: header-compact linear both; animation-timeline: scroll(root); animation-range: 0 240px; }
    .site-header .brand svg { animation: brand-compact linear both; animation-timeline: scroll(root); animation-range: 0 240px; }
    .brand-name span { animation: fade-out linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    .quickbar { animation: bar-in linear both; animation-timeline: scroll(root); animation-range: 250px 400px; }
  }
}
@media (max-width: 1020px) {
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .steps > .step { animation-range: entry 0px entry 160px; }
      .steps::after { animation-name: fill-y; animation-range: cover 10% cover 70%; }
    }
  }
}
@keyframes scroll-in { from { opacity: 0; translate: 0 28px; } }
@keyframes fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes header-solid { to { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); } }
@keyframes header-compact { to { height: 60px; } }
@keyframes brand-compact { to { width: 32px; height: 32px; } }
@keyframes bar-in { from { transform: translateY(110%); } }
@keyframes fade-out { to { opacity: 0; height: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow .pulse { animation: none; }
  .flow .spark { display: none; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before, .steps::after { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: center top; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .step:last-child { padding-bottom: 0; }
  .step::before { grid-row: span 2; }
  .step h3 { margin-top: 10px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:first-child { grid-column: span 2; }
}
@media (max-width: 860px) {
  .hero .wrap, .intro .wrap, .ref-box, .faq .wrap { grid-template-columns: 1fr; }
  .flow { max-width: 420px; }
  .cards, .audience-grid, .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-item:first-child { grid-column: auto; }
  .hero-actions .btn { flex: 1 1 100%; }
  .faq details p { padding-right: 0; }
}

/* ==========================================================
   Leistungsseiten (z. B. /knx-service/)
   ========================================================== */

/* Hero-Variante mit Foto statt Schema-Grafik */
.hero-sub h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid rgba(243, 241, 234, .12);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.hero-photo figcaption { margin-top: 12px; font-size: .8125rem; color: var(--on-ink-muted); }
.hero-checks li::before {
  width: 16px; height: 16px; border-radius: 0; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero-checks { color: var(--on-ink); }

/* Startseite: konkrete H1 mit Claim darunter */
.hero-claim { margin-top: 22px; font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 600; letter-spacing: -0.01em; color: var(--on-ink); }
.hero-claim em { font-style: normal; color: var(--accent); }
.hero-claim + .hero-lead { margin-top: 14px; }

/* Breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .8125rem; color: var(--on-ink-muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 10px; opacity: .6; }
.breadcrumb a { color: var(--on-ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--on-ink); text-decoration: underline; }

/* Typische Situationen */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tile {
  padding: 26px 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}
.tile h3 { font-size: 1.125rem; }
.tile p { margin-top: 8px; color: var(--muted); font-size: .9875rem; }
.section-intro { max-width: 720px; margin: -28px 0 clamp(32px, 5vw, 48px); color: var(--muted); font-size: 1.125rem; }

/* Leistungskarten dreispaltig, ohne Chips/Fazit */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@supports (grid-template-rows: subgrid) { .cards-3 .card { grid-row: span 3; } }
.cards-3 .card-top { margin-bottom: 22px; }
.cards-3 .card h3 { font-size: 1.25rem; }

/* Versprechen */
.promise {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg); background: var(--accent); color: var(--ink);
}
.promise .promise-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--ink); color: var(--accent); }
.promise .promise-icon svg { width: 34px; height: 34px; }
.promise h2 { font-size: clamp(1.875rem, 3.6vw, 2.625rem); }
.promise p { margin-top: 16px; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); max-width: 760px; }
.section-tight { padding-top: 0; }

/* Einstiegsangebote */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer { display: flex; flex-direction: column; padding: clamp(26px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.offer-featured { border: 2px solid var(--accent); box-shadow: 0 18px 40px -26px rgba(224, 146, 31, .55); }
.offer-price { align-self: flex-start; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.offer-featured .offer-price { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.offer h3 { margin-top: 18px; font-size: 1.375rem; }
.offer p { margin-top: 10px; color: var(--muted); }
.offers-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.offers-foot p { max-width: 620px; color: var(--muted); font-size: .9375rem; }

/* Referenz ohne Bilder: Text links, Steckbrief rechts */
.ref-box .ref-more { color: var(--on-ink); }
.ref-box .ref-more:hover { color: var(--accent); }

/* Formular: Auswahlfelder */
.field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 42px 12px 14px; min-height: 48px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper);
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2356606c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select:hover { border-color: #cfcabd; }
.field select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); background-color: var(--surface); }
.field-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0 16px; }
fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
fieldset.field legend { padding: 0; font-weight: 600; font-size: .9375rem; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; margin: 0; font-weight: 500; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.choices label:hover span { border-color: #cfcabd; }
.choices input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.choices input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-hint { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); font-size: .875rem; }

@media (max-width: 1020px) {
  .tiles, .cards-3, .offers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-photo { max-width: 520px; }
  .promise { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tiles, .cards-3, .offers { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .offers-foot .btn { width: 100%; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tile, .offer, .promise {
      animation: scroll-in linear both;
      animation-timeline: view();
      animation-range: entry 0px entry 160px;
    }
  }
}
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.card-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card-link:hover { text-decoration: underline; }
.card-link:hover svg { transform: translateX(3px); }
.benefit .card-link { display: flex; width: fit-content; margin-top: 12px; }
.hero h1.h1-long { font-size: clamp(2.25rem, 4.2vw, 3.375rem); }
.benefit .card-links { display: grid; gap: 2px; margin-top: 12px; }
.benefit .card-links .card-link { display: flex; width: fit-content; margin-top: 0; }

/* Querverweis unter Kachelrastern */
.tiles-foot { margin-top: 24px; color: var(--muted); }
.tiles-foot a { color: var(--accent-text); font-weight: 600; }

/* Hero ohne Bild (z. B. Über mich bis Foto vorhanden) */
.hero-solo .wrap { grid-template-columns: minmax(0, 760px); }

/* Aufgabenteilung: Ich / Elektriker */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.split-col { padding: clamp(26px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.split-col.on-dark { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.split-col h3 { font-size: 1.375rem; }
.split-col .split-role { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.split-col.on-dark .split-role { color: var(--accent); }
.split-col ul { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.split-col li { display: flex; gap: 12px; align-items: flex-start; }
.split-col li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent-text); }
.split-col.on-dark li svg { color: var(--accent); }
.split-col.on-dark li { color: var(--on-ink); }
.split-note { margin-top: 20px; color: var(--muted); }

/* Chip-Zeile unter Karten */
.chips-wide { margin-top: 28px; }
.chips-wide li { background: var(--paper); }
.chips-label { margin-top: 32px; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Kontakt ohne Formular (Über mich) */
.contact-solo { max-width: 760px; margin: 48px auto 0; }
.contact-solo .contact-cards { grid-template-columns: 1fr 1fr; }
.contact .lead a { color: var(--accent-text); }
.field-row-even { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .contact-solo .contact-cards, .field-row-even { grid-template-columns: 1fr; } }
.hero-photo-natural img { aspect-ratio: auto; object-fit: contain; }

/* Porträt: Startseite „Warum ich“ und Über-mich-Hero */
.why-head { max-width: 860px; display: flex; gap: clamp(20px, 3vw, 36px); align-items: center; }
.why-portrait { flex: none; width: clamp(104px, 14vw, 168px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.why-head p a { color: var(--accent); font-weight: 600; }
.hero-portrait { margin: 0; justify-self: center; }
.hero-portrait img { width: clamp(220px, 26vw, 340px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
@media (max-width: 600px) {
  .why-head { flex-direction: column; align-items: flex-start; }
  .hero-about .hero-portrait { justify-self: start; }
  .hero-about .hero-portrait img { width: 160px; }
}

/* Mobil: zusätzliche Einträge im Leistungen-Menü */
.nav .nav-drop-menu .nav-mobile-only { display: none; }
@media (max-width: 860px) { .nav .nav-drop-menu .nav-mobile-only { display: block; } }

/* Ansprechpartner neben dem Formular */
.contact-person {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius);
  background: var(--ink); color: var(--on-ink);
}
.contact-person img { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.contact-person small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.contact-person strong { display: block; margin-top: 2px; font-size: 1.125rem; }
.contact-person p { margin-top: 6px; font-size: .9375rem; color: var(--on-ink-muted); }
.contact-person a { color: var(--on-ink); font-weight: 600; }

/* Footer mit Seitenlinks */
.site-footer .footer-pages a { color: var(--on-ink); }
@media (max-width: 860px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-footer .footer-pages { flex-direction: column; gap: 0; }
  .site-footer .footer-pages a { padding: 10px 0; }
}

/* Verteilungsfoto: unterer Bereich (KNX-Aktoren) hat Vorrang beim Zuschnitt */
img[src*="verteilung.webp"] { object-position: 50% 100%; }
