/* gesundheitsstrategen.com – Designsystem
 * Ruhige, helle Flächen, ein kräftiges Dunkelblau, große geometrische Überschriften,
 * runde Plaketten und weiche Formen. Markenfarbe ist das Blaugrau aus dem Logo.
 */

/* ------------------------------------------------------------------ Schriften (selbst gehostet, OFL) */
@font-face { font-family: "Jakarta"; src: url(/fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(/fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------------ Tokens */
:root {
  --ink: #0d1b4c;          /* Dunkelblau: Überschriften, Buttons, Kontaktfläche */
  --ink-soft: #3a4670;     /* Fließtext */
  --brand: #637fa3;        /* Blaugrau aus dem Logo */
  --brand-strong: #46618a; /* Blaugrau für Text/Links auf Hell (Kontrast ≥ 5:1) */
  --surface: #f4f6f9;      /* Seitenhintergrund */
  --tint: #dfe6f0;
  --tint-strong: #c7d3e5;
  --peach: #f3dccd;        /* warme Akzentform */
  --mint: #cfe7da;
  --accent: #4f9d6b;       /* Punkt in den Plaketten */
  --line: #d9e0ea;
  --white: #fff;

  --font-head: "Jakarta", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --shadow: 0 1px 2px rgba(13, 27, 76, .06), 0 12px 32px -12px rgba(13, 27, 76, .18);
  --shadow-lift: 0 2px 4px rgba(13, 27, 76, .08), 0 24px 48px -16px rgba(13, 27, 76, .28);

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 76px;
}

/* ------------------------------------------------------------------ Basis */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-strong); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--tint-strong); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--white); }

/* ------------------------------------------------------------------ Plakette */
.badge {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .5em 1em .5em .7em;
  border-radius: 999px;
  background: var(--ink); color: var(--white);
  font: 500 .875rem/1.2 var(--font-body);
  letter-spacing: .01em;
}
.badge::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: #7fd09c; box-shadow: 0 0 0 3px rgba(127, 208, 156, .25); }
.badge--light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.badge--light::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(79, 157, 107, .18); }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .2s ease; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: #1b2c66; color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--soft { background: var(--tint); color: var(--ink); }
.btn--soft:hover { background: var(--ink); color: var(--white); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--down:hover svg { transform: translateY(2px); }

/* ------------------------------------------------------------------ Kopfbereich */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(13, 27, 76, .35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo { display: block; flex: none; border-radius: 8px; }
.logo img { width: auto; height: 52px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  color: var(--ink); font-weight: 500; text-decoration: none; transition: background-color .2s ease;
}
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 14px; padding: 0;
  background: var(--ink); color: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 719px) {
  :root { --header-h: 68px; }
  .logo img { height: 44px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -24px rgba(13, 27, 76, .35);
  }
  .js .nav:not(.is-open) { display: none; }
  .js .nav a { min-height: 52px; padding: 0 16px; font-size: 1.05rem; }
}

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 9vw, 128px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero__text { display: grid; justify-items: start; gap: 24px; max-width: 34rem; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw + .5rem, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero__lead { font-size: clamp(1.1rem, .6vw + 1rem, 1.3rem); line-height: 1.55; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.hero__visual { position: relative; isolation: isolate; margin-inline: 4px; }
.hero__photo {
  position: relative; z-index: 2;
  border-radius: var(--radius-l); overflow: hidden;
  box-shadow: var(--shadow-lift); aspect-ratio: 3 / 2; background: var(--tint);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.shape { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; }
.shape--tint { width: 62%; aspect-ratio: 1; right: -9%; top: -14%; background: var(--tint-strong); border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
.shape--peach { width: 34%; aspect-ratio: 1; left: -8%; bottom: -12%; background: var(--peach); }
.shape--dots {
  width: 120px; height: 120px; right: 6%; bottom: -28px; z-index: 3; border-radius: 0;
  background-image: radial-gradient(var(--brand) 2px, transparent 2.5px); background-size: 16px 16px; opacity: .55;
}
.hero__tag {
  position: absolute; z-index: 4; left: 16px; bottom: -28px;
  display: grid; gap: 2px; max-width: 16rem;
  padding: 14px 18px; border-radius: var(--radius-m);
  background: var(--white); box-shadow: var(--shadow-lift);
}
.hero__tag strong { font: 800 1rem/1.25 var(--font-head); color: var(--ink); letter-spacing: -0.01em; }
.hero__tag span { font-size: .875rem; line-height: 1.35; color: var(--ink-soft); }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .hero__tag { left: 28px; bottom: -32px; }
}

/* ------------------------------------------------------------------ Abschnittskopf */
.section { padding-block: var(--section); }
.section__head { display: grid; justify-items: start; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3rem); }

/* ------------------------------------------------------------------ Empfehlungen */
.recommendations { background: var(--white); border-radius: var(--radius-l) var(--radius-l) 0 0; }
.cards { display: grid; gap: clamp(20px, 2.4vw, 28px); grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
.card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 16px 16px 28px; border-radius: var(--radius-m);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card__logo {
  display: grid; place-items: center; height: 148px; padding: 24px;
  border-radius: calc(var(--radius-m) - 6px); background: var(--white);
}
.card__logo img { max-height: 92px; width: auto; }
.card__logo img.is-wide { max-height: 64px; max-width: 230px; }
.card__body { display: flex; flex-direction: column; gap: 12px; padding-inline: 12px; flex: 1; }
.card__chip { align-self: flex-start; padding: .3em .8em; border-radius: 999px; background: var(--tint); color: var(--ink); font-size: .8125rem; font-weight: 500; }
.card h3 { font-size: clamp(1.35rem, .6vw + 1.1rem, 1.6rem); }
.card p { font-size: 1rem; line-height: 1.6; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card__body > p:last-of-type { margin-bottom: 12px; }

@media (min-width: 640px) and (max-width: 959px) {
  .card { flex-direction: row; align-items: stretch; padding: 16px; }
  .card__logo { flex: 0 0 220px; height: auto; min-height: 200px; }
  .card__body { padding: 12px 12px 12px 8px; }
}
@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ Kontakt */
.contact { position: relative; overflow: hidden; background: var(--ink); color: #dbe3f2; }
.contact::before {
  content: ""; position: absolute; width: 520px; aspect-ratio: 1; right: -160px; top: -220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(99, 127, 163, .45), rgba(99, 127, 163, 0) 70%);
}
.contact .wrap { position: relative; }
.contact h2 { color: var(--white); }
.contact-list { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 860px) { .contact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.contact-item {
  display: flex; align-items: center; gap: 18px; height: 100%;
  padding: 22px 24px; border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  color: var(--white); text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
a.contact-item:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: var(--white); transform: translateY(-2px); }
.contact-item__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--white); }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__text { display: grid; gap: 2px; min-width: 0; }
.contact-item__label { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: #aebbd6; }
.contact-item__value { font: 700 1.1rem/1.35 var(--font-head); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact .badge { background: rgba(255, 255, 255, .1); }

/* ------------------------------------------------------------------ Fußbereich */
.site-footer { background: var(--surface); padding-block: 40px; border-top: 1px solid var(--line); }
.contact + .site-footer { border-top: 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.site-footer__brand { display: flex; align-items: center; gap: 16px; font-size: .9375rem; }
.site-footer__brand img { height: 40px; width: auto; }
.site-footer__brand a { color: inherit; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.footer-links a, .footer-links button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer;
}
.footer-links a:hover, .footer-links button:hover { background: var(--tint); }
.footer-links .social { width: 44px; justify-content: center; padding: 0; }
.footer-links .social svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ Rechtsseiten */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; justify-items: start; gap: 18px; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 4vw + 1rem, 4rem); letter-spacing: -0.035em; }
.page-hero::after {
  content: ""; position: absolute; z-index: 0; width: 360px; aspect-ratio: 1; right: -90px; top: -150px;
  background: var(--tint-strong); border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; opacity: .7;
}
@media (max-width: 719px) { .page-hero::after { width: 200px; right: -110px; top: -110px; } }
.legal { background: var(--white); border-radius: var(--radius-l) var(--radius-l) 0 0; padding-block: clamp(40px, 6vw, 80px) var(--section); }
.legal__grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .legal__grid--toc { grid-template-columns: 280px minmax(0, 1fr); gap: 64px; } }

.toc { align-self: start; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.toc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px;
  cursor: pointer; list-style: none; font: 800 1rem/1.2 var(--font-head); color: var(--ink);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.toc[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.toc ol { list-style: none; margin: 0; padding: 0 10px 14px; font-size: .9rem; line-height: 1.35; }
.toc li a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink-soft); text-decoration: none; }
.toc li a:hover { background: var(--tint); color: var(--ink); }
.toc li a.is-active { background: var(--ink); color: var(--white); }
@media (min-width: 1100px) {
  .toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
}

.prose { max-width: 46rem; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.7; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem); margin-top: 2.2em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; letter-spacing: -0.01em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--brand); }
.prose ul.defs { list-style: none; padding: 0; display: grid; gap: 12px; }
.prose ul.defs > li { padding: 18px 22px; border-radius: var(--radius-s); background: var(--surface); }
.prose ul.defs > li + li { margin-top: 0; }
.prose ul.defs h3 { margin-top: 0; font-size: 1.05rem; }
.prose ul.defs p { margin-top: .5em; font-size: 1rem; }
.prose a { overflow-wrap: anywhere; }

.notfound { text-align: left; }
.notfound .prose p { font-size: 1.15rem; }

/* ------------------------------------------------------------------ Einblenden beim Scrollen */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0ms); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
@keyframes float { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-10px, 14px) rotate(4deg); } }
.shape--tint { animation: float 14s ease-in-out infinite; }
.shape--peach { animation: float 11s ease-in-out infinite reverse; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero__visual, .site-footer .footer-links, .toc { display: none !important; }
  body { background: #fff; }
  .contact { background: #fff; color: #000; }
  .contact h2, .contact-item { color: #000; }
}
