/* ==========================================================================
   NEVINOVA — main.css
   Static HTML5/CSS/Vanilla-JS site. No runtime framework, no build step
   required. Design tokens are sourced from real brand assets:
   - Farbschema "Longevity Blue" (seit 25.09.2026): #163B50 / #236D8C / #55B9D3,
     Flächen #D9EFF4, Grau #A8BAC1. Frühere Navy/Blue-Werte ersetzt.
   - (alt) Navy and blue sampled directly from the official
     Nevinova wordmark logo.
   - Teal/coral supporting palette from the provided Adobe Color swatch.
   - Typeface: Outfit (self-hosted, static weights 300/400/500/700).
   See README.md for the full token/contrast documentation.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted, no external requests)
   Outfit — official Google Fonts variable font (one file, weight axis
   100–900), SIL Open Font License 1.1. License text kept alongside:
   assets/fonts/OFL-Outfit.txt
   Atkinson Hyperlegible Next — second family, used for body copy only
   (headings/UI stay on Outfit). Also SIL OFL 1.1.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-var.woff2") format("woff2-variations"),
       url("/assets/fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-var.woff2") format("woff2-variations"),
       url("/assets/fonts/atkinson-hyperlegible-next-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled from the Nevinova logo file */
  --color-deep:        #163b50; /* Longevity Blue – Dunkel */
  --color-accent:       #236d8c; /* Longevity Blue – Mittel */
  --color-accent-ink:   #236d8c; /* darkened accent — AA-safe for body-size text/buttons */
  --color-accent-hover: #163b50;

  /* Supporting palette — from the provided Adobe Color swatch */
  --color-teal:        #55b9d3; /* Longevity Blue – Hell */
  --color-teal-light:  #9ad3e2;
  --color-warm:        #f2afa0;
  --color-warm-strong: #d99696;

  /* Semantic — components use these, not raw colours above */
  --bg-base:            #ffffff;
  --bg-surface:         #d9eff4; /* Longevity Blue – Fläche */
  --bg-deep:            var(--color-deep);
  --text-primary:       var(--color-deep);
  --text-secondary:     #3d5a6b;
  --text-muted:         #637d89;
  --text-on-deep:       #eef8fb;
  --text-muted-on-deep: rgba(238, 248, 251, 0.66);
  --accent:             var(--color-accent);
  --accent-strong:      var(--color-accent-ink);
  --accent-contrast:    #ffffff;
  --border-default:     #c5d3d9; /* aus #a8bac1 aufgehellt */
  --border-on-deep:     rgba(238, 248, 251, 0.22);
  --focus-ring:         var(--color-accent-ink);
  --focus-ring-on-deep: var(--color-teal-light);

  /* Typography */
  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.9375rem, 0.9rem + 0.18vw, 1rem);
  --step-0:  clamp(1.0625rem, 1rem + 0.28vw, 1.15rem);
  --step-1:  clamp(1.25rem, 1.13rem + 0.55vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.28rem + 0.95vw, 2.0625rem);
  --step-3:  clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);
  --step-4:  clamp(2.375rem, 1.8rem + 2.5vw, 3.75rem);
  --step-5:  clamp(2.75rem, 1.9rem + 3.7vw, 4.75rem);

  /* Layout */
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;

  --container: 1320px;
  --container-narrow: 760px;
  --section-pad: clamp(4rem, 8vw, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 5.25rem;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
}

/* --------------------------------------------------------------------------
   3. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  text-rendering: optimizeLegibility;
}

img, picture, video { max-width: 100%; display: block; }
svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

/* Two-font system (confirmed): Outfit on every "designed" / UI moment
   (headings already covered above), Atkinson Hyperlegible Next is the
   default for everything else via body { font-family: var(--font-body) }. */
.eyebrow,
.btn,
.main-nav__list,
.nav-dropdown > summary,
.tag-soon,
.team-card__role,
.footer-grid h3,
.footer-grid ul,
.pillar__index,
.whatsapp-float,
.site-logo,
.score-wizard__eyebrow,
.score-wizard__category,
.score-wizard__progress-label,
.score-wizard__option,
.score-wizard__back,
.score-preview__label,
.score-strengths__tag,
.score-strengths__name {
  font-family: var(--font-sans);
}

/* Equinox-derived signature: display headings are uppercase with a touch
   of tracking (their h1 uses ~2.6px letter-spacing at a much bigger size —
   scaled down here to stay legible with a hyperlegible-oriented typeface).
   Weight is deliberately differentiated rather than left uniform at 500:
   h1 is large enough that a light weight stays perfectly legible and reads
   more editorial; h2 anchors each section so it goes the other way, bolder,
   for stronger orientation while scanning the page. Body-sized text stays
   at regular 400 throughout — the light weights are reserved for display
   sizes only, so the hyperlegible design intent isn't undermined. */
h1, h2 {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
h1 { font-weight: 300; }
h2 { font-weight: 600; }

p { margin: 0 0 var(--space-3); }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-hover); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

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

.is-on-deep :focus-visible,
[data-surface="deep"] :focus-visible {
  outline-color: var(--focus-ring-on-deep);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

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

.skip-link {
  position: fixed;
  z-index: 10000;
  left: var(--gutter);
  top: var(--gutter);
  transform: translateY(-200%);
  padding: 0.85rem 1.4rem;
  background: var(--color-deep);
  color: #fff;
  border-radius: var(--radius-s);
  font-weight: 500;
  transition: transform 0.15s ease;
}
.skip-link:focus-visible { transform: translateY(0); }

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - (2 * var(--gutter)), var(--container));
  margin-inline: auto;
}
.container--narrow {
  width: min(100% - (2 * var(--gutter)), var(--container-narrow));
  margin-inline: auto;
}
.section { padding-block: var(--section-pad); }
/* For short-content banner-style sections (e.g. the Health-Check CTA) —
   the full section rhythm reads as excessive empty space when there's
   only a heading, one line and a button to fill it. */
.section--compact { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--surface { background: var(--bg-surface); }
.section--deep {
  background: var(--color-deep);
  color: var(--text-on-deep);
}
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }

/* --------------------------------------------------------------------------
   5. Typography utilities
   -------------------------------------------------------------------------- */
.display-1 { font-size: var(--step-5); line-height: 1.02; }
.display-2 { font-size: var(--step-4); }
.title-1   { font-size: var(--step-3); }
.title-2   { font-size: var(--step-2); }
.title-3   { font-size: var(--step-1); font-weight: 500; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow--lg { font-size: var(--step-1); }
.section--deep .eyebrow { color: #fff; }
.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 42em;
}
.section--deep .lead { color: var(--text-on-deep); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
/* Equinox-derived: sharp corners (no radius), uppercase, tracked label,
   1.5px border, hover inverts fill/text instead of just darkening. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.7em 0.85em;
  border-radius: 0;
  font-weight: 600;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}
.btn--primary:hover { background: transparent; color: var(--accent-strong); }
.section--deep .btn--primary:hover,
.hero .btn--primary:hover { color: #fff; border-color: #fff; }

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-deep);
}
.btn--outline:hover { background: var(--color-deep); color: #fff; }
.section--deep .btn--outline { color: #fff; }
.section--deep .btn--outline:hover { background: #fff; color: var(--color-deep); }

/* Solid, high-contrast variant for use over photo/video — never relies on
   a transparent background, so it stays visible regardless of what's
   behind it. */
.btn--solid {
  background: #fff;
  border-color: #fff;
  color: var(--color-deep);
}
.btn--solid:hover { background: transparent; color: #fff; border-color: #fff; }

.btn--whatsapp {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-deep); /* dunkle Schrift: hellblauer Grund hat mit Weiß zu wenig Kontrast */
}
.btn--whatsapp:hover { background: var(--color-deep); border-color: var(--color-deep); color: #fff; }
.hero .btn--whatsapp:hover,
.section--deep .btn--whatsapp:hover { color: #fff; border-color: #fff; }

.btn--sm { padding: 0.7em 1.2em 0.6em; font-size: var(--step--1); }

/* --------------------------------------------------------------------------
   7. Site header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 250, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-default);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}
.site-logo { display: block; flex: 0 0 auto; }
.site-logo img { height: 2rem; width: auto; }

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: var(--step--1);
  font-weight: 500;
}
.main-nav__list a,
.main-nav__list .is-placeholder,
.main-nav__list .nav-dropdown > summary { white-space: nowrap; }
.main-nav__list a {
  color: var(--text-primary);
  text-decoration: none;
}
.main-nav__list a:hover { color: var(--accent-strong); }
.main-nav__list [aria-current="page"] { color: var(--accent-strong); }
.main-nav__list .is-placeholder {
  color: var(--text-muted);
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.tag-soon {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 0.15em 0.5em;
  border-radius: 999px;
  border: 1px solid var(--border-default);
}

.header-actions { display: flex; align-items: center; gap: var(--space-2); flex: 0 0 auto; }

/* Native <details>/<summary> dropdown — no JS required */
.nav-dropdown { position: relative; }
.nav-dropdown > summary {
  cursor: pointer;
  list-style: none;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after { content: "\25BE"; font-size: 0.7em; }
.nav-dropdown[open] > summary { color: var(--accent-strong); }
.nav-dropdown__panel {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  padding-top: var(--space-2);
}
@media (min-width: 1201px) {
  .nav-dropdown__panel {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-s);
    padding: var(--space-2);
    min-width: 10rem;
    box-shadow: 0 12px 28px -12px rgba(22,59,80,0.22);
  }
}
.nav-dropdown__panel a { padding: 0.3em 0.5em; border-radius: 6px; color: var(--text-primary); text-decoration: none; }
.nav-dropdown__panel a:hover { background: var(--bg-surface); color: var(--accent-strong); }
.nav-dropdown__panel .is-placeholder { padding: 0.3em 0.5em; }
/* Newsletter-Formular: Rückmeldung, Spam-Schutzfeld, Fehler am Feld (wie Unterseiten) */
.newsletter-form__consent { flex-basis: 100%; font-size: var(--step--1); color: var(--text-muted-on-deep); margin-top: 0.5em; }
.newsletter-form__consent input { margin-right: 0.4em; }
.newsletter-form__status { flex-basis: 100%; margin: var(--space-2) 0 0; padding: var(--space-2) var(--space-3); border-left: 3px solid var(--color-teal); border-radius: var(--radius-s); background: rgba(255,255,255,0.06); color: var(--text-on-deep); font-size: var(--step--1); }
.newsletter-form__status.is-error { border-left-color: var(--color-warm); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter-form input[aria-invalid="true"] { border-color: var(--color-warm); border-width: 2px; }
.newsletter-form input::placeholder { color: var(--text-muted-on-deep); opacity: 1; }
.team-more { margin-top: var(--space-6); text-align: center; }
/* Mobiles Menü: volle Bildschirmhöhe, auch wenn der Header (backdrop-filter) der Bezugsrahmen ist */
@media (max-width: 1200px) {
  .main-nav { bottom: auto; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
}

.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-s);
  background: #fff;
  position: relative;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 25%; right: 25%;
  height: 2px;
  background: var(--color-deep);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); top: -8px; }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); top: 8px; }

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg-base); padding: var(--space-5) var(--gutter); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; overflow-y: auto; }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav__list { flex-direction: column; align-items: flex-start; gap: var(--space-4); font-size: var(--step-1); }
  .header-actions .btn span.btn-label-full { display: none; }
}
@media (min-width: 1201px) {
  .main-nav { display: block; }
}

/* --------------------------------------------------------------------------
   8. Hero (video)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(46rem, 92vh);
  display: flex;
  align-items: center;
  color: #fff;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Uniformly dark enough across the whole frame — content is now vertically
     centered (not just anchored to the bottom), so every part of the
     gradient needs to carry enough contrast, not just the lower edge. */
  background: linear-gradient(180deg, rgba(14,38,52,0.52) 0%, rgba(14,38,52,0.42) 45%, rgba(14,38,52,0.6) 100%);
}
.hero__video, .hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-6);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* A crisp close shadow plus a soft wide one keeps hero text legible no
   matter how bright the current video frame is — footage brightness varies
   over the loop, so this can't rely on the overlay alone. */
.hero__eyebrow, .hero__title, .hero__lead {
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 4px 22px rgba(0,0,0,0.4);
}
.hero__eyebrow { color: #fff; }
.hero__title { color: #fff; font-size: var(--step-5); max-width: 18em; }
.hero__lead { color: var(--text-on-deep); font-size: var(--step-1); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-4); }

/* --------------------------------------------------------------------------
   9. Cards / clusters
   -------------------------------------------------------------------------- */
.cluster-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-5);
}
@media (max-width: 860px) { .cluster-grid { grid-template-columns: 1fr; } }

.cluster-card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cluster-card__media { aspect-ratio: 1600/1066; overflow: hidden; background: var(--bg-surface); border-radius: var(--radius-m); margin: var(--space-3) var(--space-3) 0; }
.cluster-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cluster-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.cluster-card__list { display: flex; flex-direction: column; gap: 0.4em; margin-top: var(--space-2); }
.cluster-card__list a {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--accent-strong);
  text-decoration: none;
  background: var(--bg-surface);
  border-radius: var(--radius-s);
  padding: 0.55em 0.85em;
  display: block;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cluster-card__list a:hover { background: var(--color-teal-light); color: var(--color-deep); }

.reason-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-5);
}
@media (max-width: 860px) { .reason-grid { grid-template-columns: 1fr; } }
.reason-card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.reason-card__media {
  aspect-ratio: 1600/1066;
  background: var(--bg-surface);
  overflow: hidden;
  border-radius: var(--radius-m);
  margin: var(--space-3) var(--space-3) 0;
}
.reason-card__media img { width: 100%; height: 100%; object-fit: cover; }
.reason-card__media--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--bg-surface), var(--color-teal-light) 220%);
  color: var(--accent-strong);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.reason-card__body { padding: var(--space-4); }

/* --------------------------------------------------------------------------
   10. Team
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-5);
}
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }
.team-card__media {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-surface);
}
.team-card__media img { width: 100%; height: 100%; object-fit: cover; }
.team-card__media--placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: var(--step--1);
  text-align: center;
  padding: var(--space-4);
  border: 1px dashed var(--border-default);
}
.team-card__name { margin-top: var(--space-3); }
.team-card__role { color: var(--accent-strong); font-weight: 600; font-size: var(--step--1); margin-bottom: var(--space-2); }

/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-5);
}
@media (max-width: 720px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-m);
  padding: var(--space-4);
}
.testimonial__stars { color: var(--color-warm-strong); font-size: var(--step-0); letter-spacing: 0.1em; margin-bottom: var(--space-2); }
.testimonial cite { display: block; margin-top: var(--space-3); font-style: normal; font-weight: 600; color: var(--text-primary); }

/* --------------------------------------------------------------------------
   12. Scoring tool mount section
   -------------------------------------------------------------------------- */
.score-intro { max-width: 38em; }

/* Scoped "test palette" for the score tool only — NOT part of the global
   brand tokens in :root. Deliberately more vivid/saturated than the rest of
   the site: this section is an interactive tool, not a calm resting area,
   so a bit more energy here is intentional. If this direction is approved,
   promote to :root; if not, this block is the only thing to remove. */
#nevinova-score-tool {
  --score-1: #236d8c;
  --score-2: #3c93b0;
  --score-3: #55b9d3;
  --score-4: #8fd0e1;

  margin-top: var(--space-5);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-on-deep);
  border-radius: var(--radius-m);
  padding: var(--space-5);
  text-align: left;
}

/* --------------------------------------------------------------------------
   The actual score wizard (25 questions + context + email capture).
   Renders inside #nevinova-score-tool via assets/js/score-tool.js.
   -------------------------------------------------------------------------- */
.score-wizard { max-width: 32rem; }
.score-wizard--intro { text-align: left; max-width: 100%; }

/* Result preview shown on the intro screen only — body illustration + ring
   gauge + strengths list, giving a concrete preview of what the finished
   quiz delivers before someone commits to 26 questions. */
.score-preview {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-on-deep);
  border-radius: var(--radius-m);
}
.score-preview__text { flex: 1 1 16rem; min-width: 16rem; }
.score-preview__label {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--score-3);
  margin-bottom: 0.4em;
}
.score-preview__text p:not(.score-preview__label) { color: var(--text-muted-on-deep); margin-bottom: var(--space-3); }

.score-gauge {
  position: relative;
  flex: 0 0 auto;
  width: 9rem;
  height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-gauge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.score-gauge__track { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 14; }
.score-gauge__fill {
  fill: none;
  stroke: var(--score-3);
  stroke-width: 14;
  stroke-linecap: round;
  /* r=85 circle: circumference 534.07. Dashoffset set for 74% (7,4/10). */
  stroke-dasharray: 534.07;
  stroke-dashoffset: 138.9;
}
.score-gauge__handle {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--score-3);
  border-radius: 4px;
  transform: translateX(-50%) rotate(6deg);
}
.score-gauge__value {
  position: relative;
  z-index: 1;
  font-weight: 300;
  font-size: var(--step-3);
  color: #fff;
  line-height: 1;
}
.score-gauge__unit { font-size: var(--step--1); font-weight: 400; color: var(--text-muted-on-deep); }

/* Body illustration — the client's own asset (transparent PNG, near-white
   line art), purely decorative/symbolic, hence aria-hidden in the markup. */
.score-body { flex: 0 0 auto; width: 14.25rem; }
.score-body__img { width: 100%; height: auto; display: block; }

.score-strengths { margin-top: var(--space-4); max-width: 22rem; display: flex; flex-direction: column; gap: var(--space-2); }
.score-strengths__item { list-style: none; }
.score-strengths__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: var(--step--1);
  margin-bottom: 0.3em;
}
.score-strengths__name { color: #fff; font-weight: 500; }
.score-strengths__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  margin-left: 0.6em;
}
.score-strengths__tag--strength { background: rgba(85,185,211,0.2); color: var(--score-4); }
.score-strengths__tag--focus { background: rgba(255,255,255,0.14); color: var(--text-muted-on-deep); }
.score-strengths__value { color: var(--score-3); font-weight: 600; }
.score-strengths__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}
.score-strengths__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--score-1), var(--score-3));
  border-radius: 999px;
}

.score-wizard__eyebrow {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--score-3);
  margin-bottom: 0.5em;
}
.score-wizard__category {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--score-4);
  margin-bottom: 0.5em;
}
.score-wizard__title { color: #fff; font-size: var(--step-1); margin-bottom: 0.6em; }
.score-wizard__text { color: var(--text-on-deep); margin-bottom: var(--space-4); }
.score-wizard__note {
  font-size: var(--step--1);
  color: var(--text-muted-on-deep);
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-s);
}

.score-wizard__progress { margin-bottom: var(--space-4); }
.score-wizard__progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}
.score-wizard__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--score-1), var(--score-3));
  border-radius: 999px;
  transition: width 0.25s ease;
}
.score-wizard__progress-label {
  margin-top: 0.5em;
  font-size: var(--step--1);
  color: var(--text-muted-on-deep);
}

.score-wizard__options { display: flex; flex-direction: column; gap: 0.6em; margin-bottom: var(--space-4); }
.score-wizard__option {
  text-align: left;
  padding: 0.85em 1.1em;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--border-on-deep);
  background: rgba(255,255,255,0.04);
  color: var(--text-on-deep);
  font-size: var(--step-0);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.score-wizard__option:hover { border-color: var(--score-3); }
.score-wizard__option.is-selected { border-color: var(--score-3); background: rgba(85,185,211,0.14); color: #fff; }

.score-wizard__slider-wrap { display: flex; align-items: center; gap: var(--space-3); margin-bottom: 0.5em; }
.score-wizard__slider { flex: 1; accent-color: var(--score-3); }
.score-wizard__slider-value {
  min-width: 2.2em;
  text-align: center;
  font-weight: 600;
  color: #fff;
  font-size: var(--step-1);
}
.score-wizard__slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--text-muted-on-deep);
  margin-bottom: var(--space-4);
}

.score-wizard__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.score-wizard__back {
  background: none;
  border: none;
  color: var(--text-muted-on-deep);
  font-size: var(--step--1);
  cursor: pointer;
  padding: 0.5em 0;
}
.score-wizard__back:hover { color: #fff; }
.score-wizard__nav .btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.score-wizard__email-form { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.score-wizard__email-form input[type="email"] {
  width: 100%;
  padding: 0.85em 1.1em;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--border-on-deep);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: var(--step-0);
}
.score-wizard__email-form input::placeholder { color: var(--text-muted-on-deep); }
.score-wizard__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  font-size: var(--step--1);
  color: var(--text-muted-on-deep);
  cursor: pointer;
}
.score-wizard__consent input { margin-top: 0.2em; accent-color: var(--score-3); flex: 0 0 auto; }
.score-wizard__consent a { color: var(--score-4); }
.score-wizard__status { color: var(--color-warm); font-size: var(--step--1); min-height: 1.2em; }


/* --------------------------------------------------------------------------
   13. FAQ (details/summary — native, no JS needed)
   -------------------------------------------------------------------------- */
.faq-list { max-width: 46em; margin-top: var(--space-4); }
.faq-item {
  border-bottom: 1px solid var(--border-default);
  padding-block: var(--space-3);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: var(--step-0);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3em;
  color: var(--accent-strong);
  flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: var(--space-2); color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
/* Deliberately quieter than the score section: same navy family but a
   touch darker/softer, and body copy stays muted so headings — not the
   background — carry the contrast. */
.site-footer { background: #0f2c3c; color: var(--text-muted-on-deep); font-size: var(--step--1); }
.site-footer a { color: var(--text-muted-on-deep); text-decoration: none; }
.site-footer a:hover { color: var(--color-teal-light); }
.footer-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  padding-block: var(--space-6);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 {
  color: var(--color-teal-light);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.footer-grid ul { display: flex; flex-direction: column; gap: 0.55em; }
.footer-grid address { font-style: normal; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid var(--border-on-deep);
  padding-block: var(--space-3);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  align-items: center; justify-content: space-between;
  font-size: var(--step--1);
  color: var(--text-muted-on-deep);
}
.footer-bottom ul { display: flex; gap: var(--space-4); }

.newsletter-form { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.newsletter-form input[type="email"] {
  flex: 1 1 14rem;
  padding: 0.75em 1em;
  border-radius: var(--radius-s);
  border: 1px solid var(--border-on-deep);
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.newsletter-form input::placeholder { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   15. WhatsApp floating assistant
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--color-teal);
  color: var(--color-deep);
  padding: 0.85em 1.3em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--step--1);
  box-shadow: 0 10px 30px -10px rgba(22,59,80,0.45);
}
.whatsapp-float:hover { background: var(--color-deep); color: #fff; }
.whatsapp-float svg { width: 1.3em; height: 1.3em; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   16. "Kennen Sie das" reasons + generic content blocks
   -------------------------------------------------------------------------- */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 860px) { .split-block { grid-template-columns: 1fr; } }
.split-block__media { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-surface); }
.split-block__media img { width: 100%; height: 100%; object-fit: cover; }
.split-block--reverse .split-block__media { order: 2; }
/* Eva's portrait is a tall/portrait-orientation photo. The default 4:3
   landscape frame cropped off her feet regardless of object-position, so
   this uses the photo's own exact ratio instead — zero cropping.
   Cropped tighter at the top (688 → 578px) per the client's requested
   framing, so the ratio was updated to match the new source file. */
.split-block__media--portrait { aspect-ratio: 519 / 401; }

.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-5); }
@media (max-width: 860px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar { text-align: left; }
.pillar__media {
  margin-top: var(--space-3);
  /* 3:2 — matches the two landscape stock photos exactly (zero crop for
     them); only the portrait shot gets a light top/bottom trim. Keeps all
     three tiles the same height without cutting into hands at the edges. */
  aspect-ratio: 1600/1066;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-surface);
}
.pillar__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.pillar__index { color: var(--color-teal); font-size: var(--step-2); font-weight: 200; }


/* --------------------------------------------------------------------------
   Mobile-Korrekturen (24.09.2026)
   - Header-Buttons passten auf Handys nicht in die Zeile und machten die
     ganze Seite breiter als den Bildschirm (horizontales Scrollen/Zoom-out).
   - Lange Wörter ("Symptombehandlung") sprengten Grid-Spalten.
   -------------------------------------------------------------------------- */
.split-block > *, .pillars-grid > *, .reason-grid > *, .cluster-grid > *,
.team-grid > *, .testimonial-grid > *, .footer-grid > * { min-width: 0; }
h1, h2, h3, .title-1, .title-2, .title-3 { overflow-wrap: break-word; hyphens: manual; } /* nur an gesetzten &shy; trennen */
@media (max-width: 1200px) {
  .nav-toggle { flex: 0 0 auto; margin-left: auto; order: 2; }
  .header-actions { order: 3; }
}
@media (max-width: 600px) {
  /* Auf dem Handy übernehmen der schwebende WhatsApp-Button und die
     Hero-Buttons diese Aufgaben. */
  .header-actions { display: none; }
}
@media (max-width: 600px) {
  /* Große Versal-Überschriften auf schmalen Screens etwas kleiner */
  .title-1 { font-size: clamp(1.5rem, 6.4vw, 1.875rem); }
  /* Score-Tool: verschachtelte Boxen brauchen weniger Innenabstand */
  #nevinova-score-tool { padding: var(--space-3); }
  .score-preview { padding: var(--space-3); gap: var(--space-3); }
  .score-preview__text { min-width: 0; }
  /* Hero: etwas mehr Luft zum Rand, Dachzeile darf umbrechen */
  .hero__content { padding-inline: 0.5rem; }
  .hero__eyebrow { font-size: 0.7rem; letter-spacing: 0.06em; }
}
/* <blockquote> bringt vom Browser 40px Seitenrand mit — Karten wurden dadurch schmal */
.testimonial { margin: 0; }
@media (max-width: 600px) {
  /* Lange Button-Beschriftungen dürfen umbrechen statt über den Rand zu laufen */
  .btn { max-width: 100%; white-space: normal; text-align: center; }
}
@media (max-width: 900px) {
  /* .hero__content hatte width:100% und hob damit den seitlichen Rand des
     Containers auf — Text lief fast bis an den Bildschirmrand. */
  .hero__content { width: calc(100% - 2 * var(--gutter)); padding-inline: 0; }
}

/* Ausgewogener Zeilenumbruch im Hero-Untertitel */
.hero__lead { text-wrap: balance; }

/* Keine einzelnen Wörter am Absatzende, "E-Mail" nicht am Bindestrich trennen */
.lead, .score-wizard__text, .score-intro { text-wrap: pretty; }

.score-wizard--intro .score-wizard__text { max-width: 44rem; text-wrap: balance; }

/* Der separate "Griff" am Ringanfang saß nicht exakt auf dem Ring und wirkte
   wie ein Fehler – der runde Linienabschluss reicht als sauberer Anfang. */
.score-gauge__handle { display: none; }

/* Buttons: das WhatsApp-Icon hatte keine Größe, war unsichtbar, nahm aber
   Platz weg – dadurch saß die Schrift nicht mittig. Icon ausblenden. */
.btn > svg { display: none; }

/* Header mit den neuen Menübegriffen (28.09.2026): mobiles Menü bis 1100 px,
   bis 1360 px nur der Health-Check-Button (Healthspan Assistent schwebt). */
@media (min-width: 1201px) and (max-width: 1500px) {
  .header-actions .btn--whatsapp { display: none; }
  .main-nav__list { gap: var(--space-3); }
}

/* Footer „Keynotes & Coaching“ – Variante C (07.10.2026) */
.footer-coach { display: block; margin-top: var(--space-5, 2rem); }
.footer-coach h3 { margin-bottom: .6rem; }
.footer-coach ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55em; }
.footer-coach li::before { content: "·"; color: var(--color-teal, #55b9d3); font-weight: 700; margin-right: .55rem; }
.footer-coach:hover li { color: var(--color-teal-light, #8fd0e1); }

/* Bilder in Karten verlinkt (Gregor 11.10.2026) */
.media-link, .media-link picture { display: block; width: 100%; height: 100%; }
.media-link img { transition: transform .5s ease; }
.media-link:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .media-link img { transition: none; } .media-link:hover img { transform: none; } }
