/* ============================================================
   de Vries — Editorial Prestige
   Single-file stylesheet. Design tokens → base → components → pages → motion → responsive.
   Brand red #d7120a is the hero. Warm paper neutrals. Fraunces (display) + Manrope (body).
   ============================================================ */

/* ---------- 0. FONTS (self-hosted, latin subset — DSGVO: keine Google-Verbindung) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. TOKENS ---------- */
:root {
  /* brand + palette (taken verbatim from andreasdevries.de) */
  --red: #d7120a;
  --red-deep: #a50d07;
  --red-soft: #f4d9d6;
  --green: #57b046;       /* Garten accent */
  --green-deep: #3b932b;
  --blue: #0089f7;        /* Pflege accent */
  --blue-deep: #0a6fc4;

  --ink: #1c1714;         /* warm near-black */
  --ink-2: #4a423c;
  --muted: #756a60;       /* warm gray body */
  --paper: #faf6f0;       /* warm off-white background */
  --paper-2: #f1e9de;     /* secondary warm surface */
  --paper-3: #e7dccd;     /* tertiary / borders */
  --white: #ffffff;
  --line: rgba(28, 23, 20, 0.12);
  --line-strong: rgba(28, 23, 20, 0.22);

  /* type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* fluid type scale */
  --fs-eyebrow: clamp(0.7rem, 0.66rem + 0.2vw, 0.8rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lead: clamp(1.15rem, 1.02rem + 0.6vw, 1.5rem);
  --fs-h4: clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem);
  --fs-h2: clamp(2rem, 1.4rem + 3vw, 4rem);
  --fs-h1: clamp(2.8rem, 1.6rem + 6vw, 8rem);
  --fs-mega: clamp(2.4rem, 1.1rem + 5.5vw, 6.5rem);

  /* spacing */
  --gap: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 10rem);
  --wrap: 1600px;
  --wrap-narrow: 880px;
  --radius: 4px;
  --radius-lg: 18px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.25s;
  --t: 0.5s;
  --t-slow: 0.9s;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
  overflow-x: clip;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-weight: 400;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; }

p { color: var(--ink-2); }
strong, b { font-weight: 700; color: var(--ink); }
em { font-style: italic; }

/* utility */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 0.5rem + 3vw, 3rem); }
.narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.bg-paper-2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--paper); }
.bg-ink p { color: rgba(250,246,240,0.74); }
.center { text-align: center; }
.mt-s { margin-top: 1.25rem; } .mt-m { margin-top: 2.4rem; } .mt-l { margin-top: 4rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--body); font-size: var(--fs-eyebrow); font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 2.2em; height: 1px; background: var(--red); display: inline-block; }
.eyebrow.is-center::after { content: ""; width: 2.2em; height: 1px; background: var(--red); display: inline-block; }
.bg-ink .eyebrow { color: #ff6f63; }

.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); font-weight: 300; }
.display-em { font-family: var(--display); font-style: italic; color: var(--red); font-weight: 400; }

/* ---------- 3. BUTTONS ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 0.95em 1.7em; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), color var(--t) var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translateY(101%);
  transition: transform var(--t) var(--ease);
}
.btn:hover { box-shadow: 0 14px 34px -12px rgba(215,18,10,0.5); }
.btn:hover::before { transform: translateY(0); }
.btn .btn__arrow { transition: transform var(--t) var(--ease); }
.btn:hover .btn__arrow { transform: translate(4px, -4px); }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; filter: grayscale(0.35); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: #fff; box-shadow: none; }
.bg-ink .btn--ghost { --fg: var(--paper); border-color: rgba(255,255,255,0.25); }
.bg-ink .btn--ghost::before { background: var(--red); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--light::before { background: var(--red); }
.btn--light:hover { color: #fff; }
/* Buttons in richtext/prose duerfen NICHT die rote Link-Farbe erben (sonst rot-auf-rot -> unsichtbar) */
.richtext a.btn, .prose a.btn { color: var(--fg); text-decoration: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; color: var(--red); position: relative; padding-bottom: 2px;
}
.link-arrow::after { content:""; position:absolute; left:0; bottom:0; width:100%; height:1.5px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform var(--t) var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { transition: transform var(--t) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 4. TOP BAR ---------- */
.topbar {
  background: var(--ink); color: #fff;
  font-size: 0.82rem; letter-spacing: 0.02em;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.55rem; }
.topbar a { transition: color var(--t-fast); display: inline-flex; align-items: center; gap: 0.45em; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 1.6rem; flex-wrap: wrap; font-weight: 700; }
.topbar__social { display: flex; gap: 1rem; }
.topbar__social a:hover { color: var(--red); }
@media (max-width: 680px){ .topbar__contact span.lbl { display:none; } .topbar { font-size: 0.76rem; } }

/* ---------- 5. NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,240,0.82); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.nav.is-scrolled { background: rgba(250,246,240,0.94); border-color: var(--line); box-shadow: 0 10px 40px -28px rgba(28,23,20,0.5); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.15rem; }
.brand { display: inline-flex; align-items: center; gap: 1.05rem; }
.brand__mark { width: 66px; height: 66px; flex: none; border-radius: 12px; display: block; object-fit: cover; box-shadow: 0 6px 18px -6px rgba(215,18,10,0.6); }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em; line-height: 1; color: var(--ink); }
.brand__name small { display:block; font-family: var(--body); font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: clamp(0.6rem, 0.1rem + 1vw, 1.45rem); }
.nav__links > li { position: relative; }
.nav__links a { font-weight: 600; font-size: 0.9rem; padding: 0.5em 0; position: relative; color: var(--ink); transition: color var(--t-fast); white-space: nowrap; }
.nav__links a::after { content:""; position:absolute; left:0; bottom:-2px; width:100%; height:2px; background: var(--red); transform: scaleX(0); transform-origin:right; transition: transform var(--t) var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin:left; }
.nav__links a[aria-current="page"] { color: var(--red); }

/* dropdown */
/* unsichtbare Brücke über die Lücke Link→Dropdown, sonst verschwindet das
   Untermenü beim Rübergehen mit der Maus (Hover wird im Spalt verloren) */
.has-sub::after { content:""; position: absolute; top: 100%; left: 0; right: 0; height: 18px; }
.subnav {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.6rem; min-width: 240px; box-shadow: 0 30px 60px -30px rgba(28,23,20,0.4);
  opacity: 0; visibility: hidden; transition: opacity var(--t-fast), transform var(--t-fast);
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.subnav a { display: block; padding: 0.6em 0.9em; border-radius: 9px; font-size: 0.92rem; transition: background var(--t-fast), color var(--t-fast); }
.subnav a::after { display:none; }
.subnav a:hover { background: var(--paper-2); color: var(--red); }

.nav__cta { display: inline-flex; flex: none; padding: 0.72em 1.3em; font-size: 0.88rem; }
.nav__burger { display: none; width: 46px; height: 46px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); }
.nav__burger span { width: 20px; height: 2px; background: var(--ink); transition: transform var(--t-fast), opacity var(--t-fast); }

/* mobile overlay */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; padding: 1.15rem 1.25rem 1.4rem;
  clip-path: circle(0% at calc(100% - 44px) 44px); transition: clip-path 0.7s var(--ease);
  pointer-events: none; visibility: hidden;
}
.mobile-nav.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); pointer-events: auto; visibility: visible; }

/* header */
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav__brand { display: flex; align-items: center; gap: 0.6rem; color: var(--paper); font-family: var(--display); font-size: 1.2rem; font-weight: 500; }
.mobile-nav__brand .brand__mark { width: 54px; height: 54px; border-radius: 11px; }
.mobile-nav__brand { font-size: 1.4rem; font-weight: 700; }
.mobile-nav__close { font-size: 1.7rem; color: var(--paper); line-height: 1; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); transition: background var(--t-fast); }
.mobile-nav__close:hover { background: rgba(255,255,255,0.08); }

/* scrollable link area */
.mobile-nav__body { flex: 1; min-height: 0; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; display: flex; flex-direction: column; padding: 0.9rem 0; }
.mobile-nav__body::-webkit-scrollbar { width: 4px; }
.mobile-nav__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.mnav__label { font-family: var(--body); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.24em; color: rgba(215,18,10,0.85); margin: 1.35rem 0 0.5rem; }
.mnav__label:first-of-type { margin-top: 0.4rem; }

/* top-level links — ruhig, ohne Trennlinien/Chevrons */
.mnav__link { font-family: var(--display); font-size: clamp(1.3rem, 4.8vw, 1.55rem); font-weight: 500; color: var(--paper); padding: 0.5rem 0; transition: color var(--t-fast), transform var(--t-fast); transform-origin: left center; }
.mnav__link:hover, .mnav__link:focus-visible { color: #ff6f63; transform: translateX(5px); }
.mnav__link[aria-current="page"] { color: var(--red); }

/* aufklappbarer Eintrag (Seniorenbetreuung) */
.mnav__toggle { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; cursor: pointer; }
.mnav__chev { flex: none; opacity: 0.55; transition: transform var(--t-fast), opacity var(--t-fast); }
.mnav__toggle[aria-expanded="true"] .mnav__chev { transform: rotate(180deg); opacity: 1; }

/* sub-group — aufklappbar, dezente Einrückung */
.mnav__sub { display: none; flex-direction: column; padding-left: 1.15rem; margin: 0.15rem 0 0.4rem; }
.mnav__sub.is-open { display: flex; animation: subIn 0.3s var(--ease); }
@keyframes subIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mnav__sub a { font-family: var(--body); font-size: 1rem; font-weight: 500; color: rgba(250,246,240,0.58); padding: 0.45rem 0; transition: color var(--t-fast); }
.mnav__sub a:hover, .mnav__sub a:focus-visible { color: var(--paper); }
.mnav__sub a[aria-current="page"] { color: var(--red); }

/* footer: CTA + contact */
.mobile-nav__foot { padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 1rem; }
.mnav__cta { width: 100%; justify-content: center; }
.mnav__contact { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.9rem; }
.mnav__contact a, .mnav__contact span { display: flex; align-items: center; gap: 0.65rem; color: rgba(250,246,240,0.72); }
.mnav__contact a:hover { color: var(--paper); }
.mnav__contact svg { color: var(--red); flex: none; }

/* staggered reveal */
.mnav__link, .mnav__label, .mobile-nav__foot > * { opacity: 0; transform: translateX(-22px); }
.mobile-nav.is-open .mnav__link,
.mobile-nav.is-open .mnav__label,
.mobile-nav.is-open .mobile-nav__foot > * { animation: navIn 0.5s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 0.12s); }
@keyframes navIn { to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .mnav__link, .mnav__label, .mobile-nav__foot > * { opacity: 1; transform: none; animation: none; }
  .mnav__sub.is-open { animation: none; }
}

@media (max-width: 1280px){
  .nav__links, .nav__cta.nav__cta--desktop { display: none; }
  .nav__burger { display: flex; }
}

/* ---------- 6. HERO ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 1rem + 5vw, 5rem); padding-bottom: clamp(2rem,1rem + 3vw,4rem); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.hero__title { font-size: var(--fs-mega); line-height: 0.92; letter-spacing: -0.03em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.12em; }
.hero__title .line > span { display: block; transform: translateY(118%); }
.hero.is-in .hero__title .line > span { transform: translateY(0); transition: transform 1s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: 0.08s; }
.hero__title .line:nth-child(3) > span { transition-delay: 0.16s; }
.hero__title .dot { color: var(--red); }
.hero__lead { max-width: 46ch; margin-top: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__media { position: relative; isolation: isolate; }
.hero__media-frame { position: relative; z-index: 1; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 50px 90px -50px rgba(28,23,20,0.7); }
.hero__media-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 8s linear; }
.hero.is-in .hero__media-frame img { transform: scale(1); }
.hero__badge {
  position: absolute; bottom: -26px; left: -26px; z-index: 2; background: var(--white);
  border-radius: 16px; padding: 1.1rem 1.4rem; box-shadow: 0 30px 60px -30px rgba(28,23,20,0.5);
  display: flex; align-items: center; gap: 0.9rem;
}
.hero__badge .num { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--red); }
.hero__badge .txt { font-size: 0.82rem; line-height: 1.25; font-weight: 600; color: var(--ink-2); }
.hero__spin { position: absolute; top: -52px; right: 18px; width: 116px; height: 116px; z-index: 0; animation: spin 22s linear infinite; }
.hero__spin text { font-family: var(--body); font-size: 9.1px; font-weight: 700; letter-spacing: 0.18em; fill: var(--ink-2); text-transform: uppercase; }
.hero__spin .pin { fill: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }

/* stats strip */
.statstrip { border-top: 1px solid var(--line); margin-top: clamp(2.5rem,1rem + 4vw,4.5rem); }
.statstrip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(1.4rem,1rem + 1.5vw,2.4rem) 1.2rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--display); font-size: clamp(2.2rem,1.4rem + 3vw,3.6rem); line-height: 1; color: var(--ink); }
.stat__num .unit { color: var(--red); }
.stat__label { font-size: 0.86rem; color: var(--muted); margin-top: 0.5rem; font-weight: 600; }
@media (max-width: 900px){
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 520px; }
  .statstrip__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n){ border-right: none; }
  .stat:nth-child(-n + 2){ border-bottom: 1px solid var(--line); }
}
@media (max-width: 460px){ .statstrip__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 7. SECTION HEAD ---------- */
.section__head { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem,0.6rem + 2vw,3rem); align-items: start; margin-bottom: clamp(2.4rem,1.4rem + 3vw,4.5rem); }
.section__index { font-family: var(--display); font-size: clamp(1.4rem,1rem + 1.2vw,2.2rem); color: var(--red); font-feature-settings: "tnum"; line-height: 1; padding-top: 0.15em; }
.section__head h2 { max-width: 20ch; }
.section__head .lead { margin-top: 1.4rem; max-width: 56ch; }
.section__head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.section__head--center h2 { margin-inline: auto; }

/* ---------- 8. INTRO / RICH TEXT ---------- */
.richtext { max-width: 42rem; } /* Lesbarkeit: Zeilenlänge auch bei breitem Layout begrenzt */
.richtext p + p { margin-top: 1.6rem; }
.richtext h3 { margin-top: 3rem; margin-bottom: 1rem; }
.richtext .tick-list, .richtext + .tick-list { margin-top: 2.2rem; }
.richtext a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.intro-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem,1rem + 3vw,4rem); align-items: start; }
.intro-split .big { font-family: var(--display); font-size: var(--fs-h3); line-height: 1.15; color: var(--ink); font-weight: 400; }
.intro-split .big em { color: var(--red); font-style: italic; }
@media (max-width: 860px){ .intro-split { grid-template-columns: 1fr; } }

/* ---------- 9. SERVICE CARDS ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.6rem,1rem + 2.5vw,2.8rem); }
.scard {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(2rem,1.4rem + 2.6vw,3.4rem);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.scard::after { content:""; position:absolute; inset:0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(215,18,10,0.07), transparent 60%); opacity:0; transition: opacity var(--t); pointer-events:none; }
.scard:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -45px rgba(28,23,20,0.5); border-color: transparent; }
.scard:hover::after { opacity: 1; }
.scard__num { font-family: var(--display); font-size: 0.95rem; color: var(--red); letter-spacing: 0.05em; }
.scard__icon { width: 52px; height: 52px; color: var(--red); margin-bottom: 1.2rem; }
.scard__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.scard h3 { font-size: var(--fs-h4); margin-bottom: 0.9rem; }
.scard p { font-size: 1rem; line-height: 1.75; color: var(--muted); }
.scard__list { margin-top: 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1.4rem; }
.scard__list li { font-size: 0.92rem; font-weight: 500; color: var(--ink-2); display: flex; gap: 0.6em; align-items: flex-start; }
.scard__list li::before { content:""; flex:none; width: 19px; height: 19px; margin-top: 2px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23d7120a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.scard--accent-green .scard__list li::before { background: rgba(87,176,70,0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%233b932b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.scard--accent-blue .scard__list li::before { background: rgba(0,137,247,0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%230a6fc4' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.scard__more { margin-top: auto; padding-top: 1.8rem; }
.scard--accent-green:hover { box-shadow: 0 40px 70px -45px rgba(87,176,70,0.55); }
.scard--accent-green .scard__num, .scard--accent-green .scard__icon { color: var(--green-deep); }
.scard--accent-green::after { background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(87,176,70,0.1), transparent 60%); }
.scard--accent-green .scard__more .link-arrow { color: var(--green-deep); }
.scard--accent-green .scard__more .link-arrow::after { background: var(--green-deep); }
.scard--accent-blue .scard__more .link-arrow { color: var(--blue-deep); }
.scard--accent-blue .scard__more .link-arrow::after { background: var(--blue-deep); }
.scard--accent-blue:hover { box-shadow: 0 40px 70px -45px rgba(0,137,247,0.5); }
.scard--accent-blue .scard__num, .scard--accent-blue .scard__icon { color: var(--blue-deep); }
.scard--accent-blue::after { background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(0,137,247,0.1), transparent 60%); }
@media (max-width: 760px){ .services { grid-template-columns: 1fr; } }
@media (max-width: 480px){ .scard__list { grid-template-columns: 1fr; } }

/* ---------- 10. FEATURE (image + text alternating) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,1.2rem + 4vw,5.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(4rem,2.5rem + 5vw,8rem); }
.feature__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/4; position: relative; box-shadow: 0 40px 80px -50px rgba(28,23,20,0.6); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature__media:hover img { transform: scale(1.05); }
.feature--rev .feature__media { order: 2; }
.feature h3 { margin-bottom: 1rem; }
.feature p.lead-tight { font-size: 1.1rem; line-height: 1.78; color: var(--ink-2); }
.feature p + p { margin-top: 1.1rem; }
.tick-list { margin-top: 2rem; display: grid; gap: 1rem; }
.tick-list.cols { gap: 1rem 1.6rem; }
.tick-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.tick-list li::before { content:""; flex:none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d7120a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tick-list.cols { grid-template-columns: 1fr 1fr; }
@media (max-width: 820px){
  .feature { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: -1; }
  .tick-list.cols { grid-template-columns: 1fr; }
}

/* ---------- 11. GALLERY / REFERENZEN (column masonry — no grid gaps, natural ratios) ---------- */
.gallery { columns: 3; column-gap: clamp(0.9rem,0.5rem + 1.4vw,1.5rem); }
.gitem { position: relative; overflow: hidden; border-radius: 14px; break-inside: avoid; margin-bottom: clamp(0.9rem,0.5rem + 1.4vw,1.5rem); display: block; }
.gitem img { width: 100%; height: auto; display: block; transition: transform 1.1s var(--ease); }
.gitem:hover img { transform: scale(1.06); }
.gitem__cap { position: absolute; inset: auto 0 0 0; padding: 1.6rem 1.2rem 1.1rem; color:#fff; font-family: var(--display); font-size: 1.2rem; background: linear-gradient(to top, rgba(20,15,12,0.85), transparent 90%); transform: translateY(8px); opacity: 0; transition: transform var(--t) var(--ease), opacity var(--t); z-index: 2; }
.gitem::before { content:""; position:absolute; inset:0; background: var(--red); mix-blend-mode: multiply; opacity:0; transition: opacity var(--t); z-index: 1; pointer-events: none; }
.gitem:hover .gitem__cap { transform: translateY(0); opacity: 1; }
.gitem:hover::before { opacity: 0.12; }
@media (hover: none){ .gitem__cap { opacity: 1; transform: none; } }
@media (max-width: 900px){ .gallery { columns: 2; } }
@media (max-width: 520px){ .gallery { columns: 1; } }

/* ---------- 12. TIMELINE ---------- */
.timeline { position: relative; max-width: 920px; margin-inline: auto; }
.timeline::before { content:""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline::after { content:""; position: absolute; left: 0; top: 0; width: 2px; height: var(--tl-progress, 0%); background: var(--red); transition: height 0.1s linear; }
.tnode { position: relative; padding-left: 2.6rem; padding-bottom: clamp(2rem,1rem + 2vw,3.2rem); }
.tnode:last-child { padding-bottom: 0; }
.tnode::before { content:""; position: absolute; left: -7px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-strong); transition: background var(--t), border-color var(--t), transform var(--t); }
.tnode.is-in::before { background: var(--red); border-color: var(--red); transform: scale(1.1); }
.tnode__date { font-family: var(--body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.tnode h4 { margin: 0.4rem 0 0.5rem; font-size: 1.2rem; }
.tnode p { font-size: 0.96rem; max-width: 60ch; }

/* ---------- 13. CTA BAND ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; align-items: center; padding-block: clamp(3rem,2rem + 4vw,6rem); }
.cta-band h2 { font-size: clamp(2rem,1.4rem + 3vw,3.6rem); }
.cta-band .actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.cta-band__phone { font-family: var(--display); font-size: clamp(1.8rem,1.2rem + 2.5vw,3rem); color: #fff; line-height: 1; }
.cta-band__deco { position: absolute; font-family: var(--display); font-size: 40vw; line-height: 1; color: rgba(255,255,255,0.04); right: -4vw; bottom: -14vw; pointer-events: none; user-select: none; font-style: italic; }
@media (max-width: 820px){ .cta-band__inner { grid-template-columns: 1fr; } }

/* ---------- 14. TABLES (Pflegegrad) ---------- */
.table-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.table-card__head { padding: 1.1rem 1.4rem; background: var(--ink); color: #fff; display:flex; align-items:center; justify-content: space-between; gap:1rem; }
.table-card__head h4 { color:#fff; font-size: 1.15rem; }
.table-card__head .tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: 0.85rem 1.4rem; text-align: left; font-size: 0.96rem; }
.ptable thead th { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
.ptable tbody tr { border-bottom: 1px solid var(--line); transition: background var(--t-fast); }
.ptable tbody tr:last-child { border-bottom: none; }
.ptable tbody tr:hover { background: var(--paper-2); }
.ptable td:last-child, .ptable th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.ptable .grade { display:inline-flex; align-items:center; justify-content:center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--red-soft); color: var(--red-deep); font-weight: 700; font-size: 0.85rem; }
@media (max-width: 560px){ .ptable th, .ptable td { padding: 0.6rem 0.85rem; font-size: 0.88rem; } .table-card__head { padding: 0.9rem 1rem; } }

/* ---------- 15. FORM ---------- */
.form { display: grid; gap: 1.5rem; }
.field { position: relative; }
.field label { display:block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.field input, .field textarea {
  width: 100%; padding: 0.95em 1.1em; background: var(--white); border: 1px solid var(--line-strong);
  border-radius: 12px; transition: border-color var(--t-fast), box-shadow var(--t-fast); font-size: 1rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215,18,10,0.12); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form__status { font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form__status.ok { color: var(--green-deep); }
.form__status.err { color: var(--red); }
.consent { display:flex; gap: 0.7rem; align-items:flex-start; font-size: 0.86rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex: none; }
@media (max-width: 620px){ .form__row { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem,1rem + 3vw,4rem); align-items: start; }
.info-card { display: grid; gap: 1.6rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item__icon { width: 44px; height: 44px; flex:none; border-radius: 12px; background: var(--red-soft); color: var(--red); display:grid; place-items:center; }
.info-item__icon svg { width: 22px; height: 22px; }
.info-item h4 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.info-item p, .info-item a { font-size: 0.96rem; color: var(--ink-2); }
.info-item a:hover { color: var(--red); }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2) contrast(1.05); }
.map-consent { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 1.6rem; background: var(--paper-2); }
.map-consent__txt { max-width: 44ch; color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.map-consent__btn { cursor: pointer; }
.map-consent__note { font-size: 0.82rem; color: var(--muted); }
.map-consent__note a { text-decoration: underline; }
.map-consent__note a:hover { color: var(--red); }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }

/* ---------- 16. PAGE HERO (sub pages) ---------- */
.phero { position: relative; padding-top: clamp(3rem,2rem + 4vw,6rem); padding-bottom: clamp(2.5rem,1.5rem + 3vw,4.5rem); overflow: clip; }
.phero__crumb { font-size: 0.82rem; color: var(--muted); font-weight: 600; margin-bottom: 1.2rem; }
.phero__crumb a:hover { color: var(--red); }
.phero h1 { font-size: clamp(2.6rem,1.6rem + 5vw,6rem); max-width: 16ch; }
@media (max-width: 560px){ .phero h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 2.6rem); max-width: none; } }
.phero .lead { margin-top: 1.5rem; max-width: 60ch; }
.phero__media { margin-top: clamp(2rem,1rem + 3vw,3.5rem); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21/9; box-shadow: 0 50px 90px -55px rgba(28,23,20,0.7); }
.phero__media img { width:100%; height:100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.phero.is-in .phero__media img { transform: scale(1); }
@media (max-width: 700px){ .phero__media { aspect-ratio: 4/3; } }

/* prose pages (impressum / datenschutz) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem,1.2rem + 1.4vw,2.1rem); margin-top: 3.4rem; margin-bottom: 1.1rem; }
.prose h3 { font-size: 1.25rem; margin-top: 2.4rem; margin-bottom: 0.8rem; }
.prose p { margin-bottom: 1.3rem; line-height: 1.8; }
.prose p:first-child { margin-top: 0; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.prose ul { margin: 0 0 1rem 1.2rem; list-style: disc; }
.prose ul li { margin-bottom: 0.4rem; }

/* ---------- 17. FOOTER ---------- */
.footer { background: var(--ink); color: rgba(250,246,240,0.7); padding-top: clamp(4.5rem,3rem + 5vw,7rem); position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.14); }
.footer__giant { font-family: var(--display); font-size: clamp(3.5rem,8vw,11rem); line-height: 0.9; color: rgba(255,255,255,0.05); white-space: nowrap; position: absolute; bottom: 4.5rem; left: 0; pointer-events: none; user-select:none; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.5rem,1rem + 2vw,3rem); position: relative; z-index: 1; }
.footer h4 { color: #fff; font-family: var(--body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; margin-bottom: 1.2rem; }
.footer__brand .brand { display: flex; flex-direction: row; align-items: center; gap: 0.85rem; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__name small { color: rgba(255,255,255,0.5); }
.footer__brand .brand { margin-top: 0; margin-bottom: 1.15rem; }
.footer__brand .brand__mark { flex: none; }
.footer__brand .brand__name { font-size: 1.5rem; line-height: 1; }
.footer__addr { font-family: var(--display); font-style: normal; font-size: 1.3rem; line-height: 1.45; color: #fff; margin-top: 2rem; }
.footer__hours { color: rgba(250,246,240,0.7); font-size: 0.95rem; line-height: 1.6; margin-top: 1.1rem; }
.footer__hours strong { color: #fff; }
.footer__col a, .footer__col p { display: block; color: rgba(250,246,240,0.7); font-size: 0.95rem; margin-bottom: 0.85rem; transition: color var(--t-fast); }
.footer h4 { margin-bottom: 1.5rem; }
.footer__col a:hover { color: #ff6f63; }
.footer__social { display:flex; gap: 0.7rem; margin-top: 0.4rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.16); display:grid; place-items:center; margin: 0; transition: background var(--t), border-color var(--t), transform var(--t); }
.footer__social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display:flex; align-items:center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.12); margin-top: clamp(2.5rem,1.5rem + 3vw,4rem); padding-block: 1.6rem; position: relative; z-index: 1; font-size: 0.84rem; }
.footer__bottom a:hover { color: #fff; }
.footer__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 860px){ .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } .footer__giant { display: none; } }
@media (max-width: 480px){ .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Einzugsgebiet / Serpentinen-Route ---------- */
.route { position: relative; max-width: 740px; margin: 2.6rem auto 0; }
/* Desktop: Route bricht aus der Inhaltsspalte aus und reicht fast bis an die Seitenränder */
@media (min-width: 641px){
  .route { width: min(100vw, 2000px); max-width: none; margin-top: 3rem; margin-inline: 0; left: 50%; transform: translateX(-50%); }
}
.route__svg { display: block; width: 100%; height: auto; overflow: visible; }
.route__road { stroke: var(--line-strong); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 15; }
.route__road-case { stroke: #ffffff; stroke-width: 13; stroke-linecap: round; opacity: 0.8; }
.route__road-done { stroke: var(--red); stroke-width: 8; stroke-linecap: round; }
.route__car-shadow { fill: #1c1714; opacity: 0.15; }
.route__stops-layer { position: absolute; inset: 0; pointer-events: none; }
.route__stop { position: absolute; display: inline-flex; align-items: center; gap: 0.45em; }
.route__stop-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--line-strong); flex: none; transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.route__stop-label { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.26em 0.66em; font-family: var(--display); font-size: clamp(0.85rem, 0.75rem + 0.35vw, 1.05rem); line-height: 1.16; color: var(--ink); max-width: min(22vw, 200px); overflow-wrap: anywhere; box-shadow: 0 5px 16px -9px rgba(28,23,20,0.35); transition: color var(--t-fast); }
.route__stop--left { transform: translate(-100%, -50%); flex-direction: row-reverse; }
.route__stop--right { transform: translate(0, -50%); }
.route__stop.is-active .route__stop-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px var(--red-soft); animation: dotPop 0.55s ease-out; }
.route__stop.is-active .route__stop-label { color: var(--red); }
.route__car { transition: transform 0.1s linear; will-change: transform; }
.route__map-bg { fill: var(--paper-2); stroke: var(--line-strong); stroke-width: 2; }
.route__map-grid { stroke: var(--line); stroke-width: 1; opacity: 0.5; }
.route__map-blob { fill: var(--paper-3); opacity: 0.5; }
.route__map-road { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 4 8; opacity: 0.55; }
.route__map-block { fill: var(--paper-3); opacity: 0.7; }
.route__map-field { fill: var(--green); opacity: 0.06; }
.route__map-contour { fill: none; stroke: var(--line-strong); stroke-width: 1; opacity: 0.3; }
.route__map-water { fill: none; stroke: var(--blue); stroke-width: 6; opacity: 0.16; stroke-linecap: round; stroke-dasharray: 34 12; animation: routeFlow 3.5s linear infinite; }
.route__map-forest { fill: var(--green); opacity: 0.16; }
.route__map-mountain { fill: var(--muted); opacity: 0.14; }
.route__map-mountain--back { opacity: 0.08; }
.route__map-snow { fill: #ffffff; opacity: 0.5; }
.route__map-compass { fill: none; stroke: var(--muted); stroke-width: 1.5; opacity: 0.45; }
.route__map-compass-n { fill: var(--red); opacity: 0.5; }
.route__map-cloud { fill: #ffffff; opacity: 0.5; animation: cloudDrift var(--dur, 52s) linear infinite; animation-delay: var(--delay, 0s); will-change: transform; }
.route__map-bird { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: 0.4; animation: birdDrift var(--dur, 30s) linear infinite; animation-delay: var(--delay, 0s); will-change: transform; }
@keyframes routeFlow { to { stroke-dashoffset: -46; } }
@keyframes cloudDrift { from { transform: translateX(-190px); } to { transform: translateX(960px); } }
@keyframes birdDrift { from { transform: translateX(-90px); } to { transform: translateX(920px); } }
@keyframes dotPop { 0% { transform: scale(0.5); } 55% { transform: scale(1.3); } 100% { transform: scale(1); } }
.route__car-bob { animation: carBob 1.2s ease-in-out infinite; will-change: transform; }
.route__dust { fill: var(--muted); opacity: 0; transform-box: fill-box; transform-origin: center; animation: dust 1.1s ease-out infinite; animation-delay: var(--d, 0s); }
.route__sun { animation: sunDrift 64s ease-in-out infinite alternate; will-change: transform; }
.route__glow-core { fill: var(--red); opacity: 0.5; }
.route__glow-ring { fill: none; stroke: var(--red); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: cityGlow 2.8s ease-out infinite; animation-delay: var(--gd, 0s); }
@keyframes carBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4px); } }
@keyframes dust { 0% { opacity: 0.35; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes cityGlow { 0% { opacity: 0.5; transform: scale(0.5); } 100% { opacity: 0; transform: scale(3.4); } }
@keyframes sunDrift { from { transform: translate(140px, 130px); } to { transform: translate(620px, 520px); } }
.area-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; margin-top: 2.8rem; padding: 1.7rem 1.9rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.area-note p { font-family: var(--display); font-size: 1.2rem; line-height: 1.4; color: var(--ink); max-width: 40ch; }
.area-note .btn { flex: none; }
/* Frei hinzufügbare Elemente (über den Editor) */
.eb-zone { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; }
.eb-zone h3 { font-size: var(--fs-h4); }
.eb-zone p { max-width: 60ch; color: var(--ink-2); line-height: 1.7; }
.eb-zone blockquote { font-family: var(--display); font-size: 1.35rem; font-style: italic; color: var(--ink); border-left: 3px solid var(--red); padding-left: 1.1rem; max-width: 58ch; text-align: left; }
.eb-zone hr { border: 0; border-top: 1px solid var(--line); width: 64px; margin: 0.4rem auto; }
.eb-zone ul { text-align: left; max-width: 56ch; margin: 0; padding-left: 1.25rem; display: grid; gap: 0.45rem; }
.eb-zone ul li { list-style: disc; color: var(--ink-2); line-height: 1.6; }
.eb-zone img { max-width: min(100%, 660px); height: auto; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -42px rgba(28,23,20,0.55); }
.eb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 0.6rem + 2vw, 2.8rem); text-align: left; width: 100%; max-width: var(--wrap); }
.eb-cols > div { min-width: 0; }
.eb-cols p { max-width: none; margin: 0; }
/* optionales Bild je Spalte */
.eb-cols .eb-col-img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); margin: 0 0 0.8rem; box-shadow: 0 24px 50px -38px rgba(28,23,20,0.55); }
.eb-cols > div:has(.eb-col-img) p { margin-top: 0; }
@media (max-width: 640px) { .eb-cols { grid-template-columns: 1fr; } }
.eb-faq { width: 100%; max-width: 60ch; text-align: left; display: grid; gap: 0.6rem; }
.eb-faq__item { border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); overflow: hidden; }
.eb-faq__item summary { cursor: pointer; font-family: var(--display); font-size: 1.1rem; padding: 0.85rem 1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.eb-faq__item summary::-webkit-details-marker { display: none; }
.eb-faq__item summary::after { content: "+"; color: var(--red); font-weight: 700; }
.eb-faq__item[open] summary { color: var(--red); }
.eb-faq__item[open] summary::after { content: "–"; }
.eb-faq__item > div { padding: 0 1rem 0.9rem; color: var(--ink-2); line-height: 1.65; }
/* Ausrichtung einzelner Elemente (links / mitte / rechts), im Admin wählbar */
.eb-zone > .eb-al-left { align-self: flex-start; text-align: left; }
.eb-zone > .eb-al-right { align-self: flex-end; text-align: right; }
.eb-zone > .eb-al-center { align-self: center; text-align: center; }
/* Breite (schmal/normal/breit/voll) – „normal" nutzt die Eigenbreite des Elements */
.eb-zone > .eb-w-narrow { max-width: 340px; }
.eb-zone > .eb-w-wide { max-width: 820px; }
.eb-zone > .eb-w-full { max-width: 100%; width: 100%; }
/* Abstand pro Element (normal = Basis-Abstand der Zone) */
.eb-zone > .eb-sp-small { margin-block: -0.45rem; }
.eb-zone > .eb-sp-large { margin-block: 1.1rem; }
/* Textgröße pro Element (m = Basisgröße) */
.eb-zone > .eb-fs-s { font-size: 0.85em; }
.eb-zone > .eb-fs-l { font-size: 1.3em; }
.eb-zone > .eb-fs-xl { font-size: 1.65em; }
/* Karten-Zone im Leistungs-Grid: Wrapper unsichtbar, damit eigene .scard direkt ins Grid fließen */
.eb-cardzone { display: contents; }
/* Footer-Link-Zone: Wrapper unsichtbar, damit eigene Links wie die Standard-Links in der Spalte liegen */
.eb-footadd { display: contents; }
.eb-wrap:has(.eb-zone:not(:empty)) { padding-block: clamp(2rem, 1rem + 3vw, 4.5rem); }
@media (prefers-reduced-motion: reduce){
  .route__road-done { display: none; }
  .route__car { display: none; }
  .route__stop-dot { background: var(--red); border-color: var(--red); }
  .route__stop-label { color: var(--red); }
  .route__map-water { animation: none; }
  .route__map-cloud, .route__map-bird { display: none; }
  .route__stop.is-active .route__stop-dot { animation: none; }
  .route__sun { animation: none; }
  .route__glow-ring { animation: none; }
}
@media (max-width: 640px){
  .route { max-width: 460px; }
  .route__stop { gap: 0.3em; }
  .route__stop-label { max-width: min(45vw, 150px); font-size: 0.74rem; padding: 0.2em 0.5em; line-height: 1.12; overflow-wrap: anywhere; }
  /* Ortsnamen nach INNEN (zur Bildmitte) klappen -> ragen nie über den Bildrand hinaus */
  .route__stop--left  { flex-direction: row;         transform: translate(0, -50%); }
  .route__stop--right { flex-direction: row-reverse; transform: translate(-100%, -50%); }
  /* Flüssiges Scrollen: teuren Dauer-Repaint (Fluss-Animation) auf Mobil abschalten */
  .route__map-water { animation: none; }
  /* Mobil: alle Hintergrund-Animationen ruhen -> nur das Auto bewegt sich (keine Dauer-Repaints) */
  .route__map-cloud, .route__map-bird, .route__car-bob { animation: none; }
  .route__sun, .route__glow-ring, .route__dust { display: none; }
  .route__stop.is-active .route__stop-dot { animation: none; }
}

/* ---------- 18. COOKIE ---------- */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150; max-width: 440px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.4rem; box-shadow: 0 30px 70px -30px rgba(28,23,20,0.5); transform: translateY(160%); transition: transform 0.6s var(--ease); }
.cookie.is-in { transform: translateY(0); }
.cookie p { font-size: 0.88rem; color: var(--ink-2); margin-bottom: 1rem; }
.cookie__row { display: flex; gap: 0.6rem; }
.cookie .btn { padding: 0.7em 1.3em; font-size: 0.85rem; }
.cookie__settings { display: inline-block; margin-top: 0.85rem; background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
.cookie__settings:hover { color: var(--ink); }

/* Cookie-Einstellungen: Dialog */
.dvcov { position: fixed; inset: 0; z-index: 300; background: rgba(28,23,20,0.55); display: grid; place-items: center; padding: 1.2rem; animation: dvcFade 0.2s var(--ease); }
@keyframes dvcFade { from { opacity: 0; } to { opacity: 1; } }
.dvc { background: var(--white); border: 1px solid var(--line); border-radius: 16px; max-width: 470px; width: 100%; padding: clamp(1.4rem, 1rem + 1.5vw, 2rem); box-shadow: 0 40px 90px -40px rgba(28,23,20,0.6); max-height: 90vh; overflow: auto; }
.dvc h3 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; margin-bottom: 0.6rem; }
.dvc__lead { font-size: 0.9rem; color: var(--ink-2); line-height: 1.55; margin-bottom: 1rem; }
.dvc__opt { display: flex; gap: 0.9rem; align-items: flex-start; justify-content: space-between; padding: 0.95rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.dvc__opt:last-of-type { border-bottom: 1px solid var(--line); }
.dvc__t { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.92rem; }
.dvc__d { color: var(--muted); font-size: 0.82rem; font-weight: 400; line-height: 1.45; }
.dvc__opt input { flex: none; width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--red); cursor: pointer; }
.dvc__opt input:disabled { cursor: not-allowed; opacity: 0.55; }
.dvc__row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; justify-content: flex-end; }
.dvc .btn { padding: 0.7em 1.3em; font-size: 0.85rem; }

/* Footer-Link zum erneuten Oeffnen der Einstellungen */
.footer__cookiebtn { display: block; background: none; border: 0; padding: 0; margin: 0 0 0.85rem; color: rgba(250,246,240,0.7); font: inherit; font-size: 0.95rem; text-align: left; cursor: pointer; transition: color var(--t-fast); }
.footer__cookiebtn:hover { color: #ff6f63; }

/* ---------- 19. REVEAL MOTION ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal="left"]:not(.is-in) { transform: translateX(-40px); }
[data-reveal="right"]:not(.is-in) { transform: translateX(40px); }
[data-reveal="scale"]:not(.is-in) { transform: scale(0.94); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-stagger].is-in > * { opacity: 1; transform: none; }
[data-stagger].is-in > *:nth-child(1){ transition-delay: 0.05s; }
[data-stagger].is-in > *:nth-child(2){ transition-delay: 0.12s; }
[data-stagger].is-in > *:nth-child(3){ transition-delay: 0.19s; }
[data-stagger].is-in > *:nth-child(4){ transition-delay: 0.26s; }
[data-stagger].is-in > *:nth-child(5){ transition-delay: 0.33s; }
[data-stagger].is-in > *:nth-child(6){ transition-delay: 0.40s; }

/* split-text word reveal for headings */
.reveal-words .word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.22em 0.06em; margin: -0.22em -0.06em; }
.reveal-words .word > span { display: inline-block; transform: translateY(120%); transition: transform 0.8s var(--ease); }
.reveal-words.is-in .word > span { transform: translateY(0); }

/* DV monogram draw */
.dv-draw path { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.dv-draw.is-in path { animation: dvDraw 1.8s var(--ease) forwards; }
.dv-draw.is-in path:nth-child(3){ animation-delay: 0.25s; }
@keyframes dvDraw { to { stroke-dashoffset: 0; } }

/* scroll progress bar */
.scroll-prog { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--red); z-index: 300; }

/* ---------- 20. RESPONSIVE GENERAL ---------- */
@media (max-width: 600px){
  .section__head { grid-template-columns: 1fr; }
  .hero__badge { left: 0; bottom: -20px; padding: 0.85rem 1rem; }
  .hero__badge .num { font-size: 2rem; }
  .hero__spin { width: 92px; height: 92px; top: -22px; }
}

/* ---------- 22. BOOKING (Terminbuchung) ---------- */
.booking-grid { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: clamp(1.5rem,1rem + 3vw,3.5rem); align-items: start; }
.booking-grid > * { min-width: 0; }
.bstep + .bstep { margin-top: clamp(3rem,2rem + 2.5vw,4.5rem); }
.bstep__head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.7rem; }
.bstep__num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--display); font-size: 1.1rem; display: grid; place-items: center; }
.bstep__head h3 { font-size: var(--fs-h4); }
.bstep__hint { font-size: 0.86rem; color: var(--muted); margin-top: 0.1rem; }

/* selectable chips (services) */
.chip-group { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.7em 1.2em; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); font-weight: 600; font-size: 0.92rem; color: var(--ink-2); transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.chip[data-accent="green"] .dot { background: var(--green); }
.chip[data-accent="blue"] .dot { background: var(--blue); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.chip.is-active .dot { background: #fff; }

/* calendar */
.calendar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1rem,0.6rem + 1vw,1.6rem); max-width: 460px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal__title { font-family: var(--display); font-size: 1.2rem; }
.cal__nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), opacity var(--t-fast); }
.cal__nav:hover { background: var(--red); border-color: var(--red); color: #fff; }
.cal__nav[disabled] { opacity: 0.3; pointer-events: none; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__wd { text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-bottom: 0.5rem; }
.cal__day { aspect-ratio: 1; border-radius: 10px; font-weight: 600; font-size: 0.92rem; color: var(--ink); display: grid; place-items: center; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); position: relative; }
.cal__day:hover:not([disabled]) { background: var(--paper-2); transform: scale(1.05); }
.cal__day[disabled] { color: var(--line-strong); pointer-events: none; }
.cal__day.is-empty { pointer-events: none; }
.cal__day.is-today:not(.is-selected)::after { content:""; position:absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.cal__day.is-selected { background: var(--red); color: #fff; }

/* time slots */
.slot-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.8rem; max-width: 520px; }
.slot { padding: 0.75em 0.5em; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--white); font-weight: 600; font-size: 0.92rem; font-variant-numeric: tabular-nums; transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.slot:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.slot.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.slot:disabled, .slot.is-taken { opacity: 0.45; text-decoration: line-through; cursor: not-allowed; background: var(--paper-2); color: var(--muted); border-color: var(--line); }
.slot:disabled:hover, .slot.is-taken:hover { transform: none; border-color: var(--line); color: var(--muted); }

/* summary card (sticky) */
.booking__summary { position: sticky; top: 100px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.7rem,1.2rem + 1.4vw,2.3rem); box-shadow: 0 30px 70px -45px rgba(28,23,20,0.3); }
.booking__summary h3 { color: var(--ink); font-size: 1.3rem; margin: 0; padding-bottom: 1rem; border-bottom: 2px solid var(--red); }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.summary-row:last-of-type { border-bottom: none; }
.summary-row .lbl { color: var(--muted); font-weight: 600; }
.summary-row .val { font-weight: 700; color: var(--ink); text-align: right; }
.summary-row .val.empty { color: var(--muted); font-weight: 400; font-style: italic; }
.booking__summary .btn { width: 100%; justify-content: center; margin-top: 1.5rem; }
.booking__note { font-size: 0.85rem; color: var(--muted); margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); line-height: 1.65; }
.booking__summary .form__status { margin-top: 1rem; }
.booking__summary .form__status.ok { color: var(--green-deep); }
.booking__summary .form__status.err { color: var(--red); }
.booking__call { display: inline-flex; align-items: center; gap: 0.4em; color: var(--red); font-weight: 700; }
.booking__call:hover { color: var(--red-deep); }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem,0.5rem + 1.5vw,2rem); }
.how-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem,1rem + 1.5vw,2rem); }
.how-step__num { font-family: var(--display); font-size: 2.6rem; color: var(--red); line-height: 1; }
.how-step h4 { margin: 0.7rem 0 0.5rem; }
.how-step p { font-size: 0.95rem; }

@media (max-width: 900px){
  .booking-grid { grid-template-columns: 1fr; }
  .booking__summary { position: static; }
}
@media (max-width: 760px){ .how-grid { grid-template-columns: 1fr; } }

/* ---------- 21. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce){
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-stagger] > *, .reveal-words .word > span, .hero__title .line > span { opacity: 1 !important; transform: none !important; }
  .hero__media-frame img, .phero__media img { transform: none !important; }
}
