/* ==========================================================================
   HEP Hausmeisterservice – Stylesheet 2.0
   Aufbau: 1 Schrift · 2 Design-Tokens · 3 Basis · 4 Komponenten · 5 Abschnitte
           6 Formulare · 7 Unterseiten · 8 Animation · 9 Druck
   Breakpoints: 560 / 720 / 900 / 1180 px
   ========================================================================== */

/* 1 · Schrift (lokal gehostet, kein externer Dienst) ------------------------ */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 112.5%;
  font-style: normal;
  font-display: swap;
}

/* 2 · Design-Tokens --------------------------------------------------------- */
:root {
  /* CI-Farben aus dem HEP-Logo */
  --hep-navy: #16243B;
  --hep-navy-2: #1D2E4A;
  --hep-navy-3: #24395B;
  --hep-blue: #2F6BE4;
  --hep-blue-light: #5B8DF0;
  --anthracite: #2B3038;

  --bg: #FFFFFF;
  --surface: #F3F5F9;
  --surface-2: #E9EDF4;
  --line: #DCE1EA;
  --line-strong: #C3CBD8;
  --fg: #16243B;
  --text: #2B3038;
  --muted: #56637A;
  --accent: #2A62D8;     /* Logo-Blau, für Text auf hellem Grund leicht abgedunkelt (WCAG AA) */
  --accent-hover: #2152B8;
  --accent-soft: #EEF3FD;
  --on-accent: #FFFFFF;

  --band: #16243B;
  --band-2: #1D2E4A;
  --band-line: #2C3F60;
  --on-band: #FFFFFF;
  --on-band-muted: #B4BFD1;
  --band-accent: #6F9BF3;

  --ok: #1F7A4D;   --ok-bg: #EEF7F2;
  --err: #B42318;  --err-bg: #FDF1F0;
  --warn: #8A5A00; --warn-bg: #FFF6E5;
  --logo-roof: #2F6BE4;
  --logo-text: #16243B;

  /* Typografie */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.08rem, 1.5vw, 1.22rem);
  --fs-h3: 1.15rem;
  --fs-h2: clamp(1.85rem, 3.6vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 6.4vw, 4.6rem);

  /* Abstände (8er-Raster) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --section: clamp(72px, 10vw, 128px);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Formen */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(22, 36, 59, .06);
  --shadow: 0 1px 2px rgba(22, 36, 59, .05), 0 8px 24px -8px rgba(22, 36, 59, .12);
  --shadow-lg: 0 2px 4px rgba(22, 36, 59, .05), 0 24px 48px -16px rgba(22, 36, 59, .22);

  /* Bewegung */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms;
  --t: 280ms;
  --t-slow: 650ms;

  --hdr-h: 80px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1A2C; --surface: #14223A; --surface-2: #1A2B47; --line: #263856; --line-strong: #344B70;
    --fg: #EEF2F8; --text: #D9E0EC; --muted: #A3AFC4;
    --accent: #6F9BF3; --accent-hover: #8DB0F6; --accent-soft: #1A2A47; --on-accent: #0B1424;
    --band: #0A1322; --band-2: #111E33; --band-line: #24354F;
    --ok: #5BC48F; --ok-bg: #12291F; --err: #F28B82; --err-bg: #2A1A1E; --warn: #F2C266; --warn-bg: #2A2414;
    --logo-roof: #6F9BF3; --logo-text: #FFFFFF;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5);
    --shadow-lg: 0 24px 48px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1A2C; --surface: #14223A; --surface-2: #1A2B47; --line: #263856; --line-strong: #344B70;
  --fg: #EEF2F8; --text: #D9E0EC; --muted: #A3AFC4;
  --accent: #6F9BF3; --accent-hover: #8DB0F6; --accent-soft: #1A2A47; --on-accent: #0B1424;
  --band: #0A1322; --band-2: #111E33; --band-line: #24354F;
  --ok: #5BC48F; --ok-bg: #12291F; --err: #F28B82; --err-bg: #2A1A1E; --warn: #F2C266; --warn-bg: #2A2414;
  --logo-roof: #6F9BF3; --logo-text: #FFFFFF;
  color-scheme: dark;
}

/* 3 · Basis ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--fs-base); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.band :focus-visible { outline-color: var(--band-accent); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { left: 16px; }

h1, h2, h3, h4 { color: var(--fg); font-weight: 700; line-height: 1.12; letter-spacing: -.018em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--fs-h1); font-weight: 800; font-stretch: 112%; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); font-stretch: 110%; letter-spacing: -.028em; }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.band h1, .band h2, .band h3 { color: var(--on-band); }

.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.band .eyebrow { color: var(--band-accent); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 62ch; line-height: 1.6; }
.band .lead { color: var(--on-band-muted); }
.hint { color: var(--muted); font-size: var(--fs-sm); }
.accent { color: var(--accent); }

/* Platzhalter für fehlende Unternehmensangaben */
.ph { background: var(--accent-soft); border-bottom: 1px dashed var(--accent); padding: 0 .3em; border-radius: 3px; font-style: normal; overflow-wrap: anywhere; font-weight: 500; }
.band .ph { background: var(--band-2); border-color: var(--band-accent); }

svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Logo */
.logo { display: block; height: auto; }
.lg-roof { fill: var(--logo-roof); }
.lg-text { fill: var(--logo-text); }
.logo-inv { --logo-roof: #6F9BF3; --logo-text: #FFFFFF; }

/* 4 · Komponenten ----------------------------------------------------------- */
/* Buttons: primary · ghost · light (auf dunklem Grund) · link */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r-sm); font: 600 1rem/1.15 var(--font); text-decoration: none; text-align: center; border: 1.5px solid transparent; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease); -webkit-tap-highlight-color: transparent; }
.btn svg.i { width: 20px; height: 20px; transition: transform var(--t) var(--ease); }
.btn:hover svg.i-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); background: var(--surface); }
.btn-light { background: #fff; color: var(--hep-navy); }
.btn-light:hover { background: #E7EEFC; }
.band .btn-ghost { border-color: rgba(255,255,255,.35); color: var(--on-band); }
.band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); text-decoration: none; }
.link-arrow svg.i { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.link-arrow:hover svg.i { transform: translateX(3px); }
.link-arrow:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* Hinweisboxen */
.note { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text); }
.note svg.i { color: var(--accent); margin-top: 2px; }
.note strong { color: var(--fg); }
.note-warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.note-warn svg.i { color: var(--warn); }
.note-err { background: var(--err-bg); border-color: color-mix(in srgb, var(--err) 30%, transparent); }
.note-err svg.i { color: var(--err); }

/* Ausstehende Inhalte (nur in der Vorschau sichtbar, siehe config.js) */
[data-pending] { display: none !important; }
html.preview [data-pending] { display: revert !important; }
html.preview [data-pending].pending-grid { display: grid !important; }
.pending { position: relative; border: 1.5px dashed var(--accent); border-radius: var(--r); background: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--accent) 4%, transparent) 10px 20px); }
.pending-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--bg); border: 1px solid var(--accent); border-radius: 99px; padding: 3px 10px; }

/* Header ------------------------------------------------------------------- */
.hdr { position: sticky; top: 0; z-index: 80; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t), background var(--t); }
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(22,36,59,.35); background: color-mix(in srgb, var(--bg) 94%, transparent); }
.hdr .wrap { display: flex; align-items: center; gap: 20px; height: var(--hdr-h); transition: height var(--t) var(--ease); }
.hdr.is-scrolled .wrap { height: 64px; }
.brand { display: block; flex: none; text-decoration: none; }
.brand .logo { width: 92px; aspect-ratio: 480 / 314; transition: width var(--t) var(--ease); }
.hdr.is-scrolled .brand .logo { width: 78px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a.nl { position: relative; padding: 10px 12px; text-decoration: none; font-weight: 500; color: var(--fg); font-size: .96rem; border-radius: var(--r-sm); transition: color var(--t-fast); }
.nav a.nl::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.nav a.nl:hover { color: var(--accent); }
.nav a.nl:hover::after, .nav a.nl.is-active::after, .nav a.nl[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nl.is-active { color: var(--accent); }
.nav-cta { display: flex; gap: 8px; margin-left: 14px; }
.nav-contact { display: none; }
.menu-btn { display: none; margin-left: auto; position: relative; width: 48px; height: 48px; border: 1.5px solid var(--line); background: var(--bg); border-radius: var(--r-sm); cursor: pointer; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform var(--t) var(--ease), opacity var(--t-fast); }
.menu-btn span:nth-child(1) { top: 16px; } .menu-btn span:nth-child(2) { top: 22px; } .menu-btn span:nth-child(3) { top: 28px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  :root { --hdr-h: 68px; }
  .hdr.is-scrolled .wrap { height: 60px; }
  .brand .logo, .hdr.is-scrolled .brand .logo { width: 76px; }
  .menu-btn { display: block; }
  .nav { position: fixed; left: 0; right: 0; top: var(--nav-top, 68px); bottom: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t); }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s; }
  .nav a.nl { padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.15rem; font-weight: 600; }
  .nav a.nl::after { display: none; }
  .nav-cta { margin: 20px 0 0; flex-direction: column; }
  .nav-cta .btn { min-height: 54px; }
  .nav-contact { display: grid; gap: 4px; margin-top: 20px; color: var(--muted); font-size: var(--fs-sm); }
  body.menu-open { overflow: hidden; }
  /* backdrop-filter würde das fixierte Menü auf die Kopfzeile begrenzen */
  body.menu-open .hdr { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}

/* Abschnitte ---------------------------------------------------------------- */
section { padding-block: var(--section); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 780px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head-row .sec-head { margin-bottom: 0; }
.alt { background: var(--surface); }
.band { background: var(--band); color: var(--on-band); }

/* Hero */
.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 112px); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto auto; width: 60%; height: 100%; background: radial-gradient(60% 60% at 70% 30%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero h1 .l2 { display: block; color: var(--accent); }
.hero .lead { max-width: 54ch; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 22px 0 0; margin: 6px 0 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--fg); font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero-facts svg.i { width: 20px; height: 20px; color: var(--accent); }
.hero-visual { position: relative; min-width: 0; }
.hero-frame { position: relative; aspect-ratio: 7 / 8; border-radius: var(--r-lg); overflow: hidden; background: var(--hep-navy); box-shadow: var(--shadow-lg); }
.hero-frame > svg, .hero-frame > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-frame .parallax { will-change: transform; }
.hero-card { position: absolute; left: clamp(-40px, -3vw, -16px); bottom: clamp(20px, 4vw, 40px); display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); max-width: calc(100% - 24px); }
.hero-card img { width: 56px; height: 70px; object-fit: cover; object-position: top; border-radius: var(--r-sm); background: #fff; }
.hero-card .k { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero-card strong { display: block; color: var(--fg); font-size: 1.05rem; line-height: 1.3; }
.hero-card span:last-child { font-size: var(--fs-sm); color: var(--muted); }
.hero-badge { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: .85rem; font-weight: 500; border: 1px solid rgba(255,255,255,.2); }
.hero-badge svg.i { width: 18px; height: 18px; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); text-decoration: none; }
.scroll-cue svg.i { width: 20px; height: 20px; animation: cue 2.4s var(--ease) infinite; }
.scroll-cue:hover { color: var(--accent); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-frame { aspect-ratio: 5 / 4; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .hero-frame { aspect-ratio: 1 / 1; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* Leistungen */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); font-weight: 500; font-size: .95rem; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.filter:hover { border-color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.filter .n { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; transition: border-color var(--t), box-shadow var(--t) var(--ease), transform var(--t) var(--ease), opacity var(--t); }
.svc-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-card.is-open { border-color: var(--accent); box-shadow: var(--shadow); transform: none; }
.svc-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); transition: background var(--t), color var(--t); }
.svc-ico svg.i { width: 28px; height: 28px; stroke-width: 1.4; }
.svc-card:hover .svc-ico, .svc-card.is-open .svc-ico { background: var(--accent); color: var(--on-accent); }
.svc-cat { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.svc-card p { color: var(--muted); font-size: .97rem; }
.svc-toggle { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--accent); font-weight: 600; font-size: .95rem; cursor: pointer; text-align: left; width: 100%; min-height: 44px; }
.svc-toggle::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.svc-toggle:focus-visible { outline: none; }
.svc-card:has(.svc-toggle:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.svc-toggle svg.i { width: 20px; height: 20px; transition: transform var(--t) var(--ease); }
.svc-toggle[aria-expanded="true"] svg.i { transform: rotate(45deg); }
.svc-more { position: relative; z-index: 1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.svc-more > div { overflow: hidden; }
.svc-card.is-open .svc-more { grid-template-rows: 1fr; }
.svc-more ul { list-style: none; margin: 0; padding: 6px 0 4px; display: grid; gap: 8px; font-size: .94rem; color: var(--text); }
.svc-more li { display: flex; gap: 10px; }
.svc-more li svg.i { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; stroke-width: 2; }
.svc-card.is-hidden { display: none; }
.svc-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 32px; }
.svc-foot .note { max-width: 820px; }
@media (max-width: 1180px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .svc-foot { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } .svc-card { padding: 22px 20px 18px; } .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: none; } .filters::-webkit-scrollbar { display: none; } .filter { flex: none; } }

/* Zielgruppen */
.aud { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.aud li { list-style: none; display: grid; gap: 10px; align-content: start; padding: 26px 22px 6px 0; }
.aud li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.aud svg.i { width: 28px; height: 28px; color: var(--accent); stroke-width: 1.4; }
.aud strong { color: var(--fg); font-size: 1.02rem; line-height: 1.3; }
.aud span { color: var(--muted); font-size: .94rem; }
.aud-wrap { margin: 0; padding: 0; }
@media (max-width: 1180px) { .aud { grid-template-columns: repeat(3, minmax(0, 1fr)); } .aud li:nth-child(4) { padding-left: 0; border-left: 0; } }
@media (max-width: 720px) { .aud { grid-template-columns: 1fr; } .aud li, .aud li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; } .aud li span { grid-column: 2; } }

/* Warum HEP */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why-item { display: grid; gap: 12px; align-content: start; padding: 30px 28px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); transition: border-color var(--t), transform var(--t) var(--ease); }
.why-item:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.why-item svg.i { width: 30px; height: 30px; color: var(--accent); stroke-width: 1.4; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: .97rem; }
.digital { margin-top: 16px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 56px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--band); color: var(--on-band); }
.digital h3 { color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-stretch: 108%; }
.digital p { color: var(--on-band-muted); }
.digital-copy { display: grid; gap: 14px; align-content: start; }
.digital ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.digital li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 14px; font-size: .95rem; color: var(--on-band-muted); }
.digital li b { color: #fff; font-weight: 600; }
.digital li svg.i { color: var(--band-accent); grid-row: span 2; margin-top: 2px; }
@media (max-width: 1040px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } .digital { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .why { grid-template-columns: 1fr; } .why-item { padding: 24px 22px; } .digital ul { grid-template-columns: 1fr; } }

/* Hausverwaltungen */
.hv { position: relative; overflow: clip; }
.hv .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hv-visual { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--band-2); border: 1px solid var(--band-line); }
.hv-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-copy { display: grid; gap: 22px; min-width: 0; }
.hv-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.hv-list li { display: flex; gap: 12px; color: var(--on-band); font-size: .98rem; line-height: 1.45; }
.hv-list svg.i { width: 20px; height: 20px; color: var(--band-accent); margin-top: 1px; stroke-width: 2; }
.hv .btn-row { margin-top: 10px; }
@media (max-width: 960px) { .hv .wrap { grid-template-columns: 1fr; } .hv-visual { aspect-ratio: 16 / 10; order: 2; } }
@media (max-width: 560px) { .hv-list { grid-template-columns: 1fr; } .hv .btn-row .btn { flex: 1 1 100%; } }

/* Ablauf / Timeline */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: calc((100% - 72px) / 4 - 28px); height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 27px; left: 28px; right: calc((100% - 72px) / 4 - 28px); height: 2px; background: var(--accent); transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform 1.4s var(--ease); }
.steps.in { --progress: 1; }
.step { position: relative; z-index: 1; display: grid; gap: 12px; align-content: start; padding-right: 12px; }
.step-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); color: var(--fg); font: 700 1.05rem/1 var(--font); font-variant-numeric: tabular-nums; transition: border-color var(--t), background var(--t), color var(--t); transition-delay: calc(var(--i, 0) * 280ms + 200ms); }
.steps.in .step-n { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.step h3 { margin-top: 10px; font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .97rem; max-width: 30ch; }
.steps-cta { margin-top: clamp(40px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before, .steps::after { top: 28px; bottom: 28px; left: 27px; right: auto !important; width: 2px; height: auto; }
  .steps::after { transform: scaleY(var(--progress, 0)); transform-origin: top; }
  .step { grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; padding: 0 0 32px; }
  .step:last-child { padding-bottom: 0; }
  .step h3 { margin-top: 14px; }
  .step p { grid-column: 2; max-width: none; }
  .step-n { grid-row: span 2; }
}

/* Konfigurator */
.cfg-wrap { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cfg-side { display: grid; gap: 22px; position: sticky; top: calc(var(--hdr-h) + 24px); }
.cfg-side .note { background: var(--bg); }
.cfg { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.cfg-head { padding: 22px clamp(20px, 3vw, 32px) 18px; border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.cfg-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--fs-sm); color: var(--muted); }
.cfg-meta strong { color: var(--fg); font-size: 1rem; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; width: var(--p, 20%); background: var(--accent); border-radius: inherit; transition: width var(--t) var(--ease); }
.cfg-dots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .74rem; color: var(--muted); }
.cfg-dots li { text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-dots li.is-current { color: var(--accent); font-weight: 600; }
.cfg-dots li.is-done { color: var(--fg); }
@media (max-width: 640px) { .cfg-dots { display: none; } }
.cfg-body { padding: clamp(22px, 3vw, 32px); }
.cfg-step { display: grid; gap: 22px; border: 0; margin: 0; padding: 0; min-width: 0; }
.cfg-step legend { padding: 0; margin-bottom: 4px; font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; color: var(--fg); letter-spacing: -.015em; line-height: 1.25; }
.cfg-step .hint { margin-top: -10px; }
.cfg-step:focus { outline: none; }
.cfg-nav { display: flex; justify-content: space-between; gap: 12px; padding: 18px clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); background: var(--surface); }
.cfg-nav .btn { min-width: 132px; }
.cfg-nav [data-cfg-prev][hidden] + * { margin-left: auto; }
.cfg-summary { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cfg-summary > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: 8px 16px; align-items: start; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.cfg-summary > div:last-child { border-bottom: 0; }
.cfg-summary dt { color: var(--muted); font-size: .85rem; letter-spacing: .04em; padding-top: 2px; }
.cfg-summary dd { margin: 0; color: var(--fg); font-weight: 500; overflow-wrap: anywhere; white-space: pre-line; }
.cfg-summary button { border: 0; background: none; color: var(--accent); font-weight: 600; font-size: .88rem; cursor: pointer; padding: 2px 4px; min-height: 32px; }
.cfg-summary button:hover { text-decoration: underline; }
@media (max-width: 560px) { .cfg-summary > div { grid-template-columns: minmax(0, 1fr) auto; } .cfg-summary dd { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 960px) { .cfg-wrap { grid-template-columns: 1fr; } .cfg-side { position: static; } }

/* Einsatzgebiet */
.area { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.area-copy { display: grid; gap: 22px; min-width: 0; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.towns li { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--fg); font-size: .92rem; font-weight: 500; transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
.towns li.is-hq { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.towns li.is-hl { border-color: var(--accent); color: var(--accent); }
.towns li.is-hq.is-hl { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.area-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.area-facts div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.area-facts div:nth-child(odd) { padding-right: 16px; }
.area-facts dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.area-facts dd { margin: 0; color: var(--fg); font-weight: 600; }
.map { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; min-width: 0; box-shadow: var(--shadow); }
.map svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.map figcaption { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.m-bg { fill: var(--surface); }
.m-grid { stroke: var(--line); stroke-width: 1; fill: none; }
.m-river { fill: none; stroke: var(--accent); stroke-opacity: .3; stroke-width: 8; stroke-linecap: round; }
.m-river-t { font-size: 12px; font-style: italic; fill: var(--muted); }
.m-r20 { fill: none; stroke: var(--accent); stroke-opacity: .45; stroke-dasharray: 4 6; }
.m-r10 { fill: var(--accent); fill-opacity: .07; stroke: var(--accent); stroke-opacity: .6; }
.m-km { font-size: 11px; letter-spacing: 1px; text-anchor: middle; fill: var(--accent); font-weight: 600; }
.m-town { font-size: 13px; fill: var(--fg); }
.m-town circle { fill: var(--muted); transition: fill var(--t-fast), r var(--t-fast); }
.m-town text { transition: fill var(--t-fast); }
.m-town g.is-hl circle { fill: var(--accent); r: 7px; }
.m-town g.is-hl text { fill: var(--accent); font-weight: 700; }
.m-strong { font-weight: 600; }
.m-halo { fill: var(--accent); fill-opacity: .18; transform-origin: 300px 226px; animation: pulse 3s var(--ease) infinite; }
.m-pin { fill: var(--accent); stroke: var(--bg); stroke-width: 2.5; }
.m-badge { fill: var(--fg); }
.m-badge-t { font-size: 14px; font-weight: 700; text-anchor: middle; fill: var(--bg); }
.m-badge-s { font-size: 10px; letter-spacing: 1px; text-anchor: middle; fill: var(--bg); fill-opacity: .8; }
@media (max-width: 900px) { .area { grid-template-columns: 1fr; } }

/* Über uns */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.about-text { display: grid; gap: 18px; max-width: 64ch; align-content: start; }
.about-text p { color: var(--muted); }
.about-side { display: grid; gap: 28px; align-content: start; min-width: 0; }
.person { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 28px; align-items: end; margin: 0; }
.person .ph-img { aspect-ratio: 4 / 5; width: 100%; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.person img { width: 100%; height: 100%; object-fit: cover; }
.person figcaption { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 3px solid var(--accent); }
.person figcaption strong { font-size: 1.25rem; color: var(--fg); }
.person figcaption span { color: var(--muted); font-size: .95rem; }
.facts { display: grid; border-top: 1px solid var(--line); margin: 0; }
.facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.facts dt { color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; color: var(--fg); }
.trust { margin-top: clamp(48px, 6vw, 72px); display: grid; gap: 20px; padding: clamp(20px, 3vw, 32px); }
.trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust-card { display: grid; gap: 10px; align-content: start; padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); font-size: .95rem; color: var(--muted); }
.trust-card svg.i { color: var(--accent); }
.trust-card strong { color: var(--fg); }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; } .trust-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .person { grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 18px; } .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.08rem; color: var(--fg); line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .pm { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); transition: background var(--t), border-color var(--t), transform var(--t) var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform var(--t) var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq-a { padding: 0 56px 24px 0; color: var(--muted); display: grid; gap: 10px; }
.faq-a a { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq-a { padding-right: 0; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.cinfo { display: grid; gap: 0; font-style: normal; border-top: 1px solid var(--line); }
.cinfo > div { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cinfo > div > div { min-width: 0; overflow-wrap: anywhere; color: var(--fg); }
.cinfo svg.i { color: var(--accent); margin-top: 3px; }
.cinfo .k { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.cinfo a { font-weight: 600; color: var(--fg); text-decoration: none; }
.cinfo a:hover { color: var(--accent); }
.cinfo .big { font-size: 1.25rem; font-weight: 700; }
.quick { display: grid; gap: 10px; margin-top: 28px; }
.quick a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 600; color: var(--fg); background: var(--bg); transition: border-color var(--t-fast), transform var(--t) var(--ease); }
.quick a:hover { border-color: var(--accent); transform: translateX(3px); }
.quick a small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.quick a svg.i { color: var(--accent); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.ftr { padding-block: 72px 32px; }
.ftr .grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ftr-brand { display: grid; gap: 18px; align-content: start; }
.ftr .logo { width: 118px; }
.ftr-h { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-band-muted); font-weight: 600; font-stretch: 100%; margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr a { color: var(--on-band); text-decoration: none; }
.ftr a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ftr p { color: var(--on-band-muted); font-size: .95rem; overflow-wrap: anywhere; }
.ftr p + p { margin-top: 12px; }
.ftr .base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--on-band-muted); font-size: .88rem; }
@media (max-width: 900px) { .ftr .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr .grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ftr .grid { grid-template-columns: 1fr; } }

/* Mobile Kontaktleiste */
.mbar { display: none; }
@media (max-width: 720px) {
  .mbar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform var(--t) var(--ease); }
  .mbar.is-visible { transform: none; }
  .mbar .btn { min-height: 50px; padding: 0 10px; font-size: .97rem; }
  body.has-mbar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body.menu-open .mbar { transform: translateY(110%); }
}

/* Dialog (Anfrage für mehrere Objekte) */
dialog.modal { width: min(860px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
dialog.modal[open] { display: flex; flex-direction: column; animation: pop var(--t) var(--ease); }
dialog.modal::backdrop { background: rgba(10, 19, 34, .62); backdrop-filter: blur(3px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-stretch: 105%; }
.modal-head p { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }
.modal-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; color: var(--fg); }
.modal-x:hover { border-color: var(--fg); }
.modal-body { overflow-y: auto; padding: clamp(20px, 3vw, 32px); overscroll-behavior: contain; }
.objs { display: grid; gap: 12px; counter-reset: obj; }
.obj { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.obj-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; color: var(--fg); }
.obj-head button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--err); font-weight: 600; font-size: .9rem; cursor: pointer; min-height: 40px; padding: 0 6px; }
.obj-head button svg.i { width: 16px; height: 16px; }
.obj-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .7fr); gap: 14px; }
@media (max-width: 640px) { .obj-grid { grid-template-columns: 1fr; } }
.add-obj { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: 1.5px dashed var(--accent); border-radius: var(--r); background: var(--accent-soft); color: var(--accent); font-weight: 600; cursor: pointer; }
.add-obj:hover { background: var(--bg); }
.add-obj[disabled] { opacity: .5; cursor: not-allowed; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 300; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 99px; background: var(--hep-navy); color: #fff; font-size: .95rem; font-weight: 500; box-shadow: var(--shadow-lg); transition: opacity var(--t), transform var(--t) var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 721px) { .toast { bottom: 32px; } }

/* 6 · Formulare ------------------------------------------------------------- */
.form { display: grid; gap: 22px; min-width: 0; }
.form-card { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow); }
.form-card > h3 { font-size: 1.3rem; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field > label, .lbl { font-weight: 600; font-size: .97rem; color: var(--fg); }
.field .opt { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field .help { color: var(--muted); font-size: .88rem; margin-top: -2px; }
.req { color: var(--accent); font-weight: 700; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: 400 16px/1.4 var(--font); color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
textarea { min-height: 128px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.is-valid { border-color: color-mix(in srgb, var(--ok) 60%, var(--line-strong)) !important; }
.err { color: var(--err); font-size: .9rem; font-weight: 500; display: flex; gap: 6px; align-items: flex-start; }
.err:empty { display: none; }
.err::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--err); color: var(--bg); font-size: .72rem; font-weight: 800; }

/* Auswahl-Kacheln (Radio/Checkbox) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tile > span > span:not(.tick) { flex: 1; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.tiles.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .tiles, .tiles.cols-2 { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; }
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.tile > span { display: flex; align-items: center; gap: 12px; min-height: 60px; height: 100%; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); font-size: .97rem; line-height: 1.3; background: var(--bg); color: var(--fg); font-weight: 500; transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast); }
.tile > span svg.i { color: var(--accent); width: 26px; height: 26px; stroke-width: 1.4; }
.tile > span small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.tile > span .tick { margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background var(--t-fast), border-color var(--t-fast); }
.tile input[type=radio] + span .tick { border-radius: 50%; }
.tile > span .tick svg.i { width: 14px; height: 14px; stroke-width: 3; color: var(--on-accent); opacity: 0; }
.tile input:hover + span { border-color: var(--muted); }
.tile input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.tile input:checked + span .tick { background: var(--accent); border-color: var(--accent); }
.tile input:checked + span .tick svg.i { opacity: 1; }
.tile input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.tiles[aria-invalid="true"] .tile > span { border-color: var(--err); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; font-weight: 400 !important; color: var(--text); cursor: pointer; line-height: 1.5; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.consent a { color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.submit .btn { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
@media (max-width: 560px) { .submit .btn { width: 100%; } }
.form-msg:empty { display: none; }

/* Upload */
.upl-btn { display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 18px 20px; border: 1.5px dashed var(--accent); border-radius: var(--r); background: var(--accent-soft); color: var(--fg); cursor: pointer; font: 600 1.05rem var(--font); width: 100%; text-align: left; transition: background var(--t-fast); }
.upl-btn svg.i { width: 34px; height: 34px; color: var(--accent); }
.upl-btn small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.upl-btn:hover, .upl-btn.is-drag { background: var(--surface); }
.upl input[type=file] { font: 400 15px var(--font); padding: 12px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); width: 100%; background: var(--surface); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .fn { position: absolute; inset: auto 0 0 0; padding: 4px 6px; font-size: .7rem; background: rgba(22, 36, 59, .82); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--hep-navy); color: #fff; display: grid; place-items: center; cursor: pointer; }
.thumb button svg.i { width: 16px; height: 16px; stroke-width: 2; }

/* Ergebnis-Meldungen */
.result { display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); }
.result:focus { outline: none; }
.result svg.i { width: 26px; height: 26px; margin-top: 1px; }
.result strong { display: block; font-size: 1.05rem; line-height: 1.4; color: var(--fg); }
.result p { margin-top: 6px; color: var(--text); font-size: .96rem; }
.result-ok { background: var(--ok-bg); border-left: 4px solid var(--ok); }
.result-ok svg.i { color: var(--ok); }
.result-err { background: var(--err-bg); border-left: 4px solid var(--err); }
.result-err svg.i { color: var(--err); }
.result-info { background: var(--warn-bg); border-left: 4px solid var(--warn); }
.result-info svg.i { color: var(--warn); }
.result .btn-row { margin-top: 14px; }
.caseno { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); }
.caseno .k { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 100%; }
.caseno code { font: 700 clamp(1.3rem, 4vw, 1.7rem)/1 var(--mono); color: var(--fg); }

/* 7 · Unterseiten ----------------------------------------------------------- */
.page-head { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); background: var(--surface); overflow: clip; }
.page-head .wrap { display: grid; gap: 16px; position: relative; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.crumb { font-size: .9rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.page-body { padding-block: clamp(36px, 5vw, 64px) clamp(64px, 8vw, 104px); }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.aside { display: grid; gap: 16px; position: sticky; top: calc(var(--hdr-h) + 20px); font-size: .95rem; }
.aside .box { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 10px; background: var(--bg); }
.box-h { font-size: 1.05rem; font-stretch: 100%; }
.aside ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.aside a { font-weight: 600; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .aside { position: static; } }
.emergency { display: grid; gap: 14px; padding: 22px; border-radius: var(--r); background: var(--err-bg); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); }
.emergency h2 { font-size: 1.1rem; font-stretch: 100%; display: flex; gap: 10px; align-items: center; color: var(--err); }
.emergency ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.emergency li { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--fg); }
.emergency li b { font-variant-numeric: tabular-nums; }
.emergency a { color: var(--fg); font-weight: 700; }
.fsec { display: grid; gap: 20px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.fsec-h { display: flex; align-items: baseline; gap: 12px; font-weight: 700; font-size: 1.15rem; color: var(--fg); padding: 0; }
.fsec-h b { font-size: .78rem; letter-spacing: .12em; color: var(--accent); }
.legal { max-width: 74ch; display: grid; gap: 14px; }
.legal h2 { font-size: 1.3rem; font-stretch: 100%; margin-top: 22px; }
.legal h3 { font-size: 1.05rem; margin-top: 8px; }
.legal p, .legal li { color: var(--text); overflow-wrap: anywhere; }
.legal a { color: var(--accent); }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* 8 · Animation ------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cue { 0%, 100% { transform: translateY(-3px); opacity: .5; } 50% { transform: translateY(4px); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .35; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Ladeanimation Hero + Scroll-Reveal: nur mit JavaScript und ohne reduzierte Bewegung */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero [data-anim] { opacity: 0; animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
  html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
  html.js [data-reveal].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .m-halo { animation: none; }
}

/* 9 · Druck ------------------------------------------------------------------ */
@media print {
  .hdr, .mbar, .skip, .scroll-cue, .ftr, .cfg-nav, .no-print { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  section { padding-block: 16pt; }
  a { text-decoration: none; }
}

/* ==========================================================================
   10 · Kompakte Fassung (2.1): gebündelte Bausteine
   ========================================================================== */
.muted { color: var(--muted); }
.txt-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.narrow { max-width: 860px; }

/* Leistungen kompakt */
.svc-mini-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.svc-mini { display: grid; gap: 10px; align-content: start; padding: 24px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); transition: border-color var(--t), box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.svc-mini:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-mini:hover .svc-ico { background: var(--accent); color: var(--on-accent); }
.svc-mini h3 { margin-top: 6px; font-size: 1.08rem; }
.svc-mini p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.fine { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; color: var(--muted); font-size: .9rem; }
.fine svg.i { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
@media (max-width: 1080px) { .svc-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .svc-mini { padding: 18px 16px; } .svc-mini h3 { font-size: 1rem; } .svc-mini p { font-size: .9rem; } }

/* Hausverwaltung: Vorteile */
.hv-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.hv-points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 14px; }
.hv-points svg.i { grid-row: span 2; color: var(--band-accent); width: 26px; height: 26px; stroke-width: 1.4; }
.hv-points b { color: #fff; font-weight: 600; }
.hv-points span { color: var(--on-band-muted); font-size: .94rem; }
@media (max-width: 560px) { .hv-points { grid-template-columns: 1fr; } }

/* Ablauf im Anfragebereich */
.mini-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.mini-steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.mini-steps li { position: relative; display: flex; align-items: center; gap: 16px; padding: 8px 0; font-weight: 600; color: var(--fg); }
.mini-steps span { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); font-size: .85rem; font-variant-numeric: tabular-nums; }
.mini-steps li:first-child span { background: var(--accent); color: var(--on-accent); }
@media (max-width: 960px) { .mini-steps { display: none; } }

/* Auswahl-Kacheln: Varianten */
.tiles.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles.compact .tile > span { min-height: 50px; padding: 10px 14px; font-size: .93rem; }
.tiles.compact .tile > span svg.i { width: 22px; height: 22px; }
@media (max-width: 720px) { .tiles.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .tiles.cols-3 { grid-template-columns: 1fr; } }
.cfg-check { border: 1px solid var(--line); border-radius: var(--r); }
.cfg-check summary { padding: 14px 16px; cursor: pointer; font-weight: 600; color: var(--accent); }
.cfg-check .cfg-summary { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }

/* Über uns + Einsatzgebiet */
.about2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.about2-person { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 32px; align-items: center; }
.about2-person .ph-img { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about2-person img { width: 100%; height: 100%; object-fit: cover; }
.about2-copy { display: grid; gap: 16px; }
.about2-area { display: grid; gap: 18px; min-width: 0; }
.area-row { display: grid; gap: 12px; }
.area-row h3 { font-size: 1.15rem; }
.towns li { min-height: 34px; font-size: .86rem; padding: 0 12px; }
@media (max-width: 960px) { .about2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .about2-person { grid-template-columns: 1fr; } .about2-person .ph-img { max-width: 200px; } }

/* Kontakt-Ergänzung */
.contact .faq summary { font-size: 1rem; padding: 18px 0; }
.contact .faq summary .pm { width: 32px; height: 32px; }
.contact .faq-a { font-size: .95rem; padding-right: 44px; }
.form-card > h3 { margin-bottom: -4px; }
.quick-dmg { margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .93rem; transition: border-color var(--t-fast); }
.quick-dmg:hover { border-color: var(--accent); }
.quick-dmg b { display: block; color: var(--fg); font-size: 1rem; }
.quick-dmg svg.i { color: var(--accent); }
.quick-dmg svg.i:last-child { margin-left: auto; }

/* Schaden melden: Notfallzeile */
.emergency-line { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin: 0 0 24px; border-radius: var(--r); background: var(--err-bg); border-left: 4px solid var(--err); font-size: .95rem; color: var(--fg); }
.emergency-line svg.i { color: var(--err); margin-top: 1px; }
.emergency-line a { color: var(--fg); font-weight: 700; }
.upl .upl-btn { min-height: 52px; padding: 8px 14px; font-size: .97rem; gap: 12px; }
.upl .upl-btn svg.i { width: 26px; height: 26px; }
.thumbs { margin-top: -6px; }

/* Footer kompakt */
.ftr { padding-block: 56px 28px; }
.ftr-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px 48px; align-items: center; }
.ftr-row ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ftr .base { margin-top: 36px; }
@media (max-width: 900px) { .ftr-row { grid-template-columns: 1fr; } }
@media (min-width: 961px) { .about2 { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
@media (min-width: 561px) { .about2-person { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); } }
.about2-copy h2 { font-size: clamp(1.75rem, 2.8vw, 2.3rem); }
.svc-mini h3 { hyphens: manual; overflow-wrap: break-word; }

/* 2.2 */
.faq-h { font-size: 1.15rem; margin-bottom: 8px; }
.nav-contact a { color: var(--fg); text-decoration: none; font-weight: 600; }
.ftr p a { color: var(--on-band); }
.quick-dmg { margin-top: 24px; }
.hero-copy { gap: 24px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); overflow-wrap: break-word; }
@media (max-width: 480px) { .hero h1 { font-size: clamp(1.75rem, 8.4vw, 2.2rem); } }

/* ==========================================================================
   11 · Version 3.0: ruhigere Typografie, Morphing-Grafik, offene Leistungsliste
   Bewegung: Hover/Fokus ca. 180 ms · Zustandswechsel ca. 280 ms ·
             Einblendungen ca. 520 ms · Hero-Morphing einmalig ca. 2,2 s
   ========================================================================== */
:root {
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 180ms; --t: 280ms; --t-slow: 520ms;
  --surface: #F4F6FA;
  --wrap: 1200px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 36, 59, .04), 0 6px 20px -12px rgba(22, 36, 59, .16);
  --shadow-lg: 0 1px 2px rgba(22, 36, 59, .04), 0 18px 40px -22px rgba(22, 36, 59, .24);
  /* Architektur-Grafik */
  --art-bg: #F6F8FC; --art-grid: #E4E9F2; --art-face: #FFFFFF; --art-line: #16243B;
  --art-win: #DCE4F1; --art-lit: #A9C3F7; --art-door: #16243B; --art-roof: #2F6BE4;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #13203A;
    --art-bg: #13203A; --art-grid: #1C2C4A; --art-face: #1A2B47; --art-line: #8FA4C8;
    --art-win: #2A3E62; --art-lit: #5B8DF0; --art-door: #0F1A2C; --art-roof: #5B8DF0;
  }
}
:root[data-theme="dark"] {
  --surface: #13203A;
  --art-bg: #13203A; --art-grid: #1C2C4A; --art-face: #1A2B47; --art-line: #8FA4C8;
  --art-win: #2A3E62; --art-lit: #5B8DF0; --art-door: #0F1A2C; --art-roof: #5B8DF0;
}
.band {
  --art-bg: #1B2B46; --art-grid: #23365A; --art-face: #213456; --art-line: #8399C0;
  --art-win: #2C4270; --art-lit: #6F9BF3; --art-door: #13203A; --art-roof: #6F9BF3;
}

/* Typografie: normale Laufweite, klare Abstufung */
h1 { font-stretch: 100%; font-weight: 700; letter-spacing: -.032em; line-height: 1.05; }
h2 { font-stretch: 100%; font-weight: 700; letter-spacing: -.024em; line-height: 1.12; }
.about2-copy h2, .modal-head h2, .digital h3 { font-stretch: 100%; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 600; color: var(--accent); line-height: 1.4; }
.kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; flex: none; }
.band .kicker { color: var(--band-accent); }

/* Buttons: klare Flächen, keine Leuchtschatten */
.btn-primary, .btn-primary:hover { box-shadow: 0 1px 2px rgba(22, 36, 59, .12); }
.btn svg.i-arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover svg.i-arrow, .btn:focus-visible svg.i-arrow { transform: translateX(3px); }

/* Hero */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 104px); }
.hero::before { display: none; }
.hero .wrap { gap: clamp(36px, 5vw, 80px); }
@media (min-width: 901px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hero-copy { gap: 22px; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); }
.hero h1 .l2 { color: var(--accent); }
.hero .lead { max-width: 50ch; }
.hero-contact { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); max-width: 50ch; }
.hero-contact svg.i { width: 20px; height: 20px; color: var(--accent); }
.hero-contact a { color: var(--fg); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hero-contact a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.hero-frame { aspect-ratio: 4 / 3; background: var(--art-bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 900px) { .hero-frame { aspect-ratio: 4 / 3; max-width: 640px; } }
@media (max-width: 560px) { .hero-frame { aspect-ratio: 4 / 3; } .hero h1 { font-size: clamp(2rem, 9.4vw, 2.5rem); } }

/* Architektur-Grafik (Hero und Hausverwaltungen) */
.hero-art, .hv-art { display: block; width: 100%; height: 100%; }
.ha-bg { fill: var(--art-bg); }
.ha-grid { fill: none; stroke: var(--art-grid); stroke-width: 1; }
.ha-face { fill: var(--art-face); stroke: var(--art-line); stroke-width: 1.5; stroke-linejoin: round; }
.ha-win rect, rect.ha-win { fill: var(--art-win); }
.ha-lit rect { fill: var(--art-lit); }
.ha-door { fill: var(--art-door); }
.ha-roof { fill: var(--art-roof); }
.ha-main, .ha-side, .ha-ground { transform-box: view-box; }
@media (max-width: 560px) { .ha-gridfill { display: none; } }

/* Morphing: einmalig von der Hauskontur zur Häusergruppe. Ruhender Endzustand.
   Ohne Bewegung (prefers-reduced-motion) ist sofort der Endzustand sichtbar. */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .ha-main { animation: haMain 2.2s cubic-bezier(.65, 0, .35, 1) .3s both; }
  .hero-art .ha-ground { animation: haGround 2.2s cubic-bezier(.65, 0, .35, 1) .3s both; }
  .hero-art .ha-main .ha-wins { animation: haFade .6s ease-out 1.6s both; }
  .hero-art .ha-left { animation: haLeft 1.5s var(--ease) 1.05s both; }
  .hero-art .ha-right { animation: haRight 1.5s var(--ease) 1.2s both; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 560px) {
  .hero-art .ha-main, .hero-art .ha-ground { animation-duration: 1.6s; }
  .hero-art .ha-left, .hero-art .ha-right { animation-duration: 1.1s; animation-delay: .8s; }
}
@keyframes haMain { from { transform: scale(1.24); } to { transform: none; } }
@keyframes haGround { from { transform: scaleX(.5); } to { transform: none; } }
@keyframes haFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes haLeft { from { opacity: 0; transform: translateX(150px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes haRight { from { opacity: 0; transform: translateX(-150px) scale(.6); } to { opacity: 1; transform: none; } }

/* Leistungen: offene Liste statt Kartenraster (nicht anklickbar) */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px clamp(24px, 3vw, 40px); }
.svc-item { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line-strong); min-width: 0; }
.svc-item::before { content: ""; position: absolute; top: -1px; left: 0; width: 36px; height: 2px; background: var(--accent); }
.svc-item .svc-ico { width: 46px; height: 46px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.svc-item .svc-ico svg.i { width: 24px; height: 24px; stroke-width: 1.5; }
.svc-item h3 { margin-top: 6px; font-size: 1.08rem; hyphens: manual; overflow-wrap: break-word; }
.svc-item p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
#leistungen .fine { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 1080px) { .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .svc-list { grid-template-columns: 1fr; gap: 0; }
  .svc-item { grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; padding: 18px 0; }
  .svc-item::before { display: none; }
  .svc-item .svc-ico { grid-row: span 2; }
  .svc-item h3 { margin-top: 2px; font-size: 1.04rem; }
  .svc-item:last-child { border-bottom: 1px solid var(--line-strong); }
  #leistungen .fine { border-top: 0; padding-top: 0; margin-top: 24px; }
}

/* Hausverwaltungen */
@media (min-width: 961px) { .hv .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.hv-visual { aspect-ratio: 4 / 3; background: var(--art-bg); border-color: var(--band-line); }
.hv-copy { gap: 20px; }
.hv-points { gap: 20px 28px; margin-top: 8px; }
.hv-points li { align-content: start; }
.hv-points li:last-child { grid-column: 1 / -1; }
@media (max-width: 960px) { .hv-visual { order: 0; aspect-ratio: 4 / 3; max-width: 560px; } }
@media (max-width: 560px) { .hv-visual { display: none; } }

/* Anfrage-Assistent */
.progress { height: 3px; }
.cfg-dots { display: flex; gap: 10px; font-size: .9rem; }
.cfg-dots li { display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; overflow: visible; color: var(--muted); }
.cfg-dots li:not(:last-child)::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); min-width: 12px; }
.cfg-dots li:last-child { flex: 0 0 auto; }
.cfg-dots li span { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); font-size: .82rem; font-weight: 600; transition: background var(--t), border-color var(--t), color var(--t); }
.cfg-dots li.is-current { color: var(--fg); font-weight: 600; }
.cfg-dots li.is-current span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cfg-dots li.is-done span { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .cfg-dots { display: flex; } }
@media (max-width: 420px) { .cfg-dots li:not(.is-current) { font-size: 0; gap: 0; } .cfg-dots li:not(.is-current) span { font-size: .82rem; } .cfg-dots li:not(.is-current):not(:last-child)::after { margin-left: 8px; } }
.cfg-meta span { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .cfg-step:not([hidden]) { animation: stepIn 300ms var(--ease) both; }
}
@keyframes stepIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.cfg-check { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.cfg-check-h { padding: 12px 16px; font-weight: 600; color: var(--fg); font-size: .95rem; border-bottom: 1px solid var(--line); }
.cfg-check .cfg-summary { border: 0; border-radius: 0; background: var(--bg); }
.cfg-summary button { min-height: 44px; padding: 0 8px; }
.req-note { margin: 0; padding: 0 clamp(20px, 3vw, 32px) 18px; color: var(--muted); font-size: .88rem; }

/* Über uns */
@media (min-width: 561px) { .about2-person { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); } }
.about2-copy { gap: 14px; }
.person-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.person-line b { color: var(--fg); }
.person-line span { color: var(--muted); font-size: var(--fs-sm); }
.person-line a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.person-line a:hover { text-decoration: underline; text-underline-offset: 3px; }
.person-line svg.i { width: 18px; height: 18px; }

/* Karte und Ortsliste */
.map { box-shadow: none; }
.m-river { stroke-width: 5; stroke-opacity: .25; }
.m-halo { animation: none !important; fill-opacity: .14; }
.m-km { letter-spacing: .5px; }
.m-town text { font-size: 15px; }
.m-km { font-size: 13px; }
.m-badge-t { font-size: 15px; }
.m-badge-s { font-size: 11px; }
.m-river-t { font-size: 13px; }
.towns li { display: block; min-height: 0; padding: 0; border: 0; background: none; }
.towns button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--fg); font: 500 .9rem/1.2 var(--font); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
.towns button:hover, .towns button.is-hl { border-color: var(--accent); color: var(--accent); }
.towns button[aria-pressed="true"] { background: var(--accent-soft); }
.towns button.is-hq { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.towns button.is-hq.is-hl { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Kontakt, FAQ */
.quick-dmg { transition: border-color var(--t-fast), transform var(--t-fast) var(--ease); }
.quick-dmg:hover { transform: translateY(-1px); }
.quick-dmg svg.i:last-child { transition: transform var(--t-fast) var(--ease); }
.quick-dmg:hover svg.i:last-child { transform: translateX(3px); }
.faq summary { transition: color var(--t-fast); }
.faq summary .pm { transition: background var(--t), border-color var(--t), color var(--t), transform var(--t) var(--ease); }
.faq details[open] summary .pm { transform: rotate(180deg); }

/* Einblendungen: nur wenn das Skript sie aktiviert hat (Inhalte bleiben bei Skriptfehlern sichtbar) */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.reveal-on [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
  html.reveal-on [data-reveal].in { opacity: 1; transform: none; }
}

/* Unterseiten */
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.legal { max-width: 70ch; gap: 12px; }
.legal p, .legal li { line-height: 1.7; }
.legal h2 { font-size: 1.3rem; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.05rem; margin-top: 12px; }
.fsec { box-shadow: none; }

/* Sehr schmale Bildschirme (ab 320 px) */
@media (max-width: 360px) {
  .btn { padding: 0 16px; }
  .cfg-nav .btn { min-width: 0; flex: 1; }
}

/* 3.1 · Hero-Grafik im dunklen Stil, mit Logo-Bezug (Dach, Grundlinie, Schriftzug) */
.art-dark, .band {
  --art-bg: #16243B; --art-grid: rgba(255, 255, 255, .05); --art-face: #22365A; --art-line: rgba(255, 255, 255, .22);
  --art-win: rgba(255, 255, 255, .07); --art-lit: #7FA6F5; --art-door: #101B2E; --art-roof: #2F6BE4;
  --art-sign: rgba(255, 255, 255, .9); --art-tag: rgba(255, 255, 255, .55);
  --sky1: #24395B; --sky2: #16243B; --sky3: #101B2E; --glow: rgba(91, 141, 240, .28);
}
.band { --art-roof: #5B8DF0; }
.hero-frame.art-dark { border-color: transparent; box-shadow: var(--shadow-lg); }
.ha-skyfill, .ha-glowfill, .ha-tag, .ha-sign { display: none; }
.art-dark .ha-skyfill, .band .ha-skyfill, .art-dark .ha-glowfill, .art-dark .ha-tag, .art-dark .ha-sign { display: inline; }
.ha-sky1 { stop-color: var(--sky1, #24395B); } .ha-sky2 { stop-color: var(--sky2, #16243B); } .ha-sky3 { stop-color: var(--sky3, #101B2E); }
.ha-glow1 { stop-color: var(--glow, rgba(91, 141, 240, .28)); } .ha-glow2 { stop-color: rgba(91, 141, 240, 0); }
.ha-sign { fill: var(--art-sign); font: 800 15px var(--font); letter-spacing: 1px; }
.ha-tag { fill: var(--art-tag); font: 600 11px var(--font); letter-spacing: 4.5px; }
.hv-art .ha-sign { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .ha-glowfill { animation: haFade 1.2s ease-out 1.4s both; }
  .hero-art .ha-tag { animation: haFade .8s ease-out 2.1s both; }
}
@media (max-width: 560px) { .ha-tag { letter-spacing: 3px; } }
