/* ═══════════════════════════════════════════════
   DAS SCHICHTSYSTEM™ — Journal Shared Styles
   Shared across all /journal/ article pages
═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #F4EFE7;
  --bg-soft:     #EDE8DF;
  --card:        #FDFAF5;
  --dark:        #1C1917;
  --text:        #1C1917;
  --muted:       #6B7280;
  --accent:      #D97706;
  --accent-pale: rgba(217,119,6,0.08);
  --border:      rgba(0,0,0,0.08);
  --border-warm: rgba(217,119,6,0.15);
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.12);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── NAV ─────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,239,231,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 760px; margin: 0 auto; padding: 0 24px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-back {
  font-size: 0.875rem; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--text); }
.nav-back svg { transition: transform 0.2s; }
.nav-back:hover svg { transform: translateX(-3px); }

/* ─── HERO ────────────────────────────────── */
.article-hero {
  height: 360px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px 32px;
  margin-bottom: 48px;
}
.article-hero-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.article-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem; font-weight: 800;
  color: #fff; line-height: 1.2; max-width: 580px;
}

/* ─── HERO GRADIENTS BY CATEGORY ─────────── */
.hero-schlaf    { background: linear-gradient(155deg, #0f1117 0%, #1a1f3a 50%, #0d1b2a 100%); }
.hero-ernaehrung{ background: linear-gradient(145deg, #2C1810 0%, #7a3820 50%, #c4651a 100%); }
.hero-abnehmen  { background: linear-gradient(150deg, #0e1f0e 0%, #1a3a20 50%, #2d5a35 100%); }
.hero-alltag    { background: linear-gradient(160deg, #0f1923 0%, #1c2d3d 40%, #2a3f52 100%); }
.hero-energie   { background: linear-gradient(145deg, #1a1200 0%, #3d2a00 50%, #7a5200 100%); }
.hero-system    { background: linear-gradient(155deg, #1a1814 0%, #2d2520 50%, #3d3228 100%); }
.hero-nachtschicht { background: linear-gradient(155deg, #1a1a2e 0%, #2d1b0e 60%, #3d2a12 100%); }
.hero-regeneration { background: linear-gradient(140deg, #141a1a 0%, #1e3030 50%, #254040 100%); }

/* ─── ARTICLE WRAPPER ─────────────────────── */
.article-wrap {
  max-width: 760px; margin: 0 auto;
  padding: 0 24px 96px;
}

/* ─── META ────────────────────────────────── */
.article-meta {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 40px; padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.meta-cat {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--accent);
}
.meta-time, .meta-author { font-size: 0.8rem; color: var(--muted); }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }

/* ─── BODY ────────────────────────────────── */
.article-body { font-size: 1.05rem; line-height: 1.85; color: var(--text); }
.article-body p { margin-bottom: 24px; }
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  margin: 48px 0 16px; line-height: 1.3;
  color: var(--text);
}
.article-body h3 {
  font-size: 1.05rem; font-weight: 600;
  margin: 32px 0 12px; color: var(--text);
}
.article-body ul, .article-body ol {
  margin: 0 0 24px 0; padding-left: 24px;
}
.article-body li { margin-bottom: 10px; line-height: 1.7; }
.article-body strong { font-weight: 600; }
.article-body em { font-style: italic; color: var(--muted); }

/* ─── CALLOUT ─────────────────────────────── */
.callout {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 32px 0;
}
.callout p { margin: 0; font-size: 1rem; }

/* ─── DIVIDER ─────────────────────────────── */
.article-divider {
  width: 48px; height: 3px; background: var(--accent);
  border-radius: 2px; margin: 48px 0;
}

/* ─── AUTHOR BOX ──────────────────────────── */
.author-box {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 48px;
}
.author-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #D97706, #B45309);
  flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; color: #fff; font-weight: 700;
}
.author-info strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.author-info p { font-size: 0.85rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ─── CTA BOX ─────────────────────────────── */
.article-cta {
  margin-top: 56px; background: var(--dark);
  border-radius: var(--radius-lg); padding: 36px 40px;
}
.article-cta .cta-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
  display: block;
}
.article-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700;
  color: #fff; margin-bottom: 10px; line-height: 1.35;
}
.article-cta p { font-size: 0.95rem; color: rgba(255,255,255,0.55); margin-bottom: 24px; }

/* ─── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.2s;
  text-decoration: none; line-height: 1;
}
.btn-amber { background: var(--accent); color: #fff; }
.btn-amber:hover { background: #B45309; }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--text); }

/* ─── MORE ARTICLES ───────────────────────── */
.more-articles { margin-top: 64px; }
.more-articles > h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700; margin-bottom: 24px;
}
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.more-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.more-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.more-img { height: 120px; }
.more-img-bg {
  height: 100%; display: flex; align-items: flex-end; padding: 12px;
}
.more-img-bg .img-label { font-size: 0.7rem; color: rgba(255,255,255,0.6); }
.more-body { padding: 16px; }
.more-cat {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 6px;
}
.more-body h4 { font-size: 0.95rem; font-weight: 600; line-height: 1.35; color: var(--text); }

/* ─── JOURNAL INDEX ───────────────────────── */
.ji-hero {
  background: var(--dark); padding: 80px 24px 72px;
  text-align: center;
}
.ji-hero .label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 16px;
}
.ji-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem; font-weight: 800;
  color: #fff; margin-bottom: 16px; line-height: 1.2;
}
.ji-hero p { color: rgba(255,255,255,0.5); font-size: 1rem; max-width: 480px; margin: 0 auto; }

.ji-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px 96px; }

.ji-cats {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 36px 0 48px;
}
.ji-cat-btn {
  font-size: 0.78rem; font-weight: 600; padding: 7px 16px;
  border-radius: 20px; border: 1.5px solid var(--border);
  color: var(--muted); background: var(--card);
  cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.04em;
}
.ji-cat-btn.active, .ji-cat-btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-pale);
}

.ji-section { margin-bottom: 72px; }
.ji-section-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.ji-section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700;
}
.ji-count { font-size: 0.8rem; color: var(--muted); }

.ji-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ji-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.ji-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ji-card-img { height: 150px; flex-shrink: 0; }
.ji-card-img-bg { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; }
.ji-card-img-bg strong { font-size: 0.75rem; color: rgba(255,255,255,0.75); font-weight: 600; display: block; margin-bottom: 2px; }
.ji-card-img-bg span { font-size: 0.68rem; color: rgba(255,255,255,0.45); }
.ji-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.ji-card-cat {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.ji-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700;
  line-height: 1.35; margin-bottom: 8px; color: var(--text);
}
.ji-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.ji-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.ji-read {
  font-size: 0.75rem; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}
.ji-read::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); display: block;
}
.ji-arrow {
  font-size: 0.8rem; color: var(--accent); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  transition: gap 0.2s;
}
.ji-card:hover .ji-arrow { gap: 8px; }

/* ─── LEAD MAGNET BANNER ──────────────────── */
.lm-banner {
  background: var(--bg-soft);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
  margin: 48px 0;
}
.lm-banner-text strong { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.lm-banner-text span { font-size: 0.85rem; color: var(--muted); }
.btn-ghost {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--accent-pale); }

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .ji-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .article-hero { height: 280px; }
  .article-hero h1 { font-size: 1.55rem; }
  .article-cta { padding: 24px 20px; }
  .article-cta h3 { font-size: 1.15rem; }
  .more-grid { grid-template-columns: 1fr; }
  .ji-grid { grid-template-columns: 1fr; }
  .ji-hero h1 { font-size: 1.9rem; }
  .lm-banner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
