/* =====================================================================
   APG Hub /lueftungssysteme/  ·  Phase 2  ·  hand-codiert
   ---------------------------------------------------------------------
   Quelle: konzept/seiten-specs/struktur_hub_lueftungssysteme.md (S1–S11).
   Zweiter Durchlauf (11.07.):
     · FARBEN + FONT = airprana.de live gesampelt (Manrope, accent #0ea5e9,
       ink #1a1f3f, body #5a6a7e, tint #e0f2fe, section-bg #f4f8fc, pill-CTAs).
     · TYPO + SEKTIONSOPTIK = Vattenfall /waerme gemessen (großzügigere Skala,
       viel Weißraum, Rhythmus per alternierendem Sektions-Hintergrund).
     · STICKY-ANKER = wie Vattenfall: position:sticky; top:0 (Global-Header
       von airprana ist NICHT sticky -> scrollt weg -> Leiste klebt ganz oben).
   Alles unter .apg-hub gekapselt -> keine Nebenwirkung auf Live/Elementor.
   ===================================================================== */

.apg-hub {
  /* ── airprana-Marke (live gesampelt) ── */
  --ink:        #1a1f3f;   /* Headline/Text dunkel (airprana H2) */
  --ink-soft:   #3d5166;   /* Sekundärtext */
  --muted:      #5a6a7e;   /* Body/Caption (airprana Fließtext) */
  --accent:     #0ea5e9;   /* Marken-Cyan (Kicker/Links/CTA) */
  --accent-ink: #0284c7;
  --accent-dk:  #075985;
  --tint:       #e0f2fe;   /* airprana accent-lt */
  --tint-line:  #bae6fd;
  --line:       #e6eaef;   /* airprana border ≈ rgba(26,31,63,.08) */
  --panel:      #ffffff;
  --page:       #f4f8fc;   /* airprana Sektions-Tönung */
  --radius:     12px;
  --radius-lg:  20px;      /* airprana Karten-Radius */
  --radius-pill:999px;     /* CTAs = Pill (airprana-live + Vattenfall) */
  --shadow:     0 2px 10px rgba(26,31,63,.06);
  --shadow-hov: 0 18px 44px rgba(14,165,233,.14);
  --t:          200ms ease;

  /* Container + Rhythmus (Vattenfall ~1200px, großzügig) */
  --wrap:       1200px;
  --wrap-narrow:820px;
  --sec-pad:    clamp(56px, 7vw, 92px);
  --anchor-top: 0px;       /* Sticky-Offset: airprana-Header scrollt weg -> 0.
                              Falls je ein sticky Header kommt: dessen Höhe hier. */

  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--panel);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.apg-hub *, .apg-hub *::before, .apg-hub *::after { box-sizing: border-box; }

.apg-hub__wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.apg-hub__wrap--narrow { max-width: var(--wrap-narrow); }
.apg-hub__sec { padding: var(--sec-pad) 0; }
.apg-hub__sec--tint { background: var(--page); }
.apg-hub__center { text-align: center; margin-top: 40px; }
.apg-hub__sec-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; line-height: 1.18; letter-spacing: -.01em; margin: 0 0 12px; text-align: center; }
.apg-hub__sec-intro { font-size: 19px; line-height: 1.6; color: var(--muted); text-align: center; max-width: 680px; margin: 0 auto 44px; }
.apg-hub h2 { letter-spacing: -.01em; }
.apg-hub__arrow { display: inline-block; transition: transform var(--t); }

/* ---- Buttons (Pill) ---- */
.apg-hub__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
}
.apg-hub__btn--primary { background: var(--accent); color: #fff; }
.apg-hub__btn--primary:hover { background: var(--accent-ink); box-shadow: 0 10px 24px rgba(14,165,233,.28); }
.apg-hub__btn--ghost { background: transparent; color: var(--accent-ink); border-color: var(--tint-line); }
.apg-hub__btn--ghost:hover { background: var(--tint); }
.apg-hub__btn--onaccent { background: #fff; color: var(--accent-ink); }
.apg-hub__btn--onaccent:hover { background: var(--tint); }
.apg-hub__btn:hover .apg-hub__arrow { transform: translateX(3px); }
.apg-hub__btn.is-disabled { opacity: .55; pointer-events: none; }
.apg-hub__cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.apg-hub__textlink {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 16px; font-weight: 700; color: var(--accent-ink); text-decoration: none;
}
.apg-hub__textlink:hover .apg-hub__arrow { transform: translateX(3px); }

/* ---- Bild-Platzhalter (Marken-Gradient) ---- */
.apg-hub__ph {
  position: relative; width: 100%; aspect-ratio: var(--ratio, 16 / 10);
  border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(120% 120% at 22% 18%, rgba(255,255,255,.55), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, var(--tint) 0%, #cfe9fb 55%, var(--accent) 130%);
}
.apg-hub__ph-cap {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  font-size: 12px; font-weight: 600; color: var(--accent-dk);
  background: rgba(255,255,255,.74); border-radius: 6px; padding: 4px 8px;
}

/* ---- Häkchen ---- */
.apg-hub__checks { list-style: none; margin: 22px 0 22px; padding: 0; display: grid; gap: 12px; }
.apg-hub__checks li { position: relative; padding-left: 30px; font-size: 17px; font-weight: 600; color: var(--ink); }
.apg-hub__checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--accent-ink); font-size: 12px; font-weight: 800;
}

/* =====================================================================
   S1 · HERO
   ===================================================================== */
.apg-hub__hero { position: relative; }
.apg-hub__hero-media { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.apg-hub__hero-media .apg-hub__ph-cap { left: auto; right: 18px; bottom: 18px; }
.apg-hub__hero-media--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apg-hub__hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 30%, rgba(255,255,255,.42) 55%, rgba(255,255,255,0) 78%);
}
@media (max-width: 720px) {
  .apg-hub__hero-scrim { background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.9) 60%, rgba(255,255,255,.55) 85%, rgba(255,255,255,.25) 100%); }
}
/* Einheitliche Hero-Höhe auf allen Seiten (Referenz: /loesungen/-Übersicht,
   584px @1792 ≈ 32.6vw) — Copy wird vertikal zentriert, kürzere H1s strecken
   den Hero nicht mehr auf unterschiedliche Höhen (Tim, 23.07.). */
.apg-hub__hero-inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; min-height: clamp(440px, 32.6vw, 640px); }
/* Padding klein: die Hoehe kommt seit 23.07. aus der min-height der
   hero-inner (Zentrierung) — grosses Padding liess Seiten mit langer
   H1 (Eigenheim) ueber die Einheitshoehe hinauswachsen. */
.apg-hub__hero-copy { max-width: 620px; padding: clamp(40px, 4vw, 56px) 0; }
.apg-hub__hero h1 {
  font-size: clamp(34px, 5vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 20px; color: var(--ink);
}
.apg-hub__lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-soft); margin: 0 0 32px; }

/* =====================================================================
   S2 · ANKER-MENÜ  (sticky, klebt ganz oben — Vattenfall-Verhalten)
   ===================================================================== */
.apg-hub__anchor {
  position: sticky; top: var(--anchor-top); z-index: 990;
  display: flex; align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line);
}
/* JS-Pin-Fallback (siehe hub-lueftungssysteme.js): erzwingt das Ankleben,
   wenn natives position:sticky durch die Seiten-Scroll-Umgebung nicht
   greift. Spacer haelt die Zeile im Layout, waehrend die Leiste fixed ist. */
.apg-hub__anchor.is-pinned {
  position: fixed; top: 0; left: 0; right: 0;
}
.apg-hub__anchor-spacer { display: block; height: 0; }
.apg-hub__anchor-list {
  list-style: none; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: stretch; gap: 4px;
  max-width: var(--wrap); width: 100%;
  overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
}
.apg-hub__anchor-list::-webkit-scrollbar { display: none; }
.apg-hub__anchor-link {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 20px 16px; font-size: 16px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color var(--t), border-color var(--t);
}
.apg-hub__anchor-link:hover { color: var(--accent-ink); }
.apg-hub__anchor-link.is-active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 800; }
.apg-hub__anchor-arrow {
  flex: 0 0 auto; width: 42px; align-self: stretch;
  background: #fff; border: 0; color: var(--ink-soft); font-size: 24px; line-height: 1; cursor: pointer;
}
.apg-hub__anchor-arrow--prev { border-right: 1px solid var(--line); }
.apg-hub__anchor-arrow--next { border-left: 1px solid var(--line); }

/* =====================================================================
   S3 · ARGUMENT
   ===================================================================== */
.apg-hub__s3 { text-align: center; }
.apg-hub__s3 h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; line-height: 1.15; margin: 0 0 22px; }
.apg-hub__argument { font-size: 19px; line-height: 1.65; color: var(--muted); margin: 0 0 30px; }
.apg-hub__proof {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px;
}
.apg-hub__proof li {
  position: relative; padding: 10px 20px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 15px; font-weight: 700; color: var(--ink);
}

/* =====================================================================
   S4 / S7 · SPLIT
   ===================================================================== */
.apg-hub__split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.apg-hub__split-copy h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; line-height: 1.18; margin: 0 0 20px; }
.apg-hub__split-copy p { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; }
/* 29.07.: Folgeabsaetze brauchen Abstand — bis zur Foerderseite hatte kein
   Split-Abschnitt zwei <p>, deshalb fiel das nie auf. */
.apg-hub__split-copy p + p { margin-top: 16px; }
.apg-hub__split-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }

/* ---- Luftstrom-Animation (Gegenstrom, S4) ---- */
/* aspect-ratio 1920/1080 = exakt das SVG-viewBox-Verhältnis, wie auf der Startseite (.stage):
   verhindert internes "slice"-Clipping des SVG, das dort nicht existiert und hier vermutlich
   die kontinuierliche Neuzeichnung der SMIL-Animation störte. */
.apg-hub__anim { display: block; width: 100%; aspect-ratio: 1920 / 1080; border: 0; border-radius: var(--radius-lg); overflow: hidden; background: #1a1d22; }

/* =====================================================================
   S5 / S10 · KARTEN-GRID
   ===================================================================== */
.apg-hub__cards { display: grid; gap: 26px; }
.apg-hub__cards--3 { grid-template-columns: repeat(3, 1fr); }
.apg-hub__card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.apg-hub__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hov); border-color: var(--tint-line); }
.apg-hub__model-media { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.apg-hub__card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.apg-hub__card-title { font-size: 21px; font-weight: 800; line-height: 1.25; margin: 0 0 6px; }
.apg-hub__card-use { font-size: 16px; color: var(--muted); margin: 0 0 2px; }
.apg-hub__card-size { font-size: 15px; font-weight: 700; color: var(--accent-ink); margin: 0 0 14px; }
/* Preisliste BASE/ERP/ERP PRO je Modell-Karte (Übersicht S5) */
.apg-hub__model-prices { margin: 0 0 8px; border-top: 1px solid var(--line); }
.apg-hub__model-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.apg-hub__model-price span { font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.apg-hub__model-price b { font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.apg-hub__model-vat { font-size: 12px; color: var(--muted); margin: 8px 0 16px; }
.apg-hub__card-more { margin-top: auto; font-size: 16px; font-weight: 700; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }
.apg-hub__card-more--soft { font-weight: 600; }
.apg-hub__card:hover .apg-hub__arrow { transform: translateX(3px); }
.apg-hub__ratgeber .apg-hub__card-body { min-height: 132px; }

/* =====================================================================
   S6 · GESAMTKONZEPT — Vattenfall-Karten-Raster (Bild -> Titel -> Sub -> Link)
   Default 2x2; 4x1 per Modifier; Mobile 1 Spalte.
   ===================================================================== */
.apg-hub__gk { display: grid; gap: 26px; }
.apg-hub__gk--2x2 { grid-template-columns: repeat(2, 1fr); }
.apg-hub__gk--4x1 { grid-template-columns: repeat(4, 1fr); }
.apg-hub__gk-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.apg-hub__gk-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hov); border-color: var(--tint-line); }
.apg-hub__gk-media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.apg-hub__gk-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.apg-hub__gk-title { font-size: 20px; font-weight: 800; line-height: 1.3; margin: 0 0 6px; color: var(--ink); }
.apg-hub__gk-sub { font-size: 15px; font-weight: 700; color: var(--accent-ink); margin: 0 0 16px; }
.apg-hub__gk-link { margin-top: auto; font-size: 16px; font-weight: 700; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }
.apg-hub__gk-card:hover .apg-hub__arrow { transform: translateX(3px); }

/* =====================================================================
   S8 · KONTAKTFORMULAR
   ===================================================================== */
.apg-hub__s8-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.apg-hub__s8-contact h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; color: var(--ink); margin: 0 0 16px; line-height: 1.12; letter-spacing: -.01em; }
.apg-hub__s8-contact .lead { font-size: 17px; color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.apg-hub__s8-contact .cbtn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; padding: 14px 26px; border-radius: 999px; margin-top: 8px; }
.apg-hub__s8-contact .cbtn:hover { background: var(--accent-ink); }
.apg-hub__s8-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 14px 0 7px; }
.apg-hub__s8-form label:first-child { margin-top: 0; }
.apg-hub__s8-form input, .apg-hub__s8-form textarea { width: 100%; border: 1px solid #d6dde4; border-radius: 10px; padding: 14px 16px; font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; box-sizing: border-box; }
.apg-hub__s8-form input:focus, .apg-hub__s8-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.apg-hub__s8-form textarea { min-height: 130px; resize: vertical; }
.apg-hub__s8-form .sendbtn { width: 100%; margin-top: 20px; background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 17px; font-size: 16px; font-weight: 800; font-family: inherit; cursor: pointer; }
.apg-hub__s8-form .sendbtn:hover { background: #2a3355; }
.apg-hub__s8-form .note { font-size: 13px; color: #8b95a0; line-height: 1.5; margin: 14px 0 0; }
@media (max-width: 820px) { .apg-hub__s8-contact { grid-template-columns: 1fr; gap: 32px; } }

/* =====================================================================
   S9 · SYSTEMAUSWAHL-BAND (kräftigstes Voll-Akzent-Band)
   ===================================================================== */
.apg-hub__band {
  padding: var(--sec-pad) 0; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
}
.apg-hub__band-inner { max-width: 780px; }
.apg-hub__band h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; line-height: 1.15; margin: 0 0 14px; }
.apg-hub__band-sub { font-size: 19px; line-height: 1.55; margin: 0 0 34px; color: rgba(255,255,255,.92); }
.apg-hub__steps {
  list-style: none; margin: 0 0 38px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 26px;
}
.apg-hub__step { display: flex; align-items: center; gap: 12px; }
.apg-hub__step-num {
  width: 34px; height: 34px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); color: #fff; font-size: 16px; font-weight: 800;
  border: 1.5px solid rgba(255,255,255,.5);
}
.apg-hub__step-label { font-size: 17px; font-weight: 700; }
.apg-hub__band-tool { margin-top: 38px; }
.apg-hub__anamnese-frame {
  display: block; width: 100%; max-width: 960px; height: 500px; min-height: 500px; margin: 0 auto;
  border: 0; border-radius: var(--radius-lg); background: #fff; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

/* ---- Fokusringe ---- */
.apg-hub a:focus-visible,
.apg-hub button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  .apg-hub__cards--3 { grid-template-columns: 1fr 1fr; }
  .apg-hub__gk--4x1 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .apg-hub__hero h1 { font-size: clamp(28px, 8vw, 34px); }
  .apg-hub__split-grid { grid-template-columns: 1fr; gap: 30px; }
  .apg-hub__split--rev .apg-hub__split-copy { order: 2; }
  .apg-hub__split--rev .apg-hub__split-media { order: 1; }
  .apg-hub__cards--3 { grid-template-columns: 1fr; }
  .apg-hub__gk--2x2, .apg-hub__gk--4x1 { grid-template-columns: 1fr; }
  .apg-hub__anchor--arrows .apg-hub__anchor-arrow { display: inline-flex; align-items: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .apg-hub *, .apg-hub *::before, .apg-hub *::after { transition: none !important; scroll-behavior: auto !important; }
}
