/* ============ Nordic-Energie — Gruppen-Bausteine ============
   Zwei Bausteine, die auf JEDER Seite gleich aussehen sollen: der schwarze
   Fragen-Abschnitt und das Kontaktformular im Abschluss. Sie lagen bisher nur
   in der Startseiten-CSS — die Unterseiten hatten deshalb weder Formular noch
   aufklappbare Fragen. Geladen nach /marke/ci.css, vor dem Seiten-CSS.        */

/* ---------- Haeufige Fragen (1:1 nordic-sanierung) ----------
   Natives <details>: der Antworttext steht immer im HTML, auch zugeklappt. Google und
   KI-Suchen werten ihn damit voll, und das FAQ-Schema im Kopf bleibt gueltig. */
.faq { --pad: clamp(20px, 5vw, 72px); background: var(--nv-dunkel); color: #fff; padding: 12vh var(--pad); font-family: var(--kopf); }
.faq-inner { max-width: 1100px; margin: 0 auto; }
.faq-eyebrow { text-align: center; font-size: 14px; line-height: 21px; color: rgba(255,255,255,.6); margin: 0 0 6px; }
.faq h2 { text-align: center; font-size: 39px; font-weight: 700; line-height: 50px; letter-spacing: 0;
  color: #fff; margin: 0 0 clamp(38px, 4.5vw, 56px); }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.12); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { position: relative; display: block; cursor: pointer; padding: 18px 44px 18px 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 15px; font-weight: 700; line-height: 22px; letter-spacing: 0; color: #fff; margin: 0; }
.faq-item summary:hover h3 { color: rgba(255,255,255,.75); }
.faq-item summary:focus-visible { outline: 2px solid var(--nv-signal); outline-offset: 4px; border-radius: 4px; }
/* Pluszeichen, das sich beim Oeffnen zum Minus dreht */
.faq-item summary::after { content: ""; position: absolute; right: 8px; top: 50%;
  width: 14px; height: 2px; background: var(--nv-signal); transform: translateY(-50%); }
.faq-item summary::before { content: ""; position: absolute; right: 14px; top: 50%;
  width: 2px; height: 14px; background: var(--nv-signal); transform: translateY(-50%);
  transition: transform .25s, opacity .25s; }
.faq-item[open] summary::before { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.faq-item p { font-size: 15px; line-height: 23px; color: rgba(255,255,255,.72); margin: 0; padding-bottom: 20px; max-width: 78ch; }
/* Sprung aus dem Footer auf eine Frage: nicht unter der schwarzen Leiste verschwinden */
.faq-item { scroll-margin-top: 90px; }
@media (max-width: 960px) { .faq h2 { font-size: 30px; line-height: 39px; } }
@media (prefers-reduced-motion: reduce) { .faq-item summary::before { transition: none; } }

/* ---------- Kontaktformular im schwarzen Abschluss ---------- */
.kform { max-width: 680px; margin: 30px auto 0; text-align: left; font-family: var(--sans); }
.kf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kf { display: block; margin-bottom: 14px; }
.kf > span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: rgba(255,255,255,.72); margin-bottom: 6px; }
.kf > span i { font-style: normal; color: var(--nv-signal); }
.kf input, .kf select, .kf textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; line-height: 22px;
  color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px; padding: 12px 14px; transition: border-color .15s, background .15s; }
.kf textarea { resize: vertical; min-height: 96px; }
.kf select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.7) 50%),
                    linear-gradient(135deg, rgba(255,255,255,.7) 50%, transparent 50%);
  background-position: right 18px center, right 12px center;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.kf select option { color: #000; background: #fff; }
.kf input::placeholder, .kf textarea::placeholder { color: rgba(255,255,255,.38); }
.kf input:focus, .kf select:focus, .kf textarea:focus {
  outline: none; border-color: var(--nv-signal); background-color: rgba(255,255,255,.12); }
.kf input.kf-bad, .kf textarea.kf-bad { border-color: #ff8a70; }
/* Der Honigtopf darf nicht per display:none weg sein, sonst ueberspringen ihn viele Bots */
.kf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kf-send { display: block; width: 100%; margin-top: 6px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .02em;
  color: #000; background: var(--nv-signal); border: 0; border-radius: var(--nv-radius); padding: 17px 30px;
  transition: background .2s, transform .15s; }
.kf-send:hover:not(:disabled) { background: var(--nv-signal-dunkel); transform: translateY(-2px); }
.kf-send:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.kf-send:disabled { opacity: .6; cursor: default; transform: none; }
.kf-note { font-size: 12px; line-height: 19px; color: rgba(255,255,255,.5); margin: 14px 0 0; }
.kf-note i { font-style: normal; color: var(--nv-signal); }
.kf-note a { color: rgba(255,255,255,.8); }
.kf-status { font-size: 15px; line-height: 22px; font-weight: 700; margin: 14px 0 0; min-height: 22px; }
.kf-status.ok { color: #6ee7b7; }
.kf-status.bad { color: #ffb4a2; }
@media (max-width: 620px) { .kf-row { grid-template-columns: 1fr; gap: 0; } }
@media (prefers-reduced-motion: reduce) { .kf-send { transition: none; } }

/* ======================== Dach-Band ========================
   Der Satelliten-Dachcheck sitzt sonst erst bei rund 7.000 px im Rechner — gemessen
   auf der Startseite. Dieses Band holt ihn direkt unter den Hero. Beide Seiten laden
   es aus rechner/dachband.html, die Gestaltung steht nur hier. */
/* --pad eigenstaendig setzen wie bei .faq: die Seiten definieren es je in ihrer
   style.css, hier waere es undefiniert — und ein padding mit undefinierter
   Variable faellt komplett weg (gemessen: 0 statt 11vh, Inhalt klebte am Rand). */
.dachband { --pad: clamp(20px, 5vw, 72px); background: #0d0f12; color: #fff; padding: 11vh var(--pad); }
.dachband-inner { max-width: 940px; margin: 0 auto; text-align: center; }
.dachband-kicker {
  margin: 0 0 14px; font-family: var(--kopf); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--nv-signal); }
.dachband h2 {
  margin: 0 0 16px; font-size: clamp(28px, 4.2vw, 48px); line-height: 1.12;
  font-weight: 800; letter-spacing: -.01em; }
.dachband-sub {
  max-width: 660px; margin: 0 auto 30px; font-size: 17px; line-height: 1.6;
  color: rgba(255,255,255,.72); }

.dachband-form { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; text-align: left; }
.dachband-feld { position: relative; flex: 1; min-width: 0; }
.dachband-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.dachband-feld input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; line-height: 24px;
  color: #fff; background: #16181c; border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--nv-radius); padding: 15px 17px; transition: border-color .15s; }
.dachband-feld input::placeholder { color: rgba(255,255,255,.4); }
.dachband-feld input:focus { outline: none; border-color: var(--nv-signal); }
.dachband-knopf {
  font: inherit; font-family: var(--kopf); font-size: 15px; font-weight: 700; color: #000;
  background: var(--nv-signal); border: 0; border-radius: var(--nv-radius);
  padding: 15px 26px; cursor: pointer; white-space: nowrap; transition: background .2s; }
.dachband-knopf:hover:not(:disabled) { background: var(--nv-signal-dunkel); }
.dachband-knopf:disabled { opacity: .6; cursor: default; }

.dachband-liste {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0;
  margin: 0; padding: 6px; list-style: none; max-height: 252px; overflow-y: auto;
  background: #16181c; border: 1px solid rgba(255,255,255,.16); border-radius: var(--nv-radius);
  box-shadow: 0 18px 44px rgba(0,0,0,.55); }
.dachband-liste[hidden] { display: none; }
.dachband-liste li { padding: 11px 13px; font-size: 15px; line-height: 20px; cursor: pointer; }
.dachband-liste li[aria-selected="true"], .dachband-liste li:hover { background: rgba(242,176,30,.16); }

.dachband-status { min-height: 20px; margin: 14px 0 0; font-size: 14px; color: rgba(255,255,255,.6); }
.dachband-belege {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: 760px; margin: 38px auto 0; padding: 0; list-style: none; text-align: left; }
.dachband-belege li { padding-left: 14px; border-left: 2px solid var(--nv-signal); }
.dachband-belege b { display: block; font-family: var(--kopf); font-size: 15px; font-weight: 700; }
.dachband-belege span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.6); }

@media (max-width: 760px) {
  .dachband-br { display: none; }        /* der feste Umbruch bricht sonst doppelt */
  .dachband-form { flex-direction: column; }
  .dachband-belege { grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
}
