/* ===========================================================
   Elias Rhein — Design-System
   Ton: Ruhe, Dichte, Wasser. Viel Negative Space. Ein Akzent.
   Siehe brand/BRAND.md — dieses File ist die einzige Quelle
   für Farbe/Typo auf der Website.
   =========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --charcoal: #1C1917;
  --charcoal-2: #211E1B;
  --charcoal-3: #292521;
  --cream: #F5F0E8;
  --teal: #0D9488;
  --teal-light: #2DD4BF;
  --gold: #C6A667;
  --stone: #A8A29E;
  --rule: #33302C;
  --rule-soft: rgba(245, 240, 232, 0.08);
  --teal-glow: rgba(45, 212, 191, 0.18);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
  --container-narrow: 760px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-card: 0 1px 0 rgba(245,240,232,0.04) inset, 0 12px 30px -18px rgba(0,0,0,0.6);
  --shadow-hover: 0 0 0 1px rgba(45,212,191,0.35), 0 16px 40px -16px rgba(13,148,136,0.35);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
svg { max-width: 100%; }

a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover, a:focus-visible { color: var(--teal-light); border-bottom-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.015em; margin: 0 0 0.5em; color: var(--cream); }
h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem); line-height: 1.16; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); line-height: 1.3; }
p { margin: 0 0 1.1em; color: var(--cream); }
.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--stone); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--teal); color: var(--charcoal); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); border-bottom: 1px solid transparent; }
.btn-primary { background: var(--teal); color: #08211E; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--teal-light); color: #08211E; box-shadow: var(--shadow-hover); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--rule); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--teal-light); color: var(--teal-light); }
.btn-gold { background: transparent; color: var(--gold); border-color: rgba(198,166,103,0.4); }
.btn-gold:hover, .btn-gold:focus-visible { border-color: var(--gold); background: rgba(198,166,103,0.08); color: var(--gold); }

/* ---------- Kicker / Eyebrow / Tag ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-light);
}
.kicker::before { content: ""; width: 16px; height: 1px; background: var(--teal-light); }

.tag {
  display: inline-block; font-size: 0.76rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(13,148,136,0.1); color: var(--teal-light);
  border: 1px solid rgba(45,212,191,0.25);
  letter-spacing: 0.01em;
}
.tag--gold { background: rgba(198,166,103,0.08); color: var(--gold); border-color: rgba(198,166,103,0.3); }
.tag--muted { background: transparent; color: var(--stone); border-color: var(--rule); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(28,25,23,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--cream); font-weight: 800; font-size: 1.05rem;
  border-bottom: none; letter-spacing: -0.01em;
}
.brand:hover { color: var(--cream); border-bottom: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .ripple-c { fill: none; stroke: var(--teal-light); }

.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--stone); border-bottom: none; font-weight: 500; font-size: 0.94rem;
  padding: 8px 14px; border-radius: 999px; transition: color .15s ease, background .15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--cream); background: var(--charcoal-3); }
.nav-links a[aria-current="page"] { color: var(--teal-light); background: rgba(13,148,136,0.1); }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--rule); color: var(--cream);
  width: 42px; height: 42px; border-radius: var(--radius-sm); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 65px 0 0 0; height: auto; flex-direction: column; align-items: stretch;
    background: var(--charcoal); padding: 12px 20px 32px; gap: 2px;
    border-top: 1px solid var(--rule-soft);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  }
  .nav-links a { padding: 14px 8px; font-size: 1.05rem; border-radius: 8px; }
  .site-header[data-nav-open="true"] .nav-links {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--rule-soft);
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  position: relative;
}
.hero h1 { margin-bottom: 0.2em; }
.hero .tagline { color: var(--teal-light); font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem); font-weight: 600; margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-lg);
  border: 1px solid var(--rule-soft); box-shadow: var(--shadow-card);
}
.hero-figure .ripple-decor {
  position: absolute; right: -28px; bottom: -28px; width: 120px; height: 120px; opacity: 0.9;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 340px; margin: 0 auto; order: -1; }
}

/* ---------- Ripple decor ---------- */
.ripple-decor circle { fill: none; stroke: var(--teal-light); stroke-width: 1.4; }
.ripple-pulse circle { animation: pulse 5s ease-in-out infinite; transform-origin: center; }
.ripple-pulse circle:nth-child(2) { animation-delay: .4s; }
.ripple-pulse circle:nth-child(3) { animation-delay: .8s; }
@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 6px; }
.section-head p { margin: 0; color: var(--stone); }
.divider { border: none; border-top: 1px solid var(--rule-soft); margin: 0; }

/* ---------- Metapher / flow diagram ---------- */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: stretch;
  background: var(--charcoal-2); border: 1px solid var(--rule-soft); border-radius: var(--radius-lg);
  overflow: hidden;
}
.flow-step {
  padding: 28px 22px; position: relative; border-right: 1px solid var(--rule-soft);
}
.flow-step:last-child { border-right: none; }
.flow-step .n { font-size: 0.76rem; color: var(--teal-light); font-weight: 700; letter-spacing: 0.1em; }
.flow-step h3 { margin: 10px 0 8px; font-size: 1.05rem; }
.flow-step p { color: var(--stone); font-size: 0.92rem; margin: 0; }
.flow-step::after {
  content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  color: var(--teal); font-size: 1.1rem; z-index: 2;
}
.flow-step:last-child::after { content: none; }
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step { border-right: none; border-bottom: 1px solid var(--rule-soft); }
  .flow-step::after { content: "↓"; right: 22px; top: auto; bottom: -14px; transform: none; }
  .flow-step:last-child { border-bottom: none; }
}

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--charcoal-2); border: 1px solid var(--rule-soft); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-card); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column; height: 100%;
}
a.card { color: inherit; }
a.card:hover, a.card:focus-visible {
  transform: translateY(-3px); border-color: rgba(45,212,191,0.4); box-shadow: var(--shadow-hover);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--stone); font-size: 0.95rem; margin-bottom: 0; }
.card .tag { margin-bottom: 14px; align-self: flex-start; }
.card-icon { width: 34px; height: 34px; color: var(--teal-light); margin-bottom: 14px; }

/* Article cards */
.article-card { gap: 6px; }
.article-card .meta { color: var(--stone); font-size: 0.82rem; margin-bottom: 10px; }
.article-card .excerpt { color: var(--stone); font-size: 0.95rem; flex: 1; }
.article-card .read-more { margin-top: 14px; font-size: 0.88rem; font-weight: 600; color: var(--teal-light); border-bottom: none; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-row a.tag { border-bottom: none; }
.filter-row a.tag[aria-current="true"] { background: var(--teal); color: #08211E; border-color: var(--teal); }

/* ---------- Prose (article body) ---------- */
.prose { max-width: var(--container-narrow); margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p { font-size: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--cream); }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--teal);
  color: var(--teal-light); font-size: 1.15rem; font-weight: 600; font-style: normal;
}
.prose strong { color: var(--cream); }
.prose .callout {
  background: var(--charcoal-2); border: 1px solid var(--rule-soft); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 2em 0; color: var(--stone); font-size: 0.94rem;
}
.prose hr { border: none; border-top: 1px solid var(--rule-soft); margin: 2.4em 0; }

.article-header { padding: 48px 0 8px; }
.article-header .meta { color: var(--stone); font-size: 0.9rem; margin-bottom: 14px; }
.article-header h1 { max-width: 20ch; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule-soft); }
.byline .name { font-weight: 600; color: var(--cream); font-size: 0.92rem; }
.byline .role { color: var(--stone); font-size: 0.82rem; }

.question-box {
  max-width: var(--container-narrow); margin: 48px auto 0; padding: 22px 24px;
  background: linear-gradient(135deg, rgba(13,148,136,0.12), rgba(45,212,191,0.04));
  border: 1px solid rgba(45,212,191,0.25); border-radius: var(--radius-md);
}
.question-box p { margin: 0; font-size: 1.02rem; }
.question-box .kicker { margin-bottom: 8px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--stone); padding: 18px 0 0; }
.breadcrumbs a { color: var(--stone); border-bottom: none; }
.breadcrumbs a:hover { color: var(--teal-light); }
.breadcrumbs .sep { margin: 0 6px; opacity: 0.5; }
.breadcrumbs [aria-current="page"] { color: var(--cream); }

/* ---------- Disclosure box ---------- */
.disclosure {
  border-left: 2px solid var(--teal);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(13,148,136,0.08);
  font-size: 0.92rem;
  color: var(--stone);
}
.disclosure strong { color: var(--cream); }

/* ---------- Werte / list ---------- */
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.value-list li { display: flex; gap: 16px; align-items: flex-start; }
.value-list .num {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: var(--teal-light);
}
.value-list h3 { margin: 0 0 4px; font-size: 1rem; }
.value-list p { margin: 0; color: var(--stone); font-size: 0.94rem; }

/* ---------- Book ---------- */
.book-hero { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.book-cover { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--rule-soft); box-shadow: var(--shadow-card); }
.book-status { margin: 18px 0 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.book-meta-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; font-size: 0.92rem; color: var(--stone); }
.book-meta-list b { color: var(--cream); font-weight: 600; }
@media (max-width: 780px) {
  .book-hero { grid-template-columns: 1fr; }
  .book-cover { max-width: 280px; margin: 0 auto; }
}

.leseprobe {
  margin-top: 56px; border: 1px solid var(--rule-soft); border-radius: var(--radius-lg);
  background: var(--charcoal-2); overflow: hidden;
}
.leseprobe-head { padding: 24px 28px; border-bottom: 1px solid var(--rule-soft); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.leseprobe-body { padding: 8px 28px 28px; position: relative; }
.leseprobe-body[data-collapsed="true"] { max-height: 420px; overflow: hidden; }
.leseprobe-body[data-collapsed="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(to bottom, transparent, var(--charcoal-2));
}
.leseprobe-toggle { margin: 18px 28px 26px; }

/* ---------- Book / shop cards ---------- */
.shop-notice {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px;
  border: 1px dashed rgba(198,166,103,0.4); border-radius: var(--radius-md);
  background: rgba(198,166,103,0.06); color: var(--stone); margin-bottom: 40px;
}
.shop-notice svg { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.shop-notice strong { color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule-soft); padding: 56px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-col h4 { color: var(--cream); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--stone); font-size: 0.92rem; }
.footer-col a:hover { color: var(--teal-light); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--cream); margin-bottom: 12px; }
.footer-brand svg { width: 26px; height: 26px; }
.footer-tagline { color: var(--stone); font-size: 0.92rem; max-width: 32ch; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--rule-soft);
  color: var(--stone); font-size: 0.82rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages (Impressum/Datenschutz/AGB) ---------- */
.legal .wrap { max-width: var(--container-narrow); margin: 0 auto; padding: 48px 0 80px; }
.legal h2 { font-size: 1.15rem; margin: 2em 0 0.5em; }
.legal dl { margin: 0 0 24px; }
.legal dt { color: var(--stone); font-size: 0.85rem; margin-top: 14px; }
.legal dd { margin: 2px 0 0; }
.legal .muted { color: var(--stone); font-size: 0.92rem; }
.legal .draft-note {
  margin: 24px 0 8px; padding: 14px 16px; background: rgba(198,166,103,0.1);
  border: 1px dashed var(--gold); border-radius: var(--radius-sm); color: var(--gold); font-size: 0.88rem;
}

/* utility */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.stack { display: grid; gap: 12px; }
