@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/inter-tight-latin.woff2") format("woff2"); }

:root {
  /* "light dark" signalisiert Chrome (Android) ein eigenes Dunkeldesign → kein erzwungenes Umfärben; alle Farben sind explizit gesetzt, die Seite bleibt hell */
  color-scheme: light dark;
  --pink: #CC587F;
  --pink-deep: #A8405F;
  --bg: #F3F0EB;
  --paper: #EAE5DD;
  --ink: #141113;
  --muted: #6B6567;
  --white: #FBF9FA;
  /* Theme-Variablen (Standard: Papier). Helle Themes folgen alle diesem Schema:
     heller Hero · dunkle Schrift · eine Akzentfarbe (Logo, 2. Zeile, Hervorhebung) · dunkler Kontakt · heller Footer */
  --hero-bg: #EAE5DD; --hero-fg: #141113; --hero-accent: #CC587F; --hero-slash: #D9D1C5;
  --logo-color: #CC587F;
  --accent: #141113; --on-accent: #F3F0EB; --accent-text: #B4446A;
  --contact-bg: #141113; --contact-fg: #F3F0EB; --contact-accent: #E0668F;
  --code: #CC587F;
  --footer-bg: #EAE5DD; --footer-fg: #141113; --footer-line: rgba(20,17,19,.15);
  --line: rgba(20, 17, 19, .9);
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- Farbthemes (Umschalter im Header) ---------- */
/* Dunkle bzw. vollfarbige Themes */
[data-theme="nacht"] {
  --hero-bg: #141113; --hero-fg: #F4F1F2; --hero-accent: #E0668F; --hero-slash: #2C2629;
  --logo-color: #F4F1F2;
  --accent: #141113; --on-accent: #F4F1F2; --accent-text: #B4446A;
  --contact-bg: #141113; --contact-fg: #F4F1F2; --contact-accent: #E0668F; --code: #E0668F;
  --footer-bg: #141113; --footer-fg: #FBF9FA; --footer-line: rgba(255,255,255,.08);
  --quick-bg: #E0668F; --quick-fg: #141113; --quick-hover-bg: #F4F1F2; --quick-hover-fg: #141113;
}
[data-theme="pink"] {
  --bg: #E8E6E3; --paper: #F4F2EF;
  --hero-bg: #CC587F; --hero-fg: #FBF9FA; --hero-accent: #4E1229; --hero-slash: #A8405F;
  --logo-color: #FBF9FA;
  --accent: #CC587F; --on-accent: #FBF9FA; --accent-text: #A8405F;
  --contact-bg: #CC587F; --contact-fg: #FBF9FA; --contact-accent: #4E1229; --code: #4E1229;
  --footer-bg: #141113; --footer-fg: #FBF9FA; --footer-line: transparent;
  --quick-bg: #4E1229; --quick-fg: #FBF9FA; --quick-hover-bg: #FBF9FA; --quick-hover-fg: #4E1229;
}
/* Helle Themes nach dem Papier-Schema */
[data-theme="petrol"] {
  --bg: #EEF3F2; --paper: #E0EAE9; --ink: #0C2226; --muted: #55686B;
  --hero-bg: #E0EAE9; --hero-fg: #0C2226; --hero-accent: #0B7A85; --hero-slash: #D0DFDD;
  --logo-color: #0B7A85;
  --accent: #0B7A85; --on-accent: #F2F8F7; --accent-text: #08656E;
  --contact-bg: #0C2A30; --contact-fg: #EEF3F2; --contact-accent: #5CC8CB; --code: #0B7A85;
  --footer-bg: #E0EAE9; --footer-fg: #0C2226; --footer-line: rgba(12,34,38,.15);
}
[data-theme="sandstein"] {
  --bg: #F5EFE6; --paper: #EBDFCD; --ink: #2B2018; --muted: #77695B;
  --hero-bg: #EBDFCD; --hero-fg: #2B2018; --hero-accent: #C2582B; --hero-slash: #DFD0B9;
  --logo-color: #C2582B;
  --accent: #C2582B; --on-accent: #FFF8F0; --accent-text: #A8481F;
  --contact-bg: #2B2018; --contact-fg: #F5EFE6; --contact-accent: #EE9466; --code: #C2582B;
  --footer-bg: #EBDFCD; --footer-fg: #2B2018; --footer-line: rgba(43,32,24,.15);
}
[data-theme="pastell"] {
  /* Petrol × Pink in Pastell */
  --bg: #F2F7F6; --paper: #D9EAE7; --ink: #16312F; --muted: #5E7472;
  --hero-bg: #D9EAE7; --hero-fg: #16312F; --hero-accent: #B4587B; --hero-slash: #CCE0DC;
  --logo-color: #E9A6BE;
  --accent: #F3C6D5; --on-accent: #16312F; --accent-text: #B4587B;
  --contact-bg: #1F4A4C; --contact-fg: #F2F7F6; --contact-accent: #F3B5C9; --code: #3F7F80;
  --footer-bg: #D9EAE7; --footer-fg: #16312F; --footer-line: rgba(22,49,47,.15);
}
body, .hero, .contact { transition: background-color .5s, color .5s; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  /* iPhone: Header reicht unter Notch/Statusleiste und deckt sie mit seinem Hintergrund ab */
  padding: calc(18px + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 18px max(var(--gutter), env(safe-area-inset-left));
  /* immer fester Hintergrund: Safari (iOS) färbt den Bereich hinter der Notch nach dem Header */
  background: var(--hero-bg);
  color: var(--hero-fg);
  transition: color .3s, background .3s;
}
/* Header behält beim Scrollen die Hero-Farbe des Themes (kein Farbwechsel) */
.site-header.is-light { color: var(--hero-fg); background: var(--hero-bg); }
.brand { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; text-decoration: none; }
.site-nav { display: flex; gap: clamp(16px, 3vw, 36px); font-size: .98rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Bausteine ---------- */
.section { padding: clamp(80px, 14vh, 160px) var(--gutter); }
.label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1.05rem; font-weight: 500;
  margin-bottom: clamp(32px, 6vh, 64px);
}
.label span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.statement {
  font-size: clamp(1.75rem, 4.2vw, 4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.025em;
  max-width: 22ch;
}
.statement em { font-style: normal; color: var(--accent-text); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  background: var(--hero-bg);
  color: var(--hero-fg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  gap: 40px var(--gutter);
  padding: calc(120px + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) clamp(28px, 5vh, 56px) max(var(--gutter), env(safe-area-inset-left));
  position: relative;
  overflow: hidden;
}
.hero::after { /* der Slash */
  content: ""; position: absolute; z-index: 0;
  right: -12vw; top: -20vh; width: 30vw; height: 150vh;
  background: var(--hero-slash); opacity: .3;
  transform: skewX(-18deg); pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-head { grid-column: 1; grid-row: 1; align-self: center; }
.hero-title {
  font-size: clamp(2.6rem, 7vw, 7.4rem);
  font-weight: 500; line-height: .92; letter-spacing: -.05em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .line > span { display: block; animation: line-up 1s cubic-bezier(.2,.8,.2,1) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .1s; }
.hero-title .line:nth-child(3) > span { animation-delay: .2s; }
.hero-title .line-2 { color: var(--hero-accent); }
.hero-sub em { font-style: normal; color: var(--hero-accent); }
@keyframes line-up { from { transform: translateY(105%); } }
.hero-sub {
  margin-top: clamp(20px, 3.5vh, 36px);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 400; letter-spacing: -.01em;
  max-width: 34ch; opacity: .92;
  animation: fade-in 1s .5s both;
}
@keyframes fade-in { from { opacity: 0; } }

/* Logo: Aquarell-Bauzeichnung – flüssig:
   Aquarell = vorgerenderte Bildmasken (logo-paint-1..4.webp), per CSS in der Theme-Farbe eingefärbt,
   animiert nur über opacity/transform (läuft auf der Grafikkarte).
   Linien = logo-linien.svg ohne Live-Filter (Zittern ist in die Form eingerechnet). */
.hero-logo {
  grid-column: 2; grid-row: 1; align-self: center; justify-self: end;
  position: relative;
  width: clamp(260px, 40vw, 620px);
  aspect-ratio: 488 / 485;
  cursor: pointer;
  --wc: var(--logo-color, var(--accent));
  --wink: var(--hero-fg);
}
.hero-logo .paint {
  position: absolute; inset: 0;
  background: var(--wc);
  -webkit-mask-image: var(--m), url("logo-korn.webp"); mask-image: var(--m), url("logo-korn.webp");
  -webkit-mask-size: 100% 100%, 128px 128px; mask-size: 100% 100%, 128px 128px;
  -webkit-mask-repeat: no-repeat, repeat; mask-repeat: no-repeat, repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  opacity: 0; will-change: opacity, transform;
}
.hero-logo .paint-1 { --m: url("logo-paint-1.webp"); }
.hero-logo .paint-2 { --m: url("logo-paint-2.webp"); }
.hero-logo .paint-3 { --m: url("logo-paint-3.webp"); }
.hero-logo .paint-4 { --m: url("logo-paint-4.webp"); }
.hero-logo .plan { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-logo .guides path { fill: none; stroke: var(--wc); stroke-width: 1; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; opacity: .8; }
.hero-logo .guide-mask line { stroke: #fff; stroke-width: 8; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-logo .marks path { fill: none; stroke: var(--wc); stroke-width: 1.2; }
.hero-logo .outline path { fill: none; stroke: color-mix(in srgb, var(--wc) 70%, var(--wink)); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .75; }
.hero-logo .outline.p2 path, .hero-logo .outline.p3 path { stroke-width: .8; }
.hero-logo .dims path { fill: none; stroke: var(--wc); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.hero-logo .labels text { font-family: "Inter Tight", sans-serif; font-style: italic; font-weight: 300; font-size: 11.5px; letter-spacing: .02em; opacity: 0; }
.hero-logo .labels .ink { fill: var(--wink); }
.hero-logo .labels .acc { fill: var(--wc); }
.hero-logo .marks { opacity: 0; }
.hero-logo .p2 { --d: .35s; } .hero-logo .p3 { --d: .6s; }

/* Ablauf (~4,5 s) */
.hero-logo.play .guide-mask line { animation: lz-draw .6s cubic-bezier(.5,0,.3,1) forwards; animation-delay: calc(var(--i) * .1s); }
.hero-logo.play .marks { animation: lz-show .3s calc(.7s + var(--d, 0s)) forwards; }
.hero-logo.play .outline path { animation: lz-draw 1s cubic-bezier(.45,.05,.3,1) forwards; animation-delay: calc(.6s + var(--d, 0s) + var(--i) * .035s); }
.hero-logo.play .paint-1 { animation: lz-paint 1.1s 1.2s ease-out forwards; }
.hero-logo.play .paint-2 { animation: lz-paint .9s 1.7s ease-out forwards; }
.hero-logo.play .paint-3 { animation: lz-paint .9s 2.3s ease-out forwards; }
.hero-logo.play .paint-4 { animation: lz-splash .8s 2.9s cubic-bezier(.2,.8,.3,1) forwards; }
.hero-logo.play .dims path { animation: lz-draw .35s ease-out forwards; animation-delay: calc(3.4s + var(--d, 0s) + var(--i) * .03s); }
.hero-logo.play .labels text { animation: lz-show .5s ease-out forwards; animation-delay: calc(3.8s + var(--d, 0s)); }
@keyframes lz-draw { to { stroke-dashoffset: 0; } }
@keyframes lz-show { to { opacity: 1; } }
@keyframes lz-paint { from { opacity: 0; transform: translate(-1.2%, 1.2%) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes lz-splash { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-logo .guide-mask line, .hero-logo .outline path, .hero-logo .dims path { stroke-dashoffset: 0 !important; animation: none !important; }
  .hero-logo .paint, .hero-logo .marks, .hero-logo .labels text { opacity: 1 !important; animation: none !important; transform: none !important; }
}

.hero-foot {
  grid-column: 1 / -1; grid-row: 2; align-self: end;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
  font-size: 1rem;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid currentColor; border-radius: 999px;
  padding: 6px 14px; font-size: .9rem; font-weight: 500; white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.down { text-decoration: none; font-weight: 500; }
.down:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Leistungen ---------- */
/* alle Zeilen gleich hoch (richtet sich nach der höchsten), damit die Abstände einheitlich wirken */
.services { list-style: none; border-bottom: 1px solid var(--line); display: grid; grid-auto-rows: 1fr; }
.service {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 440px);
  gap: 12px 32px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: clamp(22px, 3.5vh, 36px) 0;
  transition: background .35s, color .35s, padding .35s;
}
.service-num { font-size: .95rem; color: var(--muted); padding-top: .8em; font-variant-numeric: tabular-nums; transition: color .35s; }
.service h3 {
  font-size: clamp(2.1rem, 6.2vw, 6rem);
  font-weight: 400; line-height: 1; letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.service-body p { font-size: 1.05rem; margin-bottom: 14px; max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tags li { font-size: .82rem; border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; opacity: .8; }
@media (hover: hover) {
  .service:hover { background: var(--accent); color: var(--on-accent); padding-left: 20px; padding-right: 20px; }
  .service:hover .service-num { color: var(--on-accent); }
}
/* Touch-Geräte: die Leistung in der Bildschirmmitte wird beim Scrollen hervorgehoben (Klasse aus app.js) */
@media (hover: none) {
  /* Fläche läuft über die volle Bildschirmbreite (Schatten-Trick, Layout bleibt unverändert) */
  .service { box-shadow: 0 0 0 100vmax transparent; clip-path: inset(0 -100vmax); transition: box-shadow .35s, background .35s, color .35s; }
  .service.is-active { background: var(--accent); box-shadow: 0 0 0 100vmax var(--accent); color: var(--on-accent); }
  .service.is-active .service-num { color: var(--on-accent); }
}

/* ---------- Ablauf ---------- */
.intro { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); list-style: none; }
.steps > li { border-top: 1px solid var(--line); padding-top: 18px; }
.steps b { display: block; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.02em; margin: 6px 0 10px; }
.statement--sm { font-size: clamp(1.5rem, 3vw, 2.8rem); max-width: 26ch; margin-bottom: clamp(40px, 7vh, 72px); }
.steps .step-num { color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.steps p { max-width: 40ch; margin-bottom: 12px; color: var(--ink); }
.steps p + p { color: var(--muted); }
.steps .tags { margin-top: 18px; }

/* ---------- Kontakt ---------- */
.contact { background: var(--contact-bg); color: var(--contact-fg); }
.contact .label span:last-child { color: inherit; opacity: .75; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 {
  font-size: clamp(2.6rem, 6.4vw, 6.8rem);
  font-weight: 300; line-height: .95; letter-spacing: -.045em;
  margin-bottom: clamp(28px, 5vh, 48px);
}
.mail {
  display: inline-block;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 500; letter-spacing: -.01em;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.contact-note { font-style: normal; margin-top: 20px; font-size: 1rem; opacity: .85; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 500; opacity: .85; }
.field input, .field textarea {
  font: inherit; font-size: 1.1rem; color: inherit;
  background: transparent; border: 0; border-bottom: 1.5px solid currentColor;
  padding: 8px 0; border-radius: 0; outline: none;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--contact-accent); border-bottom-width: 2.5px; }
.field input::placeholder, .field textarea::placeholder { color: inherit; opacity: .45; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.form-note { font-size: .85rem; opacity: .8; max-width: 40ch; }
.form-note a { color: inherit; }
.btn {
  font: inherit; font-weight: 600; font-size: 1rem;
  background: var(--contact-fg); color: var(--contact-bg);
  border: 0; border-radius: 999px; padding: 15px 28px; cursor: pointer;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { background: var(--contact-accent); color: var(--contact-fg); transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-status { grid-column: 1 / -1; font-weight: 500; min-height: 1.5em; }

/* ---------- Theme-Umschalter ---------- */
.theme-switch { display: flex; align-items: center; gap: 6px; }
.theme-switch button {
  width: 20px; height: 20px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1.5px solid currentColor;
  background: linear-gradient(135deg, var(--sw-a) 50%, var(--sw-b) 50%);
  transition: transform .2s;
}
.theme-switch button:hover { transform: scale(1.15); }
.theme-switch button[aria-pressed="true"] { outline: 1.5px solid currentColor; outline-offset: 2px; }
.header-right { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg, var(--ink)); color: var(--footer-fg, var(--white));
  border-top: 1px solid var(--footer-line, transparent);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 24px max(var(--gutter), env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); font-size: .92rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Rechtsseiten ---------- */
.legal-page .site-header { position: sticky; top: 0; color: var(--hero-fg); background: var(--hero-bg); }
.legal { padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(64px, 12vh, 128px); }
.legal h1 {
  font-size: clamp(2.6rem, 8vw, 7rem);
  font-weight: 300; line-height: 1; letter-spacing: -.045em;
  margin-bottom: clamp(32px, 6vh, 64px);
  overflow-wrap: anywhere;
}
.legal-body { max-width: 760px; margin-left: auto; line-height: 1.65; }
.legal h2 { font-size: 1.15rem; font-weight: 600; margin: 36px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal address, .legal ul { margin-bottom: 12px; font-style: normal; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--accent-text); font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Einblenden ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding-top: calc(104px + env(safe-area-inset-top)); gap: 28px; }
  .hero-head { grid-column: 1; grid-row: 1; align-self: start; }
  .hero-title { font-size: 13vw; }
  .hero-logo { grid-column: 1; grid-row: 2; justify-self: center; align-self: center; width: 76vw; max-width: 340px; }
  .hero-foot { grid-row: 3; }
  .hero::after { width: 55vw; right: -30vw; }
  .service { grid-template-columns: 40px minmax(0, 1fr); }
  .service-body { grid-column: 2; }
  .service-num { padding-top: .4em; }
  .steps { grid-template-columns: 1fr; }
  .contact-grid, .form { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .theme-switch button { width: 22px; height: 22px; }
  .site-nav a.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Cookie-Hinweis (Einwilligung für Google Analytics) ---------- */
.consent {
  position: fixed; z-index: 50;
  left: max(24px, env(safe-area-inset-left)); bottom: calc(24px + env(safe-area-inset-bottom));
  width: min(720px, calc(100vw - 48px));
  max-height: calc(100vh - 48px); overflow: auto;
  background: var(--contact-bg); color: var(--contact-fg);
  border-radius: 20px; padding: 28px 30px 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  display: grid; grid-template-columns: 1fr auto; column-gap: 24px;
  transform: translateY(16px); opacity: 0; visibility: hidden;
  transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1), visibility .35s;
}
.consent > * { grid-column: 1 / -1; }
.consent.is-open { opacity: 1; transform: none; visibility: visible; }
.consent-label { font-size: .9rem; font-weight: 500; opacity: .7; margin-bottom: 6px; }
.consent h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 10px; }
.consent h2 em { font-style: normal; color: var(--contact-accent); }
.consent p { font-size: .98rem; line-height: 1.55; opacity: .92; max-width: 60ch; }
.consent a { color: inherit; }

/* aufklappbare Details */
.consent-details { grid-column: 1; align-self: center; margin-top: 18px; }
.consent-details summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px;
  font-size: .95rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px;
}
.consent-details summary::-webkit-details-marker { display: none; }
.consent-details summary::after { content: "↓"; text-decoration: none; transition: transform .25s; }
.consent-details[open] summary::after { transform: rotate(180deg); }
.consent-details[open] { grid-column: 1 / -1; }
.consent-details dl {
  display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px;
  margin-top: 14px; padding: 16px 0 4px; border-top: 1px solid color-mix(in srgb, var(--contact-fg) 22%, transparent);
  font-size: .9rem; line-height: 1.5;
}
.consent-details dt { font-weight: 600; opacity: .75; }
.consent-details dd { opacity: .92; }
.consent-details code { font-size: .85em; }
.consent-more { margin-top: 10px; font-size: .9rem !important; }

.consent-actions { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; align-self: end; }
.consent-details[open] ~ .consent-actions { grid-column: 1 / -1; justify-self: end; }
/* beide Buttons gleich groß und gleich auffällig (DSGVO: Ablehnen so einfach wie Zustimmen) */
.consent-actions button {
  font: inherit; font-weight: 600; font-size: .98rem; min-width: 140px;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  background: var(--contact-fg); color: var(--contact-bg); border: 1.5px solid var(--contact-fg);
  transition: background .2s, color .2s, transform .2s;
}
.consent-actions button:hover { background: var(--contact-accent); border-color: var(--contact-accent); color: var(--contact-bg); transform: translateY(-1px); }
.link-btn {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}
.link-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) {
  .consent { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom)); max-height: calc(100vh - 24px); padding: 22px 20px 20px; }
  .consent-details, .consent-actions, .consent-details[open] ~ .consent-actions { grid-column: 1 / -1; justify-self: stretch; }
  .consent-actions button { min-width: 0; }
  /* Buttons bleiben beim Scrollen im aufgeklappten Hinweis sichtbar */
  .consent-actions { position: sticky; bottom: -20px; background: var(--contact-bg); padding: 14px 0 20px; margin: 4px 0 -20px; }
  .consent-details dl { grid-template-columns: 1fr; gap: 2px; }
  .consent-details dd { margin-bottom: 8px; }
}

/* ---------- Schnellkontakt: Kontakt + WhatsApp (schwebend, in Theme-Farben) ---------- */
.quick {
  position: fixed; z-index: 40;
  right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; gap: 10px;
  transition: opacity .3s;
}
.quick a {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--quick-bg, var(--contact-bg)); color: var(--quick-fg, var(--contact-fg));
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .2s, color .2s;
}
.quick svg { width: 28px; height: 28px; }
.quick a:hover, .quick a:focus-visible { transform: translateY(-3px) scale(1.05); background: var(--quick-hover-bg, var(--contact-accent)); color: var(--quick-hover-fg, var(--contact-bg)); }
.quick .tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--quick-bg, var(--contact-bg)); color: var(--quick-fg, var(--contact-fg));
  font-size: .88rem; font-weight: 500; white-space: nowrap;
  padding: 7px 13px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.quick a:last-child .tip { left: auto; right: 0; transform: none; }
.quick a:hover .tip, .quick a:focus-visible .tip { opacity: 1; }
/* ausblenden, solange der Cookie-Hinweis offen ist (auf dem Handy liegt er darüber) */
body.consent-open .quick, body.footer-visible .quick { opacity: 0; pointer-events: none; }
/* Platz im Hero, damit „leistungen ↓“ nicht verdeckt wird */
body.has-quick .hero-foot { padding-right: 140px; }
@media (max-width: 820px) {
  .quick { right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); gap: 8px; }
  .quick a { width: 52px; height: 52px; }
  .quick svg { width: 25px; height: 25px; }
  .quick .tip { display: none; }
  body.has-quick .hero-foot { padding-right: 0; }
  body.has-quick .hero { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .quick a { transition: none; } }
