/* ============================================================
   CP Branding — Go-to-Market-Beratung (Landing Page)
   Page-spezifische Sektions-Styles. Greift auf base.css-Tokens
   (--ink, --paper, --accent …) + globale Komponenten (.faq, .cta-button,
   .site-header, .site-footer) aus styles.css zu.
   Nur was es global noch nicht gibt, steht hier.
   ============================================================ */

/* Gemeinsamer Sektions-Rhythmus (gleicher Maßstab wie Hero/Services site-weit) */
.gtm-section {
  padding-block: clamp(80px, 12vh, 140px);
  padding-inline: clamp(20px, 9vw, 130px);
}
.gtm-dark  { background: var(--ink);  color: #fff; }
.gtm-light { background: var(--paper); color: var(--ink); }
.gtm-inner { width: 100%; max-width: 1180px; margin-inline: auto; }

/* Wiederkehrende Bausteine */
.gtm-eyebrow {
  font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; opacity: 0.55; margin-bottom: 20px;
}
.gtm-h2 {
  font-weight: 700;
  font-size: clamp(2.4rem, 6.6vw, 96px);
  line-height: 1.0; letter-spacing: -0.02em;
}
.gtm-lead {
  margin-top: clamp(18px, 2.5vw, 28px);
  max-width: 720px;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 22px);
  line-height: 1.45; opacity: 0.8;
}

/* Button-Varianten (Basis = globales .cta-button aus styles.css) */
.cta-button--ink   { background: var(--ink); color: #fff; }
.cta-button--ink:hover { background: #000; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 2vw, 28px); }
.cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: clamp(1rem, 1.2vw, 18px);
  color: inherit; opacity: 0.85;
  border-bottom: 2px solid currentColor; padding-bottom: 3px;
  transition: opacity 0.2s ease;
}
.cta-secondary:hover { opacity: 1; }
.cta-secondary svg { width: 16px; height: 16px; }

/* ===================== 1. Hero ===================== */
.gtm-hero {
  background: var(--ink); color: #fff;
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-block: clamp(60px, 10vh, 120px);
  padding-inline: clamp(20px, 9vw, 130px);
}
.gtm-hero h1 {
  font-weight: 700;
  font-size: clamp(2.3rem, 6.2vw, 86px);
  line-height: 1.0; letter-spacing: -0.025em; color: #fff;
  max-width: 19ch;
  text-wrap: balance;
}
.gtm-hero h1 .h1-accent { color: var(--accent); white-space: nowrap; }
.gtm-hero .gtm-hero-sub {
  margin-top: clamp(20px, 3vw, 32px); max-width: 640px;
  font-size: clamp(1.05rem, 1.6vw, 22px); line-height: 1.45;
  color: var(--paper); opacity: 0.78;
}
.gtm-hero .gtm-hero-sub strong { color: #fff; font-weight: 700; }
.gtm-hero .cta-row { margin-top: clamp(28px, 4vw, 44px); }
/* Förder-Badge unter den CTAs */
.gtm-hero-badge {
  margin-top: clamp(24px, 3vw, 36px);
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; opacity: 0.6;
}
.gtm-hero-badge .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex: none; }

/* ===================== 2. Drei Bereiche (Aufklapp-Akkordeon · dunkle Karten auf hell) ===================== */
.gtm-pillars .gtm-h2 { max-width: 18ch; }
.pillars-acc { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 14px; max-width: 920px; }
.pcard {
  position: relative; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease), opacity .35s var(--ease), box-shadow .3s var(--ease);
}
.pcard-glow {
  position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(240,89,43,0.16), transparent 60%);
}
.pcard:hover .pcard-glow { opacity: 1; }
.pcard-head {
  position: relative; z-index: 1; width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 16px; text-align: left; font-family: inherit; color: #fff;
  padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 32px);
}
.pcard-n { flex: none; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.pcard-h { font-weight: 700; font-size: clamp(1.3rem, 2.1vw, 28px); line-height: 1.05; letter-spacing: -.01em; }
.pcard-teaser { margin-left: auto; color: var(--muted-2); font-size: 14px; white-space: nowrap; transition: opacity .3s ease; }
.pcard-chev { flex: none; display: flex; color: var(--accent); transition: transform .35s var(--ease); }
.pcard-chev svg { width: 22px; height: 22px; }
.pcard-body { position: relative; z-index: 1; height: 0; overflow: hidden; transition: height .42s var(--ease); }
.pcard-bodyi { min-height: 0; }
.pcard-body ul {
  list-style: none; margin: 0;
  padding: 0 clamp(20px,2.4vw,32px) clamp(20px,2.4vw,30px) clamp(46px,5vw,64px);
  display: flex; flex-direction: column; gap: 11px;
}
.pcard-body li {
  position: relative; padding-left: 18px; color: var(--paper);
  font-size: clamp(.95rem, 1.15vw, 16px); line-height: 1.45;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.pcard-body li::before { content: ""; position: absolute; left: 0; top: .6em; width: 11px; height: 2px; border-radius: 2px; background: var(--accent); }
.pcard.open { border-color: var(--accent); background: var(--bg-card); box-shadow: 0 0 0 1px var(--accent), 0 16px 46px rgba(240,89,43,0.13); }
.pcard.open .pcard-chev { transform: rotate(180deg); }
.pcard.open .pcard-teaser { opacity: 0; }
.pcard.open .pcard-body li { opacity: 1; transform: none; }
.pcard.open .pcard-body li:nth-child(2) { transition-delay: .06s; }
.pcard.open .pcard-body li:nth-child(3) { transition-delay: .12s; }
.pcard.open .pcard-body li:nth-child(4) { transition-delay: .18s; }
.pcard.open .pcard-body li:nth-child(5) { transition-delay: .24s; }
.pcard.open .pcard-body li:nth-child(6) { transition-delay: .30s; }
.pillars-acc:has(.pcard.open) .pcard:not(.open) { opacity: .5; }
@media (max-width: 560px) { .pcard-teaser { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .pcard, .pcard-body, .pcard-body li, .pcard-chev, .pcard-teaser, .pcard-glow { transition: none; }
}

/* ===================== 3. Ablauf (Prozess · scroll-animierte Linie) ===================== */
.gtm-process .gtm-lead { opacity: 0.78; }
.proc-timeline { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.proc-track {
  position: absolute; left: 23px; top: 14px; bottom: 14px; width: 2px;
  background: rgba(0,0,0,0.12); border-radius: 2px; overflow: hidden;
}
.proc-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0;
  background: var(--accent); border-radius: 2px;
  transition: height 0.12s linear;
}
.proc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(30px, 4vw, 54px); }
.proc-step { position: relative; padding-left: 70px; opacity: 0.45; transition: opacity 0.45s var(--ease); }
.proc-step.is-active { opacity: 1; }
.proc-dot {
  position: absolute; left: 14px; top: 3px; width: 20px; height: 20px;
  border-radius: 999px; background: #fff; border: 2px solid rgba(0,0,0,0.18);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.proc-step.is-active .proc-dot {
  background: var(--accent); border-color: var(--accent);
  transform: scale(1.12); box-shadow: 0 0 0 6px rgba(240,89,43,0.16);
}
.proc-n { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--accent); opacity: 0.9; }
.proc-body h3 { font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 28px); line-height: 1.12; margin: 6px 0 8px; letter-spacing: -0.01em; }
.proc-body p { font-size: clamp(0.95rem, 1.2vw, 17px); line-height: 1.55; opacity: 0.72; max-width: 580px; }
@media (prefers-reduced-motion: reduce) { .proc-fill { transition: none; } }

/* ===================== 4. BAFA-Förderung ===================== */
.gtm-bafa .gtm-h2 { max-width: 16ch; }
.bafa-layout {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
/* Interaktiver Rechner */
.bafa-calc {
  background: rgba(255,255,255,0.04); color: #fff; border: 1px solid var(--border);
  border-radius: 24px; padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 18px;
}
.bafa-calc label { font-weight: 600; font-size: clamp(1.05rem, 1.4vw, 20px); }
.bafa-select {
  font-family: inherit; font-size: 16px; font-weight: 500;
  color: #fff; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 15px 18px; width: 100%; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.bafa-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bafa-result {
  border-top: 1px solid var(--border); padding-top: 18px;
  min-height: 96px; display: flex; flex-direction: column; gap: 6px;
}
.bafa-result .bafa-pay { font-weight: 700; font-size: clamp(1.6rem, 3vw, 40px); line-height: 1.05; letter-spacing: -0.02em; }
.bafa-result .bafa-pay .accent { color: var(--accent); }
.bafa-result .bafa-sub { font-size: 15px; opacity: 0.7; }
.bafa-result .bafa-hint { font-size: 13px; opacity: 0.45; margin-top: 4px; }
.bafa-result[data-empty="true"] .bafa-pay { font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 20px); opacity: 0.55; }

/* Pakete + Prozess (rechte Spalte) */
.bafa-side { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px); }
.bafa-packages { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pkg {
  border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.pkg--premium { border-color: var(--accent); }
.pkg .pkg-name { font-weight: 700; font-size: 18px; }
.pkg .pkg-price { font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 28px); letter-spacing: -0.02em; }
.pkg .pkg-desc { font-size: 14px; line-height: 1.4; opacity: 0.65; }
.pkg .pkg-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

/* „Warum BAFA" + Förderfähigkeits-Check */
.bafa-why { margin-top: 16px; max-width: 760px; font-size: clamp(1rem, 1.3vw, 18px); line-height: 1.6; opacity: 0.72; }
.bafa-calc .calc-h { font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 24px); line-height: 1.2; }
.bafa-calc .calc-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bafa-calc .check-item {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: inherit;
  color: #fff; font-size: 15px; line-height: 1.45; opacity: 0.85;
  position: relative; padding: 2px 0 2px 32px; transition: opacity .2s ease;
}
.bafa-calc .check-item:hover { opacity: 1; }
.bafa-calc .check-item::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.3); background: transparent;
  transition: background .2s ease, border-color .2s ease;
}
.bafa-calc .check-item[aria-pressed="true"] { opacity: 1; }
.bafa-calc .check-item[aria-pressed="true"]::before {
  background: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.bafa-calc .calc-allgood {
  margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--accent);
  display: none;
}
.bafa-calc .calc-allgood.show { display: block; }
/* Hinweis-Block, wenn er auf dunklem Grund steht (Ablauf-Section) */
.bafa-warning--dark { background: rgba(240,89,43,0.12); }

/* Wichtiger Hinweis-Block */
.bafa-warning {
  margin-top: clamp(32px, 4vw, 48px);
  border-left: 4px solid var(--accent);
  background: rgba(240,89,43,0.06);
  border-radius: 0 16px 16px 0;
  padding: clamp(20px, 2.4vw, 28px) clamp(22px, 2.6vw, 32px);
  display: flex; gap: 16px; align-items: flex-start;
  max-width: 880px;
}
.bafa-warning svg { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.bafa-warning p { font-size: clamp(0.98rem, 1.2vw, 17px); line-height: 1.55; }
.bafa-warning strong { font-weight: 700; }

@media (max-width: 860px) {
  .bafa-layout { grid-template-columns: 1fr; gap: 32px; }
  .bafa-packages { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .bafa-packages { grid-template-columns: 1fr; } }

/* ===================== 5. Urgency / Verfügbarkeit ===================== */
.gtm-urgency { text-align: center; }
.gtm-urgency .gtm-inner { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2.5vw, 28px); }
.gtm-urgency .gtm-h2 { max-width: 20ch; }
.gtm-urgency .gtm-lead { opacity: 0.78; margin-inline: auto; }
.urgency-meter {
  margin-top: clamp(20px, 3vw, 32px);
  display: inline-flex; align-items: baseline; gap: 14px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 999px; padding: 16px 30px;
}
.urgency-meter b { font-weight: 700; font-size: clamp(2rem, 4vw, 48px); letter-spacing: -0.02em; }
.urgency-meter b .accent { color: var(--accent); font-size: inherit; }
.urgency-meter .um-label { font-size: 15px; opacity: 0.7; }
.gtm-urgency .deadline {
  position: relative; font-weight: 700; color: var(--accent);
  white-space: nowrap;
}
/* Motion-Akzent: leiser Puls-Unterstrich unter dem Auslaufdatum */
.gtm-urgency .deadline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.12em;
  height: 3px; border-radius: 3px; background: var(--accent); opacity: 0.5;
}
@media (prefers-reduced-motion: no-preference) {
  .gtm-urgency .deadline::after { animation: deadline-pulse 2.4s var(--ease) infinite; }
}
@keyframes deadline-pulse {
  0%, 100% { opacity: 0.35; transform: scaleX(0.82); }
  50%      { opacity: 0.9;  transform: scaleX(1); }
}

/* ===================== 7. Footer-CTA (Buchung ausschließlich über SavvyCal) ===================== */
.gtm-final {
  background: var(--ink); color: #fff;
  padding-block: clamp(80px, 12vh, 140px);
  padding-inline: clamp(20px, 9vw, 130px);
}
.gtm-final-inner {
  max-width: 760px; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2.5vw, 28px);
}
.gtm-final h2 { font-weight: 700; font-size: clamp(2.2rem, 5.5vw, 80px); line-height: 1.02; letter-spacing: -0.02em; }
.gtm-final .gtm-lead { color: var(--paper); margin-inline: auto; }
.gtm-final .cta-button { margin-top: 6px; }
