/* ===========================================================
   ArkTherm — Layout & Components
   =========================================================== */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 14, 26, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 14, 26, 0.92);
  border-bottom-color: var(--navy-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 14.5px; color: var(--text-mid); transition: color 0.2s ease; }
.main-nav a:hover { color: var(--text-hi); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-family: var(--font-mono); font-size: 14px; color: var(--text-mid); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-hi); cursor: pointer; padding: 8px; }

@media (max-width: 900px) {
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: block; }

  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: rgba(11, 14, 26, 0.98);
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--navy-line);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-950);
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(11,14,26,0.92) 0%, rgba(11,14,26,0.65) 45%, rgba(11,14,26,0.35) 100%),
    linear-gradient(to bottom, rgba(11,14,26,0.5) 0%, transparent 30%, transparent 65%, rgba(11,14,26,0.85) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 140px 32px 80px; width: 100%; }
.hero-copy { max-width: 620px; }
.hero-copy h1 { font-size: clamp(38px, 5vw, 60px); }
.hero-sub { margin-top: 22px; font-size: 18px; color: var(--text-mid); max-width: 520px; }
.hero-cta-row { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-readout {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--navy-line);
  background: rgba(18, 24, 43, 0.55);
  backdrop-filter: blur(6px);
}
.readout-value { font-family: var(--font-mono); font-size: 22px; font-weight: 500; }
.readout-cold { color: #8FB4FF; }
.readout-warm { color: var(--coral); }
.readout-arrow { color: var(--text-low); font-size: 18px; }
.readout-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-low); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 4px; }

@media (max-width: 700px) {
  .hero-inner { padding: 120px 24px 60px; }
  .hero-readout { flex-wrap: wrap; }
}

/* ---------- Generic section header ---------- */
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sec-head p { margin-top: 16px; color: var(--text-mid); font-size: 17px; }

/* ---------- Vorteile: asymmetric list, not a card grid ---------- */
.vorteile-section { background: var(--navy-900); }
.vorteile-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.vorteile-list { display: flex; flex-direction: column; }
.vorteile-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--navy-line);
}
.vorteile-item:last-child { border-bottom: 1px solid var(--navy-line); }
.vorteile-stat { font-family: var(--font-mono); font-size: 15px; color: var(--coral); padding-top: 3px; }
.vorteile-item h3 { font-size: 19px; margin-bottom: 8px; }
.vorteile-item p { color: var(--text-mid); font-size: 15.5px; }

.vorteile-visual {
  position: sticky; top: 110px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--navy-line);
}
.vorteile-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

@media (max-width: 900px) {
  .vorteile-layout { grid-template-columns: 1fr; }
  .vorteile-visual { position: static; }
  .vorteile-item { grid-template-columns: 60px 1fr; }
}

/* ---------- Typen ---------- */
.typen-section { background: var(--navy-950); }
.typen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.typ-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--navy-line);
  background: var(--navy-800);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.typ-card:hover { transform: translateY(-4px); border-color: rgba(255,107,74,0.4); }
.typ-media { aspect-ratio: 4/3; overflow: hidden; }
.typ-media img { width: 100%; height: 100%; object-fit: cover; }
.typ-body { padding: 24px; }
.typ-body h3 { font-size: 18px; margin-bottom: 10px; }
.typ-body p { color: var(--text-mid); font-size: 14.5px; }

@media (max-width: 900px) { .typen-grid { grid-template-columns: 1fr; } }

/* ---------- Förderung (light section) ---------- */
.foerderung-section {
  background: var(--cream);
  color: var(--text-hi-dark);
}
.foerderung-section .sec-head h2, .foerderung-section .sec-head p { color: var(--text-hi-dark); }
.foerderung-section .sec-head p { color: var(--text-mid-dark); }
.foerderung-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.foerderung-inner p { color: var(--text-mid-dark); font-size: 17px; margin-top: 18px; }
.foerderung-inner .btn { margin-top: 32px; }

/* ---------- Ablauf ---------- */
.ablauf-section { background: var(--navy-900); }
.ablauf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.ablauf-steps::before {
  content: '';
  position: absolute;
  top: 18px; left: 0; right: 0;
  height: 2px;
  background: var(--thermal-gradient);
  opacity: 0.35;
}
.ablauf-step { position: relative; padding-right: 24px; }
.ablauf-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy-900);
  background: var(--thermal-gradient);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.ablauf-step h3 { font-size: 17px; margin-bottom: 8px; }
.ablauf-step p { color: var(--text-mid); font-size: 14.5px; }

@media (max-width: 900px) {
  .ablauf-steps { grid-template-columns: 1fr; gap: 32px; }
  .ablauf-steps::before { display: none; }
}

/* ---------- FAQ ---------- */
.faq-section { background: var(--navy-950); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--navy-line); border-radius: 14px; background: var(--navy-800); overflow: hidden; }
.faq-q {
  all: unset; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 20px 22px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
}
.faq-chevron { flex-shrink: 0; color: var(--coral); transition: transform 0.25s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--text-mid); font-size: 15px; }
.faq-item.open .faq-a { max-height: 240px; }

/* ---------- Kontakt ---------- */
.kontakt-section {
  position: relative;
  background: var(--navy-950);
  overflow: hidden;
}
.kontakt-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.kontakt-bg-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,14,26,0.95) 20%, rgba(11,14,26,0.75) 100%); }
.kontakt-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.kontakt-left h2 { font-size: clamp(28px, 3.4vw, 38px); }
.kontakt-left p { color: var(--text-mid); margin-top: 18px; font-size: 16.5px; }
.kontakt-info { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.kontakt-info a, .kontakt-info span { font-size: 14.5px; color: var(--text-mid); }
.kontakt-info a:hover { color: var(--coral); }

.form-card {
  background: rgba(27, 35, 64, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--navy-line);
  border-radius: var(--r-lg);
  padding: 34px;
}
.form-card h3 { font-size: 20px; margin-bottom: 8px; }
.form-card > p { color: var(--text-mid); font-size: 14.5px; margin-bottom: 24px; }
.form-row { display: flex; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; }
.form-field label { font-size: 13px; color: var(--text-mid); }
.form-field input, .form-field textarea {
  font-family: var(--font-body); font-size: 15px;
  padding: 13px 14px; border-radius: 10px;
  border: 1px solid var(--navy-line);
  background: rgba(11,14,26,0.5);
  color: var(--text-hi);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--coral); }
.form-consent { font-size: 12.5px; color: var(--text-low); margin-top: 14px; }
.form-note { font-family: var(--font-mono); font-size: 12px; color: var(--coral); margin-top: 10px; }
.form-success { display: none; text-align: center; padding: 30px 0; }
.form-success.visible { display: block; }

@media (max-width: 900px) {
  .kontakt-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { flex-direction: column; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); border-top: 1px solid var(--navy-line); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--navy-line); }
.footer-brand { max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { color: var(--text-mid); font-size: 14px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-low); margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: var(--text-mid); margin-bottom: 9px; }
.footer-col a:hover { color: var(--coral); }
.footer-bottom { padding-top: 22px; text-align: center; color: var(--text-low); font-size: 13px; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Legal pages ---------- */
.legal-section { padding: 160px 0 100px; max-width: 780px; margin: 0 auto; }
.legal-section h1 { font-size: 32px; margin-bottom: 40px; }
.legal-section .legal-body p { color: var(--text-mid); margin-bottom: 20px; white-space: pre-line; font-size: 15.5px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
