/* ==========================================================================
   Fassadenprofis Dresden
   Solides, schlichtes Design. Keine externen Fonts (DSGVO), keine Frameworks.
   Komponenten-Übersicht: siehe _dev/STYLEGUIDE.md
   ========================================================================== */

:root {
  --c-ink: #1f2a33;        /* dunkles Schiefergrau: Header-Text, Überschriften */
  --c-text: #2d3338;
  --c-muted: #5b646d;
  --c-line: #dcd6cc;
  --c-bg: #ffffff;
  --c-sand: #f5f1ea;       /* heller Putzton für Sektionen */
  --c-sand-2: #ebe4d8;
  --c-dark: #1f2a33;       /* dunkle Sektion / Footer */
  --c-primary: #c8601d;    /* Ziegel-Orange für Buttons & Akzente */
  --c-primary-dark: #a54d14;
  --c-primary-soft: #fbeee4;
  --c-ok: #2e7a4d;
  --c-ok-soft: #e7f4ec;
  --c-error: #b42318;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(31, 42, 51, .06), 0 6px 20px rgba(31, 42, 51, .07);
  --shadow-lg: 0 2px 4px rgba(31, 42, 51, .06), 0 16px 40px rgba(31, 42, 51, .12);
  --container: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--c-primary); }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--c-ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 780px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--sand { background: var(--c-sand); }
.section--dark { background: var(--c-dark); color: #d9dee2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 2.5rem; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary-dark); margin-bottom: .6rem; }
.section--dark .eyebrow { color: #f0a46e; }
.lead { font-size: 1.15rem; color: var(--c-muted); }
.section--dark .lead { color: #b9c2c9; }
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.2fr 1fr; } }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: .95rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--outline:hover { background: var(--c-ink); color: #fff; }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: var(--c-sand); color: var(--c-ink); }
.btn--ghost { background: transparent; color: var(--c-muted); padding-left: .5rem; padding-right: .5rem; }
.btn--ghost:hover { color: var(--c-ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- Header ---------- */
.topbar { background: var(--c-dark); color: #c9d0d6; font-size: .875rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__badge { display: inline-flex; align-items: center; gap: .4rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--c-ink); }
.logo:hover { color: var(--c-ink); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.logo__sub { font-size: .78rem; color: var(--c-muted); }
@media (min-width: 480px) { .logo__sub { white-space: nowrap; } }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav__list { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link { display: block; white-space: nowrap; padding: .55rem .8rem; border-radius: 8px; color: var(--c-ink); text-decoration: none; font-weight: 600; }
.nav__link:hover, .nav__link[aria-current="page"] { background: var(--c-sand); color: var(--c-ink); }
.nav__cta { margin-left: .5rem; padding: .7rem 1.1rem; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--c-ink); }
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; display: none; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
  .site-header:has(.nav.is-open) { z-index: 70; }
  .nav__link { padding-top: .75rem; padding-bottom: .75rem; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__cta { margin: .75rem 0 0; }
  .topbar__hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  background-color: var(--c-sand);
  /* dezente Putzstruktur, rein per SVG-Rauschen */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero--photo { background-size: cover; background-position: center; }
.hero__grid { display: grid; gap: 2.5rem; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; } .hero__copy { padding-top: 1.5rem; } }
.hero h1 { margin-bottom: .45em; }
.hero__lead { font-size: 1.2rem; color: var(--c-muted); max-width: 34em; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--c-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.trust-row { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-top: 1.5rem; font-size: .92rem; color: var(--c-muted); }
.trust-row span { display: inline-flex; align-items: center; gap: .4rem; }
.trust-row svg { width: 18px; height: 18px; color: var(--c-primary); }

/* ---------- Page header (Unterseiten) ---------- */
.page-hero { background: var(--c-sand); padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--c-line); }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { margin-bottom: 0; max-width: 46em; }
.breadcrumb { font-size: .875rem; color: var(--c-muted); margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .35rem; color: #a7a097; }
.breadcrumb a { color: var(--c-muted); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.75rem; }
.card--shadow { border: 0; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-primary-dark); display: grid; place-items: center; margin-bottom: 1rem; }
.card__icon svg { width: 28px; height: 28px; }
.card__link { display: inline-block; margin-top: .75rem; font-weight: 700; text-decoration: none; }
.card__link::after { content: " →"; }

.service-list { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .95rem; color: var(--c-muted); }
.service-list li { padding-left: 1.1rem; position: relative; margin-bottom: .25rem; }
.service-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; background: var(--c-primary); border-radius: 2px; }

/* ---------- Steps (Ablauf) ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.5rem; margin: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--c-ink); color: #fff; font-weight: 800; margin-bottom: .9rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--c-muted); font-size: .97rem; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.stat { text-align: center; padding: 1.25rem; }
.stat__num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--c-primary); line-height: 1.1; }
.section--dark .stat__num { color: #f0a46e; }
.stat__label { color: var(--c-muted); font-size: .95rem; }
.section--dark .stat__label { color: #b9c2c9; }

/* ---------- Referenzen / Galerie ---------- */
.project { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.project__media { aspect-ratio: 4 / 3; background: var(--c-sand-2); position: relative; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.project__media a:hover img { transform: scale(1.03); }
.project__placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #8d857a; font-size: .9rem; padding: 1rem; }
.project__body { padding: 1.25rem 1.4rem 1.5rem; }
.project__body h3 { font-size: 1.15rem; margin-bottom: .3em; }
.project__meta { font-size: .875rem; color: var(--c-muted); margin-bottom: .5rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .5rem 0 0; }
.tags li { margin: 0; font-size: .78rem; font-weight: 600; background: var(--c-sand); color: var(--c-ink); padding: .25rem .6rem; border-radius: 999px; }
.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); margin-top: .8rem; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--c-sand-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ba figure { margin: 0; position: relative; }
.ba figcaption { position: absolute; left: .5rem; top: .5rem; background: rgba(31,42,51,.85); color: #fff; font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; }

/* Lightbox (assets/js/main.js) */
.lightbox { position: fixed; inset: 0; background: rgba(15, 20, 25, .92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 1rem; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 94vw; border-radius: 6px; transition: opacity .2s; touch-action: pan-y pinch-zoom; }
.lightbox img.is-loading { opacity: .35; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #e5e5e5; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 700; color: var(--c-ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--c-primary); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.2rem; color: var(--c-muted); }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--c-primary); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem); display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1.6fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #fde9da; }

/* ---------- Article / Blog ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6em; }
.prose img, .prose figure { margin: 2rem 0; border-radius: var(--radius); }
.prose figcaption { font-size: .875rem; color: var(--c-muted); margin-top: .5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.prose th { background: var(--c-sand); color: var(--c-ink); }
.table-wrap { overflow-x: auto; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--c-primary); background: var(--c-sand); border-radius: 0 var(--radius) var(--radius) 0; }
.note { background: var(--c-primary-soft); border: 1px solid #f1cfb5; border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.note--info { background: #eef4f8; border-color: #cfdde8; }
.article-meta { font-size: .9rem; color: var(--c-muted); margin-top: .75rem; }
.toc { background: var(--c-sand); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin: 1.5rem 0 2rem; }
.toc strong { display: block; margin-bottom: .4rem; color: var(--c-ink); }
.toc ol { margin: 0; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.6rem; text-decoration: none; color: var(--c-text); transition: box-shadow .15s, border-color .15s; }
.post-card:hover { box-shadow: var(--shadow); border-color: transparent; color: var(--c-text); }
.post-card h2, .post-card h3 { font-size: 1.2rem; margin-bottom: .45em; }
.post-card p { color: var(--c-muted); font-size: .97rem; }
.post-card__more { margin-top: auto; font-weight: 700; color: var(--c-primary-dark); }
.post-card__cat { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-primary-dark); margin-bottom: .5rem; }
.layout-article { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1020px) { .layout-article { grid-template-columns: minmax(0, 720px) 320px; justify-content: space-between; } }
.sidebar-box { position: sticky; top: 100px; background: var(--c-sand); border-radius: var(--radius-lg); padding: 1.5rem; }
.sidebar-box h2, .sidebar-box h3 { font-size: 1.2rem; }
.sidebar-box p { font-size: .95rem; color: var(--c-muted); }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: #b9c2c9; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #e3e8ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-title { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: .8rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .45rem; }
.footer-bottom { border-top: 1px solid #34414c; margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .875rem; }
.site-footer address { font-style: normal; }
.site-footer .logo { color: #fff; }
.site-footer .logo__sub { color: #9aa5ae; }

/* Mobile Anruf-/Rechner-Leiste */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 56px; padding: .5rem; font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--c-ink); }
  .mobile-bar a + a { background: var(--c-primary); color: #fff; }
  .mobile-bar svg { width: 18px; height: 18px; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .mobile-bar a { font-size: .95rem; gap: .35rem; padding-left: .25rem; padding-right: .25rem; }
}
@media (max-width: 340px) {
  .mobile-bar svg { display: none; }
}

/* ==========================================================================
   Kostenrechner (Lead-Fragebogen) – assets/js/kostenrechner.js
   ========================================================================== */
.quiz { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; scroll-margin-top: 90px; }
.quiz__head { background: var(--c-ink); color: #fff; padding: 1.25rem 1.5rem 1.1rem; }
.quiz__badge { display: inline-block; background: var(--c-primary); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.quiz__title { color: #fff; font-size: 1.45rem; margin: 0; }
.quiz__subtitle { margin: .25rem 0 0; color: #c3ccd3; font-size: .95rem; }
.quiz__progress { height: 6px; background: #3a4752; border-radius: 99px; margin-top: 1rem; overflow: hidden; }
.quiz__progress-bar { height: 100%; width: 0; background: var(--c-primary); border-radius: 99px; transition: width .35s ease; }
.quiz__progress-label { display: flex; justify-content: space-between; font-size: .8rem; color: #aab4bc; margin-top: .45rem; }
.quiz__body { padding: 1.5rem; }
.quiz__step { display: none; animation: quizIn .3s ease; }
.quiz__step.is-active { display: block; }
@keyframes quizIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.quiz__question { font-size: 1.2rem; margin: 0 0 1rem; }
.quiz__options { display: grid; gap: .7rem; border: 0; padding: 0; margin: 0; min-width: 0; min-inline-size: 0; }
.quiz__option-text { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.quiz__option { position: relative; }
.quiz__option input { position: absolute; opacity: 0; pointer-events: none; }
.quiz__option label {
  display: flex; align-items: center; gap: 1rem; cursor: pointer;
  border: 2px solid var(--c-line); border-radius: 12px; padding: .85rem 1rem; background: #fff;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
}
.quiz__option label:hover { border-color: var(--c-primary); background: #fffaf6; box-shadow: 0 4px 14px rgba(200, 96, 29, .12); }
.quiz__option input:focus-visible + label { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.quiz__option input:checked + label { border-color: var(--c-primary); background: var(--c-primary-soft); }
.quiz__option-icon { flex: none; width: 52px; height: 52px; border-radius: 10px; background: var(--c-sand); display: grid; place-items: center; color: var(--c-ink); }
.quiz__option input:checked + label .quiz__option-icon { background: var(--c-primary); color: #fff; }
.quiz__option-icon svg { width: 30px; height: 30px; }
.quiz__option-text { display: flex; flex-direction: column; line-height: 1.3; }
.quiz__option-text strong { color: var(--c-ink); font-size: 1.02rem; }
.quiz__option-text small { color: var(--c-muted); font-size: .88rem; margin-top: .15rem; }
.quiz__option-check { margin-left: auto; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--c-line); transition: all .15s; }
.quiz__option input:checked + label .quiz__option-check { border-color: var(--c-primary); background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; min-height: 2.5rem; }
.quiz__hint { font-size: .85rem; color: var(--c-muted); }
.quiz__cheer { display: flex; align-items: center; gap: .6rem; background: var(--c-ok-soft); color: #1f5c39; border-radius: 10px; padding: .75rem 1rem; font-weight: 400; font-size: .95rem; margin-bottom: 1.1rem; }
.quiz__cheer strong { font-weight: 700; }
.quiz__cheer svg { width: 22px; height: 22px; flex: none; }
.form-row { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-bottom: .8rem; }
@media (min-width: 520px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--c-ink); margin-bottom: .3rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem .9rem; border: 2px solid var(--c-line); border-radius: 10px; background: #fff; color: var(--c-text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(200, 96, 29, .15); }
.field input[aria-invalid="true"] { border-color: var(--c-error); }
.field__error { display: none; color: var(--c-error); font-size: .82rem; margin-top: .25rem; }
.field input[aria-invalid="true"] ~ .field__error { display: block; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .85rem; color: var(--c-muted); margin: .4rem 0 1rem; line-height: 1.45; }
.consent input { margin-top: .2rem; width: 18px; height: 18px; flex: none; accent-color: var(--c-primary); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.quiz__fineprint { font-size: .8rem; color: var(--c-muted); text-align: center; margin: .75rem 0 0; }
.quiz__error { display: none; background: #fdecea; color: var(--c-error); border-radius: 10px; padding: .75rem 1rem; font-size: .9rem; margin-bottom: 1rem; }
.quiz__error.is-visible { display: block; }
.quiz__success { text-align: center; padding: 1rem .5rem; }
.quiz__success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--c-ok); color: #fff; display: grid; place-items: center; margin: 0 auto 1rem; animation: pop .4s ease; }
.quiz__success-icon svg { width: 38px; height: 38px; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Referenzen: Projekt mit Vorher/Nachher links, Text + Galerie rechts */
.ba img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.project--wide .gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 92px), 1fr)); }
@media (min-width: 900px) {
  .project--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .project--wide .project__body { padding: 1.75rem 2rem; }
}
.project__media > a { display: block; height: 100%; }

/* Mobil: Kostenrechner direkt nach Überschrift + Einleitung, Vorteile danach */
@media (max-width: 979px) {
  .hero__grid { gap: 0; }
  .hero__copy { display: contents; }
  .hero__grid > .quiz { order: 1; margin: .5rem 0 1.75rem; }
  .hero__copy > .checklist, .hero__copy > .trust-row { order: 2; }
  .hero__copy > .checklist { margin-top: 0; }
}
@media (max-width: 600px) {
  .topbar__mail { display: none; }
  .topbar .container { justify-content: center; text-align: center; }
}

/* Lange Wörter/URLs (Rechtstexte, Fachbegriffe) dürfen auf schmalen Displays umbrechen */
.prose, .legal, .page-hero h1 { overflow-wrap: break-word; }
@media (max-width: 600px) { .prose, .legal { hyphens: auto; -webkit-hyphens: auto; } }

/* ==========================================================================
   Ablauf als Flussdiagramm (Startseite #ablauf)
   Desktop: Kreise nebeneinander mit Pfeil-Verbindern · Mobil: senkrechte Zeitleiste
   ========================================================================== */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; position: relative; }
.flow__step { position: relative; margin: 0; display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start; align-content: start; }
.flow__node { position: relative; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 3px solid var(--c-primary); color: var(--c-primary-dark); display: grid; place-items: center; z-index: 1; }
.flow__icon svg { width: 28px; height: 28px; }
.flow__num { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--c-ink); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.flow__step--done .flow__node { background: var(--c-ok); border-color: var(--c-ok); color: #fff; }
.flow__text h3 { font-size: 1.08rem; margin: .35rem 0 .3rem; }
.flow__text p { margin: 0; color: var(--c-muted); font-size: .96rem; }
/* Mobil: senkrechte Linie zwischen den Kreisen */
.flow__step:not(:last-child)::before { content: ""; position: absolute; left: 30.5px; top: 64px; bottom: -1.75rem; width: 3px; background: repeating-linear-gradient(var(--c-primary) 0 8px, transparent 8px 14px); }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
  .flow__step { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: .75rem; }
  .flow__node { width: 76px; height: 76px; }
  .flow__icon svg { width: 32px; height: 32px; }
  /* waagerechter Verbinder mit Pfeilspitze zum nächsten Kreis */
  .flow__step:not(:last-child)::before { left: calc(50% + 46px); right: calc(-50% + 46px - 1.25rem); top: 37px; bottom: auto; width: auto; height: 3px; background: repeating-linear-gradient(90deg, var(--c-primary) 0 8px, transparent 8px 14px); }
  .flow__step:not(:last-child)::after { content: ""; position: absolute; top: 31px; right: calc(-50% + 40px - 1.25rem); width: 0; height: 0; border-top: 7.5px solid transparent; border-bottom: 7.5px solid transparent; border-left: 10px solid var(--c-primary); }
}

/* Adressen nie kursiv (Browser-Standard) */
address { font-style: normal; }
.field textarea[aria-invalid="true"] { border-color: var(--c-error); }
.field textarea { resize: vertical; min-height: 120px; }
