/* ==========================================================================
   Windischhofer Elektrotechnik – Stylesheet
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-var.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  --c-ink: #333333;          /* Anthrazit aus dem Logo */
  --c-ink-deep: #232323;     /* dunkle Flächen */
  --c-gray: #666666;         /* Grau aus dem Logo */
  --c-accent: #fab20b;       /* Gelb-Orange aus dem Logo */
  --c-accent-hover: #ffc233;
  --c-on-accent: #1f1f1f;
  --c-text: #2b2b2b;
  --c-muted: #5f5f5f;
  --c-bg: #ffffff;
  --c-surface: #f5f4f1;
  --c-border: #e4e1db;
  --c-error: #b42318;
  --c-success: #1f7a3f;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .18);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .35);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--c-accent); color: var(--c-on-accent); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.section { padding-block: clamp(64px, 10vw, 120px); }
.section--surface { background: var(--c-surface); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--c-muted); font-size: 1.125rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .85em 1.6em;
  font: 600 1rem/1 var(--font-body); letter-spacing: .01em;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); box-shadow: 0 8px 24px -10px rgba(250, 178, 11, .7); }
.btn--primary:hover { background: var(--c-accent-hover); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { border-color: var(--c-ink); color: var(--c-ink); }
.btn--outline:hover { background: var(--c-ink); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--c-border); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .4); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 52px; height: auto; }
.brand__text { display: flex; flex-direction: column; font-family: var(--font-head); text-transform: uppercase; line-height: 1; }
.brand__name { font-weight: 700; font-size: 1.32rem; letter-spacing: .02em; color: var(--c-ink); }
.brand__sub { font-weight: 400; font-size: .78rem; letter-spacing: .26em; color: var(--c-accent); margin-top: 4px; }
.brand--light .brand__name { color: #fff; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--c-ink);
  transition: background-color .2s;
}
.nav__link:hover { background: var(--c-surface); }
.nav .btn { min-height: 44px; padding: .7em 1.3em; margin-left: 8px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--c-surface); color: var(--c-ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 16px var(--gutter) 24px;
    background: #fff; border-bottom: 1px solid var(--c-border);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: 14px 12px; font-size: 1.1rem; border-radius: var(--radius-sm); }
  .nav .btn { margin: 8px 0 0; }
}
@media (max-width: 480px) {
  .site-header .container > .btn { min-height: 42px; padding: .6em 1em; font-size: .9rem; }
}
@media (max-width: 400px) {
  .brand__mark { width: 42px; }
  .brand__name { font-size: 1.1rem; }
  .brand__sub { font-size: .66rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  color: #fff; background: var(--c-ink-deep);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(25, 25, 25, .94) 0%, rgba(30, 30, 30, .82) 42%, rgba(30, 30, 30, .35) 100%),
    linear-gradient(0deg, rgba(20, 20, 20, .6) 0%, rgba(20, 20, 20, 0) 40%);
}
.hero__inner { padding-block: clamp(72px, 12vw, 140px); }
.hero__content { max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent { color: var(--c-accent); display: block; }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: rgba(255, 255, 255, .86); max-width: 560px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  list-style: none; margin: 3rem 0 0; padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .98rem; color: rgba(255, 255, 255, .8);
}
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts svg { width: 20px; height: 20px; color: var(--c-accent); flex: none; }
.hero__mark {
  position: absolute; right: -60px; bottom: -40px; width: min(46vw, 560px);
  opacity: .07; z-index: -1; pointer-events: none;
}

/* ---------- Leistungen ---------- */
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--c-ink); color: #fff;
  border-radius: calc(var(--radius) + 6px); overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
}
.feature__media { position: relative; min-height: 320px; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__badge {
  position: absolute; left: 20px; top: 20px;
  background: var(--c-accent); color: var(--c-on-accent);
  font: 600 .8rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px;
}
.feature__body { padding: clamp(28px, 5vw, 56px); }
.feature__body h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature__body p { color: rgba(255, 255, 255, .82); }
.checklist { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--c-accent); margin-top: 2px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-top: -45px; margin-bottom: 14px;
  display: grid; place-items: center;
  background: var(--c-accent); color: var(--c-on-accent);
  position: relative; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .3);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.25rem; margin-bottom: .4em; }
.card p { color: var(--c-muted); font-size: .98rem; margin: 0; }

@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, #3b3b3b, #262626);
  display: grid; place-items: center; overflow: hidden;
}
.about__photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--c-accent);
}
.about__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__placeholder { text-align: center; color: rgba(255, 255, 255, .55); font-size: .95rem; }
.about__placeholder svg { width: 120px; margin: 0 auto 12px; color: rgba(255, 255, 255, .25); }
.about__text h2 { margin-bottom: .6em; }
.about__text p { color: var(--c-muted); }
.about__sign { font-family: var(--font-head); text-transform: uppercase; font-size: 1.2rem; color: var(--c-ink); margin-top: 1.5rem; }
.about__sign span { display: block; font-family: var(--font-body); text-transform: none; font-size: .95rem; color: var(--c-muted); }
.placeholder-note {
  display: inline-block; background: #fff4d6; color: #7a5600; border: 1px dashed #e0a800;
  font-size: .85rem; padding: 4px 10px; border-radius: 6px; margin-bottom: 1rem;
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; aspect-ratio: 1 / 1; }
}

/* ---------- Vertrauen ---------- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.trust__item {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
}
.trust__item h3 { font-size: 1.3rem; }
.trust__item p { color: var(--c-muted); font-size: .98rem; }
.trust__logo { height: 34px; width: auto; max-width: 100%; object-fit: contain; align-self: flex-start; margin-bottom: 22px; }
.trust__icon { width: 48px; height: 48px; color: var(--c-accent); margin-bottom: 18px; }
.trust__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.trust__links .btn { min-height: 44px; padding: .6em 1.2em; font-size: .95rem; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 1.4rem; padding: 0; }
.towns li { background: var(--c-surface); border-radius: 999px; padding: 4px 12px; font-size: .88rem; color: var(--c-ink); }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__intro p { color: var(--c-muted); }
.mail-card {
  display: flex; align-items: center; gap: 16px;
  margin: 2rem 0; padding: 22px 24px;
  background: var(--c-ink); color: #fff; border-radius: var(--radius);
  text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.mail-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mail-card__icon { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: var(--c-on-accent); }
.mail-card__icon svg { width: 24px; height: 24px; }
.mail-card small { display: block; color: rgba(255, 255, 255, .7); font-size: .85rem; }
.mail-card strong { display: block; font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 600; word-break: break-all; }
.contact__meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--c-muted); font-size: .98rem; }
.contact__meta li { display: flex; gap: 12px; align-items: flex-start; }
.contact__meta svg { width: 20px; height: 20px; color: var(--c-gray); flex: none; margin-top: 3px; }

.form {
  background: #fff; border: 1px solid var(--c-border); border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
/* Zwei Felder nebeneinander: Label, Eingabefeld und Fehlermeldung jeweils auf
   gleicher Höhe – auch wenn ein Label oder eine Fehlermeldung umbricht. */
@supports (grid-template-rows: subgrid) {
  /* Zeilenabstand per padding statt gap – sonst bekommt die (meist leere)
     Fehler-Zeile zusätzlichen Abstand */
  .form__grid { row-gap: 0; }
  .form__grid > .field { padding-bottom: 18px; }
  .form__grid > .field:last-child { padding-bottom: 0; }
  .form__grid > .field:not(.field--full) { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .form__grid > .field:not(.field--full) > label { align-self: end; margin-bottom: 6px; }
  .form__grid > .field:not(.field--full) > .field__error { margin-top: 6px; }
}
.field label { font-weight: 600; font-size: .95rem; color: var(--c-ink); }
.field .optional { font-weight: 400; color: var(--c-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--c-text);
  padding: 13px 14px; background: var(--c-surface);
  border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background-color: #fff; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(250, 178, 11, .2);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--c-error); }
.field__error { color: var(--c-error); font-size: .85rem; min-height: 0; }
.field__error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--c-muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--c-accent); flex: none; }
.consent a { color: var(--c-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form__hint { font-size: .85rem; color: var(--c-muted); margin: 0; }
.form__status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .98rem; }
.form__status:empty { display: none; }
.form__status.is-error { background: #fdecea; color: var(--c-error); }
.form-success { text-align: center; padding: 24px 8px; }
.form-success svg { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--c-success); }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--c-muted); margin: 0; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } .form__footer .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink-deep); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.site-footer h2 { font-size: 1rem; letter-spacing: .14em; color: #fff; margin-bottom: 1rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer__brand p { margin-top: 1.2rem; max-width: 320px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .88rem; color: rgba(255, 255, 255, .55);
}
.footer-tel { font-size: .9rem; color: rgba(255, 255, 255, .6) !important; }
@media (max-width: 860px) { .site-footer__top { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.2em; }
.legal h2 { font-size: 1.45rem; margin-top: 2.4em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.8em; }
.legal p, .legal li { color: #3d3d3d; }
.legal a { color: var(--c-ink); text-underline-offset: 3px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0 0 1.4em; }
.legal dt { font-weight: 600; color: var(--c-ink); }
.legal dd { margin: 0; color: #3d3d3d; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 0; } .legal dd { margin-bottom: 10px; } }
.legal__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 2rem; text-decoration: none; font-weight: 600; color: var(--c-muted); }
.legal__back:hover { color: var(--c-ink); }
.legal__back svg { width: 18px; height: 18px; }

/* ---------- Einblend-Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Allgemein ---------- */
[hidden] { display: none !important; }
.nav__link[aria-current="page"] { background: var(--c-surface); }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--c-ink-deep); color: #fff;
  padding-block: clamp(56px, 9vw, 104px) clamp(48px, 7vw, 80px);
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin-bottom: .4em; }
.page-hero h1 .accent { color: var(--c-accent); }
.page-hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: rgba(255, 255, 255, .84); max-width: 640px; margin: 0; }
.page-hero .hero__mark { width: min(40vw, 440px); }

/* ---------- Feature-Buttons (Startseite) ---------- */
.feature__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- PV-Rechner ---------- */
.pv-section { padding-top: clamp(32px, 5vw, 56px); }
.pv { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 36px); align-items: start; }

.pv-form {
  background: #fff; border: 1px solid var(--c-border); border-radius: calc(var(--radius) + 6px);
  padding: clamp(20px, 3.5vw, 40px); box-shadow: var(--shadow);
  display: grid; gap: 8px;
}
.pv-noscript { background: #fdecea; color: var(--c-error); padding: 14px 16px; border-radius: var(--radius-sm); margin: 0 0 12px; }
.pv-step { border: 0; margin: 0; padding: 0 0 24px; display: grid; gap: 20px; }
/* Trennlinie unten statt oben – oben würde sie durch die Legende laufen */
.pv-step:not(:last-of-type) { border-bottom: 1px solid var(--c-border); margin-bottom: 24px; }
.pv-step:last-of-type { padding-bottom: 0; }
.pv-step legend {
  display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 20px;
  font: 600 1.3rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .02em; color: var(--c-ink);
}
.pv-step__nr {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-accent); color: var(--c-on-accent); font-size: 1rem;
}
.pv-field { display: grid; gap: 10px; }
.pv-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .98rem; color: var(--c-ink); }
.pv-label .optional { font-weight: 400; color: var(--c-muted); }
.pv-help { margin: 0; font-size: .86rem; color: var(--c-muted); }

/* Auswahl-Chips und Umschalter (echte Radio-Buttons, nur optisch versteckt) */
.chips, .segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label, .segmented label { position: relative; cursor: pointer; }
.chips input, .segmented input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: grid; place-items: center; min-width: 52px; min-height: 48px; padding: 8px 16px;
  border: 1.5px solid var(--c-border); border-radius: 999px; background: var(--c-surface);
  font-weight: 600; font-size: .96rem; color: var(--c-ink); text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chips label:hover span { border-color: var(--c-gray); }
.chips input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.chips input:focus-visible + span, .segmented input:focus-visible + span, .check input:focus-visible + span { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.segmented { display: inline-flex; padding: 4px; background: var(--c-surface); border: 1.5px solid var(--c-border); border-radius: 999px; justify-self: start; gap: 0; }
.segmented span { display: block; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--c-muted); transition: background-color .15s, color .15s; }
.segmented input:checked + span { background: var(--c-accent); color: var(--c-on-accent); }

.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { position: relative; cursor: pointer; }
.check span {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px 8px 14px;
  border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface);
  font-weight: 600; font-size: .96rem; color: var(--c-ink);
}
.check span::before {
  content: ""; width: 20px; height: 20px; flex: none; border-radius: 5px;
  border: 1.5px solid var(--c-gray); background: #fff center / 14px no-repeat;
}
.check input:checked + span { border-color: var(--c-ink); background: #fff; }
.check input:checked + span::before {
  background-color: var(--c-accent); border-color: var(--c-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.check small { font-weight: 400; color: var(--c-muted); font-size: .85rem; }

.input-unit { display: flex; align-items: stretch; max-width: 280px; }
.input-unit input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; color: var(--c-text);
  padding: 12px 14px; background: var(--c-surface);
  border: 1.5px solid var(--c-border); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.input-unit span {
  display: grid; place-items: center; padding: 0 14px; white-space: nowrap;
  background: var(--c-border); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9rem; font-weight: 600; color: var(--c-muted);
}
.input-unit input:focus { outline: none; background: #fff; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(250, 178, 11, .2); }

/* ⓘ-Erklärungen */
.info-btn {
  width: 28px; height: 28px; flex: none; padding: 3px; border: 0; border-radius: 50%;
  background: transparent; color: var(--c-gray); cursor: pointer;
}
.info-btn svg { width: 100%; height: 100%; }
.info-btn:hover, .info-btn[aria-expanded="true"] { color: var(--c-ink); background: var(--c-surface); }
.info-btn--light { color: rgba(255, 255, 255, .55); }
.info-btn--light:hover, .info-btn--light[aria-expanded="true"] { color: var(--c-accent); background: rgba(255, 255, 255, .08); }
.info-text {
  margin: 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: #fff8e6; border-left: 3px solid var(--c-accent);
  font-size: .9rem; line-height: 1.55; color: var(--c-text);
}
.info-text--light { background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .85); margin-top: 10px; }
.info-text--light p { margin: 0 0 .6em; }

/* Ergebnis */
.pv-result {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--c-ink); color: #fff;
  border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3vw, 34px);
}
.pv-result h2 { color: #fff; font-size: 1.5rem; margin-bottom: 18px; }
.pv-result__empty { color: rgba(255, 255, 255, .8); }
#pv-ergebnis-inhalt { display: grid; gap: 12px; }
.kpi { background: rgba(255, 255, 255, .06); border-radius: var(--radius); padding: 16px 18px; }
.kpi__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi__label { font-size: .9rem; color: rgba(255, 255, 255, .75); }
.kpi__value { display: block; font: 600 1.9rem/1.15 var(--font-head); color: #fff; letter-spacing: .01em; margin-top: 2px; }
.kpi__sub { display: block; font-size: .85rem; color: rgba(255, 255, 255, .6); margin-top: 2px; }
.kpi--main { background: var(--c-accent); color: var(--c-on-accent); }
.kpi--main .kpi__label { color: rgba(31, 31, 31, .78); font-weight: 600; }
.kpi--main .kpi__value { color: var(--c-on-accent); font-size: clamp(2.4rem, 5vw, 3rem); }
.kpi--main .info-btn--light { color: rgba(31, 31, 31, .6); }
.kpi--main .info-btn--light:hover, .kpi--main .info-btn--light[aria-expanded="true"] { color: var(--c-on-accent); background: rgba(0, 0, 0, .08); }
.kpi--main .info-text--light { background: rgba(255, 255, 255, .45); color: var(--c-on-accent); }
.kpi--small .kpi__value { font-size: 1.5rem; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.breakdown { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; }
.breakdown dd { margin: 0; font-weight: 700; text-align: right; white-space: nowrap; }

.compare { display: grid; gap: 10px; margin-top: 14px; }
.compare__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; opacity: .6; transition: opacity .2s; }
.compare__row.is-active { opacity: 1; }
.compare__label { grid-column: 1; grid-row: 1; font-size: .86rem; color: rgba(255, 255, 255, .8); }
.compare__value { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; font-size: 1.05rem; min-width: 3.4em; text-align: right; }
.compare__bar { grid-column: 1; grid-row: 2; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.compare__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: rgba(255, 255, 255, .55); transition: width .35s ease; }
.compare__row.is-active .compare__bar span { background: var(--c-accent); }

.pv-result__hint { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(250, 178, 11, .14); color: #fff; font-size: .92rem; }
.pv-result__cta { margin-top: 8px; }
.pv-result__cta .btn { width: 100%; }
.pv-result__cta p { margin: 12px 0 0; font-size: .86rem; color: rgba(255, 255, 255, .65); text-align: center; }

.pv-notes { margin-top: clamp(28px, 4vw, 44px); }
.pv-notes > * { max-width: 900px; }
.pv-disclaimer { font-size: .92rem; color: var(--c-muted); }
.pv-assumptions { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 0 20px; }
.pv-assumptions summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--c-ink); }
.pv-assumptions ul { margin: 0 0 18px; padding-left: 1.2em; display: grid; gap: 8px; font-size: .92rem; color: var(--c-muted); }
.pv-assumptions strong { color: var(--c-ink); }

@media (max-width: 960px) {
  .pv { grid-template-columns: 1fr; }
  .pv-result { position: static; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .segmented { display: flex; justify-self: stretch; }
  .segmented label { flex: 1; text-align: center; }
  .segmented span { padding: 10px 8px; font-size: .9rem; }
  .chips--wide label { flex: 1 1 auto; }
  .input-unit { max-width: none; }
}

/* ---------- Dach-Check („Was passt auf mein Dach?“) ---------- */
.dc__grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.dc__controls {
  display: grid; gap: 26px; padding: clamp(22px, 3vw, 32px);
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
}
.dc-range-label { justify-content: space-between; }
.dc-range-label output { font-family: var(--font-head); font-size: 1.15rem; color: var(--c-ink); white-space: nowrap; }
.dc-range { width: 100%; accent-color: var(--c-accent); height: 32px; cursor: pointer; }

.dc__stage {
  background: var(--c-ink); color: #fff; border-radius: calc(var(--radius) + 6px);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.dc-svg {
  width: 100%; height: auto; aspect-ratio: 24 / 16;
  background: linear-gradient(180deg, #2c3a4a 0%, #3d4f63 55%, #4b5b6b 100%);
}
.dc-sun circle { fill: var(--c-accent); }
.dc-sun line { stroke: var(--c-accent); stroke-width: .16; stroke-linecap: round; }
.dc-sun { transform-origin: 21.2px 2.2px; animation: dc-spin 40s linear infinite; }
@keyframes dc-spin { to { transform: rotate(360deg); } }
.dc-ground { stroke: rgba(255, 255, 255, .35); stroke-width: .06; }
.dc-facade { fill: #e9e5dc; }
.dc-window { fill: #6f8197; }
.dc-door { fill: #8a6a48; }
.dc-roof { fill: #7a3b2e; stroke: #5a2a20; stroke-width: .08; stroke-linejoin: round; transition: all .3s; }
.dc-roof--flat { fill: #8b8b8b; stroke: #5d5d5d; stroke-width: .18; }
.dc-ridge { stroke: #4a221a; stroke-width: .16; stroke-linecap: round; }
.dc-mod {
  fill: #1d2a3d; stroke: #8aa0bb; stroke-width: .035;
  opacity: 0; transform: translateY(-.8px); transform-box: fill-box;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .3, 1.2);
}
.dc-mod.is-in { opacity: 1; transform: none; }
.dc-glint { animation: dc-glint 4.5s ease-in-out infinite; }
@keyframes dc-glint { 0% { transform: translateX(0); } 55%, 100% { transform: translateX(32px); } }
.dc-dim, .dc-note { font: 500 .52px var(--font-body); fill: rgba(255, 255, 255, .75); text-anchor: middle; }
.dc-note { fill: var(--c-accent); }

.dc-result { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 18px 16px; padding: clamp(20px, 3vw, 30px); }
.dc-stat { display: flex; flex-direction: column; }
.dc-stat strong { font: 600 clamp(1.8rem, 3.4vw, 2.5rem)/1.05 var(--font-head); color: #fff; font-variant-numeric: tabular-nums; }
.dc-stat--big strong { color: var(--c-accent); }
.dc-stat span { font-size: .86rem; color: rgba(255, 255, 255, .7); }
.dc-fun, .dc-empty, .dc-actions, .dc-small { grid-column: 1 / -1; margin: 0; }
.dc-fun { color: rgba(255, 255, 255, .85); }
.dc-fun b { color: #fff; }
.dc-empty { display: none; color: var(--c-accent); }
.dc-result.is-empty .dc-fun { display: none; }
.dc-result.is-empty .dc-empty { display: block; }
.dc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dc-actions .btn--outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.dc-actions .btn--outline:hover { background: #fff; color: var(--c-ink); }
.dc-small { font-size: .82rem; color: rgba(255, 255, 255, .55); }

@media (max-width: 960px) {
  .dc__grid { grid-template-columns: 1fr; }
  .dc__stage { order: -1; }
}
@media (max-width: 480px) {
  .dc-result { grid-template-columns: 1fr 1fr; }
  .dc-stat--big { grid-column: 1 / -1; }
  .dc-actions .btn { width: 100%; }
}
.pv-uebernahme { margin-bottom: 24px !important; }
