/* ============================================================
   Gesundheitseffekt.de · Frisches, warmes Design
   Farben: Naturgrün, Creme, warmes Anthrazit
   Keine externen Fonts (DSGVO-sicher), System-Schriften
   ============================================================ */

:root {
  --gruen: #2e7d4f;
  --gruen-dunkel: #1f5c3a;
  --gruen-hell: #e8f3ec;
  --creme: #faf7f0;
  --sand: #f3ede0;
  --anthrazit: #2b2b28;
  --grau: #5f5f58;
  --akzent: #d98a3d;
  --akzent-hell: #fbeedd;
  --weiss: #ffffff;
  --radius: 16px;
  --schatten: 0 6px 24px rgba(43, 43, 40, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* Dynamische Schriftgröße: wächst flüssig von Handy (ca. 17px Basis)
     bis großer Monitor (ca. 21px Basis). Alle rem-Größen skalieren mit. */
  font-size: clamp(16px, 15px + 0.35vw, 18.5px);
}

body {
  font-family: var(--font);
  color: var(--anthrazit);
  background: var(--creme);
  line-height: 1.7;
  font-size: 1.0625rem;
}

/* Logische Umbrüche: Überschriften ausgewogen umbrechen,
   lange Wörter im Fließtext sauber trennen statt überlaufen */
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
p, li { hyphens: auto; overflow-wrap: break-word; text-wrap: pretty; }

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

a { color: var(--gruen); text-decoration: none; }
a:hover { color: var(--gruen-dunkel); text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-schmal { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--weiss);
  border-bottom: 1px solid #e8e3d6;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--anthrazit);
}
.logo:hover { text-decoration: none; color: var(--gruen-dunkel); }
.logo span { color: var(--gruen); }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.main-nav a { color: var(--grau); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover, .main-nav a.aktiv { color: var(--gruen-dunkel); text-decoration: none; }
.nav-cta {
  background: var(--gruen);
  color: var(--weiss) !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--gruen-dunkel); text-decoration: none !important; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--gruen-hell) 0%, var(--creme) 70%);
  padding: 72px 0 64px;
}
.hero-label {
  display: inline-block;
  background: var(--weiss);
  border: 1px solid #d8e8de;
  color: var(--gruen-dunkel);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--gruen); }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--grau);
  max-width: 640px;
  margin-bottom: 28px;
}
.btn-reihe { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gruen { background: var(--gruen); color: var(--weiss); }
.btn-gruen:hover { background: var(--gruen-dunkel); color: var(--weiss); }
.btn-hell { background: var(--weiss); color: var(--gruen-dunkel); border: 2px solid var(--gruen); }
.btn-hell:hover { background: var(--gruen-hell); color: var(--gruen-dunkel); }
.btn-orange { background: var(--akzent); color: var(--weiss); }
.btn-orange:hover { background: #bf7430; color: var(--weiss); }

/* ---------- Sektionen ---------- */
.sektion { padding: 64px 0; }
.sektion-weiss { background: var(--weiss); }
.sektion-sand { background: var(--sand); }
.sektion-gruen { background: var(--gruen-dunkel); color: var(--weiss); }
.sektion-gruen h2 { color: var(--weiss); }
.sektion-gruen p { color: #d9e8df; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--akzent);
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.sektion-intro { color: var(--grau); max-width: 640px; margin-bottom: 36px; }

/* ---------- Karten ---------- */
.karten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.karte {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--schatten);
  border: 1px solid #efe9db;
  display: flex;
  flex-direction: column;
}
.karte h3 { font-size: 1.15rem; margin-bottom: 10px; }
.karte p { color: var(--grau); font-size: 0.97rem; flex-grow: 1; }
.karte .karten-nummer {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gruen);
  opacity: 0.35;
  margin-bottom: 8px;
}
.karten-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--gruen-hell);
  color: var(--gruen-dunkel);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.karten-link { margin-top: 16px; font-weight: 700; }

/* ---------- Quiz ---------- */
.quiz-box {
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  border: 1px solid #efe9db;
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
}
.quiz-fortschritt {
  height: 8px;
  background: var(--sand);
  border-radius: 999px;
  margin-bottom: 26px;
  overflow: hidden;
}
.quiz-fortschritt-balken {
  height: 100%;
  width: 0%;
  background: var(--gruen);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.quiz-frage-nr { font-size: 0.85rem; font-weight: 700; color: var(--akzent); margin-bottom: 8px; }
.quiz-frage { font-size: 1.3rem; font-weight: 700; margin-bottom: 22px; line-height: 1.35; }
.quiz-antworten { display: grid; gap: 12px; }
.quiz-antwort {
  text-align: left;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--creme);
  border: 2px solid #e8e3d6;
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  line-height: 1.5;
  color: var(--anthrazit);
}
.quiz-antwort:hover { border-color: var(--gruen); background: var(--gruen-hell); }
.quiz-ergebnis-titel { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; }
.quiz-ergebnis-balken-rahmen {
  height: 14px; background: var(--sand); border-radius: 999px;
  margin: 18px 0 26px; overflow: hidden;
}
.quiz-ergebnis-balken {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--akzent), var(--gruen));
  transition: width 0.8s ease;
}
.quiz-hinweis { font-size: 0.85rem; color: var(--grau); margin-top: 22px; }

/* ---------- Bild-Dynamik: Bilder passen sich an, statt zu dominieren ---------- */
.artikel-body img { width: 100%; max-height: 460px; object-fit: cover; object-position: center 30%; border-radius: 16px; }
.karte img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 30%; border-radius: 12px; margin-bottom: 14px; }
.sektion > .container > img { width: 100%; max-height: 440px; object-fit: cover; object-position: center 40%; }
@media (max-width: 640px) {
  .artikel-body img, .sektion > .container > img { max-height: 300px; }
}

/* ---------- Blog / Artikel ---------- */
.artikel-header { padding: 56px 0 32px; }
.artikel-meta { font-size: 0.9rem; color: var(--grau); margin-bottom: 14px; }
.artikel-body h2 { margin-top: 40px; }
.artikel-body h3 { margin-top: 28px; margin-bottom: 10px; font-size: 1.2rem; }
.artikel-body p { margin-bottom: 18px; }
.artikel-body ul, .artikel-body ol { margin: 0 0 18px 22px; }
.artikel-body li { margin-bottom: 8px; }
.merkbox {
  background: var(--gruen-hell);
  border-left: 5px solid var(--gruen);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.merkbox strong { color: var(--gruen-dunkel); }
.faq-frage { font-weight: 700; margin-bottom: 6px; }
.faq-block { margin-bottom: 22px; }

/* ---------- Autorenbox ---------- */
.autor-box {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--weiss);
  border: 1px solid #efe9db;
  border-radius: var(--radius);
  padding: 24px;
  margin: 40px 0;
  box-shadow: var(--schatten);
}
.autor-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gruen);
  color: var(--weiss);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
  flex-shrink: 0;
}
.autor-box p { font-size: 0.92rem; color: var(--grau); margin: 0; }
.autor-box strong { color: var(--anthrazit); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--anthrazit);
  color: #c9c9c2;
  padding: 56px 0 32px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}
.site-footer h4 { color: var(--weiss); margin-bottom: 14px; font-size: 1rem; }
.site-footer a { color: #c9c9c2; }
.site-footer a:hover { color: var(--weiss); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-unten {
  border-top: 1px solid #44443f;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* ---------- Sonstiges ---------- */
.hinweis-recht {
  font-size: 0.88rem;
  color: var(--grau);
  background: var(--sand);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 28px;
}
.breadcrumb { font-size: 0.85rem; color: var(--grau); padding: 18px 0 0; }

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .sektion { padding: 44px 0; }
  .quiz-box { padding: 24px; }
  .autor-box { flex-direction: column; align-items: flex-start; }
  .header-inner { justify-content: center; }
}
