/* Nordkraft PV — Tesla-inspiriertes Design: Vollbild-Szenen, eine Akzentfarbe, keine Schatten. */

:root {
  --blue: #3e6ae1;
  --blue-hover: #3457b1;
  --carbon: #171a20;
  --graphite: #393c41;
  --pewter: #5c5e62;
  --fog: #8e8e8e;
  --cloud: #eeeeee;
  --silver: #d0d1d2;
  --ash: #f4f4f4;
  --white: #ffffff;
  --sun: #f5be28;
  --frost: rgba(255, 255, 255, 0.78);
  --ease: 0.33s cubic-bezier(0.5, 0, 0, 0.75);
  --font: "Universal Sans Text", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Universal Sans Display", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 56px;
  --gutter: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--graphite);
  font: 400 14px/20px var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--carbon); font-weight: 500; letter-spacing: normal; }
p { margin: 0; }
small { font-size: 0.55em; font-weight: 400; margin-left: 2px; }
::selection { background: var(--blue); color: var(--white); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--carbon); padding: 8px 16px; border-radius: 4px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.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; }
[hidden] { display: none !important; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(var(--gutter) + env(safe-area-inset-right)) 0 calc(var(--gutter) + env(safe-area-inset-left));
  color: var(--carbon);
  transition: background-color var(--ease), color var(--ease);
}
.nav[data-tone="dark"] { color: var(--white); }
.nav.is-solid { background: var(--frost); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); color: var(--carbon); }
.nav-logo { display: block; width: 128px; flex: none; }
.nav-logo img { width: 100%; height: auto; }
.nav .logo-light { display: none; }
.nav[data-tone="dark"]:not(.is-solid) .logo-light { display: block; }
.nav[data-tone="dark"]:not(.is-solid) .logo-dark { display: none; }

.nav-links { display: flex; gap: 2px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a, .nav-item {
  display: inline-flex; align-items: center;
  min-height: 32px; padding: 4px 14px; border-radius: 4px;
  font-weight: 500; font-size: 14px; line-height: 16.8px; text-decoration: none; white-space: nowrap;
  transition: background-color var(--ease), color var(--ease);
}
.nav-links a:hover, .nav-item:hover, .nav-links a[aria-current] { background: rgba(23, 26, 32, 0.06); }
.nav[data-tone="dark"]:not(.is-solid) .nav-links a:hover,
.nav[data-tone="dark"]:not(.is-solid) .nav-item:hover { background: rgba(255, 255, 255, 0.14); }
.nav-right { display: flex; align-items: center; gap: 2px; }
.nav-mobile-only { display: none !important; }
.nav-toggle {
  display: none; min-height: 32px; padding: 4px 16px; border: 0; border-radius: 4px;
  background: rgba(23, 26, 32, 0.06); color: inherit; font: 500 14px/16.8px var(--font); cursor: pointer;
  transition: background-color var(--ease);
}
.nav[data-tone="dark"]:not(.is-solid) .nav-toggle { background: rgba(255, 255, 255, 0.16); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; width: 264px; max-width: 100%; padding: 4px 24px;
  border: 3px solid transparent; border-radius: 4px;
  font: 500 14px/16.8px var(--font); text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: inset 0 0 0 2px transparent;
  transition: border-color var(--ease), background-color var(--ease), color var(--ease), box-shadow 0.25s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { background: rgba(255, 255, 255, 0.92); color: var(--graphite); }
.btn-secondary:hover { background: var(--white); color: var(--carbon); }
.panel .btn-secondary, .btn-ghost { background: var(--ash); color: var(--graphite); }
.panel .btn-secondary:hover, .btn-ghost:hover { background: var(--cloud); color: var(--carbon); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-sm { width: auto; min-height: 36px; padding: 4px 20px; white-space: nowrap; }

/* ---------- Vollbild-Szenen ---------- */
.scene {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(var(--nav-h) + 11vh) var(--gutter) max(8vh, 96px);
  scroll-margin-top: calc(var(--nav-h) * -1);
  background: var(--carbon) var(--bg) center / cover no-repeat;
  text-align: center;
  overflow: hidden;
}
.scene--light { background-color: var(--ash); }
.scene-copy { max-width: 760px; }
.scene-kicker { font-size: 14px; font-weight: 500; margin-bottom: 12px; color: var(--pewter); }
.scene h1, .scene h2 { font: 500 40px/48px var(--font-display); }
.scene-sub { margin: 10px auto 0; max-width: 560px; font-size: 14px; line-height: 20px; color: var(--graphite); }
.scene--dark h1, .scene--dark h2 { color: var(--white); }
.scene--dark .scene-sub { color: rgba(255, 255, 255, 0.84); }
.scene--dark .scene-kicker { color: rgba(255, 255, 255, 0.8); }
.scene-actions { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.scene-bottom { display: flex; flex-direction: column; align-items: center; gap: 28px; width: 100%; }
.scene-next {
  position: absolute; bottom: 28px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.7); border-bottom: 1.5px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  animation: nudge 2.4s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { translate: 0 0; opacity: 0.5; } 50% { translate: 0 6px; opacity: 1; } }

.trust { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 28px; flex-wrap: wrap; justify-content: center; font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.trust li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--sun); margin-right: 8px; vertical-align: 2px; }
.scene--hero .scene-bottom { margin-bottom: 8px; }

/* Kennzahlen über den Buttons, wie Teslas Reichweite/0-100/Topspeed */
.specs { display: flex; justify-content: center; gap: 56px; margin: 0; }
.specs div { min-width: 150px; }
.specs dt { font: 500 28px/34px var(--font-display); color: var(--carbon); }
.specs dd { margin: 4px 0 0; font-size: 12px; line-height: 16px; color: var(--graphite); }
.specs--on-dark dt { color: var(--white); }
.specs--on-dark dd { color: rgba(255, 255, 255, 0.8); }

/* Sanftes Einblenden beim Scrollen */
.js .reveal { opacity: 0; translate: 0 16px; transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), translate 0.8s cubic-bezier(0.2, 0, 0, 1); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
.cards .reveal:nth-child(2) { transition-delay: 0.06s; }
.cards .reveal:nth-child(3) { transition-delay: 0.12s; }
.cards .reveal:nth-child(4) { transition-delay: 0.18s; }

/* ---------- Inhaltsflächen ---------- */
.panel { padding: 120px var(--gutter); background: var(--white); }
.panel--tight { padding-top: 96px; padding-bottom: 96px; }
.panel--ash { background: var(--ash); }
.panel--dark { background: var(--carbon); color: rgba(255, 255, 255, 0.8); }
.panel--dark h2 { color: var(--white); }
.panel--dark .eyebrow, .panel--dark .note { color: rgba(255, 255, 255, 0.55); }
.panel--dark .lead { color: rgba(255, 255, 255, 0.8); }
.wrap { max-width: 1200px; margin: 0 auto; }
.wrap--narrow { max-width: 800px; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--pewter); margin-bottom: 10px; }
.panel h2 { font: 500 40px/48px var(--font-display); }
.lead { margin-top: 16px; max-width: 640px; font-size: 17px; line-height: 26px; color: var(--graphite); }
.note { margin-top: 16px; font-size: 12px; line-height: 16px; color: var(--pewter); }
.panel-actions { margin-top: 40px; }
.panel-actions--center { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Kategorie-Karten */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start;
  aspect-ratio: 3 / 4; padding: 24px; border-radius: 12px; overflow: hidden;
  background: var(--ash) var(--bg) center / cover no-repeat;
  text-decoration: none; color: var(--carbon);
  transition: opacity var(--ease);
}
.card--dark { background-color: var(--carbon); color: var(--white); }
.card-label { font: 500 22px/28px var(--font-display); }
.card-sub { margin-top: 4px; font-size: 14px; opacity: 0.8; }
.card::after {
  content: "Mehr erfahren"; position: absolute; left: 24px; bottom: 24px;
  font-size: 14px; font-weight: 500; padding-bottom: 2px;
  box-shadow: inset 0 -1px 0 currentColor; opacity: 0.85; transition: opacity var(--ease);
}
.card:hover::after { opacity: 1; }
.card:hover { opacity: 0.94; }

/* Rechner-Vorschau */
.calc-preview { max-width: 960px; margin: 0 auto; padding: 40px; border-radius: 12px; background: var(--ash); }
.calc-steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calc-steps li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--carbon); }
.calc-steps span { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--white); color: var(--blue); font-size: 13px; }
.result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.result div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 28px 24px; background: var(--white); border-radius: 8px; }
.result dt { font: 500 36px/40px var(--font-display); color: var(--carbon); }
.result dd { margin: 0; color: var(--pewter); }
.calc-preview .note { text-align: center; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; counter-reset: s; }
.steps li { padding-top: 20px; border-top: 1px solid var(--silver); }
.steps span { display: block; font: 500 14px/20px var(--font); color: var(--blue); margin-bottom: 20px; }
.steps h3 { font-size: 17px; line-height: 22px; margin-bottom: 8px; }

/* Region */
.region { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.region .lead + .lead { margin-top: 12px; }
.region-map { width: 100%; height: auto; border-radius: 12px; }
.places { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.places li { padding: 6px 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); color: var(--white); font-weight: 500; }

/* Warum */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.facts > div { padding-top: 20px; border-top: 1px solid var(--silver); }
.facts h3 { font-size: 17px; line-height: 22px; margin-bottom: 8px; }

/* Banner */
.banner {
  display: grid; place-items: center; min-height: 72vh; padding: 96px var(--gutter);
  background: var(--carbon) var(--bg) center 70% / cover no-repeat; text-align: center;
}
.banner-inner { max-width: 640px; }
.banner h2 { font: 500 40px/48px var(--font-display); }
.banner p { margin: 10px 0 32px; color: var(--graphite); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--silver); }
.faq details:first-child { border-top: 1px solid var(--silver); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 17px; line-height: 24px; font-weight: 500; color: var(--carbon);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 28px; width: 8px; height: 8px;
  border-right: 1.5px solid var(--pewter); border-bottom: 1.5px solid var(--pewter);
  transform: rotate(45deg); transition: transform var(--ease), top var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 32px; }
.faq details p { padding: 0 40px 24px 0; font-size: 15px; line-height: 24px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 96px; align-items: start; }
.contact-info { position: sticky; top: calc(var(--nav-h) + 40px); }
.contact-list { margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.contact-list dt { font-size: 12px; color: var(--pewter); }
.contact-list dd { margin: 4px 0 0; font-size: 15px; line-height: 22px; color: var(--carbon); }
.contact-list a { text-decoration: none; box-shadow: inset 0 -1px 0 var(--silver); transition: box-shadow var(--ease); }
.contact-list a:hover { box-shadow: inset 0 -1px 0 var(--carbon); }

.form { padding: 40px; border-radius: 12px; background: var(--ash); }
.form fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.form legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px; font-size: 17px; font-weight: 500; color: var(--carbon); }
.form legend span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--carbon); color: var(--white); font-size: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row--street { grid-template-columns: 1fr 120px; }
.row--city { grid-template-columns: 120px 1fr; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 6px; font-size: 12px; color: var(--pewter); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 11px 12px;
  border: 0; border-radius: 4px; background: var(--white); color: var(--carbon);
  font: 400 15px/20px var(--font); box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow var(--ease), background-color var(--ease);
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fog); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--carbon); }
.form.was-validated :invalid { box-shadow: inset 0 0 0 1.5px #c33; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chips span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 4px 16px; border-radius: 4px;
  background: var(--white); color: var(--graphite); font-weight: 500;
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow var(--ease), color var(--ease);
}
.chips input:checked + span { box-shadow: inset 0 0 0 2px var(--blue); color: var(--carbon); }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 12px; line-height: 18px; color: var(--pewter); }
.check input { margin-top: 1px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.check a { color: var(--carbon); }
.form .btn-block { margin-top: 12px; }
.form-error { margin-bottom: 24px; padding: 12px 16px; border-radius: 4px; background: #fbeaea; color: #8a1f1f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer & Dock ---------- */
.footer { padding: 64px var(--gutter) 120px; background: var(--white); border-top: 1px solid var(--cloud); font-size: 12px; line-height: 18px; color: var(--pewter); text-align: center; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-logo { width: 120px; height: auto; margin-bottom: 12px; }
.footer a { text-decoration: none; transition: color var(--ease); }
.footer a:hover { color: var(--carbon); }
.footer nav { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }

.dock {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 24px;
  padding: 6px 6px 6px 20px; border-radius: 6px;
  background: var(--frost); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  color: var(--carbon);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: opacity var(--ease), visibility var(--ease), translate var(--ease);
}
.dock.is-hidden { opacity: 0; visibility: hidden; translate: 0 12px; }
.dock-phone { text-decoration: none; font-weight: 500; white-space: nowrap; }
.dock-phone span { color: var(--pewter); font-weight: 400; margin-right: 8px; }

/* ---------- Unterseiten (Rechtliches) ---------- */
.page-head { padding: calc(var(--nav-h) + 88px) var(--gutter) 48px; background: var(--ash); }
.page-head .wrap { max-width: 800px; }
.page-head h1 { font: 500 40px/48px var(--font-display); }
.page-head .lead { margin-top: 12px; }
.legal { padding: 64px var(--gutter) 120px; }
.legal .wrap { max-width: 800px; }
.legal h2 { margin: 48px 0 12px; font: 500 22px/28px var(--font-display); }
.legal h3 { margin: 32px 0 8px; font-size: 17px; line-height: 24px; }
.legal h4 { margin: 24px 0 6px; font-size: 14px; color: var(--carbon); font-weight: 500; }
.legal p, .legal li, .legal address { font-size: 15px; line-height: 25px; color: var(--graphite); font-style: normal; }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 20px; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--carbon); text-underline-offset: 3px; }
.legal > .wrap > :first-child { margin-top: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--cloud); vertical-align: top; }
.legal blockquote, .legal .muster { margin: 16px 0; padding: 20px 24px; border-radius: 8px; background: var(--ash); }
.back-link { display: inline-flex; margin-top: 56px; font-weight: 500; text-decoration: none; box-shadow: inset 0 -1px 0 currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { display: none; position: static; transform: none; }
  .nav-item { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links.is-open {
    display: flex; flex-direction: column; gap: 0;
    /* absolute statt fixed: backdrop-filter der Leiste macht sie zum Bezugsrahmen */
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h));
    padding: 16px var(--gutter) 32px; background: var(--white); color: var(--carbon); overflow-y: auto;
  }
  .nav-links.is-open a { min-height: 52px; padding: 4px 16px; font-size: 17px; }
  .nav-links.is-open .nav-mobile-only { display: inline-flex !important; }
  .nav-links.is-open .nav-mobile-phone { margin-top: 16px; justify-content: center; background: var(--blue); color: var(--white); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .contact, .region { grid-template-columns: 1fr; gap: 56px; }
  .contact-info { position: static; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .nav-logo { width: 110px; }
  .scene { padding: calc(var(--nav-h) + 8vh) var(--gutter) max(6vh, 88px); }
  .scene h1, .scene h2, .panel h2, .banner h2, .page-head h1 { font-size: 28px; line-height: 34px; }
  .scene-actions { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 360px; }
  .btn { width: 100%; }
  .trust { flex-direction: column; gap: 6px; align-items: center; }
  .specs { gap: 12px; width: 100%; }
  .specs div { min-width: 0; flex: 1; }
  .specs dt { font-size: 20px; line-height: 26px; }
  .specs dd { font-size: 11px; line-height: 14px; }
  .panel { padding: 80px var(--gutter); }
  .panel--tight { padding: 72px var(--gutter); }
  .section-head { margin-bottom: 40px; }
  .lead { font-size: 15px; line-height: 23px; }
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 16 / 10; }
  .calc-preview { padding: 24px 16px; }
  .calc-steps, .result { grid-template-columns: 1fr; }
  .result dt { font-size: 30px; line-height: 34px; }
  .steps, .facts { grid-template-columns: 1fr; gap: 28px; }
  .form { padding: 24px 16px; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .row--street { grid-template-columns: 1fr 88px; gap: 12px; }
  .row--city { grid-template-columns: 88px 1fr; gap: 12px; }
  .contact-list { grid-template-columns: 1fr; }
  .dock { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); transform: none; justify-content: space-between; gap: 12px; padding-left: 16px; }
  .dock-phone span { display: none; }
  .btn-sm { width: auto; }
  .page-head { padding-top: calc(var(--nav-h) + 56px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}

/* ---------- Rechtstexte: Kästen ---------- */
.rechtstext-stand { margin-bottom: 32px; font-size: 13px; color: var(--pewter); }
.rechtstext-kasten { margin: 16px 0; padding: 20px 24px; border-radius: 8px; background: var(--ash); }
.rechtstext-hinweis { font-size: 13px !important; color: var(--pewter) !important; }
.rechtstext-knopf {
  display: inline-flex; align-items: center; min-height: 40px; margin: 8px 0; padding: 4px 20px;
  border: 0; border-radius: 4px; background: var(--ash); color: var(--carbon);
  font: 500 14px/16.8px var(--font); cursor: pointer; transition: background-color var(--ease);
}
.rechtstext-knopf:hover { background: var(--cloud); }
.footer-consent { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; transition: color var(--ease); }
.footer-consent:hover { color: var(--carbon); }

/* ---------- Einwilligungsbanner (assets/consent.js) ---------- */
.consent {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 200;
  width: min(440px, calc(100% - 32px));
  border-radius: 12px; background: var(--frost);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  animation: consent-in 0.5s cubic-bezier(0.2, 0, 0, 1);
}
@keyframes consent-in { from { opacity: 0; translate: 0 16px; } }
.consent-inhalt { padding: 24px; }
.consent h2 { font: 500 17px/22px var(--font-display); margin-bottom: 8px; }
.consent p { margin: 0 0 10px; font-size: 13px; line-height: 19px; color: var(--graphite); }
.consent .consent-klein { font-size: 12px; color: var(--pewter); }
.consent a { color: var(--carbon); }
.consent-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
/* Gleiche Fläche, gleiche Farbe: keine Hervorhebung einer Wahl */
.consent-knoepfe .btn { width: 100%; padding: 4px 12px; background: var(--white); color: var(--carbon); }
.consent-knoepfe .btn:hover { background: var(--cloud); }
body:has(.consent) .dock { display: none; }

/* Hero: leichter Abdunkler am unteren Rand, damit Buttons und Hinweise auf den hellen Fenstern lesbar bleiben */
.scene--hero { background-color: #070b16; }
.scene--hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(to bottom, rgba(4, 5, 8, 0), rgba(4, 5, 8, 0.62)); pointer-events: none; }
.scene--hero > * { position: relative; z-index: 1; }
.scene--hero .scene-next { position: absolute; }

/* ---------- Renderings (assets/photos, erzeugt mit tools/render) ---------- */
.bg-hero { --bg: image-set(url(/assets/photos/hero-2400.avif) type("image/avif"), url(/assets/photos/hero-2400.jpg) type("image/jpeg")); }
.bg-photovoltaik { --bg: image-set(url(/assets/photos/photovoltaik-2400.avif) type("image/avif"), url(/assets/photos/photovoltaik-2400.jpg) type("image/jpeg")); }
.bg-speicher { --bg: image-set(url(/assets/photos/speicher-2400.avif) type("image/avif"), url(/assets/photos/speicher-2400.jpg) type("image/jpeg")); }
.bg-wallbox { --bg: image-set(url(/assets/photos/wallbox-2400.avif) type("image/avif"), url(/assets/photos/wallbox-2400.jpg) type("image/jpeg")); }
.bg-waermepumpe { --bg: image-set(url(/assets/photos/waermepumpe-2400.avif) type("image/avif"), url(/assets/photos/waermepumpe-2400.jpg) type("image/jpeg")); }
@media (max-width: 900px) {
  .bg-hero { --bg: image-set(url(/assets/photos/hero-1200.avif) type("image/avif"), url(/assets/photos/hero-1200.jpg) type("image/jpeg")); }
  .bg-photovoltaik { --bg: image-set(url(/assets/photos/photovoltaik-1200.avif) type("image/avif"), url(/assets/photos/photovoltaik-1200.jpg) type("image/jpeg")); }
  .bg-speicher { --bg: image-set(url(/assets/photos/speicher-1200.avif) type("image/avif"), url(/assets/photos/speicher-1200.jpg) type("image/jpeg")); }
  .bg-wallbox { --bg: image-set(url(/assets/photos/wallbox-1200.avif) type("image/avif"), url(/assets/photos/wallbox-1200.jpg) type("image/jpeg")); }
  .bg-waermepumpe { --bg: image-set(url(/assets/photos/waermepumpe-1200.avif) type("image/avif"), url(/assets/photos/waermepumpe-1200.jpg) type("image/jpeg")); }
}
.kachel-ergebnis-haupt, .ergebnis-cta { --bg: image-set(url(/assets/photos/hero-1200.avif) type("image/avif"), url(/assets/photos/hero-1200.jpg) type("image/jpeg")); }
@media (min-width: 901px) { .ergebnis-cta { --bg: image-set(url(/assets/photos/hero-2400.avif) type("image/avif"), url(/assets/photos/hero-2400.jpg) type("image/jpeg")); } }

/* ---------- Online kaufen ---------- */
.nav-buy {
  display: inline-flex; align-items: center; min-height: 32px; margin-left: 6px; padding: 4px 16px; border-radius: 4px;
  background: var(--blue); color: #fff; font-weight: 500; font-size: 14px; line-height: 16.8px; text-decoration: none; white-space: nowrap;
  transition: background-color var(--ease);
}
.nav-buy:hover { background: var(--blue-hover); }
.btn-lg { min-height: 48px; width: auto; padding: 0 32px; font-size: 16px; white-space: nowrap; }
.kauf-schritte { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kauf-schritte li { padding: 28px 24px; border-radius: 12px; background: var(--ash); }
.kauf-schritte span { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 16px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 500; font-size: 14px; }
.kauf-schritte h3 { font-size: 17px; line-height: 22px; margin-bottom: 8px; }
.kauf-schritte p { margin: 0; color: var(--graphite); font-size: 14px; line-height: 20px; }
.kaufen .panel-actions .note { max-width: 560px; margin-top: 16px; }
@media (max-width: 1180px) { .nav-buy { padding: 4px 12px; } }
@media (max-width: 900px) { .kauf-schritte { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .kauf-schritte { grid-template-columns: 1fr; gap: 12px; }
  .kauf-schritte li { display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; padding: 18px 16px; }
  .kauf-schritte span { grid-row: span 2; margin: 0; }
  .btn-lg { width: 100%; padding: 0 16px; white-space: normal; }
}

/* Bestätigung nach dem Absenden der Dachprüfung */
.form-danke { border-left: 4px solid #2e9d5b; }
.form-danke h3 { font-size: 20px; margin-bottom: 12px; }
.form-danke p { margin: 0 0 10px; color: var(--graphite); }
.form-danke:focus { outline: none; }
.form-ok { margin-bottom: 24px; padding: 12px 16px; border-radius: 4px; background: #eaf6ee; color: #1d5e33; }

/* Startbild: bewegte Tag-/Nacht-Szene (app/haus-szene.js) */
.scene--hero > nk-haus { position: absolute; inset: 0; z-index: 0; }
.scene--hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 46%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 30%, rgba(6, 10, 22, 0.42), rgba(6, 10, 22, 0) 70%); }
.scene--hero::after { z-index: 0; height: 30%; background: linear-gradient(to bottom, rgba(4, 5, 8, 0), rgba(4, 5, 8, 0.5)); }
.scene--hero .scene-copy h1, .scene--hero .scene-sub, .scene--hero .scene-kicker { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }

/* ---------- Produkte: Originalfotos Sigenergy + drehbare 3D-Ansichten ---------- */
.bg-sig-pv { --bg: image-set(url(/assets/sigenergy/pv-haus-2400.avif) type("image/avif"), url(/assets/sigenergy/pv-haus-2400.jpg) type("image/jpeg")); }
.bg-sig-speicher { --bg: image-set(url(/assets/sigenergy/speicher-2400.avif) type("image/avif"), url(/assets/sigenergy/speicher-2400.jpg) type("image/jpeg")); }
.bg-sig-speicher-hoch { --bg: image-set(url(/assets/sigenergy/speicher-hoch-1200.avif) type("image/avif"), url(/assets/sigenergy/speicher-hoch-1200.jpg) type("image/jpeg")); }
.bg-sig-wallbox { --bg: image-set(url(/assets/sigenergy/wallbox-2400.avif) type("image/avif"), url(/assets/sigenergy/wallbox-2400.jpg) type("image/jpeg")); }
.bg-sig-wp { --bg: image-set(url(/assets/sigenergy/waermepumpe-szene-1920.avif) type("image/avif"), url(/assets/sigenergy/waermepumpe-szene-1920.jpg) type("image/jpeg")); }
.bg-sig-wp-buehne { --bg: image-set(url(/assets/sigenergy/waermepumpe-buehne-1920.avif) type("image/avif"), url(/assets/sigenergy/waermepumpe-buehne-1920.jpg) type("image/jpeg")); }
@media (max-width: 900px) {
  .bg-sig-pv { --bg: image-set(url(/assets/sigenergy/pv-haus-1200.avif) type("image/avif"), url(/assets/sigenergy/pv-haus-1200.jpg) type("image/jpeg")); }
  .bg-sig-speicher { --bg: image-set(url(/assets/sigenergy/speicher-1200.avif) type("image/avif"), url(/assets/sigenergy/speicher-1200.jpg) type("image/jpeg")); }
  .bg-sig-wallbox { --bg: image-set(url(/assets/sigenergy/wallbox-1200.avif) type("image/avif"), url(/assets/sigenergy/wallbox-1200.jpg) type("image/jpeg")); }
  .bg-sig-wp { --bg: image-set(url(/assets/sigenergy/waermepumpe-szene-1200.avif) type("image/avif"), url(/assets/sigenergy/waermepumpe-szene-1200.jpg) type("image/jpeg")); }
  .bg-sig-wp-buehne { --bg: image-set(url(/assets/sigenergy/waermepumpe-buehne-1200.avif) type("image/avif"), url(/assets/sigenergy/waermepumpe-buehne-1200.jpg) type("image/jpeg")); }
}
.scene--foto::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 7, 12, 0.55), rgba(5, 7, 12, 0.05) 40%, rgba(5, 7, 12, 0.1) 60%, rgba(5, 7, 12, 0.65)); }
.scene--foto > * { position: relative; }
.card--wp { background-position: 88% center; }
.card--verlauf { background-position: 70% center; }
.card--verlauf::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to top, rgba(10, 12, 16, 0.65), rgba(10, 12, 16, 0) 55%); }
.card--verlauf > * { position: relative; }

.produkt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px);
  min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 6vh) max(var(--gutter), 6vw) 8vh; overflow: hidden;
  background: var(--ash) var(--bg) center / cover no-repeat; scroll-margin-top: calc(var(--nav-h) * -1); }
.produkt--dunkel { background-color: #050608; color: var(--white); }
.produkt--dunkel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 8, 0.9), rgba(5, 6, 8, 0.55) 55%, rgba(5, 6, 8, 0.25)); }
.produkt--foto { background-color: #1b1e22; color: var(--white); background-position: 65% center; }
.produkt--foto::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 14, 18, 0.88), rgba(12, 14, 18, 0.55) 50%, rgba(12, 14, 18, 0.1)); }
.produkt > * { position: relative; }
.produkt-text { max-width: 540px; justify-self: end; }
.produkt h2 { font: 500 40px/48px var(--font-display); margin: 6px 0 12px; }
.produkt--dunkel h2, .produkt--foto h2 { color: var(--white); }
.produkt .lead { margin: 0 0 18px; }
.produkt--dunkel .lead, .produkt--foto .lead { color: rgba(255, 255, 255, 0.8); }
.produkt--dunkel .eyebrow, .produkt--foto .eyebrow { color: #8fb3ff; }
.vorteile { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 22px; }
.vorteile li { position: relative; padding-left: 26px; }
.vorteile li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue);
  -webkit-mask: radial-gradient(circle, #000 62%, transparent 64%); mask: radial-gradient(circle, #000 62%, transparent 64%); }
.vorteile li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 3px; border: solid #fff; border-width: 0 0 2px 2px; rotate: -45deg; }
.produkt--dunkel .vorteile, .produkt--foto .vorteile { color: rgba(255, 255, 255, 0.88); }
.produkt--dunkel .vorteile strong, .produkt--foto .vorteile strong { color: var(--white); }
.produkt-aktionen { display: flex; flex-wrap: wrap; gap: 12px; }
.produkt-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: #e7f6ec; color: #1d6b3d;
  font-size: 13px; font-weight: 600; }
.produkt-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2e9d5b; animation: badge-puls 1.8s ease-in-out infinite; }
@keyframes badge-puls { 50% { opacity: 0.35; } }
.produkt .note { margin: 0 0 18px; font-size: 12px; color: var(--pewter); }
.produkt--dunkel .note { color: rgba(255, 255, 255, 0.6); }
.produkt--dunkel .produkt-badge { background: rgba(46, 157, 91, 0.18); color: #8fe0ad; }
.produkt-3d { justify-self: start; width: min(100%, 560px); }
@media (max-width: 900px) {
  .produkt { grid-template-columns: 1fr; padding: calc(var(--nav-h) + 32px) var(--gutter) 56px; min-height: 0; gap: 28px; }
  .produkt-text, .produkt-3d { justify-self: stretch; max-width: none; width: 100%; }
  .produkt h2 { font-size: 28px; line-height: 34px; }
  .produkt--dunkel::before, .produkt--foto::before { background: linear-gradient(to bottom, rgba(5, 6, 8, 0.85), rgba(5, 6, 8, 0.6)); }
  nk-produkt3d { max-height: 420px; }
}
@media (prefers-reduced-motion: reduce) { .produkt-badge::before { animation: none; } }
nk-produkt3d[modell="speicher"] { aspect-ratio: 4 / 5; max-height: 78vh; }

/* ---------- Warum Nordkraft ---------- */
.warum-kopf { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: end; margin-bottom: 64px; }
.warum-kopf h2 { font: 500 40px/48px var(--font-display); margin: 6px 0 16px; }
.warum-kopf .lead { max-width: 640px; }
.warum-zitat { margin: 0; padding: 28px 30px; border-radius: 16px; background: var(--carbon); color: var(--white); position: relative; overflow: hidden; }
.warum-zitat::before { content: "“"; position: absolute; right: 18px; top: -26px; font: 500 160px/1 var(--font-display); color: rgba(255, 255, 255, 0.07); }
.warum-zitat blockquote { margin: 0 0 18px; font: 500 20px/29px var(--font-display); }
.warum-zitat figcaption { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.warum-zitat figcaption strong { display: block; color: var(--white); font-size: 14px; }
.warum-saeulen { list-style: none; margin: 0 0 72px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.warum-saeulen li { padding: 30px 28px; border-radius: 16px; background: var(--ash); }
.warum-saeulen span { display: block; margin-bottom: 18px; font: 500 34px/1 var(--font-display); color: var(--blue); }
.warum-saeulen h3 { font-size: 19px; line-height: 24px; margin-bottom: 10px; }
.warum-saeulen p { margin: 0; color: var(--graphite); font-size: 15px; line-height: 23px; }
@media (max-width: 900px) {
  .warum-kopf, .warum-saeulen { grid-template-columns: 1fr; }
  .warum-kopf { margin-bottom: 40px; }
  .warum-kopf h2 { font-size: 28px; line-height: 34px; }
  .warum-saeulen { margin-bottom: 48px; }
}
/* Hauptnavigation mit „Warum wir“: auf mittelgroßen Bildschirmen enger setzen */
@media (min-width: 1181px) and (max-width: 1440px) {
  .nav-links a { padding: 4px 9px; }
  .nav-right .nav-phone { display: none; }
}
