/* ============================================================
   KIalog Erstaufnahme — gemeinsames Layout-Gerüst
   Look steuert die jeweilige Theme-Datei über CSS-Variablen.
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-2: #f2f2f2;
  --ink: #111111;
  --muted: #5f6368;
  --line: #e4e4e4;
  --accent: #1f7a5a;
  --accent-2: #1f7a5a;
  --on-accent: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 18px 50px rgba(20, 24, 28, 0.10);
  --shadow-soft: 0 8px 24px rgba(20, 24, 28, 0.06);
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-spacing: -0.01em;
  --hero-min: 100svh;
  --maxw: 1180px;
  --pad: clamp(72px, 9vw, 150px);
  --hero-overlay: linear-gradient(90deg, rgba(8, 12, 14, 0.86) 0%, rgba(8, 12, 14, 0.6) 38%, rgba(8, 12, 14, 0.12) 72%, rgba(8, 12, 14, 0) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.12rem);
  line-height: 1.62;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-spacing);
  line-height: 1.08;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.section {
  padding: var(--pad) clamp(20px, 5vw, 64px);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 650;
  justify-content: center;
  line-height: 1.2;
  min-height: 52px;
  padding: 14px 28px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.button.primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
}
.button.secondary:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- Hero ---------- */
.hero {
  min-height: var(--hero-min);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.hero-video {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 0;
}
.kenburns { animation: kenburns 38s ease-in-out infinite alternate; transform-origin: 70% 50%; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero-shade {
  background: var(--hero-overlay);
  inset: 0;
  position: absolute;
  z-index: 1;
}
.site-head {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 5vw, 64px);
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 12px rgba(16, 14, 40, 0.6), 0 0 2px rgba(16, 14, 40, 0.4);
  background: linear-gradient(180deg, rgba(16, 14, 40, 0.62) 0%, rgba(16, 14, 40, 0.22) 64%, rgba(16, 14, 40, 0) 100%);
}
.wordmark { align-items: center; color: #fff; display: flex; flex-direction: row; gap: 11px; line-height: 1.1; text-decoration: none; }
.wordmark .wm-mark { flex: none; }
.wordmark .wm-text { display: flex; flex-direction: column; }
.wordmark span { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.01em; }
.wordmark small { font-size: 0.72rem; letter-spacing: 0.16em; opacity: 0.82; text-transform: uppercase; }
.site-head nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 30px); }
.site-head nav a {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.96;
  text-decoration: none;
}
.site-head nav a:hover { opacity: 1; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 13px;
  background: rgba(16, 14, 40, 0.45);
  cursor: pointer;
}
.nav-toggle span { position: relative; display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: background 0.2s ease; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s ease; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-head.nav-open .nav-toggle span { background: transparent; }
.site-head.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.site-head.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.hero-content {
  color: #fff;
  margin-top: auto;
  max-width: 660px;
  padding: 0 clamp(20px, 5vw, 64px) clamp(40px, 6vw, 80px);
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 18px rgba(8, 10, 16, 0.5), 0 1px 3px rgba(8, 10, 16, 0.42);
}
.hero-content .eyebrow { color: #fff; opacity: 0.92; }
#hero-title { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.lede {
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  margin-top: 22px;
  max-width: 560px;
  opacity: 0.94;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; max-width: 460px; }
.hero-actions .button { flex: 1 1 0; }
.hero-fineprint { font-size: 0.92rem; margin-top: 20px; opacity: 0.92; }
.hero-caption {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 40px);
  padding: 20px clamp(20px, 5vw, 64px);
  position: relative;
  z-index: 3;
}
.hero-caption span {
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.92;
  text-transform: uppercase;
}

/* ---------- Thesis ---------- */
.thesis { background: var(--surface); }
.thesis p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-spacing);
  line-height: 1.28;
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
}

/* ---------- Feature pairs ---------- */
.feature { display: grid; gap: clamp(60px, 8vw, 120px); }
.feature-pair {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: var(--maxw);
}
.feature-pair.reverse figure { order: 2; }
.feature-pair figure { margin: 0; position: relative; }
.feature-pair figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  height: clamp(320px, 42vw, 520px);
  object-fit: cover;
  width: 100%;
}
.feature-pair figcaption {
  bottom: 18px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  left: 18px;
  letter-spacing: 0.08em;
  position: absolute;
  text-transform: uppercase;
}
.feature-pair figcaption span { opacity: 0.7; }
.feature-pair h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 18px; }
.feature-pair p:not(.eyebrow) { color: var(--muted); margin-top: 14px; }

/* ---------- Gallery / Ergebnis ---------- */
.gallery-head, .ampel-head, .pricing-head, .safeguards-head, .faq-head {
  margin: 0 auto clamp(40px, 5vw, 64px);
  max-width: 760px;
  text-align: center;
}
.gallery-head h2, .ampel-head h2, .pricing-head h2, .safeguards-head h2, .faq-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}
.gallery-lede, .ampel-lede { color: var(--muted); margin-top: 16px; }
.result-grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0 auto;
  max-width: var(--maxw);
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 3vw, 34px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.result-step { color: var(--accent); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.result-card h3 { font-size: 1.3rem; }
.result-card p { color: var(--muted); }

/* ---------- Ampel ---------- */
.ampel { background: var(--surface); }
.ampel-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 0 auto;
  max-width: 1080px;
}
.ampel-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3.2vw, 38px);
}
.ampel-card h3 { font-size: 1.5rem; }
.ampel-card p { color: var(--muted); }
.ampel-card strong { font-weight: 700; }
.ampel-dot { border-radius: 999px; height: 18px; width: 18px; }
.ampel-card.gruen { border-top-color: #2f9e6f; }
.ampel-card.gruen .ampel-dot { background: #2f9e6f; }
.ampel-card.gelb { border-top-color: #e0a93b; }
.ampel-card.gelb .ampel-dot { background: #e0a93b; }
.ampel-card.rot { border-top-color: #d2544a; }
.ampel-card.rot .ampel-dot { background: #d2544a; }

/* ---------- Details / Ablauf ---------- */
.details { display: grid; gap: 0; max-width: var(--maxw); margin: 0 auto; }
.detail-row {
  align-items: baseline;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px 32px;
  grid-template-columns: 64px 1fr;
  padding: clamp(28px, 4vw, 44px) 0;
}
.detail-row:last-child { border-bottom: 1px solid var(--line); }
.detail-row > span {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  grid-row: span 2;
}
.detail-row h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.detail-row p { color: var(--muted); grid-column: 2; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 0 auto;
  max-width: var(--maxw);
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 42px);
}
.price-card.highlight {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}
.price-name {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.price-figure { font-family: var(--font-display); font-size: clamp(2.1rem, 3.4vw, 2.8rem); line-height: 1; }
.price-sub { color: var(--muted); margin-top: 10px; }
.price-list { display: grid; gap: 12px; list-style: none; margin: 26px 0 0; padding: 0; }
.price-list li { padding-left: 28px; position: relative; }
.price-list li::before { color: var(--accent); content: "✓"; font-weight: 800; left: 0; position: absolute; }
.pricing-side { margin: clamp(24px, 3vw, 36px) auto 0; max-width: var(--maxw); }
.pilot-note {
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}
.pilot-label { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.pilot-note p:not(.pilot-label) { margin-top: 12px; color: var(--muted); }

/* ---------- Safeguards ---------- */
.safeguards { background: var(--surface); }
.safeguard-grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 0 auto;
  max-width: var(--maxw);
}
.safeguard {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
}
.safeguard h3 { font-size: 1.2rem; margin-bottom: 10px; }
.safeguard p { color: var(--muted); }
.legal-note { color: var(--muted); font-size: 0.86rem; margin: clamp(28px, 4vw, 40px) auto 0; max-width: 760px; text-align: center; }

/* ---------- Author ---------- */
.author-card {
  align-items: center;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(200px, 300px) 1fr;
  margin: 0 auto;
  max-width: 960px;
}
.author-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.author-card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 6px 0 16px; }
.author-card p:not(.eyebrow) { color: var(--muted); }
.author-pillars { display: grid; gap: 12px; list-style: none; margin: 22px 0 0; padding: 0; }
.author-pillars li { border-left: 3px solid var(--accent); color: var(--muted); padding-left: 16px; }
.author-pillars strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; margin: 0 auto; max-width: 820px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px clamp(20px, 3vw, 28px);
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  list-style: none;
  padding: 20px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); padding-bottom: 22px; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: #fff; }
.cta-inner { margin: 0 auto; max-width: 720px; text-align: center; }
.cta .eyebrow { color: var(--accent-2); }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.cta p:not(.eyebrow) { color: rgba(255, 255, 255, 0.78); margin: 20px auto 30px; max-width: 560px; }
.cta-fineprint { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; margin-top: 18px; }

/* ---------- Footer ---------- */
.footer {
  align-items: center;
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 40px clamp(20px, 5vw, 64px);
}
.footer a { color: var(--accent); text-decoration: none; }

/* ---------- Reveal (CSS-only, scroll-getrieben) ---------- */
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 36%;
  }
  @keyframes reveal-in {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature-pair { grid-template-columns: 1fr; }
  .feature-pair.reverse figure { order: 0; }
  .author-card { grid-template-columns: 1fr; max-width: 520px; text-align: left; }
  .price-card.highlight { transform: none; }
  .nav-toggle { display: inline-flex; }
  .site-head nav {
    display: none;
    position: absolute;
    top: 100%;
    right: clamp(20px, 5vw, 64px);
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
    min-width: 210px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(20, 18, 31, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
    text-shadow: none;
  }
  .site-head.nav-open { z-index: 20; }
  .site-head.nav-open nav { display: flex; }
  .site-head nav a { padding: 12px 14px; border-radius: 10px; }
  .site-head nav a:hover { background: rgba(255, 255, 255, 0.09); }
}

/* ---------- Mobile-Feinschliff (durchgehend, alle Seiten) ---------- */
@media (max-width: 560px) {
  /* Hero-Schleier: oben hell (Bild sichtbar), unten dunkel (Text trägt) */
  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(10, 12, 16, 0.12) 0%,
      rgba(10, 12, 16, 0.34) 42%,
      rgba(10, 12, 16, 0.7) 78%,
      rgba(10, 12, 16, 0.9) 100%
    );
  }
  /* Knöpfe gestapelt, volle Breite, gleich gross */
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 380px; }
  .hero-actions .button { flex: none; width: 100%; }
  /* einheitliche Abstände, etwas knapper als auf dem Desktop */
  .section { padding-top: 56px; padding-bottom: 56px; }
  /* Kernsatz mobil ruhiger setzen */
  .thesis p { font-size: clamp(1.4rem, 5.4vw, 1.85rem); line-height: 1.32; }
  /* Hero-Titel mobil etwas kompakter */
  #hero-title { font-size: clamp(2.3rem, 9.4vw, 3.1rem); }
}

/* ---------- Ruhe: Bewegung auf Wunsch abschalten ---------- */
@media (prefers-reduced-motion: reduce) {
  .kenburns { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .button.primary:hover,
  .result-card:hover,
  .choice:hover { transform: none; }
}
