/*
  Upwind Consulting — NRW.BANK.Impuls KI Landingpage (/impuls-ki)
  Standalone stylesheet. Ein Ziel: Förder-Check buchen.

  Referenz: public.digital — fette, freundliche geometrische Groteske, viel Weiß,
  Farbe gezielt als Akzent (nicht flächendeckend), Pill-Buttons.

  Typografie:  Plus Jakarta Sans (400/500/600/700/800)
  TODO (Produktion): Font self-hosten (woff2) statt Google-CDN — DSGVO + Speed.
*/

/* ============================== Tokens ============================== */

:root {
  --ink:        #16201F;
  --white:      #FFFFFF;
  --paper:      #F5F7F5;   /* helle Karten/Bänder, sauberes Off-White */
  --muted:      #55635F;

  --teal:       #128A7D;   /* Primär: Buttons, Links, Akzente */
  --teal-deep:  #0B5F57;   /* Hover, dunkle Fläche, Zuschuss-Zahl, Labels */
  --teal-soft:  #D3E8E2;   /* dezente Akzentfläche (Auswahl, Kreise) */
  --teal-wash:  #EAF3F0;   /* sehr helle Fläche zum Absetzen */

  --rose:       #C99BB0;   /* Altrosa: nur Schritt „abwarten" */
  --rose-deep:  #8E5570;
  --rose-wash:  #F5ECF0;

  --line:       #E7E9E5;
  --line-dark:  rgba(255,255,255,.16);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Poppins", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --gutter: 28px;
  --radius: 16px;
  --radius-lg: 22px;
}

/* ============================== Reset / Base ============================== */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #fff; overflow-x: hidden; }

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

main { display: block; }
img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; transition: opacity .2s; }
a:hover { opacity: .7; }
strong, b { font-weight: 700; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.06; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.2; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* ============================== Utilities ============================== */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-variant-numeric: tabular-nums; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--teal-deep); margin: 0 0 22px; }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; font-weight: 500; color: var(--muted); }
.muted { color: var(--muted); }
.note { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 24px; max-width: 66ch; }

.section { padding: 96px 0; }

/* Desktop only: tighten the space above each section header (top padding),
   leaving the bottom rhythm and the mobile spacing untouched. */
@media (min-width: 901px) {
  .section { padding-top: 20px; padding-bottom: 44px; }
  /* Hero keeps its own (larger) padding; trim only its bottom so the first
     section header ("Passt das Programm zu Ihnen?") sits closer to the hero. */
  .section.hero { padding-bottom: 44px; }
}

/* Section-Header: breit genug, damit nichts in eine schmale Spalte gequetscht wird */
.section-head { max-width: 900px; margin-bottom: 52px; }
.section-head h2 { max-width: 18ch; }
.section-head .lead { max-width: 58ch; margin-top: 20px; }

/* Zweispaltiges Layout: Überschrift links, Inhalt rechts (public.digital-Muster) */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.split .split-head { max-width: 30ch; }
.split .split-head h2 { max-width: 14ch; }
.split .split-head .lead { max-width: 42ch; margin-top: 18px; }

/* Farbflächen — sparsam, für Rhythmus */
.band-white { background: var(--white); }
.band-wash  { background: var(--teal-wash); }
.band-teal  { background: var(--teal-deep); color: #DCEBE7; }
.band-teal h2, .band-teal h3 { color: var(--white); }
.team-band { background: var(--teal); }
.band-ink   { background: var(--ink); color: #D5DEDC; }
.band-ink h2, .band-ink h3 { color: var(--white); }

/* ============================== Buttons (Pills) ============================== */

.btn {
  font-family: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border: 2px solid transparent; border-radius: 999px;
  cursor: pointer; line-height: 1; transition: background-color .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); opacity: 1; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; opacity: 1; }
.band-teal .btn-ghost, .band-ink .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.band-teal .btn-ghost:hover, .band-ink .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ============================== Statusleiste (sticky) ============================== */

/* Homepage-style header: white sticky bar, thin bottom rule, logo image left, single CTA right. */
.statusbar { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.statusbar-inner { display: flex; align-items: center; gap: 22px; min-height: 64px; padding: 12px var(--gutter); max-width: var(--container); margin: 0 auto; }
.statusbar-logo { flex: 0 0 auto; line-height: 0; text-decoration: none; }
.statusbar-logo-img { height: 34px; width: auto; display: block; }
.statusbar-cta { margin-left: auto; flex: 0 0 auto; }
.statusbar .btn { padding: 11px 24px; font-size: 15px; }

/* ============================== Hero (weiß) ============================== */

.hero { padding: 80px 0 92px; background: var(--white); }
.hero h1 { max-width: 24ch; }
.hero .lead { margin-top: 26px; max-width: 48ch; color: var(--ink); font-weight: 500; }
.hero .lead .money { font-weight: 800; white-space: nowrap; }

/* ---- Anwendungsfall-Wähler (Leitobjekt) — ruhige Liste, keine schwebenden Blobs ---- */

.selector {
  margin-top: 50px; display: grid; grid-template-columns: 0.95fr 1.05fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 26px 54px -40px rgba(22,32,31,.4);
}
.selector-label {
  grid-column: 1 / -1; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); padding: 22px 28px; border-bottom: 1px solid var(--line);
}
.selector-tiles { display: flex; flex-direction: column; }
.tile {
  font-family: inherit; text-align: left; background: transparent; border: 0;
  border-bottom: 1px solid var(--line); padding: 22px 26px; cursor: pointer;
  display: flex; align-items: center; gap: 16px; color: var(--ink);
  font-size: 18px; font-weight: 600; line-height: 1.3; transition: background-color .15s;
}
.tile:last-child { border-bottom: 0; }
.tile:hover { background: var(--paper); }
.tile-num { font-size: 14px; font-weight: 700; color: var(--teal); flex: 0 0 auto; }
.tile[aria-selected="true"] { background: var(--teal-wash); box-shadow: inset 4px 0 0 var(--teal); }
.tile[aria-selected="true"] .tile-num { color: var(--teal-deep); }
.tile-unsure { color: var(--teal-deep); }

.selector-panel { padding: 26px 32px; border-left: 1px solid var(--line); }
.sketch { display: none; }
.sketch.is-active { display: block; }
.sketch-mod { margin-bottom: 22px; }
.sketch-mod-tag { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--teal-deep); display: block; margin-bottom: 8px; }
.sketch-mod p { font-size: 16px; line-height: 1.55; margin: 0; }
.sketch-cost { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sketch-cost .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: block; margin-bottom: 5px; }
.sketch-cost .v { font-size: 19px; font-weight: 800; color: var(--ink); }
.sketch-cost .v.grant { color: var(--teal-deep); }
.sketch-outcome { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; }
.sketch-example { font-size: 13px; color: var(--muted); margin-top: 12px; }

.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---- Anwendungsfall-Kacheln in einer Reihe, Flip auf Hover/Tap ---- */

.usecases { margin-top: 50px; }
.usecases-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 20px; }
.usecases-label span { color: var(--teal-deep); margin-left: 4px; letter-spacing: .04em; }

.uc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.uc-card {
  position: relative; height: 320px; padding: 0; border: 0; background: transparent;
  font-family: inherit; text-align: left; cursor: pointer; perspective: 1400px;
}
.uc-inner { position: absolute; inset: 0; transition: transform .55s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
/* Touch-Geräte flippen per Tap (.flipped); nur echte Hover-Geräte flippen beim Überfahren */
.uc-card:focus-visible .uc-inner,
.uc-card.flipped .uc-inner { transform: rotateY(180deg); }
@media (hover: hover) {
  .uc-card:hover .uc-inner { transform: rotateY(180deg); }
  .uc-card:hover .uc-front { border-color: var(--teal); }
}

.uc-face {
  position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; overflow: hidden;
}
.uc-front { background: var(--paper); border: 1px solid var(--line); justify-content: space-between; }
.uc-num { font-size: 14px; font-weight: 700; color: var(--teal); }
.uc-title { font-family: var(--font-head); font-size: clamp(19px, 1.8vw, 22px); font-weight: 700; line-height: 1.2; margin-top: 14px; }
.uc-hint { font-size: 13px; font-weight: 700; color: var(--teal-deep); margin-top: auto; }

.uc-back { background: var(--teal-wash); border: 1px solid var(--teal-soft); transform: rotateY(180deg); justify-content: space-between; }
.uc-desc { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.uc-cost { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--teal-soft); }
.uc-cost-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.uc-cost-k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.uc-cost-v { font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.uc-cost-v.grant { color: var(--teal-deep); }

.uc-unsure { margin-top: 22px; font-size: 16px; color: var(--muted); }
.uc-unsure a { font-weight: 700; }

/* ============================== Checkliste ============================== */

.criteria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.criterion { background: var(--paper); border-radius: var(--radius); padding: 30px 32px; display: flex; gap: 16px; }
.criterion .check { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-deep); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.criterion .c-title { font-family: var(--font-head); font-weight: 600; font-size: 19px; margin-bottom: 6px; }
.criterion .c-desc { font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ============================== Module A / B ============================== */

.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.module { background: var(--paper); border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; }
.module-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 24px; }
.module-tag { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--teal); padding: 6px 14px; border-radius: 999px; }
.module-title { font-size: 25px; }
.module ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.module li { position: relative; padding-left: 28px; font-size: 16.5px; line-height: 1.5; overflow-wrap: break-word; hyphens: auto; }
.module li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 999px; background: var(--teal); }
.module-result { margin-top: auto; padding-top: 26px; }
.module-result::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 18px; }
.module-result .k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-deep); display: block; margin-bottom: 8px; }

/* ============================== Ablauf (5 Schritte) ============================== */

.steps { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.5fr); gap: 30px; background: var(--paper); border-radius: var(--radius); padding: 30px 34px; align-items: start; }
.step-num { font-size: 30px; font-weight: 800; color: #B7CFC9; }
.step-head .step-tag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--teal-deep); display: block; margin-bottom: 8px; }
.step-title { font-family: var(--font-head); font-size: 21px; font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
.step-body { font-size: 16.5px; line-height: 1.5; color: var(--muted); overflow-wrap: break-word; hyphens: auto; }

/* Schritt „abwarten" — ruhig hervorgehoben in Altrosa, kein Alarm */
.step.is-warning { background: var(--rose-wash); }
.step.is-warning .step-num { color: var(--rose); }
.step.is-warning .step-tag { color: var(--rose-deep); }
.step.is-warning .step-body { color: var(--ink); }
.step.is-warning .step-body strong { color: var(--ink); }

/* ============================== Antragsmuster ============================== */

.specimen { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.specimen-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 22px 32px; background: var(--teal-deep); color: #fff; font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.specimen-head span:last-child { color: #A9CEC6; }
.specimen-body { padding: 8px 32px 28px; }
.specimen-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.specimen-row:last-child { border-bottom: 0; }
.specimen-k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-deep); margin-bottom: 8px; }
.specimen-v { font-size: 16.5px; line-height: 1.5; }
.specimen-v .money { font-weight: 800; color: var(--teal-deep); }

/* ============================== Team ============================== */

/* Lesbarer Subheader auf dunkelgrünem Grund */
.band-teal .lead, .band-teal .section-head .lead { color: #CFE5E0; }

.team { display: grid; grid-template-columns: 240px 240px 240px; gap: 48px; margin-bottom: 56px; }
.team-photo { width: 100%; max-width: 240px; aspect-ratio: 4/5; object-fit: cover; margin-bottom: 20px; border-radius: var(--radius); }
.team-name { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: #fff; }
.team-role { font-size: 16px; color: #A9C4BE; margin-top: 6px; }
.team-link { color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.4); }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 44px; border-top: 1px solid var(--line-dark); }
.proof-num { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.proof-label { font-size: 16px; line-height: 1.45; color: #A9C4BE; margin-top: 12px; }
.proof-line { grid-column: 1 / -1; padding-top: 30px; margin-top: 6px; border-top: 1px solid var(--line-dark); font-size: 17px; line-height: 1.55; color: #CFE0DB; }

/* ============================== Wann Sie uns nicht brauchen ============================== */

.exclude { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.exclude-item { display: flex; gap: 16px; }
.exclude-mark { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px; background: #fff; color: var(--teal-deep); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; line-height: 1; }
.exclude-item p { font-size: 17.5px; line-height: 1.5; margin: 0; font-weight: 500; }

/* ============================== FAQ ============================== */

.faq { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 28px 52px 28px 0; position: relative; font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 2vw, 22px); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-deep); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq-answer { padding: 0 60px 30px 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ============================== Formular ============================== */

.form-wrap { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 56px; align-items: start; }
.form-intro h2 { margin-bottom: 22px; }
.form-intro p { color: var(--muted); font-size: 18px; line-height: 1.55; }
.form-alt { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-alt a { color: var(--teal-deep); font-weight: 700; font-size: 16px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 9px; }
.input, .select, .textarea { width: 100%; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-family: inherit; font-size: 16px; padding: 15px 16px; border-radius: 12px; }
.input::placeholder, .textarea::placeholder { color: #9AA5A1; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,138,125,.18); }
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; }
.radio-row { display: flex; gap: 26px; margin-top: 6px; }
.radio { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer; }
.radio input { width: 18px; height: 18px; accent-color: var(--teal); }
.form-card button[type="submit"] { margin-top: 26px; width: 100%; }
.status-msg { margin-top: 18px; padding: 16px 20px; font-size: 15px; font-weight: 600; border-radius: 12px; }
.status-msg.success { background: var(--teal); color: #fff; }
.status-msg.error { background: var(--rose-deep); color: #fff; }

/* ============================== Footer ============================== */

.site-footer { background: var(--ink); color: #8FA09C; }
.footer-inner { padding: 56px var(--gutter); max-width: var(--container); margin: 0 auto; }
.disclaimer { font-size: 14px; line-height: 1.65; max-width: 92ch; color: #8FA09C; }
.disclaimer a { color: #C6D5D0; }
.footer-meta { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.footer-meta a { color: #8FA09C; text-decoration: none; }

/* ============================== Scroll-Reveal ============================== */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================== Responsive ============================== */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
  .modules, .criteria, .exclude, .form-wrap { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: 200px 200px 200px; gap: 30px; }
  .proof { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; padding: 24px 22px; }
  .step-head { grid-column: 2; }
  .step-body { grid-column: 2; }
  .step-title { font-size: 18px; }
  .form-wrap { gap: 36px; }
}

/* Statusleiste: auf Phones nur Logo + CTA, der Programmtext würde sonst umbrechen */
@media (max-width: 767px) {
  .statusbar-status { display: none; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 56px; }

  /* Flip-Karten: eine Spalte, Höhe eng an den Inhalt (weniger Leerraum) */
  .uc-grid { grid-template-columns: 1fr; }
  .uc-card { height: 240px; }
  .uc-face { padding: 22px; }

  /* Formular einspaltig statt gequetscht nebeneinander */
  .form-grid { grid-template-columns: 1fr; }

  /* Team: eine Spalte, beide Fotos zentriert */
  .team { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .team-photo { max-width: 300px; margin-left: auto; margin-right: auto; }

  .proof { grid-template-columns: 1fr; }
  .module, .form-card { padding: 24px; }
  .specimen-head, .specimen-body { padding-left: 22px; padding-right: 22px; }
  .faq summary { font-size: 18px; padding-right: 44px; }
  .footer-meta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* Sehr schmale Phones */
@media (max-width: 380px) {
  .uc-card { height: 272px; }
  .statusbar .btn { padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
