/* =================================================================
   WILLIPEDIA 2.0 — Wissens-Dach der PlattesGroup
   Brand-Tokens 1:1 vom Cyberschutzengel (Plattes-Standard)
   ================================================================= */

:root {
  --navy-deep:    #0A1E3F;
  --navy:         #102A55;
  --navy-mid:     #1B3A6B;
  --navy-light:   #2A4A7A;
  --gold:         #C9A961;
  --gold-light:   #E8D6A6;
  --gold-deep:    #A6864A;
  --gold-soft:    #D6B97A;
  --cream:        #F7F2E7;
  --ivory:        #FBF8F0;
  --paper:        #FFFEFB;
  --ink:          #14182A;
  --ink-soft:     #3A405A;
  --muted:        #6F7591;
  --rule:         rgba(201,169,97,0.35);
  --rule-strong:  rgba(201,169,97,0.65);
  --shadow-card:  0 10px 32px rgba(10,30,63,0.08), 0 2px 6px rgba(10,30,63,0.04);
  --shadow-hover: 0 18px 48px rgba(10,30,63,0.12), 0 4px 10px rgba(10,30,63,0.06);

  --f-serif: 'Cormorant Garamond', 'Georgia', serif;
  --f-sans:  'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; max-width: 100vw; }
body {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; }

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,30,63,0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(201,169,97,0.18);
  color: var(--cream);
  /* iOS PWA: safe-area-top damit Status-Bar nicht überlagert */
  padding-top: env(safe-area-inset-top, 0);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 12px 32px;
  max-width: 1400px; margin: 0 auto;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
}
.nav__logo {
  display: flex; align-items: center;
  transition: opacity .2s;
}
.nav__logo:hover { opacity: 0.85; }
.nav__logo-img {
  height: 44px; width: auto;
  display: block;
}
@media (max-width: 600px) {
  .nav__logo-img { height: 36px; }
}
.nav__links { display: flex; gap: 28px; align-items: center; font-size: 14.5px; font-weight: 500; letter-spacing: 0.02em; }
.nav__links a { color: var(--cream); opacity: 0.85; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; color: var(--gold-light); }
.nav__cta {
  display: inline-block; padding: 9px 18px;
  background: var(--gold); color: var(--navy-deep);
  border-radius: 4px; font-weight: 600; font-size: 13.5px;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.nav__cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.nav__plattes { font-size: 11px; letter-spacing: 0.18em; color: var(--gold-soft); text-transform: uppercase; opacity: 0.7; }

/* ============== HERO ============== */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--cream);
  overflow: hidden;
  min-height: 640px;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('/img/hero.webp'), url('/img/hero.jpg');
  background-size: cover;
  background-position: center right;
  opacity: 0.9;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(10,30,63,0.85) 40%, rgba(10,30,63,0.2) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto;
  padding: 120px 32px 100px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero__kicker {
  font-size: 12.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.hero__kicker::after { content: ''; height: 1px; flex: 1; background: var(--rule-strong); max-width: 80px; }
.hero__headline {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(48px, 6vw, 84px); line-height: 1.05;
  letter-spacing: -0.01em; margin-bottom: 28px;
}
.hero__headline em { font-style: italic; color: var(--gold); }
.hero__lead {
  font-size: 18.5px; line-height: 1.55; max-width: 520px;
  color: rgba(247,242,231,0.92);
  margin-bottom: 36px;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 28px; border-radius: 4px; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; transition: transform .2s, background .2s, border-color .2s; }
.btn--primary { background: var(--gold); color: var(--navy-deep); }
.btn--primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid rgba(247,242,231,0.4); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.hero__visual { display: block; }

/* ============== SECTION GENERIC ============== */
section { padding: 96px 0; }
.section-kicker {
  text-align: center;
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
  margin-bottom: 18px;
}
.section-title {
  text-align: center;
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px); line-height: 1.1;
  color: var(--navy-deep); margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--gold-deep); }
.section-lead {
  text-align: center;
  font-size: 18px; line-height: 1.6; color: var(--ink-soft);
  max-width: 720px; margin: 0 auto 64px;
}

/* ============== PEDIA GRID ============== */
.pedia-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.pedia-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 38px 32px 36px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pedia-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}
.pedia-card__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-deep); color: var(--gold);
  border-radius: 50%;
  margin-bottom: 24px;
}
.pedia-card__icon svg { width: 28px; height: 28px; }
.pedia-card__label {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 6px;
}
.pedia-card__title {
  font-family: var(--f-serif); font-weight: 500;
  font-size: 30px; color: var(--navy-deep); line-height: 1.15;
  margin-bottom: 14px;
}
.pedia-card__title em { font-style: italic; color: var(--gold-deep); }
.pedia-card__desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 22px; }
.pedia-card__link {
  margin-top: auto;
  font-size: 13.5px; font-weight: 600; color: var(--navy-deep);
  letter-spacing: 0.04em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .2s;
}
.pedia-card__link:hover { color: var(--gold-deep); gap: 12px; }
.pedia-card__link::after { content: '→'; transition: transform .2s; }
.pedia-card--coming .pedia-card__link { color: var(--muted); pointer-events: none; }
.pedia-card--coming .pedia-card__link::after { content: '· bald'; }

/* ============== STATS STRIP ============== */
.stats {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 64px 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stats__num {
  font-family: var(--f-serif); font-weight: 400;
  font-size: 56px; line-height: 1; color: var(--gold);
  margin-bottom: 8px;
}
.stats__num em { font-style: italic; }
.stats__label {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(247,242,231,0.75); font-weight: 500;
}

/* ============== FORMATS (was es bei WilliPedia gibt) ============== */
.formats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.format-card {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.format-card__icon { width: 36px; height: 36px; color: var(--gold-deep); margin-bottom: 18px; }
.format-card__title { font-family: var(--f-serif); font-size: 24px; font-weight: 500; color: var(--navy-deep); margin-bottom: 10px; }
.format-card__desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* ============== CTA BAND ============== */
.cta-band {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: var(--cream);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { font-family: var(--f-serif); font-size: clamp(32px, 4vw, 48px); margin-bottom: 18px; font-weight: 400; }
.cta-band p { font-size: 17px; opacity: 0.85; max-width: 600px; margin: 0 auto 32px; }

/* ============== FOOTER ============== */
.footer {
  background: var(--navy-deep);
  color: rgba(247,242,231,0.7);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand { font-family: var(--f-serif); font-size: 22px; color: var(--cream); margin-bottom: 12px; }
.footer__brand em { color: var(--gold); font-style: italic; }
.footer__about { line-height: 1.6; opacity: 0.8; }
.footer__col h4 { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; font-weight: 600; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a:hover { color: var(--gold-light); }
.footer__bottom {
  border-top: 1px solid rgba(201,169,97,0.18);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; opacity: 0.7;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; padding: 80px 32px 64px; }
  .hero__visual { display: none; }
  .pedia-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .formats-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 600px) {
  .pedia-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero__inner { padding: 64px 24px 48px; }
  .container { padding: 0 20px; }
}
