/* ═══════════════════════════════════════════════════════════════
   mehr Familienzeit · Ratgeber
   Gemeinsames Stylesheet für Blog-Index und Artikel.
   Gleiche Marke wie die Startseite: Alabaster/Schiefergrün/Terrakotta,
   Lora + Inter. Same-origin, lädt nichts von fremden Servern.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --alabaster:     #F9F8F6;
  --schiefer:      #5A7668;
  --schiefer-dk:   #47604F;
  --schiefer-xdk:  #3A5248;
  --schiefer-lt:   #7A9988;
  --terrakotta:    #D3785E;
  --terrakotta-dk: #BE6A51;
  --terrakotta-lt: #E8A48E;
  --anthrazit:     #2D3339;
  --subtext:       #5C6470;
  --sand:          #F0EDE8;
  --linie:         #E8E4DE;
  --tech:          #3D5A6E;
  --white:         #FFFFFF;
  --font-lora:  'Lora', Georgia, serif;
  --font-inter: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'Courier New', monospace;
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 2px 8px rgba(45,51,57,0.06), 0 1px 2px rgba(45,51,57,0.04);
  --shadow-card-hover: 0 14px 36px rgba(45,51,57,0.11), 0 4px 8px rgba(45,51,57,0.06);
  --shadow-btn: 0 4px 18px rgba(211,120,94,0.32);
  --shadow-btn-hover: 0 8px 30px rgba(211,120,94,0.42);
  --z-topbar: 900; --z-progress: 1000;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-inter);
  color: var(--anthrazit);
  background: var(--alabaster);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-lora); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 4.6vw, 3.25rem); font-weight: 700; line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1875rem, 2.2vw, 1.5rem); font-weight: 600; line-height: 1.3; }
p  { text-wrap: pretty; }
a  { color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-inter); }
::selection { background: rgba(211,120,94,0.25); }

.wrap        { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { width: 100%; max-width: 760px;  margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: var(--z-progress);
  background: var(--white); color: var(--schiefer); padding: 10px 18px;
  border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* ── Reveal (JS-gated, ohne JS immer sichtbar) ── */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: 90ms; }
.js .rv-d2 { transition-delay: 180ms; }

/* ── Progress bar ── */
.pg-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  z-index: var(--z-progress); pointer-events: none;
  background: linear-gradient(90deg, var(--terrakotta), var(--schiefer));
}

/* ── Header (statisch, immer sichtbar) ── */
.site-head {
  position: sticky; top: 0; z-index: var(--z-topbar);
  background: rgba(249,248,246,0.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--linie);
}
.site-head-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1160px; margin: 0 auto; padding: 13px 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name { font-family: var(--font-lora); font-weight: 700; font-size: 1.0625rem; color: var(--schiefer); letter-spacing: -0.01em; white-space: nowrap; }
.brand-name .mehr { font-style: italic; font-weight: 600; }
.brand-name .dot { color: var(--terrakotta); }
.head-nav { display: flex; align-items: center; gap: 28px; }
.head-nav > a { font-size: 0.875rem; font-weight: 500; color: var(--anthrazit); text-decoration: none; transition: color 150ms; }
.head-nav > a:hover { color: var(--schiefer); }
.head-nav > a[aria-current="page"] { color: var(--schiefer); font-weight: 600; }
@media (max-width: 720px) { .head-nav > a:not(.btn) { display: none; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 1rem; border: none; text-decoration: none;
  background: var(--terrakotta); color: var(--white);
  border-radius: 60px; padding: 16px 34px;
  box-shadow: var(--shadow-btn);
  transition: transform 160ms var(--ease-out), box-shadow 260ms var(--ease-out), background 180ms;
  white-space: nowrap;
}
.btn:hover { background: var(--terrakotta-dk); transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); }
.btn:focus-visible { outline: 3px solid var(--terrakotta-lt); outline-offset: 3px; }
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 10px 22px; font-size: 0.875rem; box-shadow: none; }
.btn-lg { padding: 19px 42px; font-size: 1.0625rem; }
.btn .arr { transition: transform 200ms var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

/* ── Breadcrumb ── */
.crumbs { padding: 26px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--subtext); }
.crumbs a { text-decoration: none; color: var(--subtext); transition: color 150ms; }
.crumbs a:hover { color: var(--schiefer); }
.crumbs li[aria-current="page"] { color: var(--anthrazit); }
.crumbs .sep { color: var(--linie); }

/* ═══════════════ Blog-Index ═══════════════ */
.idx-hero { padding: clamp(40px, 7vw, 84px) 0 clamp(30px, 4vw, 52px); }
.idx-kicker {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--terrakotta-dk); margin-bottom: 18px;
}
.idx-hero h1 { max-width: 16ch; margin-bottom: 22px; }
.idx-hero p { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.7; color: var(--subtext); max-width: 56ch; }

.idx-list { padding: 0 0 clamp(70px, 10vw, 120px); display: grid; gap: 22px; }
.post-card {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 6px;
  background: var(--white); border: 1px solid var(--linie); border-radius: 20px;
  padding: 30px 32px; text-decoration: none; color: inherit;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(211,120,94,0.35); }
.post-card:focus-visible { outline: 3px solid var(--terrakotta-lt); outline-offset: 3px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 6px; }
.post-tag {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.5px;
  color: var(--tech); background: rgba(61,90,110,0.08); border: 1px solid rgba(61,90,110,0.18);
  border-radius: 30px; padding: 4px 11px;
}
.post-time { font-size: 0.8125rem; color: var(--subtext); }
.post-card h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin-bottom: 8px; }
.post-card:hover h2 { color: var(--schiefer-dk); }
.post-card .excerpt { font-size: 1rem; line-height: 1.65; color: var(--subtext); max-width: 62ch; }
.post-card .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-weight: 600; font-size: 0.9375rem; color: var(--terrakotta-dk); }
.post-card .more .arr { transition: transform 200ms var(--ease-out); }
.post-card:hover .more .arr { transform: translateX(4px); }

.post-card.soon { background: transparent; border-style: dashed; cursor: default; }
.post-card.soon:hover { transform: none; box-shadow: none; border-color: var(--linie); }
.post-card.soon h2 { color: var(--subtext); }
.soon-badge {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.5px;
  color: var(--schiefer-dk); background: rgba(90,118,104,0.09); border: 1px solid rgba(90,118,104,0.22);
  border-radius: 30px; padding: 4px 11px;
}

/* ═══════════════ Artikel ═══════════════ */
.art-head { padding: 8px 0 clamp(28px, 4vw, 44px); }
.art-kicker {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--terrakotta-dk); margin: 22px 0 18px;
}
.art-head h1 { margin-bottom: 22px; }
.art-lede { font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.65; color: var(--subtext); max-width: 60ch; }
.art-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--linie);
  font-size: 0.875rem; color: var(--subtext);
}
.art-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); box-shadow: var(--shadow-card); }
.art-byline .who strong { color: var(--anthrazit); font-weight: 600; }
.art-byline .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--schiefer-lt); }

/* Prose */
.prose { font-size: 1.0625rem; line-height: 1.85; color: var(--anthrazit); }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { margin-top: 2em; margin-bottom: 0.1em; }
.prose h2 + p { margin-top: 0.7em; }
.prose h3 { margin-top: 1.7em; margin-bottom: 0.1em; }
.prose h3 + p { margin-top: 0.55em; }
.prose p { max-width: 100%; }
.prose strong { font-weight: 600; }
.prose a { color: var(--schiefer-dk); text-decoration: underline; text-decoration-color: var(--schiefer-lt); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color 150ms, text-decoration-color 150ms; }
.prose a:hover { color: var(--terrakotta-dk); text-decoration-color: var(--terrakotta); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.55em; }
.prose li::marker { color: var(--schiefer); }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--terrakotta);
  font-family: var(--font-lora); font-weight: 500; font-style: italic;
  font-size: clamp(1.1875rem, 2.2vw, 1.4375rem); line-height: 1.5; color: var(--schiefer-dk);
}
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--font-inter); font-style: normal; font-weight: 500; font-size: 0.875rem; color: var(--subtext); }
.prose hr { border: none; border-top: 1px solid var(--linie); margin: 2.4em 0; }

/* Key-Takeaway Box */
.takeaway {
  background: var(--sand); border: 1px solid var(--linie); border-radius: 18px;
  padding: 26px 30px; margin: 2em 0;
}
.takeaway .tk-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--schiefer-dk); margin-bottom: 12px;
}
.takeaway .tk-label::before { content: ""; width: 20px; height: 2px; background: var(--terrakotta); }
.takeaway p { font-size: 1.0625rem; line-height: 1.7; }
.takeaway ul { margin-top: 0.6em; padding-left: 1.2em; }

/* Inline CTA (Workbook) */
.cta-box {
  position: relative; background: var(--schiefer); color: var(--white);
  border-radius: 22px; overflow: hidden; padding: clamp(32px, 5vw, 48px);
  margin: 2.6em 0;
}
.cta-box::before {
  content: ""; position: absolute; top: -100px; right: -100px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(255,255,255,0.05); pointer-events: none;
}
.cta-box .cta-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.88); margin-bottom: 16px;
}
.cta-box .cta-kicker::before { content: ""; width: 24px; height: 2px; background: var(--terrakotta-lt); }
.cta-box h3 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); color: var(--white); margin-bottom: 12px; max-width: 24ch; }
.cta-box p { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.9); max-width: 48ch; margin-bottom: 24px; }
.cta-box .btn { box-shadow: none; }
.cta-box .cta-fine { margin-top: 14px; font-size: 0.8125rem; color: rgba(255,255,255,0.78); }

/* Autor-Box am Ende */
.art-author {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--linie); border-radius: 20px;
  padding: 28px 30px; margin: 3em 0 0;
}
.art-author img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--white); box-shadow: var(--shadow-card); }
.art-author .who strong { display: block; font-family: var(--font-lora); font-weight: 700; font-size: 1.125rem; }
.art-author .who .role { font-size: 0.8125rem; color: var(--subtext); }
.art-author .who p { margin-top: 10px; font-size: 0.9375rem; line-height: 1.65; color: var(--subtext); }

/* Weiterlesen */
.related { padding: clamp(56px, 8vw, 90px) 0 0; }
.related h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.related-card {
  background: var(--white); border: 1px solid var(--linie); border-radius: 18px;
  padding: 24px 26px; text-decoration: none; color: inherit;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(211,120,94,0.35); }
.related-card .post-tag { margin-bottom: 12px; display: inline-block; }
.related-card h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.related-card p { font-size: 0.9375rem; line-height: 1.6; color: var(--subtext); }

/* ── Footer ── */
footer.site {
  background: var(--schiefer-xdk); color: rgba(255,255,255,0.75);
  border-top: 1px solid rgba(255,255,255,0.12); padding: 44px 0 40px; margin-top: clamp(70px, 10vw, 120px);
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 11px; }
.foot-brand svg { width: 30px; height: 30px; }
.foot-brand .brand-name { color: var(--white); }
.foot-claim { font-size: 0.75rem; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 3px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; }
.foot-nav a { font-size: 0.875rem; color: rgba(255,255,255,0.75); text-decoration: none; transition: color 150ms; }
.foot-nav a:hover { color: var(--white); }
.foot-line { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8125rem; color: rgba(255,255,255,0.68); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0ms !important;
  }
  .js .rv { opacity: 1; transform: none; }
}
