/* Christ Tür- und Fenstertechnik – Basis-Stylesheet
   Farben aus dem Logo: Navy #1B3D68, Grau #8598AC. Akzent (Notdienst/CTA): Gelb #F5B301 */

:root {
  color-scheme: light;
  --navy: #1B3D68;
  --navy-900: #122a49;
  --gray: #8598AC;
  --gray-200: #dfe5ec;
  --tint: #f2f5f9;
  --ink: #1a2633;
  --muted: #4d5b69;
  --accent: #F5B301;
  --accent-hover: #ffc629;
  --accent-ink: #1a2633;
  --good: #19734a;
  --error: #b3261e;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(18 42 73 / .06), 0 6px 20px rgb(18 42 73 / .08);
  --shadow-lift: 0 2px 4px rgb(18 42 73 / .06), 0 14px 32px rgb(18 42 73 / .13);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --focus: var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  accent-color: var(--navy);
  caret-color: var(--navy);
  padding-bottom: 64px; /* Platz für mobile Aktionsleiste */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
::selection { background: var(--navy); color: #fff; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .15s var(--ease-out), text-decoration-color .15s var(--ease-out); }
a:hover { color: var(--navy-900); text-decoration-thickness: 2px; }
/* Fokusring: Navy auf hellen Flächen, Gelb auf dunklen */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.topbar, .summary, .section--navy, .footer, .actionbar { --focus: var(--accent); }
.section--navy .form { --focus: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); text-wrap: balance; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 32px, 820px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { top: 8px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.15em; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2;
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out), border-color .15s var(--ease-out), transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--lg { padding: .9em 1.4em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }

/* Topbar */
.topbar { background: var(--navy-900); color: #fff; font-size: .9rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 6px; }
.topbar p { margin: 0; }
.topbar__tel { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.topbar__tel:hover { color: var(--accent-hover); text-decoration: underline; }
@media (max-width: 640px) { .topbar p { font-size: .8rem; } .topbar__tel { display: none; } }

/* Header & Navigation */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--gray-200); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.header__logo { border-radius: 6px; }
.header__logo img { width: clamp(170px, 18vw, 230px); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav__list { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: .45em;
  font-weight: 600; color: var(--ink);
}
.nav__list a:hover { color: var(--navy); text-decoration-color: var(--accent); }
.nav__cta svg { flex: none; }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 2px solid var(--gray-200);
    border-radius: 8px; padding: 8px 12px; min-height: 44px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer;
    transition: border-color .15s var(--ease-out), transform .16s var(--ease-out);
  }
  .nav-toggle:active { transform: scale(.97); }
  .nav-toggle[aria-expanded="true"] { border-color: var(--navy); }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
  }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .nav {
    display: none; position: absolute; inset: 100% 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--gray-200); text-decoration: none; }
  .nav__cta { margin-top: 14px; }
  /* Ohne JavaScript bleibt das Menü sichtbar */
  .no-js .nav { display: flex; position: static; box-shadow: none; }
  .no-js .nav-toggle { display: none; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--tint), #fff); padding-block: clamp(32px, 5vw, 72px); }
.hero__grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0 0 28px; font-weight: 700; font-size: .97rem; color: var(--navy); }
.trust li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.trust svg { width: 20px; height: 20px; color: var(--navy); flex: none; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 519px) { .hero__cta .btn { width: 100%; } }
/* Ab Desktop: Foto randlos über die rechte Seitenhälfte */
@media (min-width: 900px) {
  .hero { position: relative; padding-block: 0; overflow: hidden; }
  .hero__grid { grid-template-columns: 1fr 1fr; min-height: clamp(540px, 46vw, 780px); }
  .hero__text { padding-block: clamp(48px, 6vw, 96px); }
  .hero__cta { display: inline-grid; } /* beide Buttons gleich breit untereinander */
  .hero .hero__img {
    position: absolute; top: 0; right: 0; width: 50%; height: 100%;
    object-fit: cover; object-position: 38% center; border-radius: 0; box-shadow: none;
  }
}

/* Fotos */
.photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Platzhalter für Bilder */
.ph {
  display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 600;
  background: repeating-linear-gradient(45deg, #eef2f6, #eef2f6 12px, #e6ebf1 12px, #e6ebf1 24px);
  border: 2px dashed var(--gray); border-radius: var(--radius); padding: 16px;
}
.ph small { font-weight: 400; }
.ph--hero { aspect-ratio: 4 / 3; }
.ph--team { aspect-ratio: 3 / 2; }
.ph--seal { width: 120px; aspect-ratio: 1; font-size: .85rem; }
.ph--quote { min-height: 160px; list-style: none; }

/* Kurz-Fakten: Trennlinien entstehen aus dem 1-px-Raster, daher an jedem Umbruch korrekt */
.summary { background: var(--navy); color: #fff; }
.facts {
  display: grid; gap: 1px; margin: 0; background: rgb(255 255 255 / .16);
  grid-template-columns: 1fr; /* 1, 2 oder 4 Spalten: nie eine einzelne Zelle in der letzten Reihe */
}
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .facts { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.facts div { padding: 20px 18px; background: var(--navy); }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.facts dd { margin: 4px 0 0; font-size: .97rem; color: #e6edf5; }
@media (min-width: 1000px) { .facts div:first-child { padding-left: 0; } }

/* Sektionen */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tint { background: var(--tint); }
.section--narrow { padding-block: clamp(32px, 4vw, 56px); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2 { color: #fff; }
.section--navy a:not(.btn) { color: #fff; }
.section--navy a:not(.btn):hover { color: var(--accent); }
.section__lead { color: var(--muted); max-width: 65ch; margin-bottom: 32px; font-size: 1.05em; }
.split { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.split p { max-width: 65ch; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* Leistungs-Karten */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card {
  position: relative; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out);
}
.card:focus-within { border-color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-2px); border-color: var(--gray); box-shadow: var(--shadow-lift); }
}
.card__icon { width: 40px; height: 40px; color: var(--navy); margin-bottom: 14px; }
.card h3 { margin-bottom: .4em; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* ganze Karte klickbar */
.card h3 a:focus-visible { outline: none; }
.card h3 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.card p a { position: relative; z-index: 1; }
.card p { color: var(--muted); font-size: .97rem; }
.card__price { margin-top: auto; margin-bottom: 0; padding-top: 6px; font-weight: 700; color: var(--navy) !important; font-variant-numeric: tabular-nums; }
.card--alert { border-color: var(--accent); background: #fffbf0; box-shadow: inset 0 0 0 1px var(--accent); }

/* Vergleich */
.compare { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; font-variant-numeric: tabular-nums; }
.compare figcaption { font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.compare__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--gray-200); }
.compare__row strong { white-space: nowrap; font-size: 1.1em; }
.compare__row--good strong { color: var(--good); }
.compare__note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }

/* Ablauf: Zeitleiste statt Kacheln */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 40px 0; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 560px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; padding: 0 28px 0 0; border-top: 2px solid var(--gray-200); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; margin: -21px 0 16px; box-shadow: 0 0 0 6px #fff;
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Preise */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices th, .prices td { padding: 14px clamp(14px, 3vw, 20px); text-align: left; border-bottom: 1px solid var(--gray-200); }
.prices tbody tr:last-child > * { border-bottom: 0; }
.prices thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f8fafc; }
.prices tbody th { font-weight: 400; }
.prices td { text-align: right; font-weight: 700; white-space: nowrap; color: var(--navy); }
.prices thead th:last-child { text-align: right; }
@media (hover: hover) and (pointer: fine) {
  .prices tbody tr { transition: background-color .15s var(--ease-out); }
  .prices tbody tr:hover { background: #f8fafc; }
}
.prices__surcharge { font-size: .92rem; color: var(--muted); margin-top: 14px; }
.tax { display: flex; gap: 14px; align-items: flex-start; background: #fff7dc; border: 1px solid #f4dc8c; border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; }
.tax svg { color: #a87900; flex: none; }
.tax p { margin: 0; max-width: 80ch; }
/* Pfeil-Link: gezeichneter Pfeil, der beim Überfahren ein Stück mitgeht */
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.link-arrow::after {
  content: ""; width: 1.05em; height: 1.05em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease-out);
}
.link-arrow:hover { text-decoration: underline; text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover::after { transform: translateX(4px); } }

/* Zertifikate & Marken */
.seals { display: flex; gap: 16px; margin-top: 16px; }
/* Markenlogos: gleich hohe weiße Kacheln, Logos optisch auf eine Höhe gebracht */
.brands { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.brands li { display: grid; place-items: center; height: 72px; padding: 12px 14px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.brands img { width: auto; height: auto; max-width: 100%; max-height: 40px; object-fit: contain; }
.brands__note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

/* Hinweis für Mieter */
.callout { background: var(--tint); padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); }
.callout h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.callout p { max-width: 75ch; }

/* Einsatzgebiet */
.areas { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.area { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.area p { color: var(--muted); margin: 0; }
.town-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 16px; }
.town-list li { padding: 3px 0; break-inside: avoid; }

/* Kundenstimmen */
.quotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* FAQ */
.faq { border-top: 1px solid var(--gray-200); }
.faq details { border-bottom: 1px solid var(--gray-200); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-weight: 700; color: var(--navy); position: relative;
  transition: color .15s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg);
  transition: transform .2s var(--ease-out), margin-top .2s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--navy-900); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; } }
.faq details p { color: var(--muted); padding-bottom: 8px; max-width: 70ch; }
/* Antwort klappt weich auf, wo der Browser es kann; sonst öffnet sie sofort */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size .26s var(--ease-out), content-visibility .26s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
}

/* Kontakt & Formular */
.contact-intro p { color: #dbe4ee; max-width: 46ch; }
.contact-intro__emergency { margin-top: 24px; }
.contact-intro__alt { margin-top: 14px; }
.contact-intro .btn { font-variant-numeric: tabular-nums; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 18px 40px rgb(0 0 0 / .18); }
.form__row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form__grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .form__grid { grid-template-columns: 2fr 1fr; } }
.form label { font-weight: 600; font-size: .95rem; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="tel"], .form select, .form textarea {
  font: inherit; padding: 11px 12px; min-height: 48px; border: 1.5px solid #9aa9b9; border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.form textarea { resize: vertical; }
.form ::placeholder { color: #5d6b7a; opacity: 1; }
.form input[type="text"]:hover, .form input[type="tel"]:hover, .form select:hover, .form textarea:hover { border-color: var(--muted); }
.form input[type="text"]:focus-visible, .form input[type="tel"]:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(27 61 104 / .28);
}
.form input:user-invalid, .form select:user-invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgb(179 38 30 / .16); }
.form input[type="file"] { font: inherit; font-size: .92rem; max-width: 100%; }
.form input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; margin-right: 12px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--navy); background: #fff; color: var(--navy);
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out);
}
.form input[type="file"]::file-selector-button:hover { background: var(--navy); color: #fff; }
.form__check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; font-size: .9rem; }
.form__check label { font-weight: 400; }
.form__check input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--navy); }
.form a { color: var(--navy) !important; }

/* Footer */
.footer { background: var(--navy-900); color: #cdd8e4; padding-top: 56px; font-size: .95rem; }
.footer a { color: #fff; text-decoration-color: rgb(255 255 255 / .4); }
.footer a:hover { color: var(--accent); text-decoration-color: currentColor; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.footer__logo { width: 200px; margin-bottom: 16px; }
.footer address { font-style: normal; font-variant-numeric: tabular-nums; }
.footer__h { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: .8em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 3px 0; }
.footer__legal { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 40px; padding-block: 18px; font-size: .85rem; color: #9fb0c3; }

/* Mobile Aktionsleiste */
.actionbar {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1.3fr 1fr;
  box-shadow: 0 -4px 16px rgb(0 0 0 / .15); padding-bottom: env(safe-area-inset-bottom);
  background: var(--navy);
}
.actionbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; font-weight: 800; text-decoration: none; transition: background-color .15s var(--ease-out); }
.actionbar__call, .actionbar__call:hover { background: var(--accent); color: var(--accent-ink); }
.actionbar__call:active { background: var(--accent-hover); }
.actionbar__photo, .actionbar__photo:hover { color: #fff; }
.actionbar__photo:active { background: var(--navy-900); }
.actionbar a:focus-visible { outline-offset: -4px; }
@media (min-width: 900px) { .actionbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .btn:active, .nav-toggle:active { transform: none; }
}

/* ===== Unterseiten ===== */

/* Brotkrumen */
.breadcrumb { background: var(--tint); border-bottom: 1px solid var(--gray-200); font-size: .9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 10px 0; margin-block: 0; }
.breadcrumb li { display: flex; align-items: center; color: var(--muted); }
.breadcrumb li + li::before {
  content: ""; width: 7px; height: 7px; margin: 0 10px 0 8px; flex: none;
  border-right: 1.5px solid var(--gray); border-top: 1.5px solid var(--gray); transform: rotate(45deg);
}
.breadcrumb a { color: var(--navy); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* Kopfbereich der Unterseiten */
.hero--sub h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); }
@media (min-width: 900px) {
  .hero--sub .hero__grid { min-height: clamp(440px, 36vw, 580px); }
  .hero--sub .hero__text { padding-block: clamp(40px, 5vw, 72px); padding-right: clamp(16px, 3vw, 48px); }
  .hero--sub .hero__img { object-position: center; }
}
.pagehead { background: linear-gradient(180deg, var(--tint), #fff); padding-block: clamp(32px, 5vw, 64px) clamp(8px, 2vw, 24px); }
.pagehead h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); }
.nav__list a[aria-current] { color: var(--navy); text-decoration-color: var(--accent); }

/* Fließtext */
.section--text { padding-block: clamp(40px, 5.5vw, 72px); }
.prose > * { max-width: 70ch; }
.prose > .table-wrap, .prose > .bild, .prose > .tax, .prose > .anruf, .prose > .hinweis, .prose > .schritte { max-width: none; }
.prose h2 { margin-bottom: .7em; }
.prose h3 { margin: 1.6em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--navy); font-weight: 700; }
.prose > :last-child { margin-bottom: 0; }
.prose .table-wrap, .prose .tax, .prose .anruf, .prose .hinweis, .prose .bild { margin-block: 1.6em; }
.section--tint .table-wrap, .section--tint .hinweis { background: #fff; }

/* Häkchenliste */
.haken { list-style: none; padding-left: 0 !important; }
.haken li { position: relative; padding-left: 1.9em; }
.haken li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.15em; height: 1.15em; background: var(--good);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Tabellen */
.tabelle, .preise { width: 100%; border-collapse: collapse; font-size: .97rem; }
.tabelle th, .tabelle td, .preise th, .preise td { padding: 13px clamp(12px, 2.5vw, 18px); text-align: left; vertical-align: top; border-bottom: 1px solid var(--gray-200); }
.tabelle tbody tr:last-child > *, .preise tbody tr:last-child > * { border-bottom: 0; }
.tabelle thead th, .preise thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f8fafc; }
.tabelle tbody th, .preise tbody th { font-weight: 600; color: var(--ink); }
.tabelle { min-width: 520px; }
.preise { font-variant-numeric: tabular-nums; }
.preise tbody th { font-weight: 400; }
.preise td { text-align: right; font-weight: 700; white-space: nowrap; color: var(--navy); }
.preise thead th:last-child { text-align: right; }

/* Ablauf im Fließtext: nummerierte Liste mit Linie */
.schritte { list-style: none; padding: 0 !important; margin: 1.6em 0 !important; counter-reset: s; }
.schritte li { counter-increment: s; position: relative; padding: 0 0 22px 60px; margin: 0; }
.schritte li::before {
  content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums;
}
.schritte li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: var(--gray-200); }
.schritte h3 { margin: 0 0 .25em; padding-top: 7px; }
.schritte p { margin: 0; color: var(--muted); }

/* Hinweis- und Anruf-Kasten */
.hinweis { background: var(--tint); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 26px); }
.hinweis h3 { margin-top: 0; }
.hinweis > :last-child { margin-bottom: 0; }
.anruf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(18px, 2.5vw, 26px); --focus: var(--accent); }
.anruf p { margin: 0; flex: 1 1 280px; color: #e6edf5; }
.anruf strong { color: #fff; }
.anruf .btn { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Bild im Text */
.bild { margin-inline: 0; }
.bild img { aspect-ratio: 3 / 2; object-fit: cover; }

/* Quellen, Fragenübersicht */
.quellen h2 { font-size: 1.15rem; }
.quellen ul { font-size: .92rem; }
.stand { font-size: .88rem; color: var(--muted); }
.fragenliste { list-style: none; padding: 0 !important; border-top: 1px solid var(--gray-200); }
.fragenliste li { margin: 0; border-bottom: 1px solid var(--gray-200); }
.fragenliste a { display: block; padding: 13px 0; font-weight: 600; text-decoration: none; }
.fragenliste a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.faq__mehr { margin: 24px 0 0; }
.card:not(:has(.card__icon)) h3 { font-size: 1.1rem; }

/* Unterseiten: Text linksbündig mit dem Kopfbereich, begrenzte Zeilenlänge */
.prose > * { max-width: 46rem; }
.prose > .table-wrap, .prose > .bild, .prose > .tax, .prose > .anruf, .prose > .hinweis, .prose > .schritte { max-width: 54rem; }
#faq > .wrap > .faq, .pagehead .hero__lead { max-width: 54rem; }
.section > .wrap > .fragenliste, .prose > .fragenliste { max-width: 54rem; }

/* ===== Handy ===== */
/* Brotkrumen: größere Tippfläche */
.breadcrumb a { display: inline-block; padding: 6px 0; }
.breadcrumb li { min-height: 32px; }

@media (max-width: 640px) {
  /* Mehrspaltige Tabellen werden zu Karten: jede Zeile ein Block, die Spaltenüberschrift steht über dem Wert */
  .table-wrap:has(> .tabelle) { overflow: visible; background: none; box-shadow: none; border-radius: 0; }
  .tabelle { min-width: 0; display: block; }
  .tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabelle tbody { display: grid; gap: 12px; }
  .tabelle tr { display: block; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 4px 16px; }
  .tabelle th, .tabelle td { display: block; padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
  .tabelle tr > :last-child { border-bottom: 0; }
  .tabelle [data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  }
  .tabelle tr > :first-child { font-weight: 700; color: var(--navy); }
  /* Preistabellen: lange Preisangaben dürfen umbrechen statt die Tabelle zu verbreitern */
  .preise td { white-space: normal; min-width: 6.2em; }
}

/* Sehr schmale Handys (320 px): nichts darf die Seite verbreitern */
.split > *, .hero__grid > *, .form__row, .form__grid > * { min-width: 0; }
.form input[type="file"] { width: 100%; }
.prose, .footer address, .contact-intro { overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .prices td { white-space: normal; min-width: 5.5em; }
  .btn--lg { padding-inline: 1em; }
}
