/* =====================================================================
 * Sproudy Ratgeber – gemeinsames Stylesheet
 * Abgeleitet vom Look der Content-Seiten (material.html / anleitung.html)
 * ===================================================================== */
:root {
  --teal-deep:   #2E5B5B;
  --teal-dark:   #1a3b3b;
  --pastel-yellow:      #E8D77A;
  --pastel-yellow-deep: #C9B654;
  --pastel-yellow-soft: #F5EBB5;
  --pastel-rose:        #F4C4CF;
  --pastel-rose-deep:   #E08AA0;
  --pastel-rose-soft:   #FCE6EB;
  --pastel-blue:        #B9E4F2;
  --pastel-blue-deep:   #7CC4DE;
  --pastel-blue-soft:   #E5F4FA;
  --clay:               var(--pastel-yellow);
  --cream:       #E5EBDD;
  --paper:       #F2F6ED;
  --ink:         #1a1612;
  --muted:       #5a6b5a;
  --mint-light:  #E5EBDD;
  --moss:        #2E5B5B;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400; line-height: 1.18;
  color: var(--teal-deep);
}
h1 { font-size: clamp(36px, 5.6vw, 58px); margin-bottom: 14px; letter-spacing: -0.015em; }
h1 em { font-style: italic; color: var(--pastel-rose-deep); }
h2 { font-size: clamp(25px, 3.2vw, 34px); margin: 52px 0 16px; }
h2 em { font-style: italic; color: var(--pastel-rose-deep); }
h3 { font-size: 20px; margin: 24px 0 8px; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--ink); }
p { margin-bottom: 14px; max-width: 68ch; }
ul, ol { margin: 0 0 16px 22px; max-width: 66ch; }
li { margin-bottom: 7px; }
strong { font-weight: 700; }
a { color: var(--teal-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pastel-yellow-deep); }

nav {
  padding: 16px 32px;
  background: rgba(229, 235, 221, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(46, 91, 91, 0.08);
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { text-decoration: none; display: inline-flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: 14px; color: var(--teal-deep); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--pastel-yellow-deep); }
.nav-cta { font-size: 14px; color: var(--teal-deep); text-decoration: none; font-weight: 600; }

main { max-width: 820px; margin: 48px auto 80px; padding: 0 24px; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal-deep); }

.kicker {
  font-family: 'Inter', sans-serif;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: #7A6410; font-weight: 700; margin-bottom: 14px;
}
.meta-row {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 13.5px; color: var(--muted); margin: 4px 0 28px;
}
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }

.lede {
  font-size: 19px; line-height: 1.55;
  color: var(--ink); margin: 18px 0 36px;
  border-left: 3px solid var(--clay);
  padding-left: 22px;
  font-style: italic;
  max-width: 64ch;
}

.callout {
  background: var(--paper);
  border-left: 3px solid var(--teal-deep);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-warn { border-left-color: var(--clay); background: #fff8e6; }
.callout-tip  { border-left-color: var(--pastel-blue-deep); background: var(--pastel-blue-soft); }

/* Schritt-für-Schritt (HowTo) */
.steps { list-style: none; margin: 28px 0; padding: 0; counter-reset: step; max-width: 100%; }
.steps > li {
  position: relative;
  background: #fff;
  border: 1px solid rgba(46, 91, 91, 0.1);
  border-radius: 14px;
  padding: 20px 24px 20px 66px;
  margin-bottom: 14px;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 18px; top: 20px;
  width: 34px; height: 34px;
  background: var(--teal-deep); color: var(--cream);
  border-radius: 999px;
  display: grid; place-items: center;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px;
}
.steps > li h3 { margin: 0 0 6px; }
.steps > li p:last-child { margin-bottom: 0; }

/* Vergleichstabelle */
.compare { margin: 36px 0; border: 1px solid rgba(46, 91, 91, 0.1); border-radius: 16px; overflow-x: auto; background: var(--paper); }
.compare table { min-width: 520px; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid rgba(46, 91, 91, 0.08); vertical-align: top; }
.compare th { background: var(--teal-deep); color: #fff; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.compare th:first-child { width: 30%; }
.compare td:first-child { font-weight: 600; color: var(--teal-deep); background: rgba(229,235,221,0.4); }
.compare tr:last-child td { border-bottom: none; }
.compare .yes { color: #2c6b3d; font-weight: 600; }
.compare .no { color: #b04848; font-weight: 600; }
.compare .meh { color: var(--pastel-yellow-deep); font-weight: 600; }

/* FAQ */
.faq { margin: 20px 0; }
.faq details {
  background: #fff; border: 1px solid rgba(46, 91, 91, 0.1);
  border-radius: 12px; padding: 4px 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--teal-deep);
  font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--pastel-yellow-deep); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { border-bottom: 1px solid rgba(46,91,91,0.08); }
.faq details p { padding: 14px 0 16px; margin: 0; color: var(--muted); }
.faq details p strong { color: var(--ink); }

/* CTA */
.cta-box {
  margin: 48px 0 8px;
  background: linear-gradient(135deg, var(--pastel-yellow-soft), var(--paper));
  border: 1px solid rgba(46,91,91,0.12);
  border-radius: 18px;
  padding: 30px 28px;
  text-align: center;
}
.cta-box h3 { font-family: 'Playfair Display', serif; font-weight: 400; color: var(--teal-deep); font-size: 24px; margin-bottom: 10px; }
.cta-box p { margin: 0 auto 20px; color: var(--muted); max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: all .2s; }
.btn-primary { background: var(--teal-deep); color: var(--cream); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--teal-deep); border: 1.5px solid rgba(46,91,91,0.3); }
.btn-ghost:hover { border-color: var(--teal-deep); background: rgba(46,91,91,0.04); }

/* Übersichts-Grid */
.intro { max-width: 64ch; margin-bottom: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 36px 0; }
.article-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid rgba(46, 91, 91, 0.1);
  border-radius: 16px; padding: 24px; text-decoration: none;
  transition: transform .18s, box-shadow .18s; color: var(--ink);
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -14px rgba(46,91,91,0.28); color: var(--ink); }
.article-card .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pastel-yellow-deep); margin-bottom: 10px; }
.article-card h2 { font-size: 21px; margin: 0 0 8px; line-height: 1.25; }
.article-card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.article-card .more { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--teal-deep); }

/* Related / interne Verlinkung */
.related { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(46,91,91,0.12); }
.related h2 { font-size: 22px; margin: 0 0 16px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { margin-bottom: 10px; }
.related a { font-weight: 600; }

.sources { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(46,91,91,0.12); font-size: 13px; color: var(--muted); }
.sources strong { color: var(--ink); display: block; margin-bottom: 8px; }
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { margin-bottom: 6px; }

footer { background: var(--teal-dark); color: var(--cream); padding: 40px 24px; text-align: center; font-size: 14px; }
footer a { color: var(--cream); margin: 0 10px; }

@media (max-width: 640px) {
  nav { padding: 14px 18px; }
  .nav-links { gap: 14px; }
  .compare th, .compare td { padding: 10px 12px; font-size: 13.5px; }
  .steps > li { padding: 18px 18px 18px 58px; }
  .steps > li::before { left: 14px; }
}
