/* ==========================================================================
   RAMKA Gebäudereinigung & Service – style.css
   Design-System nach SPEC 4 / Blueprint 4.3 · mobile-first · ohne Bibliotheken
   Ruhig, klar, technisch-präzise: Messraster, Maßlinien, Navy-Versatzschatten.
   Nach jeder Änderung baut build.py neu und bump-assets.sh setzt ?v=… neu.
   ========================================================================== */

/* ---------- Schriften (lokal, variabel) ---------- */
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("/assets/fonts/sora-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: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("/assets/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url("/assets/fonts/dmsans-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: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url("/assets/fonts/dmsans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens (SPEC 4) ---------- */
:root {
  --brand: #0058FF; --brand-600: #0047D1; --brand-50: #EEF4FF;   /* Markenblau = nur Akzent */
  --ink: #081221;                                                   /* Navy aus dem Logo */
  --text: #3B4250; --muted: #6B7280; --line: #E6E6E6; --surface: #F3F4F6; --bg: #FFFFFF;
  --accent-soft: #F1AEF9;                                           /* höchstens winziges Detail */
  --font-head: "Sora", system-ui, sans-serif; --font-body: "DM Sans", system-ui, sans-serif;
  --fs-h1: clamp(2.3rem, 5vw, 4.1rem); --fs-h2: clamp(1.9rem, 3.7vw, 3.1rem); --fs-lead: clamp(1.08rem, 1.45vw, 1.28rem);
  --r: 18px; --container: 1240px;

  /* abgeleitete Werte */
  --brand-on-dark: #7AA5FF;            /* Blau auf Navy (Kontrast AA) */
  --err: #B42318;
  --paper: #FBFCFE;                    /* Grund des Messrasters */
  --grid-fine: rgba(30, 72, 140, .055);
  --grid-bold: rgba(30, 72, 140, .105);
  --field: #7C8494;                   /* Feldrahmen 3,8:1 auf Weiß (WCAG 1.4.11) */
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --gutter: 20px;
  --sec-y: clamp(64px, 8.5vw, 120px);
  --hdr: 72px;
  --sec-bg: #fff;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --hdr: 104px; } }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
/* Unter 1024 px liegt unten die Schnellkontakt-Leiste: fokussierte Elemente nicht darunter scrollen */
@media (max-width: 1023px) { html { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand-600); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-head); color: var(--ink); letter-spacing: -.035em; margin: 0 0 .5em;
  -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; text-wrap: balance;
  hyphenate-limit-chars: 10 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4;
}
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.04; }
/* Desktop: H1 nicht mitten im Wort trennen (Spalten sind breit genug; sehr lange Wörter → .phero--long) */
@media (min-width: 1024px) { h1 { -webkit-hyphens: manual; hyphens: manual; } }
/* h2–h4: build.py setzt weiche Trennstellen an Wortfugen („Unterhalts|reinigung“) – mobil nur dort trennen,
   statt „Unterhaltsreini-gung“; ab 1024 px sind die Spalten breit genug (geprüft), dort gar nicht trennen.
   overflow-wrap bleibt Notbremse für sehr lange Einzelwörter */
h2, h3, h4 { -webkit-hyphens: manual; hyphens: manual; }
@media (min-width: 1024px) { h2, h3, h4 { -webkit-hyphens: none; hyphens: none; } }
h2 { font-size: var(--fs-h2); font-weight: 650; line-height: 1.08; }
h3 { font-size: clamp(1.15rem, 1.45vw, 1.3rem); font-weight: 600; line-height: 1.28; letter-spacing: -.02em; }
h4 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
strong { font-weight: 600; color: var(--ink); }
address { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--brand-50); color: var(--ink); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ico { width: 20px; height: 20px; flex: none; }
.ico, .tile-ico, .point-ico, .nav-sub-ico, .choice-ico, .zg-ico, .icon-panel-ico, .check-ico, .quote-mark, .map-pin { fill: currentColor; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -120px; z-index: 300; padding: 12px 18px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Typo-Hierarchie: Label → H2 → Lead → Text ---------- */
.label {
  font-family: var(--font-body); font-size: .78rem; line-height: 1.3; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 1.1rem;
}
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .72rem 1.3rem; border: 1.5px solid var(--ink); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer; background: #fff; color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn-primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 0 0 var(--ink); transform: translate(3px, 3px); }
.btn-primary .ico { transition: transform .16s ease; }
.btn-primary:hover .ico { transform: translateX(2px); }
.btn-secondary { background: #fff; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink); padding-inline: .5rem; }
.btn-ghost .ico { color: var(--brand); }
.btn-ghost:hover { color: var(--brand); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 3px 3px 0 var(--brand); }
.btn-light:hover { color: var(--ink); box-shadow: 0 0 0 var(--brand); transform: translate(3px, 3px); }
.btn-sm { min-height: 44px; padding: .55rem 1rem; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.btn[aria-busy="true"] { opacity: .72; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--brand); text-decoration: none; }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 28px -22px rgba(8, 18, 33, .45); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.brand { display: block; flex: none; margin-right: auto; border-radius: 8px; }
.brand img { height: 44px; width: auto; }
.main-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-tel { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-tel .ico { color: var(--brand); }
.header-tel:hover { color: var(--brand); }
.header-cta { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: 12px; color: var(--ink); background: #fff; }
.nav-toggle .ico { width: 24px; height: 24px; }
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline-flex; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .header-inner { min-height: 104px; gap: 20px; }
  .brand img { height: 68px; }
  .main-nav { display: block; }
  .nav-toggle { display: none; }
}
@media (min-width: 1240px) { .header-tel { display: inline-flex; } }

.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--brand); }
.nav-link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; background: var(--brand); }
.has-sub .nav-link { padding-right: 4px; }
.has-sub .nav-link.is-active::after { right: 4px; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; }
.sub-toggle .ico { width: 16px; height: 16px; transition: transform .2s ease; }
.has-sub.is-open .sub-toggle .ico { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: calc(100% + 12px); left: -14px; width: 540px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 28px 56px -28px rgba(8, 18, 33, .35);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub, .has-sub.is-open .nav-sub {
  opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .16s ease, visibility 0s;
}
.has-sub.is-closed .nav-sub { opacity: 0; visibility: hidden; }
.nav-sub-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-sub-link { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-weight: 500; text-decoration: none; }
.nav-sub-link:hover { background: var(--brand-50); color: var(--ink); }
.nav-sub-ico { width: 30px; height: 30px; color: var(--brand); flex: none; }
.nav-sub-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 0; padding: 14px 12px 4px; border-top: 1px solid var(--line); font-weight: 600; color: var(--brand); text-decoration: none; }
.nav-sub-all .ico { width: 18px; height: 18px; }

/* Mobiles Menü */
.mobile-nav { position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; z-index: 99; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-top: 1px solid var(--line); padding: 8px 0 calc(32px + env(safe-area-inset-bottom)); }
.mnav-list { list-style: none; margin: 0; padding: 0; }
.mnav-list > li > a { display: flex; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.mnav-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; list-style: none; margin: 4px 0 8px; padding: 0; }
.mnav-sub a { display: flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-size: .98rem; }
.mnav-actions { display: grid; gap: 10px; margin-top: 24px; }
.mnav-nap { margin: 20px 0 0; font-size: .88rem; color: var(--muted); }
html.nav-open { overflow: hidden; }
@media (min-width: 1100px) { .mobile-nav { display: none !important; } }

/* ---------- Messraster (Hero, Seitenkopf, CTA) ---------- */
.grid-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.grid-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(to right, var(--grid-bold) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-bold) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-fine) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-fine) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, .25) 100%);
  mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, .25) 100%);
}
.grid-flow {
  position: absolute; inset: -25%; z-index: 0;
  background:
    radial-gradient(38% 42% at 72% 34%, rgba(0, 88, 255, .085), transparent 72%),
    radial-gradient(30% 36% at 18% 78%, rgba(0, 88, 255, .05), transparent 72%),
    radial-gradient(26% 30% at 46% 12%, rgba(120, 160, 255, .06), transparent 72%);
  animation: grid-flow 34s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes grid-flow {
  0% { transform: translate3d(-4%, -2%, 0) scale(1); }
  50% { transform: translate3d(3%, 2.5%, 0) scale(1.06); }
  100% { transform: translate3d(-1.5%, 4%, 0) scale(1.02); }
}
.is-offscreen .grid-flow { animation-play-state: paused; }
.grid-glow {
  position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity .5s ease;
  background-image:
    linear-gradient(to right, rgba(0, 88, 255, .5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 88, 255, .5) 1px, transparent 1px),
    linear-gradient(rgba(0, 88, 255, .035), rgba(0, 88, 255, .035));
  background-size: 40px 40px, 40px 40px, auto;
  -webkit-mask-image: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, .45) 45%, transparent 72%);
  mask-image: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, .45) 45%, transparent 72%);
}
.grid-cell {
  position: absolute; left: 0; top: 0; z-index: 3; width: 41px; height: 41px; opacity: 0;
  background: rgba(0, 88, 255, .1); box-shadow: inset 0 0 0 1px rgba(0, 88, 255, .6);
  transform: translate3d(var(--cx, 0), var(--cy, 0), 0);
  transition: transform .22s cubic-bezier(.2, .7, .2, 1), opacity .35s ease;
}
.is-glowing .grid-glow { opacity: 1; }
.is-glowing .grid-cell { opacity: 1; }

.measure { position: relative; display: block; flex: 1 1 auto; min-width: 32px; height: 9px; border-inline: 1px solid currentColor; }
.measure::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 1px solid currentColor; }

/* ---------- Hero (Start) ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 32px; padding-block: 36px 20px; }
.hero h1 { margin-bottom: .42em; }
.h1-soft { display: block; margin-top: .28em; color: #4F5A6E; font-size: .56em; font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.hero .lead { margin-bottom: 0; }
.hero .actions { margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 26px 0 0; padding: 0; color: var(--ink); font-size: .95rem; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { width: 18px; height: 18px; color: var(--brand); }
.hero-media { position: relative; margin: 0 calc(-1 * var(--gutter)); }
.hero-img { width: 100%; }
@media (min-width: 640px) and (max-width: 1023px) { .hero-media { max-width: 620px; margin: 0 auto; } }
.hero-meta { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding-bottom: 26px; color: #6B7280; font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; }
.hero-meta .coords { white-space: nowrap; }
.hero-meta .coords:last-child { display: none; }
@media (min-width: 640px) { .hero-meta .coords:last-child { display: inline; } }
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-block: 76px 40px; }
  .hero-media { margin: 0; }
  .hero-media::before {
    content: ""; position: absolute; inset: -14px; pointer-events: none; opacity: .55;
    background:
      linear-gradient(var(--ink), var(--ink)) left top / 16px 1px no-repeat,
      linear-gradient(var(--ink), var(--ink)) left top / 1px 16px no-repeat,
      linear-gradient(var(--ink), var(--ink)) right top / 16px 1px no-repeat,
      linear-gradient(var(--ink), var(--ink)) right top / 1px 16px no-repeat,
      linear-gradient(var(--ink), var(--ink)) left bottom / 16px 1px no-repeat,
      linear-gradient(var(--ink), var(--ink)) left bottom / 1px 16px no-repeat,
      linear-gradient(var(--ink), var(--ink)) right bottom / 16px 1px no-repeat,
      linear-gradient(var(--ink), var(--ink)) right bottom / 1px 16px no-repeat;
  }
  .hero-meta { padding-bottom: 34px; }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */
.phero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.phero-inner { position: relative; z-index: 1; padding-block: 8px clamp(44px, 6vw, 84px); }
.phero-grid { display: grid; gap: 36px; margin-top: clamp(20px, 3.5vw, 44px); }
.phero h1 { max-width: 24ch; font-size: min(var(--fs-h1), 7.6vw); }
.phero .lead { margin-bottom: 0; }
.phero--compact .phero-inner { padding-bottom: clamp(36px, 4vw, 56px); }
.phero--article h1 { max-width: 24ch; }
.phero-figure { margin: 0; display: flex; justify-content: center; }
.phero-figure img { max-height: 340px; width: auto; }
@media (min-width: 1024px) {
  .phero--media .phero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
  .phero-figure img { max-height: 420px; }
  .phero--plan .phero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .phero--long h1 { font-size: min(var(--fs-h1), 3.55rem, 4.4vw); }
}

/* Brotkrumen */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; font-size: .86rem; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: #B6BDC8; }
.breadcrumbs a { display: inline-block; padding: 12px 0; color: var(--text); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs [aria-current] { display: inline-block; max-width: 38ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }

/* Schnellwahl (Chips, eckig – keine Pillen) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none; transition: border-color .15s ease; }
.chip .ico { width: 24px; height: 24px; color: var(--brand); }
.chip:hover { border-color: var(--ink); color: var(--ink); }

/* Datenblatt (Orte) */
.datacard { position: relative; max-width: 460px; padding: 24px 24px 20px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: 6px 6px 0 var(--brand-50); }
.datacard-title { margin: 0 0 10px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.datacard dl { margin: 0; }
.datacard-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px dashed #D3D8E0; }
.datacard dt { color: var(--muted); font-size: .88rem; }
.datacard dd { margin: 0; color: var(--ink); font-weight: 500; font-size: .92rem; text-align: right; }
.datacard .measure { margin-top: 12px; color: var(--brand); }
@media (min-width: 1024px) { .phero-media .datacard { margin-left: auto; } }

/* Signet-Fläche (Platzhalter für Portrait) + Icon-Fläche */
.signet-panel, .icon-panel { position: relative; margin: 0; overflow: hidden; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.signet-panel { aspect-ratio: 5 / 4; }
.icon-panel { aspect-ratio: 1 / 1; width: 100%; max-width: 360px; margin-inline: auto; }
.signet-grid, .map-grid, .plan-wrap::before {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-bold) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-bold) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-fine) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-fine) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}
.signet-img { position: relative; width: 30%; }
.portrait { position: relative; margin: 0; }
.portrait img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r); }
.portrait figcaption { position: absolute; left: 16px; bottom: 16px; padding: 10px 14px; background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); color: var(--ink); font-size: .9rem; line-height: 1.3; }
.portrait figcaption strong { display: block; }
.signet-note { position: absolute; left: 18px; top: 14px; color: #6B7280; font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; }
.signet-cap { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; align-items: center; gap: 12px; color: #6B7280; font-size: .72rem; }
.signet-cap::after { content: ""; flex: 1; height: 9px; border-inline: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }
.icon-panel-ico { position: relative; width: 42%; height: auto; aspect-ratio: 1; color: var(--brand); }

/* ---------- Abschnitte ---------- */
.sec { padding-block: var(--sec-y); }
.sec--white { background: #fff; --sec-bg: #fff; }
.sec--grey { background: var(--surface); --sec-bg: var(--surface); }
.sec--dark { background: var(--ink); color: rgba(255, 255, 255, .76); --sec-bg: var(--ink); }
.sec--dark h2, .sec--dark h3, .sec--dark h4, .sec--dark strong { color: #fff; }
.sec--dark .label { color: var(--brand-on-dark); }
.sec--dark .lead { color: rgba(255, 255, 255, .8); }
.sec--dark a:not(.btn) { color: #fff; }
.sec--dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
.sec--tight { padding-block: clamp(40px, 5vw, 64px); }
/* etwas dunkleres Grau für kleine Metatexte auf grauem Grund (Kontrast AA) */
.sec--grey, .quote:not(.quote--feature), .contact-card, .aside-card--list, .opt-item { --muted: #5B6270; }
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2 { margin-bottom: .38em; }
.sec-head .lead { margin: 0; }
.sec-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; }
.sec-head--split .sec-head-text { max-width: 780px; }
.sec-actions { margin-top: 44px; }
.more-link { margin: 24px 0 0; }

/* Split-Layouts */
.split { display: grid; gap: 40px; }
.split > * { min-width: 0; }
.split .sec-head { margin-bottom: 24px; }
.prose > .sec-head { margin-bottom: 24px; }
.layout-aside > .prose > .sec-head + p { font-size: 1.13rem; line-height: 1.6; color: var(--ink); }
@media (min-width: 1024px) {
  .split--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
  .split--about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: center; }
  .split--places { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
  .split--faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .split--faq .sec-head h2 { font-size: clamp(1.9rem, 2.7vw, 2.4rem); }
  .split--cost { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; align-items: start; }
  .split--links { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; align-items: start; }
  .split--map { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
  .split--cost .split-side { padding-top: 6px; }
}
.side-title { margin-bottom: 10px; }
.light-panel { margin: 0; padding: clamp(18px, 3vw, 36px); background: #F4F5F9; border-radius: var(--r); }
.qm-img { width: 100%; }

/* Fließtext */
.prose { max-width: 68ch; }
.prose--wide { max-width: 78ch; }
.prose p { margin: 0 0 1.15em; }
main p, main li { overflow-wrap: break-word; }
@media (max-width: 399px) { .prose p, .prose li { -webkit-hyphens: auto; hyphens: auto; } }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 1.5em 0 .55em; }
.prose h2:first-child, .prose .label + h2 { margin-top: 0; }
.prose h3 { margin: 1.4em 0 .5em; }
.prose ul { list-style: none; margin: 0 0 1.2em; padding: 0; }
.prose ul li { position: relative; margin: .45em 0; padding-left: 24px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 11px; height: 1.5px; background: var(--brand); }
.prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Inhalt + Seitenkarte */
.layout-aside { display: grid; gap: 40px; }
.layout-aside > * { min-width: 0; }
.layout-aside > .prose > p:first-child { font-size: 1.13rem; line-height: 1.6; color: var(--ink); }
@media (min-width: 1024px) {
  .layout-aside { grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; align-items: start; }
  .layout-aside > .aside-card { position: sticky; top: calc(var(--hdr) + 28px); }
}
.aside-card { padding: 26px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: 6px 6px 0 var(--brand-50); }
.aside-card p { font-size: .96rem; }
.aside-kicker { margin: 0 0 6px !important; font-size: .75rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.aside-title { margin: 0 0 .45em; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; color: var(--ink); }
.aside-role { margin: -.3em 0 .9em; color: var(--muted); }
.aside-contact { display: grid; gap: 2px; list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.aside-contact a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.aside-contact a:hover { color: var(--brand); }
.aside-contact .ico { color: var(--brand); }
.aside-card--list { border: 1px solid var(--line); box-shadow: none; background: var(--surface); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tag-list li { padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .9rem; }

/* ---------- Versprechen (4 Punkte) ---------- */
.points { display: grid; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.point { padding: 26px 0 30px; border-top: 1px solid var(--ink); }
.point-ico { width: 46px; height: 46px; margin-bottom: 22px; color: var(--brand); }
.point-title { margin-bottom: .45em; font-size: 1.16rem; }
.point p { margin: 0; font-size: .98rem; }
@media (min-width: 720px) { .points { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1100px) { .points { grid-template-columns: repeat(4, 1fr); column-gap: 36px; } }

/* ---------- Kacheln ---------- */
.tiles { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles--1 { grid-template-columns: 1fr; } }
@media (min-width: 1024px) {
  .tiles--3, .tiles--feature { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles--feature .tile--feature { grid-column: span 2; grid-row: span 2; }
}
/* vier Spalten erst, wenn Titel wie „Treppenhausreinigung“ ungetrennt hineinpassen */
@media (min-width: 1200px) { .tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 26px 26px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.sec--white .tile { background: #fff; }
.tile:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.tile:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.tile-ico { width: 46px; height: 46px; margin-bottom: 22px; color: var(--brand); }
.tile-kicker { margin: 0 0 14px; font-size: .76rem; color: var(--muted); letter-spacing: .02em; }
.tile-title { margin-bottom: .45em; font-size: 1.25rem; }
.tile-link { color: var(--ink); text-decoration: none; }
.tile-link:hover { color: var(--ink); }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tile-link:focus-visible { outline: none; }
.tile p { margin: 0 0 22px; font-size: .98rem; }
.tile-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--brand); font-size: .95rem; font-weight: 600; }
.tile-more .ico { width: 18px; height: 18px; transition: transform .2s ease; }
.tile:hover .tile-more .ico { transform: translateX(3px); }

.tile--feature { padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.tile--feature .tile-body { display: flex; flex-direction: column; padding: 28px 26px 8px; }
.tile--feature .tile-title { font-size: clamp(1.5rem, 2.4vw, 2.05rem); letter-spacing: -.03em; }
.tile--feature .tile-media {
  position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 0; padding: 8px 24px 0;
  background-image:
    linear-gradient(to right, var(--grid-fine) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-fine) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(to top, #000 70%, transparent);
}
.tile--feature .tile-img { width: auto; max-height: 300px; }
@media (min-width: 1024px) {
  .tile--feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
  .tile--feature .tile-body { padding: 36px 8px 32px 36px; }
  .tile--feature .tile-body p { font-size: 1.05rem; }
  .tile--feature .tile-media { padding: 32px 24px 0 8px; -webkit-mask-image: none; }
  .tile--feature .tile-img { max-height: 440px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .tiles--feature .tile--feature { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
  .tiles--feature .tile--feature .tile-body { padding: 30px 8px 26px 28px; }
  .tiles--feature .tile--feature .tile-media { padding: 24px 16px 0 0; -webkit-mask-image: none; }
  .tiles--feature .tile--feature .tile-img { max-height: 320px; }
  /* bleibt nach der Feature-Zeile eine Kachel allein, nimmt sie die ganze Zeile ein */
  .tiles--feature > .tile:last-child:nth-child(2n) { grid-column: 1 / -1; }
}
.tile--place .tile-title { font-size: 1.15rem; }
.tile--place p { margin-bottom: 12px; font-size: .94rem; }
.tile--place .tile-kicker { font-size: .7rem; white-space: nowrap; }
.tile--place .tile-plz { margin: 0 0 18px; color: var(--muted); font-size: .76rem; }
@media (min-width: 1024px) { .tiles--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tiles--5 .tile { padding: 22px 20px 20px; } }

/* ---------- Schritte (Maßlinie) ---------- */
.steps { display: grid; gap: 30px; list-style: none; margin: 0; padding: 0; }
.step-item { position: relative; padding-top: 50px; }
.step-item::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; border-top: 1px solid #C9CFD8; }
.step-item::after { content: ""; position: absolute; right: 0; top: 5px; height: 11px; border-right: 1px solid #C9CFD8; }
.step-no { position: absolute; left: 0; top: 0; padding-right: 12px; background: var(--sec-bg); color: var(--brand); font-family: var(--mono); font-size: .85rem; line-height: 20px; }
.step-title { margin-bottom: .45em; font-size: 1.2rem; }
.step-item p { margin: 0; font-size: .98rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; }
  .step-item { padding-right: 36px; }
}
.sec--dark .step-item::before, .sec--dark .step-item::after, .steps--dark .step-item::before, .steps--dark .step-item::after { border-color: rgba(255, 255, 255, .22); }
.sec--dark .step-no { color: var(--brand-on-dark); }
.sec--dark .step-item p { color: rgba(255, 255, 255, .76); }

/* Turnus-Optionen */
.turnus { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.turnus-head { max-width: 760px; margin-bottom: 26px; }
.turnus-head h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -.03em; }
.turnus-head p { margin: 0; }
.opt-grid { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .opt-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.opt-item { padding: 20px 22px; border-radius: 14px; background: var(--surface); }
.opt-title { margin: 0 0 .35em; }
.opt-item p { margin: 0; font-size: .95rem; }

/* Checklisten */
.checklist { display: grid; list-style: none; margin: 0; padding: 0; }
.checklist--cols { column-gap: 48px; }
@media (min-width: 800px) { .checklist--cols { grid-template-columns: 1fr 1fr; } }
.check-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-top: 1px solid #DADDE3; }
.sec--white .check-item { border-top-color: var(--line); }
.check-ico { width: 22px; height: 22px; margin-top: 2px; color: var(--brand); flex: none; }
.check-title { margin: 0 0 .25em; font-size: 1.05rem; letter-spacing: -.01em; }
.check-item p { margin: 0; }
.check-item--plain { padding: 12px 0; }
.sec--dark .check-item { border-top-color: rgba(255, 255, 255, .14); }
.sec--dark .check-ico { color: var(--brand-on-dark); }
.sec--dark .check-item p { color: rgba(255, 255, 255, .86); }

/* ---------- Kundenstimmen ---------- */
.quotes { display: grid; gap: 16px; }
@media (min-width: 900px) { .quotes { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .quote--feature { grid-row: span 2; } }
.quote { position: relative; display: flex; flex-direction: column; margin: 0; padding: 30px 30px 26px; background: var(--surface); border-radius: var(--r); }
.quote--feature { padding: clamp(30px, 4vw, 48px); background: #fff; border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--brand-50); }
.quote-mark { display: block; width: 38px; height: 27px; margin-bottom: 24px; color: var(--brand); }
.quote--feature .quote-mark { width: 48px; height: 34px; }
.quote blockquote { margin: 0 0 26px; }
.quote blockquote p { margin: 0; font-family: var(--font-head); font-size: 1.1rem; font-weight: 500; line-height: 1.5; letter-spacing: -.015em; color: var(--ink); }
.quote--feature blockquote p { font-size: clamp(1.35rem, 2.5vw, 2.05rem); line-height: 1.34; letter-spacing: -.03em; }
.quote figcaption { display: flex; flex-direction: column; margin-top: auto; padding-top: 16px; border-top: 1px solid #DADDE3; }
.quote-name { color: var(--ink); font-weight: 600; }
.quote-meta { color: var(--muted); font-size: .92rem; }
.quotes-note { max-width: 88ch; margin: 22px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }

/* Über-uns-Teaser */
.person-line { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; color: var(--ink); }
.person-line .ico { width: 42px; height: 42px; padding: 10px; border-radius: 10px; background: var(--brand-50); color: var(--brand); }

/* ---------- Orte ---------- */
.place-list { display: grid; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; border-top: 1px solid #D5D9E0; }
.sec--white .place-list { border-top-color: var(--line); }
@media (min-width: 560px) { .place-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.place-list--compact { max-width: 640px; }
@media (min-width: 1024px) { .split--places .place-plz { display: none; } }
.place-link { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 0; border-bottom: 1px solid #D5D9E0; color: var(--ink); font-weight: 500; text-decoration: none; }
.sec--white .place-link { border-bottom-color: var(--line); }
.place-name { flex: 1; min-width: 0; }
.place-plz { color: var(--muted); font-family: var(--mono); font-size: .74rem; white-space: nowrap; }
.place-link .ico { width: 16px; height: 16px; color: var(--brand); transition: transform .2s ease; }
.place-link:hover { color: var(--brand); }
.place-link:hover .ico { transform: translateX(3px); }

/* Zielgruppen-Links */
.zg-list { display: grid; list-style: none; margin: 0; padding: 0; border-top: 1px solid #D5D9E0; }
.zg-link { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 0; border-bottom: 1px solid #D5D9E0; color: var(--ink); font-weight: 600; text-decoration: none; }
.zg-link span { flex: 1; }
.zg-ico { width: 32px; height: 32px; color: var(--brand); }
.zg-link .ico { width: 18px; height: 18px; color: var(--brand); }
.zg-link:hover { color: var(--brand); }

/* Lageplan (schematisch, keine Karte) */
.plan-wrap { position: relative; margin: 0; padding: 14px 14px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.plan-wrap::before { content: ""; }
.plan { position: relative; width: 100%; height: auto; font-family: var(--font-body); overflow: visible; }
.plan-pt circle { fill: var(--brand); stroke: #fff; stroke-width: 2; transition: r .2s ease; }
.plan-pt text { fill: var(--ink); font-size: 14px; font-weight: 500; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.plan-pt.is-current circle { fill: #fff; stroke: var(--brand); stroke-width: 3.5; }
.plan-pt.is-current text { font-weight: 700; }
.plan-base rect { fill: var(--ink); }
.plan-scale path { fill: none; stroke: var(--ink); stroke-width: 1; }
.plan-scale text, .plan-legend text { fill: #6B7280; font-family: var(--mono); font-size: 11px; }
.plan-legend rect { fill: var(--ink); }
.plan-north path { fill: var(--ink); }
.plan-north text { fill: var(--ink); font-family: var(--mono); font-size: 11px; }
.plan-cap { position: relative; margin: 8px 4px 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.phero-media .plan-wrap { background: #fff; }
/* Auf schmalen Handys wären die Planbeschriftungen unter 8 px – dort reicht die Bezirksliste */
@media (max-width: 599px) { .plan-wrap, .phero--plan .phero-media, .split-media:has(> .plan-wrap:only-child) { display: none; } }

/* ---------- Ratgeber-Karten ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--feature .card--feature { grid-column: span 2; }
  .cards--feature-tall .card--feature { grid-row: span 2; padding: 40px; background: var(--paper, #fff); }
  .cards--feature-tall .card--feature .card-title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); max-width: 20ch; }
  .cards--feature-tall .card--feature p:not(.card-meta) { font-size: 1.05rem; max-width: 52ch; }
}
.card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.card:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.card-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: .84rem; }
.card-meta .ico { width: 18px; height: 18px; color: var(--brand); }
.card-title { margin-bottom: .5em; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.3; }
.card--feature .card-title { font-size: clamp(1.4rem, 2.2vw, 1.85rem); letter-spacing: -.03em; }
.card p { margin: 0 0 22px; font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid #D5D9E0; }
.sec--white .faq { border-top-color: var(--line); }
.faq-item { border-bottom: 1px solid #D5D9E0; }
.sec--white .faq-item { border-bottom-color: var(--line); }
.faq-item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; min-height: 44px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: 4px; }
.faq-q { min-width: 0; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; overflow-wrap: break-word; text-wrap: pretty; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; line-height: 1.38; letter-spacing: -.015em; color: var(--ink); }
.faq-sign { position: relative; flex: none; width: 30px; height: 30px; margin-top: -2px; border: 1.5px solid var(--ink); border-radius: 8px; transition: background-color .15s ease; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .2s ease; }
.faq-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-sign { background: var(--ink); }
.faq-item[open] .faq-sign::before, .faq-item[open] .faq-sign::after { background: #fff; }
.faq-item[open] .faq-sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { max-width: 72ch; padding: 0 50px 24px 0; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Schluss-CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--paper); border-top: 1px solid var(--line); }
.cta-inner { position: relative; z-index: 1; display: grid; gap: 26px; padding-block: clamp(56px, 8vw, 110px); }
.cta-band h2 { margin-bottom: .32em; }
.cta-band .lead { margin: 0; }
.cta-band .actions { margin-top: 0; }
@media (min-width: 1024px) { .cta-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 64px; } }

/* ---------- Ratgeber-Artikel ---------- */
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; color: var(--muted); font-size: .9rem; }
.article-meta .ico { width: 18px; height: 18px; color: var(--brand); }
.article-meta span { margin-right: 14px; }
.article-layout { display: grid; gap: 36px; }
.article-layout > * { min-width: 0; }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 80px; align-items: start; }
  .article-layout--single { grid-template-columns: minmax(0, 1fr); }
  .toc { position: sticky; top: calc(var(--hdr) + 28px); }
}
.toc { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.toc-title { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; min-height: 44px; padding: 10px 0; color: var(--text); font-size: .93rem; line-height: 1.4; text-decoration: none; overflow-wrap: break-word; }
.toc a::before { content: counter(toc, decimal-leading-zero); padding-top: 2px; color: var(--brand); font-family: var(--mono); font-size: .74rem; }
.toc a:hover { color: var(--brand); }
.article-body { max-width: 70ch; }
.article-sec + .article-sec { margin-top: 2.6em; }
.article-sec h2 { margin-top: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.hinweis { display: flex; gap: 14px; margin: 1.4em 0; padding: 18px 20px; background: var(--brand-50); border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; }
.hinweis .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--brand); flex: none; }
.hinweis p { margin: 0; color: var(--ink); }
.sources { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.1rem !important; letter-spacing: -.01em; margin-bottom: .6em !important; }
.sources ul li { padding-left: 0; }
.sources ul li::before { display: none; }
.sources a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 0; overflow-wrap: anywhere; }
.sources .ico { width: 16px; height: 16px; }
.article-note { margin-top: 2em !important; color: var(--muted); font-size: .88rem; }

/* ---------- Rechtsseiten ---------- */
.legal-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.sec--legal { padding-top: clamp(36px, 5vw, 64px); }
.legal { max-width: 76ch; overflow-wrap: break-word; }
.legal h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: .6em; }
.legal h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 1.9em 0 .6em; }
.legal h3 { font-size: 1.15rem; margin: 1.5em 0 .5em; }

.legal-intro { margin-bottom: 2.2em; }
.legal-intro .lead { margin: 0; }
.legal-meta { color: var(--muted); font-size: .92rem; }
.legal-toc { margin: 0 0 2.4em; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.legal-toc-title { margin: 0 0 8px !important; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.prose .legal-toc ol { margin: 0; padding-left: 1.4em; columns: 2 240px; column-gap: 32px; }
.legal-toc li { margin: .25em 0; break-inside: avoid; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin: 1.8em 0 !important; }
.prose .legal-actions .btn, .prose .link-list a { text-decoration: none; }
.prose .link-list a strong { color: var(--brand); }
.prose .link-list a:hover strong { color: var(--brand-600); text-decoration: underline; }
.prose a[href^="mailto:"], .prose a[href^="tel:"] { white-space: nowrap; }
.prose ol.steps { counter-reset: st; list-style: none; margin: 0 0 2.2em; padding: 0; }
.prose ol.steps > li { position: relative; padding-top: 44px; padding-right: 28px; counter-increment: st; }
.prose ol.steps > li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 0; z-index: 1; padding-right: 12px; background: #fff; color: var(--brand); font-family: var(--mono); font-size: .85rem; line-height: 20px; }
.prose ol.steps > li::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; border-top: 1px solid #C9CFD8; }
.prose ol.steps h3 { margin: 0 0 .4em; font-size: 1.1rem; }
.prose ol.steps p { margin: 0; font-size: .97rem; }

/* ---------- Kontakt ---------- */
.sec--form { padding-top: clamp(36px, 5vw, 64px); }
.contact-grid { display: grid; gap: 48px; }
.contact-grid > * { min-width: 0; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4.6fr); gap: 64px; align-items: start; } }
.contact-aside { display: grid; gap: 44px; }
.contact-card { padding: 26px; background: var(--surface); border-radius: var(--r); }
.contact-card p { margin-bottom: .6em; }
.contact-list { display: grid; gap: 4px; list-style: none; margin: 16px 0; padding: 0; }
.contact-list a, .contact-static { display: flex; align-items: center; gap: 14px; padding: 8px 0; color: var(--ink); font-size: 1.06rem; font-weight: 600; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--brand); }
.contact-list .ico { width: 44px; height: 44px; padding: 11px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--brand); }
.contact-list small { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; letter-spacing: .02em; }
.contact-static { font-weight: 500; }
.contact-person { display: flex; align-items: center; gap: 10px; margin: 6px 0 0 !important; padding-top: 16px; border-top: 1px solid #D5D9E0; font-size: .95rem; }
.contact-person .ico { color: var(--brand); }
.next-steps .label { margin-bottom: .8rem; }
.next-steps h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.next-list { display: grid; list-style: none; margin: 0; padding: 0; }
.next-list li { display: grid; grid-template-columns: 44px 1fr; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.next-list .step-no { position: static; padding: 3px 0 0; background: none; }
.next-title { margin: 0 0 .2em; color: var(--ink); font-weight: 600; }
.next-list p { margin: 0; font-size: .96rem; }

/* Karte erst nach Klick */
.map-box { position: relative; min-height: 360px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 1024px) { .map-box { min-height: 0; aspect-ratio: 16 / 10; } }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; }
.map-consent > :not(.map-grid) { position: relative; }
.map-pin { width: 40px; height: 40px; margin-bottom: 6px; color: var(--brand); }
.map-title { margin: 0; color: var(--ink); font-weight: 600; }
.map-note { max-width: 46ch; margin: 0 0 14px; font-size: .88rem; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Formular (3 Schritte) ---------- */
.anfrage { position: relative; padding: clamp(20px, 3.4vw, 38px); background: #fff; border: 1.5px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
.anfrage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.anfrage-title { margin: 0; font-family: var(--font-head); font-size: 1.45rem; font-weight: 650; letter-spacing: -.03em; color: var(--ink); }
.stepper { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.anfrage:not(.is-stepper) .stepper { display: none; }
.stepper-item { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .86rem; font-weight: 500; }
.stepper-item + .stepper-item::before { content: ""; width: 18px; height: 1px; margin-right: 1px; background: #C9CFD8; }
.stepper-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid #C9CFD8; border-radius: 7px; font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.stepper-item.is-current { color: var(--ink); }
.stepper-item.is-current .stepper-num { border-color: var(--brand); background: var(--brand); color: #fff; }
.stepper-item.is-done .stepper-num { border-color: var(--ink); background: var(--ink); color: #fff; }
@media (max-width: 479px) { .stepper-item:not(.is-current) .stepper-txt { display: none; } }

.step { min-width: 0; margin: 0; padding: 0; border: 0; }
.step:focus { outline: none; }
.anfrage:not(.is-stepper) .step + .step { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.anfrage.is-stepper .step { display: none; }
.anfrage.is-stepper .step.is-current { display: block; }
.step-legend { display: block; float: left; width: 100%; margin: 0 0 20px; padding: 0; font-family: var(--font-head); font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.25; color: var(--ink); }
.step-legend + * { clear: both; }
.step-kicker { display: block; margin-bottom: 8px; font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }

.choice-grid { display: grid; gap: 10px; }
.choice-grid--icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) { .choice-grid--icons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice-grid--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-grid--icons .choice:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.choice-grid--icons .choice:last-child:nth-child(3n+1) .choice-body { flex-direction: row; align-items: center; }
.choice { position: relative; display: block; min-width: 0; cursor: pointer; }
.choice input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.choice-body { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%; padding: 16px 16px 15px; border: 1.5px solid #D3D8E0; border-radius: 14px; background: #fff; color: var(--ink); font-size: .97rem; font-weight: 600; line-height: 1.3; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; overflow-wrap: break-word; }
.choice-ico { width: 36px; height: 36px; color: var(--brand); }
.choice:hover .choice-body { border-color: var(--ink); }
.choice input:checked + .choice-body { border-color: var(--ink); background: var(--brand-50); box-shadow: 3px 3px 0 var(--ink); }
.choice--icon input:checked + .choice-body::after { content: ""; position: absolute; top: 15px; right: 17px; width: 7px; height: 13px; border: solid var(--brand); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 519px) {
  .choice-grid--icons { grid-template-columns: 1fr; gap: 8px; }
  .choice--icon .choice-body { flex-direction: row; align-items: center; gap: 14px; min-height: 58px; padding: 10px 44px 10px 14px; }
  .choice-ico { width: 32px; height: 32px; }
  .choice--icon input:checked + .choice-body::after { top: 50%; margin-top: -9px; }
}
.choice--chip .choice-body { flex-direction: row; align-items: center; min-height: 46px; padding: 10px 16px; border-radius: 10px; font-weight: 500; }
.has-error .choice-body { border-color: #E3A39C; }

.subfield { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.field-label { display: block; margin: 0 0 8px; padding: 0; color: var(--ink); font-size: .95rem; font-weight: 600; }
.req { color: var(--brand); }
.opt { color: var(--muted); font-size: .86rem; font-weight: 400; }
.field-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--field); border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 124px; resize: vertical; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081221' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #6B7280; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #5B6270; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 88, 255, .18); }
.field [aria-invalid="true"] { border-color: var(--err) !important; }
.field--check { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.field--check label { color: var(--text); font-size: .95rem; cursor: pointer; }
.field--check .field-error { grid-column: 2; }
.field-error { margin: 7px 0 0; color: var(--err); font-size: .9rem; font-weight: 500; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-actions [data-next], .form-actions [data-submit] { margin-left: auto; }
.form-note { margin: 16px 0 0; color: var(--muted); font-size: .88rem; }
.form-status { margin: 0 0 20px; padding: 14px 16px; border: 1px solid #F4B1A9; border-radius: 12px; background: #FEF3F2; color: #7A271A; font-size: .95rem; }
.form-status:focus { outline: none; }
@media (max-width: 479px) {
  .form-actions .btn { flex: 1 1 auto; }
  .form-actions [data-prev] { flex: 0 0 auto; }
}

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(56px, 7vw, 92px); background: var(--ink); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--ink); text-decoration: none; }
.footer-top { display: grid; gap: 48px; padding-bottom: 44px; }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 320px minmax(0, 1fr); gap: 72px; } }
.footer-logo { display: inline-block; }
.footer-logo img { height: 50px; width: auto; }
.footer-text { margin: 20px 0; max-width: 40ch; }
.footer-nap { margin: 0 0 10px; line-height: 1.6; }
.footer-nap strong { color: #fff; font-weight: 600; }
.footer-contact { display: grid; gap: 2px; list-style: none; margin: 0 0 22px; padding: 0; }
.site-footer .footer-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.footer-contact .ico { color: var(--brand-on-dark); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
@media (max-width: 399px) { .footer-cols { column-gap: 20px; } }
@media (min-width: 760px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-col, .footer-stack { min-width: 0; }
.footer-title { margin: 0 0 12px; color: var(--brand-on-dark); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-col ul { display: grid; list-style: none; margin: 0 0 30px; padding: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 0; line-height: 1.35; overflow-wrap: break-word; -webkit-hyphens: manual; hyphens: manual; }
@media (pointer: coarse) { .footer-col a { min-height: 44px; } }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding: 24px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-cookie { flex: 1 1 380px; color: rgba(255, 255, 255, .6); }
.site-footer .footer-cookie a { color: rgba(255, 255, 255, .8); text-decoration: underline; text-underline-offset: .18em; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 1023px) { .footer-bottom { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- Schnellkontakt-Leiste (mobil, nach dem Scrollen) ---------- */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px -22px rgba(8, 18, 33, .45); transform: translateY(110%); transition: transform .28s ease;
}
.quickbar.is-visible { transform: none; }
html:not(.js) .quickbar { transform: none; }
.qb-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1.5px solid var(--ink); border-radius: 12px; font-weight: 600; text-decoration: none; }
.qb-btn .ico { width: 18px; height: 18px; }
.qb-call { background: #fff; color: var(--ink); }
.qb-call .ico { color: var(--brand); }
.qb-cta { flex-direction: row-reverse; background: var(--brand); color: #fff; }
.qb-cta:hover, .qb-cta:focus { color: #fff; }
.nav-open .quickbar { transform: translateY(110%); }
@media (min-width: 1024px) { .quickbar { display: none; } }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grid-flow { animation: none; }
  .grid-glow, .grid-cell { display: none; }
  .btn-primary:hover, .btn-light:hover, .tile:hover, .card:hover { transform: none; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .quickbar, .grid-bg, .cta-band, .map-box, .skip-link, .form-actions { display: none !important; }
  .sec, .phero-inner, .hero-inner { padding-block: 16px; }
  .sec--dark { background: #fff; color: #000; }
  .sec--dark h2, .sec--dark h3 { color: #000; }
  a { color: #000; }
}
.nowrap { white-space: nowrap; }
