/* =========================================================================
   EnergieCheck24 Gewerbe – Stylesheet
   Design tokens: dunkles Navy, Weiß, gedecktes Gold als Signalfarbe.
   Schrift: Space Grotesk (Display) + Inter (Text/UI)
   ========================================================================= */

:root {
  /* Farben */
  --navy-900: #0a1b33;
  --navy-800: #0f2747;
  --navy-700: #16345c;
  --navy-600: #1e3a5f;
  --ink: #14213d;
  --muted: #5b6b85;
  --muted-soft: #8794ac;
  --white: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-soft-2: #eef1f7;
  --border: #e2e6ed;
  --border-strong: #ccd3e0;
  --accent: #c9a15a;
  --accent-dark: #a9813f;
  --accent-soft: #f4ead4;
  --success: #2f7a52;
  --error: #b3432c;

  /* Typografie */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Sonstiges */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(10, 27, 51, 0.06), 0 1px 1px rgba(10, 27, 51, 0.04);
  --shadow-m: 0 8px 24px rgba(10, 27, 51, 0.08);
  --shadow-l: 0 24px 60px rgba(10, 27, 51, 0.16);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  padding: 15px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  min-height: 48px;
}
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--accent);
  color: var(--navy-900);
  box-shadow: var(--shadow-s);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-secondary {
  background: var(--white);
  color: var(--navy-900);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--navy-700); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; min-height: 40px; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 27, 51, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
}
.brand strong { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em; }
.brand span { font-size: 0.66rem; letter-spacing: 0.18em; color: var(--accent); font-weight: 600; margin-top: 3px; }

.main-nav {
  display: none;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn-primary { display: none; }

.nav-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--white); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 500;
}
.mobile-nav .btn { margin: 16px 20px 20px; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-actions .btn-primary { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Hero --------------------------------------------------------------------- */
.hero {
  background: radial-gradient(120% 140% at 15% 0%, var(--navy-700) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: var(--white);
  padding: 64px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 60px; }
}
.hero-copy .eyebrow { color: var(--accent); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  max-width: 15ch;
}
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 10px;
}
.hero-trust-line {
  color: rgba(255,255,255,0.62);
  font-size: 0.92rem;
  margin-bottom: 28px;
}
.hero-cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero-cta-hint { color: rgba(255,255,255,0.55); font-size: 0.85rem; }

/* Signature visual: "scan card" */
.scan-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-l);
  padding: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-l);
}
.scan-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.scan-card__title { color: rgba(255,255,255,0.9); font-size: 0.86rem; font-weight: 600; }
.scan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--accent);
  border-radius: 999px;
  padding: 5px 11px;
}
.scan-badge__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--navy-900);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

.scan-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
  padding: 0 4px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.scan-bars span {
  flex: 1;
  background: rgba(255,255,255,0.16);
  border-radius: 6px 6px 0 0;
}
.scan-bars span:nth-child(1) { height: 38%; }
.scan-bars span:nth-child(2) { height: 62%; }
.scan-bars span:nth-child(3) { height: 46%; }
.scan-bars span:nth-child(4) { height: 78%; }
.scan-bars span:nth-child(5) { height: 55%; }
.scan-bars span:nth-child(6) { height: 68%; }
.scan-bars span:nth-child(7) { height: 40%; }
.scan-bars::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 16px 2px rgba(201,161,90,0.6);
  animation: scanSweep 3.2s ease-in-out infinite;
}
@keyframes scanSweep {
  0% { top: 0; opacity: 0; }
  8% { opacity: 1; }
  50% { top: 100%; opacity: 1; }
  58% { opacity: 0; }
  100% { top: 0; opacity: 0; }
}
.scan-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}
.scan-foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.86rem;
}
.scan-foot svg { width: 18px; height: 18px; stroke: var(--accent); flex-shrink: 0; }

/* Trust bar ----------------------------------------------------------------*/
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.trust-bar__inner {
  padding: 34px 0;
  text-align: center;
}
.trust-bar h2 {
  font-size: 1rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 22px;
}
.trust-list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
}
@media (min-width: 720px) {
  .trust-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.trust-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.98rem;
}
.trust-list svg { width: 20px; height: 20px; stroke: var(--success); flex-shrink: 0; }

/* Funnel --------------------------------------------------------------------*/
.funnel-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
}
.funnel-head {
  padding: 28px 28px 0;
}
.funnel-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.funnel-head-row h2 { margin: 0; font-size: 1.4rem; }
.step-label { font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-soft-2);
  overflow: hidden;
  margin-bottom: 22px;
}
.progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 999px;
  transition: width 0.35s ease;
}
.funnel-body { padding: 8px 28px 32px; }

.step { display: none; }
.step.is-active {
  display: block;
  animation: stepIn 0.28s ease;
}
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.step-hint { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .option-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-m);
  padding: 16px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-900);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
  min-height: 84px;
  justify-content: center;
}
.option-card svg { width: 22px; height: 22px; stroke: var(--navy-700); }
.option-card:hover { border-color: var(--accent); background: var(--white); }
.option-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.option-card[aria-pressed="true"] {
  border-color: var(--accent-dark);
  background: var(--accent-soft);
}
.option-card[aria-pressed="true"] svg { stroke: var(--accent-dark); }
.option-grid--2 { grid-template-columns: 1fr 1fr; }
.option-grid--2 .option-card { align-items: center; text-align: center; justify-content: center; }

.field-group { margin-top: 20px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) {
  .field-row--2 { grid-template-columns: 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-900);
}
.field label .opt {
  font-weight: 400;
  color: var(--muted-soft);
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"] {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 13px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus-visible {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(201,161,90,0.25);
}
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error {
  font-size: 0.82rem;
  color: var(--error);
  min-height: 1.1em;
}
.required-mark { color: var(--error); }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-soft);
  border-radius: var(--radius-s);
  padding: 14px;
  margin: 18px 0 6px;
}
.consent-row input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.consent-row label { font-size: 0.88rem; color: var(--muted); }

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
.step-actions .btn-primary { margin-left: auto; }

.inline-note {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 16px;
}

.funnel-thanks { display: none; text-align: center; padding: 20px 8px 12px; }
.funnel-thanks.is-active { display: block; }
.funnel-thanks .check-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.funnel-thanks .check-circle svg { width: 30px; height: 30px; stroke: var(--accent-dark); }
.funnel-thanks h2 { font-size: 1.5rem; }
.funnel-thanks p { max-width: 42ch; margin: 0 auto 24px; }

/* Process steps ---------------------------------------------------------- */
.process-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 800px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
}
.process-card { position: relative; padding-top: 8px; }
.process-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 12px;
}
.process-card h3 { font-size: 1.1rem; }

/* Industry cards ----------------------------------------------------------*/
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 700px) {
  .industry-grid { grid-template-columns: repeat(4, 1fr); }
}
.industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 20px 16px;
  text-align: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.industry-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.industry-card svg { width: 26px; height: 26px; stroke: var(--navy-700); margin: 0 auto 10px; }
.industry-card span { font-weight: 600; font-size: 0.92rem; color: var(--navy-900); }
.industry-note { max-width: 62ch; margin: 28px auto 0; text-align: center; }

/* Advantages ----------------------------------------------------------------*/
.adv-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 700px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .adv-grid { grid-template-columns: repeat(4, 1fr); }
}
.adv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 22px;
}
.adv-card svg { width: 24px; height: 24px; stroke: var(--accent-dark); margin-bottom: 12px; }
.adv-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.adv-card p { font-size: 0.92rem; margin: 0; }

/* FAQ ------------------------------------------------------------------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-900);
  cursor: pointer;
}
.faq-q svg { width: 18px; height: 18px; stroke: var(--muted); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[data-open="true"] .faq-q svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p { padding: 0 4px 20px; margin: 0; }
.faq-item[data-open="true"] .faq-a { max-height: 240px; }

/* Closing CTA -------------------------------------------------------------*/
.closing-cta {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  text-align: center;
  padding: 72px 0;
}
.closing-cta h2 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.2rem); }
.closing-cta p { color: rgba(255,255,255,0.78); max-width: 46ch; margin: 0 auto 28px; }

/* Footer ------------------------------------------------------------------*/
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 44px 0 28px;
  font-size: 0.9rem;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}
@media (min-width: 700px) {
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-brand { color: var(--white); font-family: var(--font-display); font-weight: 700; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-disclaimer { max-width: 70ch; color: rgba(255,255,255,0.45); font-size: 0.82rem; }

/* Utility ------------------------------------------------------------------*/
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--navy-900);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

.placeholder-page {
  background: var(--bg-soft);
  min-height: 60vh;
  padding: 64px 0;
}
.placeholder-page .container { max-width: 760px; }
.placeholder-box {
  background: var(--white);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-m);
  padding: 28px;
  color: var(--muted);
}
