/* ============================================================
   Hannes Everyday Health — Design System
   ============================================================ */
:root {
  /* Color — warm white, deep forest, fresh green accent */
  --bg:          oklch(0.985 0.008 135);
  --surface:     oklch(1 0 0);
  --surface-2:   oklch(0.965 0.014 140);
  --ink:         oklch(0.23 0.028 160);
  --ink-soft:    oklch(0.44 0.022 160);
  --ink-faint:   oklch(0.58 0.018 160);
  --line:        oklch(0.9 0.014 150);
  --line-soft:   oklch(0.94 0.01 150);

  --green:       oklch(0.62 0.145 152);
  --green-700:   oklch(0.52 0.13 153);
  --green-800:   oklch(0.43 0.1 155);
  --green-50:    oklch(0.95 0.03 150);
  --green-100:   oklch(0.915 0.045 150);
  --forest:      oklch(0.29 0.05 162);
  --forest-900:  oklch(0.22 0.04 164);
  --lime:        oklch(0.88 0.16 126);

  /* Type */
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;

  /* Radius + shadow */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px oklch(0.3 0.04 160 / 0.06), 0 2px 6px oklch(0.3 0.04 160 / 0.05);
  --shadow:    0 4px 14px oklch(0.3 0.04 160 / 0.08), 0 18px 40px oklch(0.3 0.04 160 / 0.07);
  --shadow-lg: 0 10px 30px oklch(0.3 0.04 160 / 0.12), 0 30px 70px oklch(0.3 0.04 160 / 0.1);

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lime); color: var(--forest-900); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
p { text-wrap: pretty; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--green);
}
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 54px); margin: 18px 0 0; }
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 20px); }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg-btn); color: white;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 18px oklch(0.62 0.145 152 / 0.32);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--green-700); box-shadow: 0 10px 26px oklch(0.62 0.145 152 / 0.4); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn.ghost {
  background: transparent; color: var(--ink); box-shadow: none;
  border: 1.5px solid var(--line);
}
.btn.ghost:hover { background: var(--surface-2); border-color: var(--ink-faint); transform: translateY(-2px); }
.btn.light { background: white; color: var(--forest); box-shadow: 0 8px 22px oklch(0 0 0 / 0.18); }
.btn.light:hover { background: var(--green-50); }
.btn.lg { padding: 18px 32px; font-size: 17px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.985 0.008 135 / 0.8);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: linear-gradient(145deg, oklch(0.72 0.17 148) 0%, oklch(0.56 0.15 153) 48%, oklch(0.43 0.1 160) 100%);
  display: grid; place-items: center; color: white;
  box-shadow: 0 3px 8px oklch(0.5 0.13 153 / 0.35), inset 0 1px 0 oklch(1 0 0 / 0.35), inset 0 -3px 7px oklch(0.3 0.06 162 / 0.4);
  position: relative; overflow: hidden;
}
.brand .mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 28% 18%, oklch(1 0 0 / 0.4), transparent 70%);
  pointer-events: none;
}
.brand .mark svg { width: 21px; height: 21px; position: relative; z-index: 1; filter: drop-shadow(0 1px 1px oklch(0.3 0.06 162 / 0.25)); }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-faint); margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-weight: 600; font-size: 15.5px; color: var(--ink-soft); transition: color .15s ease; }
.nav-links a[data-mobileonly] { display: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
@media (min-width: 1025px) { .header .nav-cta { margin-right: -16px; } }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); }
.hero h1 .hl { position: relative; color: var(--green-700); white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.32em;
  background: var(--lime); z-index: -1; border-radius: 4px;
}
.hero .lead { margin-top: 26px; font-size: clamp(18px, 1.9vw, 22px); color: var(--ink-soft); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14.5px; color: var(--ink-faint); }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-50); flex: none; }

.hero-media { position: relative; }
.hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: var(--surface-2); }
.badge-cred {
  position: absolute; left: -22px; bottom: -26px;
  background: var(--surface); border-radius: var(--r); padding: 16px 20px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; max-width: 260px;
  border: 1px solid var(--line-soft);
}
.badge-cred .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; flex: none; }
.badge-cred .ic svg { width: 22px; height: 22px; }
.badge-cred b { font-family: var(--font-display); font-size: 15px; display: block; line-height: 1.2; }
.badge-cred span { font-size: 13px; color: var(--ink-faint); }
.badge-float {
  position: absolute; right: -16px; top: 30px;
  background: var(--forest); color: white; border-radius: var(--r); padding: 14px 18px;
  box-shadow: var(--shadow); text-align: center;
}
.badge-float b { font-family: var(--font-display); font-size: 26px; display: block; line-height: 1; }
.badge-float span { font-size: 12px; opacity: 0.82; letter-spacing: 0.02em; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 30px; }
.trust-item { text-align: center; }
.trust-item b { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); color: var(--green-700); display: block; line-height: 1; }
.trust-item span { font-size: 14px; color: var(--ink-soft); display: block; margin-top: 8px; }

/* ---------- For whom (cards) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 32px 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.card .ic-circle { width: 54px; height: 54px; border-radius: 14px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; margin-bottom: 22px; }
.card .ic-circle svg { width: 27px; height: 27px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 16.5px; }

/* ---------- Program (dark section) ---------- */
.dark { background: var(--forest); color: oklch(0.95 0.012 150); position: relative; overflow: hidden; }
.dark h2, .dark h3 { color: white; }
.dark .eyebrow { color: var(--lime); }
.dark .eyebrow::before { background: var(--lime); }
.dark .section-head p { color: oklch(0.88 0.02 150); }
.glow { position: absolute; width: 620px; height: 620px; border-radius: 50%; filter: blur(90px); opacity: 0.4; pointer-events: none; }
.glow.a { background: var(--green); top: -260px; right: -160px; }
.glow.b { background: oklch(0.5 0.1 180); bottom: -300px; left: -180px; opacity: 0.25; }

.prog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; position: relative; z-index: 1; }
.prog-list { display: grid; gap: 14px; }
.prog-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: oklch(0.34 0.05 162); border: 1px solid oklch(0.42 0.05 162);
  border-radius: var(--r); padding: 20px 22px;
}
.prog-item .check { width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--forest-900); display: grid; place-items: center; flex: none; margin-top: 1px; }
.prog-item .check svg { width: 16px; height: 16px; }
.prog-item b { font-family: var(--font-display); color: white; font-size: 17.5px; display: block; margin-bottom: 3px; }
.prog-item span { font-size: 15px; color: oklch(0.85 0.02 150); }

.prog-card {
  background: white; color: var(--ink); border-radius: var(--r-lg); padding: 36px;
  box-shadow: var(--shadow-lg); position: sticky; top: 100px;
}
.prog-card .pc-tag { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-700); background: var(--green-50); padding: 6px 13px; border-radius: 999px; }
.prog-card h3 { font-size: 28px; margin: 18px 0 6px; }
.prog-card .pc-sub { color: var(--ink-soft); font-size: 16px; margin-bottom: 22px; }
.prog-card .pc-feats { display: grid; gap: 12px; margin: 0 0 26px; list-style: none; }
.prog-card .pc-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.prog-card .pc-feats svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
.prog-card .btn { width: 100%; }
.prog-card .pc-foot { text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--ink-faint); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--green-700);
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--green-100);
  display: grid; place-items: center; background: var(--green-50); margin-bottom: 20px;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 16.5px; }
.step .connector { position: absolute; top: 33px; left: 60px; right: -22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }
.step:last-child .connector { display: none; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.about-media { position: relative; }
.about-photo { width: 100%; height: clamp(440px, 46vw, 580px); aspect-ratio: auto; object-fit: cover; object-position: 60% 28%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: var(--surface-2); }
.about-photo-sub {
  position: absolute; right: -26px; bottom: -30px; width: 56%; height: 40%;
  object-fit: cover; object-position: 60% 35%; border-radius: var(--r);
  border: 6px solid var(--surface-2); box-shadow: var(--shadow-lg); background: var(--surface);
}
.about .about-cta-line { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2vw, 22px); color: var(--forest); letter-spacing: -0.01em; text-wrap: balance; }
.about h2 { font-size: clamp(30px, 4vw, 48px); margin: 16px 0 0; }
.about .lead { margin-top: 22px; font-size: 19px; color: var(--ink); }
.about p + p { margin-top: 16px; color: var(--ink-soft); font-size: 17px; }
.about .quals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.qual-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.qual-chip svg { width: 16px; height: 16px; color: var(--green); }
.sig { margin-top: 30px; font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--forest); letter-spacing: -0.01em; }

/* ---------- Credentials / Lizenzen (echte Urkunden) ---------- */
.cert-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-doc {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column; text-align: left;
  padding: 0; font: inherit; color: inherit; position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cert-doc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--green-100); }
.cert-doc.is-featured { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-100); }
/* paper-style document preview */
.cert-thumb {
  position: relative; aspect-ratio: 1 / 1.05; overflow: hidden; border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.cert-ribbon {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 3;
  font-family: var(--font-display); font-weight: 700; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--green); color: white; padding: 6px 14px; border-radius: 0 0 8px 8px; box-shadow: var(--shadow-sm);
}
.cert-thumb .hover-open {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
  background: oklch(0.29 0.05 162 / 0.9); color: white; opacity: 0; transition: opacity .2s ease;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.cert-thumb .hover-open span { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border: 1.5px solid oklch(1 0 0 / 0.5); border-radius: 999px; }
.cert-thumb .hover-open svg { width: 18px; height: 18px; }
.cert-doc:hover .hover-open { opacity: 1; }
.cert-cap { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.cert-cap h4 { font-family: var(--font-display); font-size: 17px; line-height: 1.2; color: var(--ink); }
.cert-cap .cc-issuer { font-size: 13.5px; color: var(--ink-faint); }
.cert-cap .cc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.cert-cap .cc-tag { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }
.cert-cap .cc-tag.grade { background: var(--green-50); color: var(--green-800); border-color: var(--green-100); }
.cred-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; font-size: 14.5px; color: var(--ink-soft); text-align: center; text-wrap: balance; }
.cred-note svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  display: flex; flex-direction: column; overflow: hidden;
}
.testi-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
/* before/after transformation */
.transform { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--line); }
.transform .ba { position: relative; }
.transform .ba-slot { width: 100%; height: 200px; }
.transform .ba-label {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; color: white; pointer-events: none;
}
.transform .ba-label.before { background: oklch(0.45 0.03 160 / 0.82); }
.transform .ba-label.after { background: var(--green-700); }
.testi .stars { display: flex; gap: 3px; color: var(--green); margin-bottom: 16px; }
.testi .stars svg { width: 18px; height: 18px; }
.testi blockquote { font-size: 17px; color: var(--ink); line-height: 1.55; flex: 1; }
.testi .who { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.testi .av { width: 46px; height: 46px; border-radius: 50%; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 17px; flex: none; }
.testi .who b { font-family: var(--font-display); font-size: 15.5px; display: block; }
.testi .who span { font-size: 13.5px; color: var(--ink-faint); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2vw, 21px); color: var(--ink);
}
.faq-q .pm { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; transition: background .2s, border-color .2s, transform .25s ease; color: var(--green-700); }
.faq-q .pm svg { width: 17px; height: 17px; transition: transform .25s ease; }
.faq-item.open .faq-q .pm { background: var(--green); border-color: var(--green); color: white; }
.faq-item.open .faq-q .pm svg { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 4px 28px; color: var(--ink-soft); font-size: 17px; max-width: 660px; }

/* ---------- Final CTA ---------- */
.cta-final { background: var(--forest); color: white; position: relative; overflow: hidden; }
.cta-final h2 { color: white; font-size: clamp(34px, 5vw, 60px); }
.cta-box { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; }
.cta-box p { margin: 22px auto 0; font-size: clamp(18px, 2vw, 21px); color: oklch(0.9 0.02 150); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 38px; }
.cta-sub { margin-top: 24px; font-size: 14.5px; color: oklch(0.82 0.02 150); display: inline-flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.cta-sub span { display: inline-flex; align-items: center; gap: 7px; }
.cta-sub svg { width: 16px; height: 16px; color: var(--lime); }

/* ---------- Footer ---------- */
.footer { background: var(--forest-900); color: oklch(0.82 0.02 150); padding-block: 56px 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid oklch(0.35 0.04 162); }
.footer .brand { color: white; }
.footer .brand small { color: oklch(0.7 0.02 150); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { color: white; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; font-size: 15px; color: oklch(0.78 0.02 150); margin-bottom: 9px; transition: color .15s ease; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: 13.5px; color: oklch(0.65 0.02 150); }
.footer-bottom a { color: oklch(0.78 0.02 150); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin: 0 auto; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin: 0 auto; }
  .about-photo { width: 100%; height: clamp(420px, 90vw, 520px); }
  .about-photo-sub { right: -14px; bottom: -22px; width: 50%; }
  .prog-grid { grid-template-columns: 1fr; }
  .prog-card { position: static; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
}
@media (max-width: 980px) {
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav-cta .btn:not(.menu-btn) { display: none; }
  /* mobile menu */
  .nav-links.open {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px var(--pad) 24px;
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .nav-links.open a[data-mobileonly] { display: block; }
  .nav-links.open .btn { margin-top: 14px; border-bottom: 0; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .cards-3, .steps, .testi-grid, .cred-grid, .cert-gallery { grid-template-columns: 1fr; }
  .step .connector { display: none; }
  .badge-cred { left: 8px; }
  .badge-float { right: 8px; }
  .footer-top { flex-direction: column; }
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-hero { background: var(--surface-2); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 7vw, 88px); }
.legal-hero .eyebrow { margin-bottom: 16px; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 56px); }
.legal-hero p { margin-top: 16px; color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 19px); max-width: 620px; }
.legal { padding-block: clamp(48px, 7vw, 90px); }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-wrap h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 44px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-wrap h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-wrap h3 { font-size: 18px; margin: 26px 0 8px; color: var(--ink); }
.legal-wrap p, .legal-wrap li { color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; }
.legal-wrap p { margin-bottom: 14px; }
.legal-wrap a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.legal-wrap a:hover { color: var(--green-800); }
.legal-wrap ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.legal-wrap strong { color: var(--ink); }
.legal-block { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px 26px; margin-bottom: 14px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-fill { background: var(--lime); color: var(--forest-900); padding: 1px 7px; border-radius: 5px; font-weight: 600; font-family: var(--font-display); font-size: 0.92em; }
.legal-note { display: flex; gap: 12px; align-items: flex-start; background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--r); padding: 18px 20px; margin: 30px 0; }
.legal-note svg { width: 20px; height: 20px; color: var(--green-700); flex: none; margin-top: 2px; }
.legal-note p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--green-700); margin-top: 40px; }
.back-link svg { width: 17px; height: 17px; }
.back-link:hover { color: var(--green-800); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: flex; justify-content: center; padding: clamp(12px, 2.5vw, 22px); pointer-events: none; }
.cookie-inner {
  pointer-events: auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); max-width: 720px; width: 100%;
  padding: 20px 24px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  animation: cookie-up .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes cookie-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie-text { flex: 1; min-width: 250px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.cookie-text b { display: block; font-family: var(--font-display); font-size: 16px; color: var(--ink); margin-bottom: 5px; }
.cookie-text a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions .btn { padding: 12px 22px; font-size: 15px; }
.cookie-link { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.cookie-link:hover { color: white; }
@media (max-width: 560px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}
