/* ==========================================================================
   Gewerbeenergieservice · Prototyp im TELESON-CI
   Mobile-first. Farben als Tokens, Dunkelmodus über prefers-color-scheme.
   Schriften lokal (assets/fonts), keine externen Abrufe.
   ========================================================================== */

@font-face {
  font-family: "PT Sans";
  src: url("assets/fonts/pt-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("assets/fonts/pt-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pavanam";
  src: url("assets/fonts/pavanam-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-head: "PT Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-body: "Pavanam", "PT Sans", -apple-system, "Segoe UI", system-ui, sans-serif;

  /* TELESON-CI */
  --lime: #9cce1d;
  --lime-hover: #aedb36;
  --on-lime: #1a1d17;
  --anthracite: #262525;

  --bg: #ffffff;
  --bg-alt: #f4f5f2;
  --surface: #ffffff;
  --surface-sunken: #f4f5f2;
  --text: #262525;
  --text-muted: #4a4b48;
  --border: rgba(38, 37, 37, 0.1);
  --border-strong: rgba(38, 37, 37, 0.24);
  --accent-ink: #4a7008;           /* Grün für Text auf Hell, Kontrast > 5:1 */
  --accent-soft: rgba(156, 206, 29, 0.16);

  --dark-bg: #262525;
  --dark-surface: #2f2e2e;
  --dark-text: #f4f5f2;
  --dark-muted: #c6c7c3;

  --error: #b3261e;
  --focus: #2b6cb0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08), 0 40px 80px -24px rgba(0, 0, 0, 0.35);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  --nav-h: 64px;
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161716;
    --bg-alt: #1c1d1b;
    --surface: #222321;
    --surface-sunken: #1a1b19;
    --text: #f1f2ee;
    --text-muted: #b8bab4;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.24);
    --accent-ink: #9cce1d;
    --accent-soft: rgba(156, 206, 29, 0.13);

    --dark-bg: #0f100f;
    --dark-surface: #1c1d1b;

    --error: #ff8a80;
    --focus: #8ab8ff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.4), 0 40px 80px -24px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: clamp(2.375rem, 7vw, 4.5rem); letter-spacing: -0.02em; line-height: 1.04; }
h2 { font-size: clamp(1.875rem, 4.6vw, 3rem); }
h3 { font-size: 1.3125rem; line-height: 1.25; }

p { margin: 0; text-wrap: pretty; }

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

img, svg { display: block; max-width: 100%; }
figure { margin: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.section-dark :focus-visible, .hero :focus-visible, .form-section :focus-visible, .site-footer :focus-visible {
  outline-color: var(--lime);
}

.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: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--on-lime);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 800px; }

.eyebrow {
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow-light { color: var(--lime); }

.lead { font-size: clamp(1.125rem, 2.3vw, 1.375rem); line-height: 1.55; }

.body-large {
  font-size: clamp(1.125rem, 1.9vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.muted { color: var(--text-muted); }

.fineprint {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.swoosh { position: absolute; pointer-events: none; fill: var(--lime); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--lime); color: var(--on-lime); }
.btn-primary:hover { background: var(--lime-hover); text-decoration: none; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: #ffffff; text-decoration: none; }

.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; min-height: 58px; font-size: 1.125rem; }

/* ---------- Navigation ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.logo { display: block; }
.logo img { width: auto; height: 34px; }

.nav-links { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: max(640px, 100svh);
  padding: calc(var(--nav-h) + 80px) 0 72px;
  overflow: hidden;
  color: #ffffff;
  background: #1a1a19;
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 30% 40%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 21, 19, 0.25) 0%, rgba(20, 21, 19, 0.7) 35%, rgba(20, 21, 19, 0.94) 100%);
}
.hero-swoosh {
  right: -60px;
  bottom: -30px;
  width: min(70vw, 620px);
  opacity: 0.9;
  z-index: -1;
}
.hero-inner { position: relative; }
.hero h1 { max-width: 15ch; margin-bottom: 24px; }
.hero .lead { max-width: 600px; margin-bottom: 36px; color: rgba(255, 255, 255, 0.88); }

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.hero-note { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.78); }

/* ---------- Sektionen ---------- */

.section { position: relative; padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .body-large { margin-top: 20px; }

.section-dark {
  overflow: hidden;
  background: var(--dark-bg);
  color: var(--dark-text);
}
.dark-swoosh {
  top: -40px;
  right: -120px;
  width: 640px;
  opacity: 0.1;
}

.photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Problem */
.split { display: grid; gap: 40px; align-items: center; }
.split-text h2 { margin-bottom: 28px; }
.split-text .body-large + .body-large { margin-top: 16px; }
.split-media { aspect-ratio: 4 / 3; }

/* Karten */
.grid { display: grid; gap: 16px; }

.card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.section-alt .card { border-color: transparent; }
.card h3 { margin: 24px 0 10px; }
.card p { color: var(--text-muted); }
.card-large { padding: 36px 32px; }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.card-icon svg, .branche-label svg, .contact-ways svg, .success-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon svg { width: 26px; height: 26px; }

/* Ansprechpartner */
.contact-card {
  display: grid;
  margin-top: 20px;
  overflow: hidden;
  background: var(--surface);
  border-radius: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-photo { position: relative; aspect-ratio: 4 / 3; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.contact-photo figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 21, 19, 0.6);
  color: #ffffff;
  font-size: 0.75rem;
}
.contact-body { padding: 36px 28px 40px; }
.contact-body h3 { font-size: clamp(1.625rem, 3.4vw, 2.25rem); margin-bottom: 18px; }
.contact-name {
  display: flex;
  flex-direction: column;
  margin: 28px 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--lime);
  line-height: 1.4;
}
.contact-name strong { font-family: var(--font-head); font-size: 1.125rem; }
.contact-name span { font-size: 0.9375rem; color: var(--text-muted); }
.contact-ways { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-ways li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-sunken);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
}
.contact-ways svg { width: 18px; height: 18px; color: var(--accent-ink); }

/* Ablauf */
.ablauf { display: grid; gap: 40px; align-items: center; }
.ablauf-media { aspect-ratio: 3 / 2; background: var(--dark-surface); }
.steps { display: grid; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.step:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.step-number {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}
.step h3 { margin: 8px 0 8px; font-size: 1.375rem; }
.step p { color: var(--dark-muted); }

/* Für wen */
.branchen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.branche {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-sunken);
}
.branche img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.branche:hover img { transform: scale(1.04); }
.branche::after {
  content: "";
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(20, 21, 19, 0.88));
}
.branche-label {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
}
.branche-label svg { width: 28px; height: 28px; color: var(--lime); }
.center-note {
  margin-top: 40px;
  text-align: center;
  font-size: 1.1875rem;
  color: var(--text-muted);
}

/* Sparrechner */
.calc-card {
  display: grid;
  overflow: hidden;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.calc-controls { display: grid; gap: 36px; padding: 36px 24px 40px; }

.calc-control-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.calc-control-head label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
}
.calc-input {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px;
  background: var(--surface-sunken);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.calc-input:focus-within {
  border-color: #7aa915;
  box-shadow: 0 0 0 4px rgba(156, 206, 29, 0.3);
}
.calc-input input[type="text"] {
  width: 6.5ch;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.calc-input input[type="text"]:focus-visible { outline: none; box-shadow: none; background: transparent; }
.calc-input span { color: var(--text-muted); font-size: 0.9375rem; }
.calc-input #calc-verbrauch { width: 8.5ch; }

/* Schieberegler */
.range {
  --fill: 50%;
  width: 100%;
  height: 36px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.range:focus, .range:focus-visible { outline: none; box-shadow: none; border: 0; background: transparent; }
.range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime) var(--fill), var(--border) var(--fill));
}
.range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--border); }
.range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--lime); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px; height: 30px;
  margin-top: -11px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--lime);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s var(--ease);
}
.range::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--lime);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(156, 206, 29, 0.4); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(156, 206, 29, 0.4); }

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.calc-control .field-hint { margin-top: 10px; }

.calc-reference {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface-sunken);
}
.calc-reference strong { font-family: var(--font-head); margin-left: auto; }
.tag {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px dashed var(--border-strong);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Ergebnis */
.calc-result {
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  background: var(--dark-bg);
  color: var(--dark-text);
}
.calc-result .eyebrow { color: var(--lime); }
.big-number {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 13vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.calc-result.is-zero .big-number { color: var(--dark-muted); }
.big-number-unit { margin-top: 10px; font-size: 1.125rem; color: var(--dark-muted); }

.calc-bars { display: grid; gap: 12px; margin: 32px 0 20px; }
.calc-bar {
  display: grid;
  grid-template-columns: 6.5rem 1fr 3.75rem;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
}
.calc-bar-label { color: var(--dark-muted); }
.calc-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.calc-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.35s var(--ease);
}
.calc-bar-fill.is-current { background: #e8e9e5; }
.calc-bar-fill.is-average { background: var(--lime); }
.calc-bar-value {
  text-align: right;
  font-family: var(--font-head);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.calc-message { margin-bottom: 28px; font-size: 1.0625rem; color: var(--dark-text); }
.calc-fineprint { margin-top: 16px; font-size: 0.8125rem; line-height: 1.5; color: var(--dark-muted); }

/* ---------- Formular ---------- */

.form-section {
  overflow: hidden;
  background: var(--dark-bg);
  color: var(--dark-text);
}
.form-swoosh {
  left: -160px;
  bottom: -60px;
  width: 760px;
  opacity: 0.12;
  transform: scaleX(-1);
}
.form-layout { position: relative; display: grid; gap: 32px; }

.form-aside { display: grid; gap: 28px; align-content: start; }
.form-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--dark-surface);
}
.form-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.checks { display: grid; gap: 14px; }
.checks li {
  position: relative;
  padding-left: 36px;
  font-size: 1.0625rem;
  color: var(--dark-text);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lime);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 7px; top: 7px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--on-lime);
  border-bottom: 2px solid var(--on-lime);
  transform: rotate(-45deg);
}

.form-card {
  padding: 36px 22px;
  background: var(--surface);
  color: var(--text);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}
.form-intro { margin-bottom: 32px; }
.form-intro h2 { margin-bottom: 12px; font-size: clamp(1.75rem, 4vw, 2.5rem); }

.form-grid { display: grid; gap: 20px; margin-bottom: 28px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.field > label, .choice-group legend {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
}
.optional {
  margin-left: 4px;
  font-weight: 400;
  color: var(--text-muted);
}

input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-sunken);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder { color: var(--text-muted); opacity: 0.8; }
input:hover, select:hover { border-color: var(--border-strong); }
input:focus-visible, select:focus-visible {
  outline: none;
  border-color: #7aa915;
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(156, 206, 29, 0.3);
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.8px solid var(--text-muted);
  border-bottom: 1.8px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
select { padding-right: 44px; cursor: pointer; }

.input-unit { position: relative; }
.input-unit input { padding-right: 80px; }
.unit {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  color: var(--text-muted);
  pointer-events: none;
}

.field-hint { font-size: 0.875rem; color: var(--text-muted); }
.field-error { font-size: 0.875rem; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }

.is-invalid input[type="text"],
.is-invalid input[type="email"],
.is-invalid input[type="tel"] { border-color: var(--error); }

.choice-group { margin: 0; padding: 0; border: 0; }
.choice-group legend { padding: 0; margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  background: var(--surface-sunken);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.choice:hover { border-color: var(--border-strong); }
.choice:has(input:checked) { border-color: #7aa915; background: var(--accent-soft); }

input[type="checkbox"] {
  flex: none;
  width: 22px; height: 22px;
  margin: 0;
  accent-color: #6f9a12;
  cursor: pointer;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--surface-sunken);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.55;
  cursor: pointer;
}
.consent input { margin-top: 1px; }
.is-invalid .consent { border-color: var(--error); }

.form-note { margin-top: 16px; text-align: center; }

.form-success { padding: 24px 0 8px; text-align: center; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 2rem; margin: 20px 0 10px; }
.form-success p { max-width: 460px; margin: 0 auto 14px; color: var(--text-muted); font-size: 1.0625rem; }
.form-success .fineprint { font-size: 0.875rem; }
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--on-lime);
}
.success-icon svg { width: 36px; height: 36px; stroke-width: 2.4; }

/* ---------- FAQ ---------- */

.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq details + details { border-top: 1px solid var(--border); }
.faq summary {
  position: relative;
  display: block;
  padding: 22px 60px 22px 24px;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-sunken); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 0; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 26px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-body { padding: 0 24px 24px; color: var(--text-muted); }
.faq details[open] .faq-body { animation: faq-in 0.35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Footer ---------- */

.site-footer {
  padding: 64px 0 40px;
  background: var(--dark-bg);
  color: var(--dark-muted);
  font-size: 0.9375rem;
}
.footer-inner { display: grid; gap: 24px; }
.footer-brand img { width: auto; height: 38px; margin-bottom: 14px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--dark-text); text-decoration: none; font-family: var(--font-head); }
.footer-links a:hover { color: var(--lime); }
.footer-note { max-width: 640px; }
.demo-label {
  justify-self: start;
  padding: 4px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.8125rem;
}

/* ---------- Einblendungen ---------- */

/* Hero: nur Bewegung, keine Unsichtbarkeit, damit der Text sofort sichtbar ist */
.hero-in { animation: hero-rise 1s var(--ease) both; }
.hero-in:nth-child(2) { animation-delay: 0.05s; }
.hero-in:nth-child(3) { animation-delay: 0.1s; }
.hero-in:nth-child(4) { animation-delay: 0.15s; }
.hero-in:nth-child(5) { animation-delay: 0.2s; }
@keyframes hero-rise { from { transform: translateY(14px); } }


.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .branche:hover img { transform: none; }
}

/* ---------- Breakpoints ---------- */

@media (min-width: 560px) {
  .actions { flex-direction: row; }
  .form-card { padding: 48px 40px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .field-full { grid-column: 1 / -1; }
  .logo img { height: 38px; }
}

@media (min-width: 760px) {
  .hero { align-items: center; padding-bottom: 96px; }
  .hero-media img { object-position: 70% 50%; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(20, 21, 19, 0.92) 0%, rgba(20, 21, 19, 0.72) 42%, rgba(20, 21, 19, 0.1) 75%),
      linear-gradient(0deg, rgba(20, 21, 19, 0.5), transparent 40%);
  }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --nav-h: 76px; }
  .section { padding: 136px 0; }

  .nav-links {
    display: flex;
    gap: 32px;
    margin: 0 8px 0 auto;
    padding: 0;
    list-style: none;
  }
  .nav-links a {
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.9375rem;
    text-decoration: none;
  }
  .nav-links a:hover { color: var(--accent-ink); }
  .logo img { height: 44px; }

  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split-media { aspect-ratio: 4 / 5; }

  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

  .contact-card { grid-template-columns: 5fr 7fr; margin-top: 24px; }
  .contact-photo { aspect-ratio: auto; min-height: 460px; }
  .contact-body { align-self: center; padding: 56px 64px; }

  .ablauf { grid-template-columns: 6fr 5fr; gap: 72px; }
  .ablauf-media { aspect-ratio: 4 / 5; }
  .step { padding: 32px 0; }

  .branchen { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .branche-label { left: 24px; right: 24px; bottom: 24px; font-size: 1.125rem; }

  .calc-card { grid-template-columns: 7fr 6fr; }
  .calc-controls { align-content: center; gap: 44px; padding: 64px; }
  .calc-result { justify-content: center; padding: 64px 56px; }

  .form-layout { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
  .form-aside { position: sticky; top: calc(var(--nav-h) + 32px); }
  .form-photo { aspect-ratio: 4 / 5; }
  .form-card { padding: 56px; }

  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-note, .demo-label { grid-column: 1 / -1; }
}
