/* BioAge – gemeinsames Stylesheet
   Gestaltung nach den Entwürfen in ../Design/ (Stand 07.10.2026). */

/* ---------- Schriften (selbst gehostet, SIL Open Font License) ---------- */
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-italic-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ground: #F5F6F0;
  --surface: #FFFFFF;
  --sage: #E4ECE2;
  --sage-deep: #C9D9C9;
  --forest: #1D3A31;
  --forest-hover: #2A5144;
  --accent-text: #2E6B57;
  --mint: #B9D3BF;
  --ink: #15241E;
  --body: #26352E;
  --body-2: #33433B;
  --muted: #4C5C55;
  --muted-2: #5A6A62;
  --line: #DCE3DA;
  --amber: #9A5524;
  --amber-bg: #F6E8D8;
  --amber-ink: #7A4119;

  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius-card: 20px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-input: 12px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --shadow-soft: 0 18px 40px -18px rgba(21, 36, 30, 0.28);
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --header-h: 64px; }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 400; }
p, figure { margin: 0; }

a { color: var(--forest); }
a:hover { color: var(--accent-text); }

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus { outline: none; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--forest); color: #FFFFFF; }
.btn--primary:hover { background: var(--forest-hover); color: #FFFFFF; }
.btn--outline { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn--outline:hover { background: var(--sage); color: var(--forest); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.icon { flex: none; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 240, 0.92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }

/* Bildmarke: Monogramm „b“ mit Mint-Punkt (gleich wie favicon.svg) */
.brand-mark { display: block; flex: none; width: 28px; height: 28px; }

.brand-name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
}
.nav-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-link.is-active {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Sprachumschalter DE | EN: die aktuelle Sprache ist hervorgehoben, der ganze Schalter führt zur anderen */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch .is-current { color: var(--forest); text-decoration: underline; text-underline-offset: 5px; }
.lang-switch__sep { color: var(--sage-deep); font-weight: 400; }
.lang-switch:hover span:not(.is-current):not(.lang-switch__sep) { color: var(--forest); }

@media (max-width: 640px) {
  .nav-secondary { display: none; }
  .nav-links { gap: 12px; }
  .lang-switch { gap: 4px; padding: 0; font-size: 12px; }
  .site-nav .btn { min-height: 44px; padding: 10px 16px; font-size: 14px; }
  .brand-name { font-size: 18px; }
}

/* Ganz schmale Handys: Header-Button nur „Test“, damit Wissen und DE | EN in eine Zeile passen.
   Der volle Text bleibt für Screenreader erhalten. */
.nav-cta__short { display: none; }
@media (max-width: 420px) {
  .site-nav { gap: 12px; }
  .nav-links { gap: 10px; }
  .nav-cta__long {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .nav-cta__short { display: inline; }
}

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--line); }

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: 48px;
}

.site-footer__note { font-size: 14px; color: var(--muted); }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__links a { font-size: 14px; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }

/* ---------- Brotkrumen ---------- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb li { display: flex; gap: 8px; }
.breadcrumb li + li::before { content: "›"; content: "›" / ""; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--forest); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Artikel: Kopfbereich ---------- */
.article-hero, .page-hero { background: var(--sage); }

.article-hero__inner,
.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 56px;
}

.article-title {
  max-width: 900px;
  font-size: clamp(32px, 8vw, 54px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

.subtitle {
  max-width: 760px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-style: italic;
  line-height: 1.55;
  color: var(--body-2);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.byline > span:not(.avatar) { flex: 1 1 220px; min-width: 0; }
.byline a { font-weight: 600; text-decoration: none; }
.byline a:hover { text-decoration: underline; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--forest);
  font-size: 13px;
  font-weight: 600;
}
.avatar--lg { width: 64px; height: 64px; font-size: 20px; }

@media (max-width: 640px) {
  .subtitle { font-size: 19px; }
  .article-hero__inner, .page-hero__inner { padding-bottom: 40px; }
}

/* ---------- Artikel: Spalten ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  padding-top: 48px;
}

.toc { display: none; }

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 740px) 260px;
    justify-content: space-between;
  }
  .toc {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}

.toc__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.toc ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc ol a {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
}
.toc ol a:hover { color: var(--forest); text-decoration: underline; }
.toc .btn { margin-top: 8px; }

/* ---------- Fließtext ---------- */
.prose { min-width: 0; max-width: 740px; }
.prose > * + * { margin-top: 22px; }

.prose p,
.prose li {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.75;
  color: var(--body);
  overflow-wrap: break-word;
}
.prose .eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--accent-text);
}
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose strong { font-weight: 600; color: var(--ink); }

.prose a:not(.btn) {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:not(.btn):hover { color: var(--accent-text); text-decoration-thickness: 2px; }

.prose h2 {
  margin-top: 50px;
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.prose h3 { font-size: 21px; font-weight: 600; line-height: 1.35; }

/* Merksatz */
.prose .merksatz {
  margin-top: 34px;
  padding: 24px 28px;
  background: var(--forest);
  border-radius: var(--radius-card);
  color: #F5F6F0;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.prose .merksatz + * { margin-top: 34px; }

@media (max-width: 640px) {
  .prose p, .prose li { font-size: 18px; }
  .prose .merksatz { padding: 22px; font-size: 21px; }
}

/* Kurz gesagt */
.prose .summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.prose .summary ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prose .summary li {
  display: flex;
  gap: 12px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
}

/* Bild mit Bildunterschrift */
.prose .figure { margin-top: 30px; margin-bottom: 8px; }
.figure img { width: 100%; border-radius: var(--radius-card); }
.figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* Test-Aufruf im Artikel */
.prose .test-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 50px;
  padding: 36px;
  background: var(--sage);
  border-radius: var(--radius-lg);
}
.test-cta__text {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.prose .test-cta h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.prose .test-cta p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-2);
}

@media (max-width: 640px) {
  .prose .test-cta { padding: 24px; }
  .prose .test-cta .btn { width: 100%; }
}

/* Häufige Fragen */
.prose .faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 50px;
}
.prose .faq h2 { margin: 0 0 8px; }
.faq-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.prose .faq-item h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }
.prose .faq-item p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body-2);
}

@media (max-width: 640px) {
  .faq-item { padding: 20px; }
}

/* Fußbereich des Artikels */
.prose .article-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.prose .article-footer p,
.prose .article-footer li {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.prose .article-footer strong,
.sources__label { font-weight: 600; color: var(--ink); }
.prose .sources ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.prose .sources li { margin: 0; }

.help-box {
  padding: 18px 22px;
  background: var(--sage);
  border-radius: 16px;
}
.prose .article-footer .help-box p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

/* ---------- Karten ---------- */
.section-title {
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--sage-deep); box-shadow: var(--shadow-soft); }
.card:focus-within { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.card__eyebrow { font-size: 12px; letter-spacing: 0.12em; }
.card__title { font-size: 20px; font-weight: 500; line-height: 1.3; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
}
.card__title a:focus-visible { outline: none; }
.card__teaser { font-size: 15px; line-height: 1.55; color: var(--muted); }

.related {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: clamp(56px, 8vw, 80px);
  padding-bottom: clamp(56px, 10vw, 96px);
}

/* ---------- Einfache Seiten und Wissen-Übersicht ---------- */
.page-title {
  font-size: clamp(36px, 8vw, 54px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.page-hero__title { display: flex; align-items: center; gap: 20px; }
.page-lead {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-2);
}
.page-body { padding-top: 48px; padding-bottom: clamp(56px, 10vw, 96px); }

.wissen-groups {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: clamp(56px, 10vw, 96px);
}
.wissen-group { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Startseite: Kopfbereich mit Testbox ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: clamp(32px, 6vw, 64px);
  padding-bottom: clamp(48px, 7vw, 72px);
}
.hero__text {
  display: flex;
  flex: 1 1 480px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  max-width: 640px;
  animation: fadeUp 0.7s ease both;
}
.hero__title {
  font-size: clamp(40px, 10vw, 64px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero__lead {
  max-width: 560px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

.test-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 32px rgba(29, 58, 49, 0.08);
}
/* Begrüßung über einen geteilten Ergebnis-Link */
.shared-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--forest);
  color: #F5F6F0;
}
.shared-note__title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.shared-note__text { font-size: 15px; line-height: 1.5; color: var(--mint); }
.test-box__form { display: flex; flex-direction: column; gap: 8px; }
.test-box__label { font-size: 14px; font-weight: 600; }
.test-box__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.test-box__age,
.t-input {
  height: 52px;
  padding: 0 16px;
  background: var(--ground);
  border: 1.5px solid var(--sage-deep);
  border-radius: var(--radius-input);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 20px;
}
.test-box__age { width: 160px; }
.test-box__age:focus, .t-input:focus { border-color: var(--forest); }
.test-box__age.is-invalid, .t-input.is-invalid { border-color: var(--amber); }
.test-box__text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.test-box__meta { font-size: 13px; color: var(--muted-2); }

.field-error {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--amber-ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--sage);
  color: var(--forest);
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .test-box { padding: 22px; }
  .test-box__age { flex: 1 1 96px; width: 96px; }
  .test-box__row .btn { flex: 1 1 auto; }
}

/* ---------- Testmodus ---------- */
.test-app[hidden] { display: none; }
.is-testing .site-header,
.is-testing .site-footer,
.is-testing .landing,
.is-result .landing { display: none; }

.t-header { border-bottom: 1px solid var(--line); }
.t-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.t-quit {
  min-height: 44px;
  padding: 10px 4px;
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.t-quit:hover { color: var(--forest); text-decoration: underline; }
.t-quit__short { display: none; }

.t-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 760px;
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: 80px;
}

/* Fortschritt */
.t-progress { display: flex; flex-direction: column; gap: 12px; }
.t-progress__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.t-progress__count { font-weight: 600; }
.t-progress__time, .t-progress__cat { color: var(--muted); }
.t-progress__cat { display: none; }
.t-progress__bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.t-seg { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.t-seg__track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--line);
}
.t-seg__fill {
  display: block;
  height: 100%;
  background: var(--forest);
  transition: width 0.3s ease;
}
.t-seg__label {
  overflow: hidden;
  font-size: 12px;
  color: var(--muted-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t-seg.is-current .t-seg__label { font-weight: 600; color: var(--ink); }

/* Fragekarte */
.t-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(29, 58, 49, 0.06);
  animation: fadeUp 0.35s ease both;
}
.t-card__q {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.t-card__q:focus { outline: none; }
.t-card__hint { margin-top: -8px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.t-options { display: flex; flex-direction: column; gap: 10px; }
.t-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.t-option:hover { border-color: var(--sage-deep); }
.t-option.is-selected { background: var(--sage); border-color: var(--forest); }
.t-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.t-option__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--sage-deep);
  border-radius: 50%;
}
.t-option.is-selected .t-option__dot { border-color: var(--forest); }
.t-option.is-selected .t-option__dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--forest);
}
.t-option:focus-within { outline: 3px solid var(--accent-text); outline-offset: 2px; }
@supports selector(:has(*)) {
  .t-option:focus-within { outline: none; }
  .t-option:has(.t-option__input:focus-visible) { outline: 3px solid var(--accent-text); outline-offset: 2px; }
}

/* Schieberegler */
.t-sliders { display: flex; flex-direction: column; gap: 14px; }
.t-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.t-slider__label { font-size: 15px; font-weight: 600; }
.t-slider__poles {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.t-slider__poles > span { max-width: 46%; }
.t-slider__poles > span:last-child { text-align: right; }

.t-range {
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  accent-color: var(--forest);
}
.t-range::-webkit-slider-runnable-track { height: 8px; border-radius: var(--radius-pill); background: var(--sage-deep); }
.t-range::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border: 4px solid #FFFFFF;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  -webkit-appearance: none;
  appearance: none;
}
.t-range::-moz-range-track { height: 8px; border-radius: var(--radius-pill); background: var(--sage-deep); }
.t-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: 4px solid #FFFFFF;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* BMI */
.t-bmi { display: flex; flex-direction: column; gap: 14px; }
.t-bmi__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 420px;
}
.t-field { display: flex; flex-direction: column; gap: 6px; }
.t-field label { font-size: 14px; font-weight: 600; line-height: 1.4; }
.t-input { width: 100%; font-size: 18px; }
.t-bmi__value { min-height: 24px; font-size: 15px; font-weight: 500; }
.t-bmi__waist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.t-bmi__waist .t-field label { font-weight: 500; color: var(--body-2); }
.t-bmi__waist .t-input { max-width: 203px; }
.t-field__hint { font-size: 13px; line-height: 1.5; color: var(--muted); }

.t-msg {
  padding: 12px 16px;
  background: var(--amber-bg);
  border-radius: 12px;
  color: var(--amber-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.t-msg[hidden] { display: none; }

/* Weiter / Zurück */
.t-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.t-back { height: 48px; padding: 0 22px; border-color: var(--sage-deep); color: var(--body-2); font-weight: 500; }
.t-next { height: 52px; padding: 0 30px; font-size: 16px; }
.t-privacy { font-size: 13px; line-height: 1.5; color: var(--muted-2); text-align: center; }

@media (max-width: 640px) {
  .t-quit__long { display: none; }
  .t-quit__short { display: inline; }
  .t-progress__time, .t-seg__label { display: none; }
  .t-progress__cat { display: inline; }
  .t-progress__bar { gap: 4px; }
  .t-seg__track { height: 5px; }
  .t-main { gap: 20px; padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
  .t-card { padding: 20px; box-shadow: none; }
  .t-option { padding: 14px 16px; font-size: 16px; }
  .t-slider { padding: 16px; }
  .t-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    gap: 10px;
    padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--ground);
    border-top: 1px solid var(--line);
  }
  .t-back { flex: 0 0 52px; width: 52px; height: 52px; padding: 0; }
  .t-back__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .t-next { flex: 1 1 auto; }
}

/* ---------- Ergebnis ---------- */
.r-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1000px;
  padding-top: clamp(32px, 6vw, 56px);
  padding-bottom: 96px;
}
.r-head { display: flex; flex-direction: column; gap: 8px; }
.r-head h2,
.r-good h2 { font-size: clamp(24px, 4vw, 30px); font-weight: 400; letter-spacing: -0.01em; }
.r-head p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.r-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 6vw, 56px) clamp(24px, 5vw, 56px);
  background: var(--forest);
  border-radius: var(--radius-xl);
  color: #F5F6F0;
  animation: fadeUp 0.5s ease both;
}
.r-hero__text { display: flex; flex: 1 1 320px; flex-direction: column; gap: 10px; min-width: 0; }
.r-hero__eyebrow { color: var(--mint); }
.r-hero__title { font-size: clamp(26px, 4vw, 34px); font-weight: 300; line-height: 1.2; color: #F5F6F0; }
.r-hero__title:focus { outline: none; }
.r-hero__intro { font-size: 16px; line-height: 1.6; color: #D3E0D5; }
.r-hero__value { display: flex; flex: 0 1 auto; flex-direction: column; align-items: flex-start; gap: 12px; }
.r-hero__number {
  font-size: clamp(80px, 14vw, 120px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.r-pill {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.r-pill--younger { background: var(--mint); color: var(--forest); }
.r-pill--older { background: var(--amber-bg); color: var(--amber-ink); }
.r-pill--same { background: #F5F6F0; color: var(--forest); }

.r-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.r-area { display: flex; flex-direction: column; gap: 10px; }
.r-area__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  font-size: 17px;
}
.r-area__name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; }
.r-area__value { font-weight: 500; white-space: nowrap; }
.r-tag {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-size: 12px;
  font-weight: 600;
}
.r-area__track {
  position: relative;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--sage);
}
.r-area__rail { position: absolute; top: 0; right: 10px; bottom: 0; left: 10px; }
.r-area__marker {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.r-area.is-lever .r-area__marker { background: var(--amber); }
.r-area__ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-2); }
.r-area__text { font-size: 15px; line-height: 1.55; color: var(--body-2); }

.r-levers { display: flex; flex-direction: column; gap: 16px; }
.r-lever-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.r-lever {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.r-lever__cat { font-size: 12px; letter-spacing: 0.12em; }
.r-lever__title { font-size: 21px; font-weight: 500; line-height: 1.3; }
.r-lever__why { font-family: var(--font-serif); font-size: 16px; line-height: 1.6; color: var(--body-2); }
.r-lever__help { font-size: 15px; line-height: 1.55; }
.r-lever__help strong { font-weight: 600; }
.r-lever__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.r-lever__link:hover { text-decoration: underline; }
.r-lever__soon { margin-top: auto; font-size: 14px; color: var(--muted-2); }

.r-good {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--sage);
  border-radius: var(--radius-lg);
}
.r-good h2 { font-size: clamp(22px, 3.5vw, 26px); font-weight: 500; }
.r-good p { font-size: 15px; line-height: 1.6; color: var(--body-2); }
.r-strengths { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.r-strength {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.r-strength .icon { color: var(--accent-text); }
a.r-strength:hover { color: var(--forest); text-decoration: underline; }

.r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.r-disclaimer {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-2);
}

/* Zeitstrahl im Ergebnis-Hero: Kalenderalter und Ergebnis auf der für dieses Alter möglichen Spanne */
.r-scale { flex: 1 1 100%; padding-top: 8px; }
.r-scale__track {
  position: relative;
  height: 8px;
  margin: 40px 10px 44px;
  border-radius: var(--radius-pill);
  background: rgba(185, 211, 191, 0.22);
}
.r-scale__fill { position: absolute; top: 0; bottom: 0; border-radius: var(--radius-pill); background: var(--mint); opacity: 0.55; }
.r-scale__mark {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
}
.r-scale__mark--cal { border: 3px solid #F5F6F0; background: var(--forest); }
.r-scale__mark--bio { background: var(--mint); box-shadow: 0 0 0 4px rgba(185, 211, 191, 0.25); }
.r-scale__label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.r-scale__mark--cal .r-scale__label { bottom: calc(100% + 10px); color: #D3E0D5; }
.r-scale__mark--bio .r-scale__label { top: calc(100% + 10px); color: var(--mint); }
.r-scale__mark.is-start .r-scale__label { left: -6px; transform: none; }
.r-scale__mark.is-end .r-scale__label { right: -6px; left: auto; transform: none; }
.r-scale__ends { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #B5C8BA; }
.r-hero__share { background: transparent; border-color: rgba(245, 246, 240, 0.5); color: #F5F6F0; }
.r-hero__share:hover { background: rgba(245, 246, 240, 0.1); color: #FFFFFF; }

/* Linien-Icon der Bereiche */
.r-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--sage);
  color: var(--forest);
}
.r-area.is-lever .r-icon { background: var(--amber-bg); color: var(--amber-ink); }
.r-lever__cat { display: flex; align-items: center; gap: 10px; }
.r-lever__cat .r-icon { width: 28px; height: 28px; letter-spacing: 0; }
.r-lever__gain {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--sage);
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;
}
.r-note { font-size: 13px; line-height: 1.6; color: var(--muted-2); }

/* Teilen */
.r-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.r-share__text { display: flex; flex: 1 1 320px; flex-direction: column; gap: 14px; min-width: 0; }
.r-share__text h2 { font-size: clamp(24px, 4vw, 30px); font-weight: 400; letter-spacing: -0.01em; }
.r-share__text p { font-size: 15px; line-height: 1.6; color: var(--body-2); }
.r-share__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.r-share__buttons [hidden] { display: none; }
.r-share__status { min-height: 1.6em; font-weight: 600; color: var(--accent-text) !important; }
.r-share__preview { flex: 0 1 240px; margin: 0 auto; }
.r-share__preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.r-share__preview img[hidden] { display: none; }

@media (max-width: 640px) {
  .r-actions .btn { flex: 1 1 100%; }
  .r-share__buttons .btn { flex: 1 1 100%; }
  .r-share__preview { flex-basis: 200px; }
  .r-hero__share { flex: 1 1 100%; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Startseite: Abschnitte unter dem Kopfbereich (12.10.2026) ---------- */
.lp-stats { background: var(--sage); }
.lp-stats__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0 auto;
  padding-top: 36px;
  padding-bottom: 36px;
  list-style: none;
}
.lp-stats__list li { display: flex; flex-direction: column; gap: 4px; }
.lp-stats__num {
  font-size: clamp(40px, 7vw, 56px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--forest);
}
.lp-stats__label { font-size: 15px; font-weight: 500; color: var(--muted); }

.lp-section { padding-top: clamp(56px, 8vw, 88px); padding-bottom: clamp(56px, 8vw, 88px); }
.lp-section__head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 36px; }
.lp-section__lead { font-size: 18px; line-height: 1.6; color: var(--muted); }

.lp-diff {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-diff__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.lp-diff__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--sage);
  color: var(--forest);
  font-weight: 600;
}
.lp-diff__title { font-size: 20px; font-weight: 500; line-height: 1.3; }
.lp-diff__body { font-size: 16px; line-height: 1.6; color: var(--muted); }
.lp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}
.lp-link:hover { text-decoration: underline; }

.lp-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest);
  border-radius: var(--radius-card);
}
.lp-area__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lp-area__name { font-size: 20px; font-weight: 600; }
.lp-area__count { font-size: 13px; font-weight: 600; color: var(--accent-text); white-space: nowrap; }
.lp-area__topics { font-size: 15px; line-height: 1.6; color: var(--muted); }
.lp-area__links { margin-top: auto; }
.lp-area__soon { margin-top: auto; font-size: 13px; color: var(--muted-2); }
.chip--link { display: inline-block; text-decoration: none; transition: background-color 0.15s ease; }
.chip--link:hover { background: var(--sage-deep); color: var(--forest); }

.lp-honest {
  max-width: 820px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 28px 32px;
  background: var(--sage);
  border-radius: var(--radius-card);
}
.lp-honest__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.lp-honest p { font-size: 16px; line-height: 1.6; color: var(--body); }

.lp-cta { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(56px, 8vw, 88px); }
.lp-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: clamp(40px, 7vw, 64px) 24px;
  background: var(--forest);
  border-radius: var(--radius-xl);
  text-align: center;
}
.lp-cta__title { font-size: clamp(26px, 5vw, 34px); font-weight: 300; letter-spacing: -0.02em; color: #FFFFFF; }
.lp-cta__btn { background: var(--mint); color: var(--forest); }
.lp-cta__btn:hover { background: #FFFFFF; color: var(--forest); }

@media (max-width: 760px) {
  .lp-stats__list { grid-template-columns: repeat(2, 1fr); }
  .lp-diff { grid-template-columns: 1fr; }
  .lp-honest { padding: 22px; margin-left: var(--gutter); margin-right: var(--gutter); width: auto; }
}
