:root {
  /* Bridged in sb-family.css — kept as fallback if family sheet fails */
  --navy: #275f8f;
  --gold: #d39c0c;
  --bg: #efe9dd;
  --ink: #33291c;
  --muted: #6e6353;
  --card: #fdf9f1;
  --line: #e6d9c3;
  --shadow: 0 3px 10px rgba(51, 41, 28, 0.05);
  --radius: 18px;

  /**
   * Physiology-aligned brand accents (StressBalance)
   * Stress / Sympathikus → Rot
   * Balance / Erholung / Vagus → Blau
   * (Puls stays secondary; not green = “medical ok”)
   */
  --stress: #d64545;
  --stress-soft: #fde8e8;
  --vagus: #2f5fbf;
  --vagus-soft: #e8eefb;
  --navy-2: var(--vagus);
  --pulse: #8b3db8;
  --pulse-soft: #f3e8fa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  /* Family surface + type come from sb-family.css */
  min-height: 100dvh;
}

a {
  color: var(--navy-2);
}

.wrap {
  max-width: var(--maxw, 1180px);
  margin: 0 auto;
  width: 100%;
}

/* Language switcher */
.lang-switch {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  min-height: 44px;
}

.lang-btn .flag {
  font-size: 1.15rem;
  line-height: 1;
}

.lang-btn .code {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 168px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 40;
  max-height: 70vh;
  overflow: auto;
}

.lang-switch.open .lang-menu {
  display: block;
}

.lang-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--ink);
}

.lang-option:hover,
.lang-option[aria-selected="true"] {
  background: #eef3fb;
}

.lang-option .code {
  font-weight: 800;
  color: var(--navy);
  min-width: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.98rem;
  min-height: 44px;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: #162d4a;
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: #c9d5e5;
}

.btn-gold {
  background: linear-gradient(180deg, #d4b44a, var(--gold));
  color: #1a2b3c;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* Hero */
.hero {
  background: var(--card);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
  border: 1px solid #e4ebf4;
  margin-bottom: 22px;
}

.kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-2);
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  color: var(--navy);
  line-height: 1.18;
}

.lead {
  margin: 0;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.55;
}

/* Sections */
.section {
  margin-top: 0;
}

.section h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.35rem;
}

.section > .sub {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 42rem;
}

.color-legend {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.color-legend::before {
  content: "";
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  background: linear-gradient(90deg, var(--stress) 50%, var(--vagus) 50%);
  vertical-align: middle;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

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

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(20, 40, 70, 0.05);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Guided intervention: Atem · Rosa · Musik */
#intervention .sub {
  max-width: 52rem;
  margin-bottom: 16px;
}

.intv-card {
  border-top: 3px solid var(--vagus);
  background:
    linear-gradient(180deg, var(--vagus-soft) 0%, var(--card) 42%);
}

.intv-card:nth-child(2) {
  border-top-color: var(--gold);
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.12) 0%, var(--card) 42%);
}

.intv-card:nth-child(3) {
  border-top-color: var(--pulse);
  background:
    linear-gradient(180deg, var(--pulse-soft) 0%, var(--card) 42%);
}

.intv-icon {
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 8px;
}

/* HRV standard callout */
.hrv-std-card {
  border-left: 4px solid var(--vagus);
  background:
    linear-gradient(90deg, var(--vagus-soft) 0%, var(--card) 55%);
  max-width: 52rem;
}

.hrv-std-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--navy);
}

.hrv-std-card p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Contact form */
.contact-card {
  max-width: 40rem;
}

.contact-form .field {
  margin-bottom: 12px;
}

.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.contact-form .check-row input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.captcha-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.captcha-inline input {
  max-width: 8rem;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.88rem;
}

/* Honeypot — off-screen for bots, invisible for humans */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  min-height: 1.4em;
  margin: 10px 0 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-status.ok {
  color: #2a7a45;
}

.contact-status.err {
  color: var(--stress);
}

/* Legal modal */
.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 30, 50, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px 40px;
  overflow-y: auto;
}

.legal-overlay[hidden] {
  display: none !important;
}

.legal-dialog {
  width: min(720px, 100%);
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 12px auto;
}

.legal-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--card);
  border-radius: 16px 16px 0 0;
}

.legal-dialog-title {
  font-weight: 800;
  color: var(--navy);
}

.legal-content {
  padding: 8px 18px 24px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-content h2 {
  color: var(--navy);
  font-size: 1.25rem;
  margin: 12px 0 10px;
}

.legal-content h3 {
  color: var(--navy);
  font-size: 1.02rem;
  margin: 16px 0 6px;
}

.legal-content ul {
  padding-left: 1.2em;
}

.legal-content .legal-lead {
  font-size: 0.98rem;
}

.legal-content .legal-ver,
.legal-content .legal-muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .links {
  flex-wrap: wrap;
  gap: 10px 14px;
}

.site-footer .links a {
  cursor: pointer;
}

.metric {
  border-top: 4px solid var(--line);
}

.metric .name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.metric.pulse {
  border-top-color: var(--pulse);
  background: linear-gradient(180deg, var(--pulse-soft) 0%, var(--card) 42%);
}
.metric.pulse .name {
  color: var(--pulse);
}

.metric.stress {
  border-top-color: var(--stress);
  background: linear-gradient(180deg, var(--stress-soft) 0%, var(--card) 42%);
}
.metric.stress .name {
  color: var(--stress);
}

.metric.balance {
  border-top-color: var(--vagus);
  background: linear-gradient(180deg, var(--vagus-soft) 0%, var(--card) 42%);
}
.metric.balance .name {
  color: var(--vagus);
}

.steps {
  counter-reset: step;
}

.steps .card h3::before {
  counter-increment: step;
}

/* Empfohlene Brustgurte */
.straps-req {
  font-weight: 600;
  color: var(--navy);
}

.strap-primary {
  border: 1px solid rgba(47, 95, 191, 0.35);
  background:
    linear-gradient(180deg, var(--vagus-soft) 0%, var(--card) 48%);
  margin-bottom: 18px;
  padding: 18px 18px 20px;
}

.strap-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--vagus));
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.strap-primary h3 {
  margin: 4px 0 8px;
  font-size: 1.2rem;
  color: var(--navy);
}

.strap-primary .btn {
  margin-top: 8px;
}

.straps-alt-heading {
  margin: 8px 0 12px;
  font-size: 1.05rem;
  color: var(--navy);
}

.strap-alt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strap-alt .btn {
  margin-top: auto;
  align-self: flex-start;
}

.straps-note {
  margin-top: 14px;
}

.straps-shop-hint {
  margin-top: 6px;
  color: var(--muted);
}

.tiny {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 8px 0 0;
}

.tiny a {
  font-weight: 700;
  text-decoration: none;
}

.tiny a:hover {
  text-decoration: underline;
}

.price-card {
  position: relative;
  overflow: hidden;
}

.price-card .note {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #8a6a10;
  background: #f8efd0;
  padding: 4px 8px;
  border-radius: 999px;
}

.price-year {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.banner {
  /* Vagus/balance blue dominant; soft stress accent edge */
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--vagus) 58%, #4a8ab8 100%);
  color: #fff;
  border-radius: 18px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--stress);
}

.banner h2 {
  color: #fff;
  margin: 0 0 8px;
}

.banner p {
  margin: 0;
  opacity: 0.92;
  max-width: 40rem;
}

.banner .btn-row {
  margin-top: 16px;
}

.banner .btn-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.disclaimer {
  border-left: 4px solid var(--gold);
  padding: 12px 14px;
  background: #fffdf6;
  border-radius: 0 12px 12px 0;
}

.disclaimer h2 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.disclaimer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

footer.site-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

footer.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 10px;
}

footer.site-footer a {
  font-weight: 600;
  text-decoration: none;
}

footer.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .header-actions .btn-secondary.nav-course {
    display: none;
  }
}
