/* ==========================================================================
   Timon M. Lindemann Hausverwaltung – Stylesheet „Klar & reduziert“
   1 Schrift · 2 Tokens · 3 Basis · 4 Bausteine · 5 Header/Footer
   6 Startseite · 7 Formulare (gemeinsam) · 8 Angebotsassistent
   9 Schadensmeldung · 10 Unterseiten
   ========================================================================== */

/* 1 · Schrift (lokal, keine Verbindung zu Google) ------------------------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2 · Design-Tokens --------------------------------------------------------- */
:root {
  --ink: #1d252d;          /* Anthrazit – Überschriften, Buttons, dunkle Flächen */
  --ink-2: #333e49;
  --text: #2a323b;
  --muted: #5b6570;
  --subtle: #8a939c;
  --line: #e1e5e9;
  --line-strong: #c7cdd3;
  --bg: #ffffff;
  --bg-alt: #f5f6f7;

  --green: #7a9a5a;        /* Grün aus dem Logo – nur als Akzent */
  --green-700: #55743d;    /* Links, Häkchen, Nummern (5,3:1 auf Weiß) */
  --green-800: #45602f;
  --green-300: #a9c28f;    /* Akzent auf dunklem Grund */
  --green-50: #f1f5ec;

  --error: #b42318;
  --error-bg: #fef3f2;
  --warn-bg: #fff7e6;
  --warn-line: #e9b949;
  --warn-text: #5f4100;
  --warn-border: #f6dfa6;
  --error-line: #fecdca;
  --error-text: #7a271a;
  --error-field: #e4a29b;
  --emergency-text: #5a1d14;

  /* Flächen – im Dunkelmodus weiter unten überschrieben */
  --surface: #ffffff;      /* Karten, Kacheln */
  --surface-dim: #fcfcfd;
  --field: #ffffff;        /* Eingabefelder */
  --dark: #1d252d;         /* dunkle Abschnitte, Rechner-Ergebnis, Footer */
  --btn: #1d252d;          /* Haupt-Button, ausgewählte Optionen */
  --btn-hover: #000000;
  --on-btn: #ffffff;       /* Schrift auf --btn */
  --header-bg: rgba(255, 255, 255, .96);
  --focus-ring: rgba(29, 37, 45, .12);

  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(29, 37, 45, .04), 0 8px 24px rgba(29, 37, 45, .06);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: 16px;
  --header-h: 68px;
  color-scheme: light dark;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 80px; }
}

/* Dunkelmodus
   Standard: richtet sich nach der Einstellung am Gerät. Der Knopf im Kopfbereich (assets/js/theme.js)
   setzt data-theme="light" bzw. "dark" auf <html> und überschreibt damit die Geräteeinstellung.
   Neue Farben immer in BEIDEN Blöcken eintragen. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef1f4;
    --ink-2: #c9d0d7;
    --text: #c3cad1;
    --muted: #98a2ac;
    --subtle: #7d8792;
    --line: #2a333d;
    --line-strong: #3c4752;
    --bg: #12181e;
    --bg-alt: #171e25;

    --green: #8cab6b;
    --green-700: #a9c28f;
    --green-800: #c2d6ad;
    --green-300: #a9c28f;
    --green-50: rgba(140, 171, 107, .16);

    --error: #f97066;
    --error-bg: rgba(180, 35, 24, .16);
    --error-line: rgba(249, 112, 102, .38);
    --error-text: #fda29b;
    --error-field: #f97066;
    --emergency-text: #f6c9c4;
    --warn-bg: rgba(233, 185, 73, .10);
    --warn-border: rgba(233, 185, 73, .35);
    --warn-text: #f3d48a;

    --surface: #1a222a;
    --surface-dim: #161d24;
    --field: #141a20;
    --dark: #0b0f13;
    --btn: #e8ecef;
    --btn-hover: #ffffff;
    --on-btn: #12181e;
    --header-bg: rgba(18, 24, 30, .94);
    --focus-ring: rgba(232, 236, 239, .18);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
  :root:not([data-theme="light"]) .check-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9c28f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  }
  :root:not([data-theme="light"]) .form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8ecef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
  :root:not([data-theme="light"]) .hero__media img { filter: brightness(.92); }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .brand__logo--hell { display: none; }
  :root:not([data-theme="light"]) .brand__logo--dunkel { display: block; }
}
:root[data-theme="dark"] {
  --ink: #eef1f4;
  --ink-2: #c9d0d7;
  --text: #c3cad1;
  --muted: #98a2ac;
  --subtle: #7d8792;
  --line: #2a333d;
  --line-strong: #3c4752;
  --bg: #12181e;
  --bg-alt: #171e25;

  --green: #8cab6b;
  --green-700: #a9c28f;
  --green-800: #c2d6ad;
  --green-300: #a9c28f;
  --green-50: rgba(140, 171, 107, .16);

  --error: #f97066;
  --error-bg: rgba(180, 35, 24, .16);
  --error-line: rgba(249, 112, 102, .38);
  --error-text: #fda29b;
  --error-field: #f97066;
  --emergency-text: #f6c9c4;
  --warn-bg: rgba(233, 185, 73, .10);
  --warn-border: rgba(233, 185, 73, .35);
  --warn-text: #f3d48a;

  --surface: #1a222a;
  --surface-dim: #161d24;
  --field: #141a20;
  --dark: #0b0f13;
  --btn: #e8ecef;
  --btn-hover: #ffffff;
  --on-btn: #12181e;
  --header-bg: rgba(18, 24, 30, .94);
  --focus-ring: rgba(232, 236, 239, .18);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
}
:root[data-theme="dark"] .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9c28f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8ecef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .hero__media img { filter: brightness(.92); }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .brand__logo--hell { display: none; }
:root[data-theme="dark"] .brand__logo--dunkel { display: block; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* 3 · Basis ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.has-mobile-cta { padding-bottom: 76px; }
@media (min-width: 768px) { body.has-mobile-cta { padding-bottom: 0; } }

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.022em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.1875rem; letter-spacing: -.012em; line-height: 1.3; }
h4 { font-size: 1rem; letter-spacing: 0; }

p { margin: 0 0 1em; }
a { color: var(--green-700); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-800); }
strong { font-weight: 600; }

/* Lange deutsche Wörter dürfen getrennt werden */
p, li, dd, small { -webkit-hyphens: auto; hyphens: auto; }

:focus-visible { outline: 2px solid var(--green-700); outline-offset: 3px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  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-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--btn); color: var(--on-btn); padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-btn); }

/* Platzhalter – gelb markiert, damit nichts übersehen wird */
.ph {
  background: #fff3bf; color: #5c4a00;
  outline: 1px dashed #d9a800; border-radius: 3px;
  padding: 0 .3em;
  font-size: .85em; font-weight: 600; letter-spacing: 0;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* 4 · Bausteine ------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.section { padding-block: clamp(72px, 9vw, 128px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #b9c1c9; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p:last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .section-head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
  .section-head--split h2 { margin-bottom: 0; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; flex: none; }
.section--dark .eyebrow { color: var(--green-300); }

.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.section--dark .lead { color: #b9c1c9; }

.num { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--green-700); font-variant-numeric: tabular-nums; }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 600 1rem/1.2 var(--font); letter-spacing: -.005em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2; }
.btn--primary { background: var(--btn); color: var(--on-btn); }
.btn--primary:hover { background: var(--btn-hover); color: var(--on-btn); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: #1d252d; }
.btn--light:hover { background: #eef1f3; color: #1d252d; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: .9375rem; }
.btn:disabled { opacity: .55; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; font-size: .9375rem; color: var(--ink); text-decoration: none;
}
.text-link .icon { width: 16px; height: 16px; stroke-width: 2; color: var(--green-700); transition: transform .2s; }
.text-link:hover { color: var(--ink); }
.text-link:hover .icon { transform: translateX(3px); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.check-list li::before {
  content: ""; width: 18px; height: 18px; margin-top: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355743d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* 5 · Header, Navigation, Footer --------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: block; flex: 0 1 auto; min-width: 0; }
.brand img { width: 222px; max-width: 100%; height: auto; }
@media (min-width: 768px) { .brand img { width: 271px; } }
.brand__logo--dunkel { display: none; }   /* helles Logo für dunklen Hintergrund – siehe Dunkelmodus */

/* Hell/Dunkel-Knopf (nur mit JavaScript sichtbar) */
.theme-toggle {
  display: none; width: 46px; height: 46px; flex: none; margin-left: auto;
  align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .15s, background-color .2s, color .2s;
}
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { border-color: var(--line-strong); }
.theme-toggle .icon { width: 20px; height: 20px; stroke-width: 1.8; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle + .nav-toggle, .theme-toggle + .btn { margin-left: -10px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; flex: none;
  align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__link { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav__extra { display: grid; gap: 12px; }
.nav__service, .nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.nav__service .icon, .nav__phone .icon { width: 18px; height: 18px; color: var(--green-700); stroke-width: 2; }
.nav__service:hover, .nav__phone:hover { color: var(--green-700); }
.nav__service[aria-current="page"] { color: var(--green-700); }

@media (max-width: 1179.98px) {
  .nav.is-open {
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--bg); padding: 8px var(--gutter) 32px; overflow-y: auto;
  }
  .nav__link { display: block; padding: 16px 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav__service, .nav__phone { min-height: 44px; font-size: 1rem; }
  .nav__extra .btn { width: 100%; }
  body.menu-open { overflow: hidden; }
  body.menu-open .mobile-cta { display: none; }
  /* backdrop-filter würde das fixierte Menü an den Header binden – bei offenem Menü abschalten */
  body.menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}
@media (min-width: 1180px) {
  .js .nav-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 28px; height: 100%; order: 2; margin-left: auto; }
  .theme-toggle { order: 3; margin-left: 0; }
  .nav__list { display: flex; gap: 4px; height: 100%; }
  .nav__list li { display: flex; }
  .nav__link { display: flex; align-items: center; padding: 0 12px; font-size: .9375rem; position: relative; }
  .nav__link:hover { color: var(--ink); }
  .nav__link.is-active { color: var(--ink); }
  .nav__link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--green); }
  .nav__extra { display: flex; align-items: center; gap: 24px; padding-left: 24px; border-left: 1px solid var(--line); height: 32px; }
  .nav__phone { display: none; }
}

/* Mobile Aktionsleiste */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--header-bg); border-top: 1px solid var(--line);
  transition: transform .25s ease;
}
.mobile-cta .btn { min-height: 48px; padding-inline: 12px; font-size: .9375rem; }
.mobile-cta.is-hidden { transform: translateY(110%); }
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* Footer */
.site-footer { background: var(--dark); color: #aab3bc; padding-block: 72px 28px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid > * { min-width: 0; }
.footer-brand img { width: 210px; height: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 300px; margin: 0; }
.site-footer h2 { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #d5dbe0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8125rem; color: #8b959f;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer--slim { padding-block: 28px; }
.site-footer--slim .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }

/* 6 · Startseite ---------------------------------------------------------------- */

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) 0; }
/* Desktop: Der Einstieg füllt genau den ersten Bildschirm – darunter beginnt erst beim Scrollen der nächste Abschnitt */
@media (min-width: 980px) {
  .hero {
    display: flex; align-items: center;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    padding-block: 28px;
  }
  .hero > .container { flex: none; }
  .hero__index { margin-top: clamp(32px, 5vh, 64px); }
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 72px; } }
.hero h1 { margin-bottom: 24px; }
.hero h1 span { color: var(--subtle); }
.hero .lead { max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 36px; }
@media (max-width: 479.98px) { .hero__actions .btn { width: 100%; } }
.trust-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: .9375rem; font-weight: 500; color: var(--ink-2);
}
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list .icon { width: 18px; height: 18px; color: var(--green-700); stroke-width: 2.4; }

.hero__media { position: relative; margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--bg-alt); }
@media (max-width: 979.98px) { .hero__media img { aspect-ratio: 4 / 3; } }
.hero__media .ph { position: absolute; left: 16px; right: 16px; top: 16px; padding: 8px 10px; font-size: .8125rem; text-align: center; }
/* Desktop mit normaler Bildschirmhöhe: kompakter, damit Einstieg + Leistungsleiste ganz sichtbar sind */
@media (min-width: 980px) and (max-height: 1000px) {
  .hero__media img { aspect-ratio: 1 / 1; }
  .hero h1 { font-size: clamp(2.4rem, 1.2rem + 2.6vw, 3.5rem); margin-bottom: 20px; }
  .hero__actions { margin: 26px 0 26px; }
}
@media (min-width: 980px) and (max-height: 800px) {
  .hero__media img { aspect-ratio: 5 / 4; }
}
.hero__caption {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--header-bg); color: var(--ink);
  font-size: .875rem; font-weight: 500; box-shadow: var(--shadow);
}
.hero__caption .icon { width: 18px; height: 18px; color: var(--green-700); stroke-width: 2; }

/* Leistungs-Leiste unter dem Hero */
.hero__index {
  list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .hero__index { grid-template-columns: repeat(3, 1fr); } }
.hero__index li { border-bottom: 1px solid var(--line); }
.hero__index li + li { border-left: 1px solid var(--line); }
@media (max-width: 759.98px) {
  .hero__index li:nth-child(odd) { border-left: 0; }
  .hero__index li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.hero__index a {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 22px 20px 24px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .9375rem; line-height: 1.35;
  transition: background-color .2s;
}
.hero__index li:first-child a { padding-left: 0; }
@media (max-width: 759.98px) { .hero__index li:nth-child(odd) a { padding-left: 0; } }
.hero__index a:hover { background: var(--bg-alt); }

/* Zwei Spalten: Überschrift links, Inhalt rechts */
.split { display: grid; gap: 48px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 96px; } }
.split__sticky { align-self: start; }
@media (min-width: 960px) { .split__sticky { position: sticky; top: calc(var(--header-h) + 40px); } }


/* Leistungen – Raster mit feinen Linien */
.service-grid {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 680px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service { display: flex; flex-direction: column; background: var(--surface); padding: 32px 30px 24px; min-width: 0; }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.service__top .icon { color: var(--subtle); width: 26px; height: 26px; stroke-width: 1.4; }
.service h3 { font-size: 1.3125rem; margin-bottom: 10px; -webkit-hyphens: auto; hyphens: auto; }
.service > p { color: var(--muted); font-size: 1rem; }
.service details { margin-top: auto; border-top: 1px solid var(--line); }
.service summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: .9375rem; color: var(--ink);
}
.service summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.service summary .icon, .faq summary .icon { width: 18px; height: 18px; color: var(--ink); stroke-width: 2; transition: transform .2s; }
details[open] > summary .icon { transform: rotate(45deg); }
.service .check-list { font-size: .9375rem; padding-bottom: 18px; color: var(--ink-2); }
.service__cta { border-top: 1px solid var(--line); padding-top: 4px; }
.service--cta { background: var(--dark); color: #b9c1c9; justify-content: space-between; }
/* 3 Leistungen + Beratungskarte: auf großen Bildschirmen als breite Leiste unter den Leistungen */
@media (min-width: 1040px) {
  .service--cta { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; padding-block: 28px; }
  .service--cta .service__top { display: none; }
  .service--cta h3 { margin-bottom: 6px; }
  .service--cta p { margin: 0; }
  .service--cta .btn { align-self: center; flex: none; }
}
.details-intro { margin: 0 0 12px; font-size: .9375rem; color: var(--muted); }
.service--cta h3 { color: #fff; }
.service--cta p { color: #b9c1c9; }
.service--cta .service__top .icon { color: var(--green-300); }
.service--cta .btn { align-self: flex-start; }

/* Vorteile */
.benefit-grid { display: grid; gap: 40px 32px; }
@media (min-width: 640px) { .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .benefit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.benefit { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 28px; }
.benefit .icon { width: 28px; height: 28px; color: var(--green-300); margin-bottom: 24px; stroke-width: 1.4; }
.benefit h3 { margin-bottom: 8px; }
.benefit p { margin: 0; font-size: 1rem; }

/* Preise */
.price-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price { display: flex; flex-direction: column; padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.price--featured { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--green); }
.price__tag { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price h3 { font-size: 1.375rem; margin: 10px 0 24px; -webkit-hyphens: auto; hyphens: auto; }
.price__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; color: var(--muted); }
.price__amount strong { font-size: 2.75rem; line-height: 1; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.price__amount .ph { font-size: .875rem; vertical-align: middle; letter-spacing: 0; }
.price__unit { margin: 8px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.price .check-list { font-size: .9375rem; margin-bottom: 32px; color: var(--ink-2); }
.price__list-title { margin: 0 0 14px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Link zum Preisrechner (Startseite) */
.calc-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: center;
  margin-top: 16px; padding: 20px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
@media (min-width: 680px) { .calc-link { grid-template-columns: auto minmax(0, 1fr) auto; } }
.calc-link:hover { border-color: var(--ink-2); box-shadow: var(--shadow); color: var(--ink); }
.calc-link__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--green-50); color: var(--green-700); }
.calc-link__text { font-size: .9375rem; color: var(--muted); }
.calc-link__text strong { display: block; font-size: 1.0625rem; color: var(--ink); }
.calc-link__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; color: var(--ink); grid-column: 1 / -1; }
@media (min-width: 680px) { .calc-link__cta { grid-column: auto; } }
.calc-link__cta .icon { width: 16px; height: 16px; stroke-width: 2; color: var(--green-700); transition: transform .2s; }
.calc-link:hover .calc-link__cta .icon { transform: translateX(3px); }

/* Preisrechner (nur mit JavaScript) */
.calc { display: none; }
.js .calc {
  display: grid; margin-bottom: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 860px) { .js .calc { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.calc > * { min-width: 0; }
.calc__inputs { padding: clamp(24px, 3vw, 40px); }
.calc__inputs h3, .calc__title { font-size: 1.375rem; letter-spacing: -.015em; margin-bottom: 6px; }

/* Seite „Preisrechner“ */
.calc-page { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 104px); }
.calc-page__title { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); margin: clamp(48px, 6vw, 72px) 0 24px; }
.calc-page__intro { margin: -8px 0 28px; max-width: 64ch; color: var(--muted); }
.calc-page__back { margin: 32px 0 0; }
.calc-page__back .text-link:hover .icon { transform: translateX(-3px); }
.calc__hint { margin: 0 0 24px; color: var(--muted); font-size: .9375rem; }
.calc__group { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.calc__group:last-child { margin-bottom: 0; }
.calc__group legend, .calc__group > label { display: block; padding: 0; margin-bottom: 10px; font-weight: 600; font-size: .9375rem; color: var(--ink); }
.calc__small { margin: 10px 0 0; font-size: .8125rem; color: var(--muted); }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.stepper__btn { width: 50px; border: 0; background: var(--bg-alt); color: var(--ink); font: 600 1.375rem/1 var(--font); cursor: pointer; transition: background-color .15s; }
.stepper__btn:hover { background: var(--line); }
.stepper input {
  width: 96px; min-height: 52px; border: 0; border-inline: 1px solid var(--line-strong);
  text-align: center; font: 600 1.25rem var(--font); color: var(--ink); font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green-700); }

.calc__result { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(24px, 3vw, 40px); background: var(--dark); color: #c9d1d8; }
.calc__label { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-300); }
.calc__amount { margin: 6px 0 4px; font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.calc__amount small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: #aab3bc; }
.calc__amount--text { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.calc__note { margin: 0; font-size: .9063rem; color: #c9d1d8; }
.calc__details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.calc__details dt { font-size: .8125rem; color: #aab3bc; }
.calc__details dd { margin: 0; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.calc__result .calc__small { margin: 0; color: #aab3bc; }
.calc__result .btn { align-self: flex-start; }

/* Zusatzleistungen & Preisfaktoren */
.price-extras {
  display: grid; gap: 28px 48px; margin-top: 16px; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt);
}
@media (min-width: 760px) { .price-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price-extras > * { min-width: 0; }
.price-extras h3 { font-size: 1.0625rem; margin-bottom: 14px; }
.price-extras .check-list { font-size: .9375rem; color: var(--ink-2); }
.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9375rem; color: var(--ink-2); }
.dash-list li { position: relative; padding-left: 20px; }
.dash-list li::before { content: "–"; position: absolute; left: 0; color: var(--subtle); }
.price .btn { margin-top: auto; width: 100%; }
.price-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; font-size: .9375rem; color: var(--muted); max-width: 860px; }
.price-note .icon { width: 20px; height: 20px; color: var(--ink-2); margin-top: 2px; }
.price-note p { margin: 0; }

/* Über uns */
.quote {
  margin: 40px 0 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--green);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.4; letter-spacing: -.02em; font-weight: 500; color: var(--ink);
}

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 760px) { .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: 24px 0 32px; border-top: 1px solid var(--line); position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 2px; background: var(--green); }
.step .num { display: block; margin-bottom: 20px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 1rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; min-height: 64px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; color: var(--ink);
}
.faq__body { padding: 0 48px 24px 0; color: var(--muted); }
.faq__body p:last-child { margin-bottom: 0; }

/* Anfrage-Bereich */
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; } }
.contact-grid > * { min-width: 0; }
.contact-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
@media (min-width: 1000px) { .contact-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.contact-card h3 { margin-bottom: 6px; }
.contact-card > p { color: var(--muted); font-size: .9375rem; }
.contact-list { list-style: none; margin: 16px 0 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list .icon { width: 20px; height: 20px; color: var(--green-700); margin-top: 3px; }
.contact-list small { display: block; font-size: .8125rem; color: var(--muted); }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.contact-list address { font-style: normal; color: var(--ink); font-weight: 600; }
.contact-list .map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 500; font-size: .875rem; color: var(--green-700); }
.contact-list .map-link .icon { width: 14px; height: 14px; margin: 0; }

/* Service-Band für bestehende Kunden */
.service-band { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: 40px; }
.service-band__inner { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .service-band__inner { grid-template-columns: auto 1fr auto; gap: 28px; } }
.service-band__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--green-700); }
.service-band h2 { font-size: 1.25rem; letter-spacing: -.015em; margin-bottom: 4px; }
.service-band p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* 7 · Formulare (gemeinsam) ------------------------------------------------- */
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.form legend, .form .field > label, .form .field__label {
  display: block; padding: 0; margin-bottom: 10px;
  font-weight: 600; font-size: .9375rem; color: var(--ink);
}
.optional { font-weight: 400; color: var(--muted); font-size: .8125rem; }
.form .hint { color: var(--muted); font-size: .9375rem; margin-bottom: 22px; }

.field { margin-bottom: 20px; }
.field-row { display: grid; gap: 0 16px; }
.field-row > * { min-width: 0; }
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row--plz { grid-template-columns: 140px 1fr; }
  .field-row--street { grid-template-columns: 2fr 1fr; }
  .field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field--narrow { max-width: 220px; }
}
.has-error input[type="number"] { border-color: var(--error); }

/* Fragenblöcke im Angebotsassistenten (je nach gewählter Leistung) */
.form .objekt-block { margin: 0 0 8px; padding: 0; border: 0; min-width: 0; }
.form .objekt-block:not([hidden]) ~ .objekt-block:not([hidden]) { padding-top: 20px; border-top: 1px solid var(--line); }
.form .objekt-block__title {
  float: left; width: 100%;   /* „float“ löst die Überschrift aus dem Rahmen des fieldset, sonst läuft die Trennlinie hindurch */
  display: block; margin: 0 0 16px; padding: 0;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700);
}
.form .objekt-block > :not(legend) { clear: both; }
.objekt-block:not([hidden]) ~ .field-row--plz { margin-top: 8px; }
.split__sticky > .btn { margin-top: 4px; }

.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"], .form input[type="number"], .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.form select {
  -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d252d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.form textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--subtle); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus-ring);
}
.form ::placeholder { color: #9aa2aa; }

/* Auswahl-Kacheln */
.choice-grid { display: grid; gap: 10px; }
.choice-grid > * { min-width: 0; }
@media (min-width: 560px) { .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input, .pill input { position: absolute; top: 12px; left: 12px; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice__box {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) 20px; column-gap: 14px; align-items: center;
  height: 100%; min-height: 68px; padding: 14px 16px;
  background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.choice__box > .icon { grid-column: 1; grid-row: 1 / 3; width: 24px; height: 24px; color: var(--ink-2); stroke-width: 1.5; }
.choice__box strong { grid-column: 2; grid-row: 1; color: var(--ink); line-height: 1.3; font-size: .9688rem; -webkit-hyphens: auto; hyphens: auto; }
.choice__box small { grid-column: 2; grid-row: 2; color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.choice__mark {
  grid-column: 3; grid-row: 1 / 3;
  display: grid; place-items: center; width: 20px; height: 20px;
  border: 1px solid var(--line-strong); border-radius: 4px; background: var(--field);
}
.choice__mark .icon { width: 13px; height: 13px; stroke-width: 3; opacity: 0; color: var(--on-btn); }
.choice--radio .choice__mark { border-radius: 50%; }
.choice--simple .choice__box { grid-template-columns: minmax(0, 1fr) 20px; min-height: 54px; }
.choice--simple .choice__box strong { grid-column: 1; grid-row: 1 / 3; font-weight: 500; }
.choice--simple .choice__mark { grid-column: 2; }
/* Kompakte Kacheln: Symbol oben, Text darunter (z. B. Schadensarten) */
.choice-grid--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .choice-grid--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice-grid--tiles .choice__box { grid-template-columns: minmax(0, 1fr) 20px; grid-template-rows: auto 1fr; row-gap: 12px; align-items: start; min-height: 96px; padding: 14px; }
.choice-grid--tiles .choice__box > .icon { grid-column: 1; grid-row: 1; }
.choice-grid--tiles .choice__box strong { grid-column: 1 / -1; grid-row: 2; font-size: .9063rem; }
.choice-grid--tiles .choice__mark { grid-column: 2; grid-row: 1; }
/* Kachel ohne Untertitel: Text mittig zum Symbol */
.choice__box:not(:has(small)) > strong { grid-row: 1 / 3; }
.choice-grid--tiles .choice__box:not(:has(small)) > strong { grid-row: 2; }

.choice:hover .choice__box { border-color: var(--ink-2); }
.choice input:checked + .choice__box { border-color: var(--ink); background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:checked + .choice__box .choice__mark { background: var(--btn); border-color: var(--btn); }
.choice input:checked + .choice__box .choice__mark .icon { opacity: 1; }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--green-700); outline-offset: 2px; }

/* Pillen */
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--field);
  font-weight: 500; font-size: .9375rem; color: var(--ink);
  transition: border-color .15s, background-color .15s, color .15s;
}
.pill:hover span { border-color: var(--ink-2); }
.pill input:checked + span { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
.pill input:focus-visible + span { outline: 2px solid var(--green-700); outline-offset: 2px; }

.field > label.checkbox, .checkbox {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  margin: 0; font-size: .9375rem; font-weight: 400; color: var(--ink-2); cursor: pointer;
}
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }

/* Fehler & Hinweise */
.field-error { display: flex; gap: 6px; margin: 8px 0 0; color: var(--error); font-size: .875rem; font-weight: 500; }
.field-error:empty { display: none; }
.has-error input[type="text"], .has-error input[type="email"], .has-error input[type="tel"], .has-error select, .has-error textarea { border-color: var(--error); }
.has-error .choice__box, .has-error .pill span { border-color: var(--error-field); }
.form-alert { margin-bottom: 22px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--error-bg); border: 1px solid var(--error-line); color: var(--error-text); font-size: .9375rem; }
.form-alert a { color: var(--error-text); font-weight: 600; }

.hint-box {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start;
  margin: 0 0 22px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); font-size: .9375rem; line-height: 1.5;
}
.hint-box .icon { width: 20px; height: 20px; stroke-width: 2; margin-top: 1px; }
.hint-box p { margin: 0; }
.hint-box a { color: inherit; font-weight: 600; }
.hint-box--danger { background: var(--error-bg); border-color: var(--error-line); color: var(--error-text); }

.summary { margin-bottom: 24px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--line); }
.summary__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.summary__head h4 { margin: 0; font-size: .9375rem; }
.summary dl { margin: 0; display: grid; gap: 8px; }
.summary dl > div { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .summary dl > div { grid-template-columns: 170px 1fr; gap: 12px; } }
.summary dt { color: var(--muted); font-size: .875rem; }
.summary dd { margin: 0; color: var(--ink); font-weight: 500; font-size: .9375rem; }
.link-button { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .875rem; font-weight: 600; color: var(--green-700); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

.form-note { margin: 16px 0 0; font-size: .8125rem; color: var(--muted); }
.form-note .icon { display: inline; width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-success { text-align: center; padding: 32px 8px; }
.form-success:focus { outline: none; }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--green-50); color: var(--green-700); }
.success-icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.form-success p { color: var(--muted); max-width: 520px; margin-inline: auto; }

/* 8 · Angebotsassistent ----------------------------------------------------- */
.wizard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); }
.wizard__progress { display: none; }
.js .wizard__progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; margin: 0 0 32px; padding: 0; }
.wizard__progress li { padding-top: 10px; border-top: 2px solid var(--line); font-size: .8125rem; font-weight: 600; color: var(--subtle); transition: border-color .25s, color .25s; }
.wizard__progress li.is-active { border-color: var(--ink); color: var(--ink); }
.wizard__progress li.is-done { border-color: var(--green); color: var(--ink-2); }
.wizard__step + .wizard__step { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.js .wizard__step + .wizard__step { margin-top: 0; padding-top: 0; border-top: 0; }
.wizard__count { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); }
.wizard__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); margin-bottom: 6px; }
.wizard__title:focus { outline: none; }
.wizard__nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.wizard__nav [data-nav] { display: none; }
.js .wizard__nav [data-nav] { display: inline-flex; }
.wizard__nav .btn--primary { margin-left: auto; }
@media (max-width: 479.98px) {
  .wizard__nav { flex-direction: column-reverse; align-items: stretch; }
  .wizard__nav .btn { width: 100%; margin-left: 0; }
}

/* 9 · Schadensmeldung ------------------------------------------------------- */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem); margin-bottom: 18px; }
.page-head .lead { max-width: 680px; margin: 0; }

.report-layout { display: grid; gap: 32px; padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 112px); }
@media (min-width: 1000px) {
  .report-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
  .report-aside { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 24px); }
  .report-main { grid-column: 1; grid-row: 1; }
}
.report-layout > * { min-width: 0; }
/* Handy: Notfall-Kasten oben, dann Formular, Kontaktkarte erst danach */
@media (max-width: 999.98px) {
  .report-aside { display: contents; }
  .report-aside .emergency { order: 1; }
  .report-main { order: 2; }
  .report-aside .contact-card { order: 3; margin-top: 0; }
}

.emergency { border: 1px solid var(--error-line); border-radius: var(--radius); background: var(--error-bg); padding: 24px; color: var(--emergency-text); }
.emergency h2 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; letter-spacing: -.01em; color: var(--error-text); margin-bottom: 12px; }
.emergency h2 .icon { width: 22px; height: 22px; stroke-width: 2; }
.emergency__lead { margin: 0 0 14px; font-size: .9375rem; }
.emergency .btn { width: 100%; background: #b42318; color: #fff; }
.emergency .btn:hover { background: #912018; color: #fff; }
.emergency__details { margin-top: 14px; border-top: 1px solid var(--error-line); }
.emergency__details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; cursor: pointer; list-style: none; font-weight: 600; font-size: .9375rem; color: var(--error-text);
}
.emergency__details summary::-webkit-details-marker { display: none; }
.emergency__details summary .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform .2s; }
.emergency__details[open] summary .icon { transform: rotate(180deg); }
.emergency ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; font-size: .9063rem; line-height: 1.5; }
.emergency li strong { display: block; color: var(--error-text); }
.emergency small { display: block; margin-top: 12px; font-size: .8125rem; color: var(--error-text); }
.report-aside .contact-card { margin-top: 16px; }

.report-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; font-size: .875rem; color: var(--muted); }

.report-step { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; transition: border-color .2s; }
.report-step.is-open { border-color: var(--line-strong); box-shadow: var(--shadow); }
.report-step__head { margin: 0; font-size: inherit; letter-spacing: 0; }
.report-step__toggle {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; align-items: center; gap: 4px 16px;
  width: 100%; padding: 18px 20px; background: none; border: 0; border-radius: var(--radius);
  font: inherit; text-align: left; color: var(--ink); cursor: default;
}
.js .report-step.is-done .report-step__toggle { cursor: pointer; }
.report-step__num {
  grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-size: .875rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
}
.report-step__num .icon { width: 16px; height: 16px; stroke-width: 2.6; display: none; }
.report-step.is-open .report-step__num { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
.report-step.is-done .report-step__num { background: var(--green-700); border-color: var(--green-700); color: var(--on-btn); }
.report-step.is-done .report-step__num span { display: none; }
.report-step.is-done .report-step__num .icon { display: block; }
.report-step__title { font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; }
.report-step__summary { grid-column: 2; font-size: .875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-step__summary:empty { display: none; }
.report-step__chevron { grid-column: 3; grid-row: 1 / 3; width: 18px; height: 18px; color: var(--muted); stroke-width: 2; display: none; transition: transform .2s; }
.js .report-step__chevron { display: block; }
.report-step.is-open .report-step__chevron { transform: rotate(180deg); }
.report-step.is-locked { background: var(--surface-dim); }
.report-step.is-locked .report-step__title { color: var(--subtle); }
.report-step__body { padding: 4px 20px 24px; }
@media (min-width: 640px) { .report-step__body { padding: 4px 28px 28px 70px; } }
.report-step__actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.report-step__actions [data-next] { display: none; }
.js .report-step__actions [data-next] { display: inline-flex; }
@media (max-width: 479.98px) { .report-step__actions .btn { width: 100%; } }

/* Detailfragen, die sich je nach Schadensart öffnen */
.form .cond { border: 0; padding: 0; margin: 0; min-width: 0; }
.form .subq { margin: 0 0 28px; padding: 20px 20px 4px; border-left: 2px solid var(--green); background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.subq__title { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); }
.subq .pill span { background: var(--field); }
.subq fieldset { margin-bottom: 20px; }
.no-js-note { font-size: .8125rem; color: var(--muted); margin: -4px 0 12px; }
.js .no-js-note { display: none; }

/* Foto-Upload */
.upload__drop {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.upload__drop:hover { border-color: var(--ink-2); background: var(--bg-alt); }
.upload__drop .icon { width: 28px; height: 28px; color: var(--ink-2); stroke-width: 1.5; }
.upload__drop strong { display: block; color: var(--ink); font-size: .9688rem; }
.upload__drop span { display: block; color: var(--muted); font-size: .8125rem; }
.upload input[type="file"] { display: block; margin-top: 10px; font-size: .875rem; }
.js .upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.upload input[type="file"]:focus-visible + .upload__drop { outline: 2px solid var(--green-700); outline-offset: 2px; }
.upload { position: relative; }
.upload.is-busy .upload__drop { opacity: .6; cursor: progress; }
.upload__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.upload__list:empty { display: none; }
.upload__item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.upload__item img { width: 100%; height: 100%; object-fit: cover; }
.upload__item span { display: grid; place-items: center; height: 100%; padding: 8px; font-size: .75rem; color: var(--muted); text-align: center; word-break: break-all; }
.upload__remove {
  position: absolute; top: 4px; right: 4px; display: grid; place-items: center;
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(29, 37, 45, .82); color: #fff; cursor: pointer;
}
.upload__remove .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.upload__count { margin: 8px 0 0; font-size: .8125rem; color: var(--muted); }
.upload__count:empty { display: none; }

/* 10 · Sanfter Seitenaufbau ----------------------------------------------------
   Kopfbereich: reine CSS-Animation beim Laden (funktioniert auch ohne JavaScript).
   Weiter unten: main.js setzt .reveal und blendet Elemente beim Scrollen ein. */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.hero__text > *, .hero__media, .hero__index li, .page-head .container > * {
  animation: reveal-up .9s cubic-bezier(.22, .61, .36, 1) both;
}
.hero__text > :nth-child(2), .page-head .container > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3), .page-head .container > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4) { animation-delay: .24s; }
.hero__text > :nth-child(5) { animation-delay: .32s; }
.hero__media { animation-delay: .18s; }
.hero__index li { animation-delay: .4s; }
.hero__index li:nth-child(2) { animation-delay: .47s; }
.hero__index li:nth-child(3) { animation-delay: .54s; }
.hero__index li:nth-child(4) { animation-delay: .61s; }
.hero__index li:nth-child(5) { animation-delay: .68s; }

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__text > *, .hero__media, .hero__index li, .page-head .container > * { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* 11 · Unterseiten ---------------------------------------------------------- */
.legal { max-width: 780px; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.legal h2 { font-size: clamp(1.4rem, 1.25rem + .6vw, 1.75rem); margin: 1.8em 0 .5em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1875rem; margin: 1.6em 0 .4em; }
.legal h4 { font-size: .9688rem; font-weight: 600; margin: 1.2em 0 .3em; }
/* Abgesetzter Kasten (z. B. Widerspruchsrecht nach Art. 21 DSGVO – muss getrennt erkennbar sein) */
.legal-box { margin: .6em 0 1.2em; padding: 16px 20px; background: var(--bg-alt); border-left: 3px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); }
.legal-box p:last-child { margin-bottom: 0; }
.legal h2, .legal h3 { overflow-wrap: break-word; hyphens: auto; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal .note { padding: 16px 20px; background: #fff8db; border: 1px dashed #d9a800; border-radius: var(--radius-sm); color: #5c4a00; font-size: .9375rem; }

.thanks { text-align: center; max-width: 620px; margin-inline: auto; padding-block: clamp(64px, 10vw, 128px); }
.thanks p { color: var(--muted); }
.thanks .btn { margin-top: 12px; }
