/* =========================================================
   Badkalkulator.de — Endkunden-Seite (Konfigurator-Rahmen)
   Ergänzt style.css. Mobile first: Oberhalb der Falz nur Logo,
   Nutzenzeile, Vertrauenszeile und der Beginn des Konfigurators.
   ========================================================= */

.endkunden .header-inner { min-height: 60px; gap: 16px; }
.endkunden .logo img { width: 150px; }

/* ---------- Hinweis-Balken für SHK-Betriebe (ganz oben, ganze Fläche klickbar) ---------- */
.betriebe-bar {
  display: block; background: var(--navy); color: rgba(255,255,255,.82);
  text-decoration: none; font-size: .9rem; line-height: 1.35;
}
.betriebe-bar-inner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px;
  padding-top: 10px; padding-bottom: 10px;
}
.betriebe-bar strong { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.4); }
.betriebe-bar .arrow { display: inline-block; transition: transform .18s var(--ease); }
.betriebe-bar:hover { background: var(--blue-deep); }
.betriebe-bar:hover strong { border-bottom-color: #fff; }
.betriebe-bar:hover .arrow { transform: translateX(3px); }
.betriebe-bar:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

/* ---------- Einstieg ---------- */
.k-intro { position: relative; padding: 18px 0 18px; }
.k-intro::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(to right,  var(--line) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 44px);
  opacity: .45;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 90%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 90%);
}
.k-intro > * { position: relative; }
.k-intro h1 {
  font-size: clamp(1.55rem, 5.6vw, 2.9rem); line-height: 1.12; max-width: 22ch;
}
.k-intro h1 span { display: block; margin-top: .25em; font-size: .62em; font-weight: 500; color: var(--body); letter-spacing: -.01em; }
.k-trust {
  margin-top: 12px; font-family: var(--font-mono); font-size: .8rem; color: var(--muted);
}
.k-trust span { margin: 0 .45em; color: var(--blue); }

/* ---------- Konfigurator (iframe) ---------- */
.k-stage { padding: 4px 0 40px; scroll-margin-top: 64px; }  /* sticky Header nicht über dem Rahmen */
.k-stage:focus { outline: none; }
/* Starthöhe, bis das Embed per postMessage seine echte Höhe meldet */
.k-frame { display: block; width: 100%; height: 900px; border: 0; overflow: hidden; background: var(--paper); }
.k-noscript { padding: 20px 0; }
.k-noscript a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Für Betriebe ---------- */
.k-betriebe { padding: 0 0 48px; }
.k-betriebe-inner {
  display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .95rem;
}
.k-betriebe .text-link { align-self: flex-start; font-size: .95rem; }

/* ---------- Footer: Button wie Link ---------- */
.footer-link-btn {
  font: inherit; font-weight: 500; font-size: .95rem; color: rgba(255,255,255,.8);
  background: none; border: 0; border-bottom: 1px solid transparent; padding: 0 0 2px; cursor: pointer;
}
.footer-link-btn:hover { color: #fff; border-bottom-color: rgba(255,255,255,.5); }
.footer-link-btn[hidden] { display: none; }

/* ---------- Einwilligungs-Banner ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--paper); border-top: 1px solid var(--line-2);
  box-shadow: 0 -6px 24px rgba(21,48,74,.08);
}
.consent[hidden] { display: none; }
.consent-inner { max-width: var(--wrap); margin-inline: auto; padding: 16px var(--pad) 18px; }
.consent-titel { font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--navy); }
.consent-text { margin-top: 6px; font-size: .88rem; line-height: 1.55; max-width: 80ch; }
.consent-text a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
/* beide Knöpfe gleich gewichtet */
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

/* ---------- ab Tablet ---------- */
@media (min-width: 761px) {
  .endkunden .header-inner { min-height: 72px; }
  .endkunden .logo img { width: 190px; }
  .k-intro { padding: 40px 0 28px; }
  .k-trust { margin-top: 16px; font-size: .84rem; }
  .k-stage { padding: 8px 0 64px; scroll-margin-top: 76px; }
  .k-betriebe-inner { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 32px; }
  .consent-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: end; }
  .consent-titel { grid-column: 1; }
  .consent-text { grid-column: 1; }
  .consent-actions { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; grid-template-columns: auto auto; }
}

@media print {
  .consent, .k-betriebe { display: none; }
}
