/* ==========================================================================
   Kernwerk – gemeinsames Stylesheet (Hauptseite, E-Book-Seiten, Rechtsseiten)
   Design-System aus der „Die innere Führung"-Salespage abgeleitet.
   Farben: Navy / Gold / Creme · Schriften: EB Garamond (Serif) + Inter
   ========================================================================== */

:root {
  --navy:   #1E2040;
  --navy2:  #161830;
  --gold:   #B8902A;
  --gold2:  #D4AA45;
  --cream:  #F5F0E8;
  --cream2: #EDE8DE;
  --white:  #FFFFFF;
  --text:   #1A1B2E;
  --muted:  #6B6B8A;
  --green:  #2D7A4F;
  --red:    #8B2020;
  --maxw:   1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif; color: var(--text);
  background: var(--white); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); }

/* ── Layout ── */
section { padding: 80px 5%; }
.inner { max-width: 820px; margin: 0 auto; }
.inner-wide { max-width: 1000px; margin: 0 auto; }

.bg-cream { background: var(--cream); }
.bg-navy  { background: var(--navy); }
.bg-navy2 { background: var(--navy2); }

/* ── Typo-Bausteine ── */
.section-label {
  font-family: 'EB Garamond', serif; font-size: .85rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.section-h2 {
  font-family: 'EB Garamond', serif; font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 500; line-height: 1.25; margin-bottom: 28px;
}
.section-h2.light { color: var(--cream); }
.section-h3 {
  font-family: 'EB Garamond', serif; font-size: 1.25rem;
  font-weight: 600; margin: 28px 0 10px;
}
p { margin-bottom: 18px; font-size: .98rem; line-height: 1.8; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.gold-line { width: 48px; height: 2px; background: var(--gold); margin: 0 auto 36px; }
.gold-line.left { margin: 0 0 36px; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block; background: var(--gold); color: var(--navy2);
  text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 16px 40px; border-radius: 2px; letter-spacing: .04em;
  transition: background .2s, transform .15s; cursor: pointer; border: 0;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--cream);
  border: 1px solid rgba(184,144,42,.5); text-decoration: none;
  font-weight: 500; font-size: .95rem; padding: 14px 32px; border-radius: 2px;
  letter-spacing: .04em; transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(184,144,42,.1); }

/* ── Navigation ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy2); border-bottom: 1px solid rgba(184,144,42,.25);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5%; gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'EB Garamond', serif; font-size: 1.05rem;
  color: var(--cream); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  color: rgba(245,240,232,.75); text-decoration: none;
  font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--cream); }
.btn-nav {
  background: var(--gold); color: var(--navy2); text-decoration: none;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  padding: 9px 20px; border-radius: 2px; white-space: nowrap; transition: background .2s;
}
.btn-nav:hover { background: var(--gold2); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); border-radius: 2px; }
.nav-toggle span + span { margin-top: 6px; }

/* ── Hero (Hauptseite & E-Book) ── */
.hero {
  background: var(--navy); padding: 100px 5% 90px;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,144,42,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-icon { margin-bottom: 32px; }
.hero-icon svg { width: 72px; height: 72px; margin: 0 auto; }
.hero-label {
  font-family: 'EB Garamond', serif; font-size: .9rem; letter-spacing: .18em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 20px;
}
.hero-h1 {
  font-family: 'EB Garamond', serif; font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500; color: var(--cream); line-height: 1.2;
  max-width: 780px; margin: 0 auto 24px;
}
.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.1rem); color: rgba(245,240,232,.65);
  max-width: 620px; margin: 0 auto 40px; font-style: italic;
  font-family: 'EB Garamond', serif;
}
.hero-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-trust { font-size: .78rem; color: rgba(245,240,232,.45); letter-spacing: .04em; }

/* ── E-Book-Karten (Hauptseite) ── */
.ebook-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px; margin-top: 44px;
}
.ebook-card {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--navy); border: 1px solid rgba(184,144,42,.22);
  border-radius: 4px; padding: 30px; text-decoration: none;
  transition: transform .15s, border-color .2s;
}
.ebook-card:hover { transform: translateY(-4px); border-color: rgba(184,144,42,.5); }
.ebook-card-top { display: flex; gap: 22px; align-items: center; }
.ebook-tag {
  font-family: 'EB Garamond', serif; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.ebook-card h3 {
  font-family: 'EB Garamond', serif; font-size: 1.4rem; font-weight: 600;
  color: var(--cream); line-height: 1.25;
}
.ebook-card p { color: rgba(245,240,232,.65); font-size: .92rem; }
.ebook-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 8px;
}
.ebook-price { font-family: 'EB Garamond', serif; font-size: 1.2rem; color: var(--gold); }
.ebook-more {
  color: var(--cream); font-size: .82rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px;
}
.ebook-card.soon { opacity: .55; }
.ebook-card.soon .ebook-price { color: rgba(245,240,232,.5); font-size: .9rem; font-style: italic; }

/* Mini-Buchcover (für Karten & Salespage) */
.book-cover {
  flex: 0 0 110px; height: 150px;
  background: var(--navy2); border-radius: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 10px; text-align: center;
  box-shadow: -4px 4px 0 rgba(184,144,42,.3), -7px 7px 14px rgba(0,0,0,.35);
  position: relative;
}
.book-cover::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 7px; background: rgba(0,0,0,.25); border-radius: 3px 0 0 3px;
}
.book-cover svg { width: 26px; height: 26px; margin-bottom: 10px; }
.book-cover-label {
  font-family: 'EB Garamond', serif; font-size: .55rem; letter-spacing: .14em;
  color: rgba(184,144,42,.75); text-transform: uppercase; margin-bottom: 6px;
}
.book-cover-title {
  font-family: 'EB Garamond', serif; font-size: .85rem; font-weight: 600;
  color: var(--cream); line-height: 1.2;
}

/* Großes Buchcover (Salespage „Lösung") */
.book-wrap { display: flex; gap: 60px; align-items: center; flex-wrap: wrap; margin: 48px 0; }
.book-cover-lg {
  flex: 0 0 200px; height: 280px; padding: 24px 18px;
}
.book-cover-lg svg { width: 40px; height: 40px; margin-bottom: 14px; }
.book-cover-lg .book-cover-label { font-size: .65rem; margin-bottom: 8px; }
.book-cover-lg .book-cover-title { font-size: 1.15rem; margin-bottom: 10px; }
.book-cover-sub {
  font-family: 'EB Garamond', serif; font-size: .72rem; font-style: italic;
  color: rgba(245,240,232,.55); line-height: 1.4;
}
.book-desc { flex: 1; min-width: 260px; }

/* ── Problem-Zitat ── */
.problem-quote {
  font-family: 'EB Garamond', serif; font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-style: italic; color: var(--navy); line-height: 1.4;
  border-left: 3px solid var(--gold); padding-left: 24px; margin: 36px 0;
}
.problem-text { color: #3a3a55; }

/* ── Frameworks-Grid ── */
.fw-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin-top: 40px;
}
.fw-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(184,144,42,.2);
  border-radius: 3px; padding: 22px 20px;
}
.fw-tag {
  font-family: 'EB Garamond', serif; font-size: .78rem; letter-spacing: .14em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 8px; font-weight: 600;
}
.fw-title { color: var(--cream); font-size: .95rem; font-weight: 500; line-height: 1.5; }

/* ── Checklisten / Zwei Spalten ── */
.check-list { list-style: none; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: .95rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list .icon { flex: 0 0 20px; font-size: 1.1rem; margin-top: 1px; }
.check-list.dark li { border-color: rgba(255,255,255,.08); color: var(--cream); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two-col h3 { font-family: 'EB Garamond', serif; font-size: 1.1rem; margin-bottom: 16px; }
.two-col h3.ok { color: var(--green); }
.two-col h3.no { color: var(--red); }

/* ── Why-Karten ── */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px; margin-top: 32px;
}
.why-card {
  background: var(--cream); border-radius: 3px; padding: 22px 18px;
  border-top: 3px solid var(--gold);
}
.why-card.on-navy { background: rgba(255,255,255,.04); }
.why-card-title { font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--navy); }
.why-card.on-navy .why-card-title { color: var(--cream); }
.why-card-text { font-size: .85rem; color: var(--muted); line-height: 1.6; }
.why-card.on-navy .why-card-text { color: rgba(245,240,232,.6); }

/* ── Preis ── */
.price-compare { margin: 28px 0; }
.price-compare-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(184,144,42,.15);
  color: rgba(245,240,232,.7); font-size: .93rem;
}
.price-compare-item .val { font-style: italic; }
.price-main {
  text-align: center; padding: 40px;
  background: rgba(184,144,42,.1); border: 1px solid rgba(184,144,42,.3);
  border-radius: 3px; margin: 32px 0;
}
.price-num {
  font-family: 'EB Garamond', serif; font-size: 3.5rem; font-weight: 600;
  color: var(--gold); line-height: 1;
}
.price-desc { color: rgba(245,240,232,.6); font-size: .88rem; margin-top: 10px; }
.trust-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.trust-item { display: flex; align-items: center; gap: 6px; color: rgba(245,240,232,.55); font-size: .82rem; }

/* ── FAQ ── */
.faq-list { list-style: none; margin-top: 32px; }
.faq-item { border-bottom: 1px solid var(--cream2); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
  font-family: 'EB Garamond', serif; font-size: 1.05rem; font-weight: 500; color: var(--text);
}
.faq-q:hover { color: var(--navy); }
.faq-icon { font-size: 1.3rem; color: var(--gold); flex: 0 0 20px; transition: transform .2s; }
.faq-icon.open { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 20px; font-size: .93rem; color: #4a4a6a; line-height: 1.8; }
.faq-a.open { display: block; }

/* ── Rechtstexte ── */
.legal { max-width: 760px; margin: 0 auto; }
.legal .section-h2 { margin-bottom: 8px; }
.legal h2 { font-family: 'EB Garamond', serif; font-size: 1.3rem; color: var(--navy); margin: 34px 0 10px; font-weight: 600; }
.legal h3 { font-family: 'EB Garamond', serif; font-size: 1.05rem; color: var(--navy); margin: 22px 0 8px; font-weight: 600; }
.legal p, .legal li { color: #3a3a55; font-size: .95rem; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal address { font-style: normal; line-height: 1.9; margin-bottom: 12px; color: #3a3a55; }
.legal a { color: var(--gold); }
.legal .placeholder { background: #fef3c7; color: #92400e; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.legal .note-box {
  background: var(--cream); border-left: 3px solid var(--gold);
  padding: 16px 20px; margin: 0 0 24px; font-size: .9rem; color: #3a3a55;
}
.legal .stand { color: var(--muted); font-size: .88rem; margin-top: 36px; }

/* ── Komponenten-Bibliothek (04.07.2026, statisch — Referenz: design-system.html) ──
   Generische Bausteine, die noch fehlten (Badge/Alert generisch statt Einzelzweck wie
   .ebook-tag/.fw-tag; Form-Felder bisher nur seitenlokal in statis-test.html). Bewusst
   NICHT: Body-Font auf EB Garamond umgestellt (Design-System-Vorschlag) — Inter-Body ist
   im echten Build absichtlich, bessere Lesbarkeit bei Fließtext, bleibt unangetastet. */

.badge {
  display: inline-flex; align-items: center;
  font-family: 'EB Garamond', serif; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 12px; border-radius: 9999px;
  background: rgba(184,144,42,.12); color: var(--gold);
}
.badge.on-navy { background: rgba(255,255,255,.08); color: var(--cream); }
.badge--muted { background: var(--cream2); color: var(--muted); }

.alert {
  padding: 16px 20px; border-radius: 3px; font-size: .93rem; line-height: 1.6;
  background: var(--cream); border-left: 3px solid var(--gold); color: var(--text);
}
.alert strong { display: block; margin-bottom: 2px; }
.alert.on-navy { background: rgba(255,255,255,.05); color: var(--cream); }
.alert--error { border-left-color: var(--red); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-family: 'EB Garamond', serif; font-size: .85rem; letter-spacing: .04em; color: var(--text);
}
.field input, .field select, .field textarea {
  font-family: 'Inter', sans-serif; font-size: .95rem; padding: 14px 16px;
  border: 1px solid var(--cream2); border-radius: 3px; background: var(--cream);
  color: var(--text); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field__hint { font-size: .78rem; color: var(--muted); }
.field--error input, .field--error select { border-color: var(--red); }
.field--error .field__hint { color: var(--red); }

/* ── Footer ── */
.site-footer {
  background: var(--navy2); border-top: 1px solid rgba(184,144,42,.15);
  padding: 40px 5%; text-align: center;
  color: rgba(245,240,232,.4); font-size: .8rem; line-height: 1.9;
}
.site-footer .foot-logo {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
  font-family: 'EB Garamond', serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream); font-size: 1rem;
}
.site-footer .foot-logo svg { width: 24px; height: 24px; }
.site-footer a { color: rgba(184,144,42,.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold2); }
.site-footer .foot-links { margin-top: 6px; }
.site-footer .foot-fine { margin-top: 12px; font-size: .72rem; color: rgba(245,240,232,.3); }

/* ── Responsive ── */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-right {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy2); border-bottom: 1px solid rgba(184,144,42,.25);
    padding: 8px 5% 18px; display: none;
  }
  .nav-right.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .btn-nav { text-align: center; margin-top: 12px; }
}
@media (max-width: 640px) {
  section { padding: 60px 5%; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .book-wrap { flex-direction: column; align-items: center; }
  .price-num { font-size: 2.8rem; }
  .ebook-card-top { flex-direction: column; text-align: center; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
