/* ============================================================
   Hygofant — E. Röthlisberger GmbH
   Swiss B2B hygiene — homepage (v2: violet brand, calmer & airier)
   ============================================================ */

:root {
  /* base */
  --bg: #ffffff;
  --paper: #f6f4fb;          /* very light violet surface */
  --paper-2: #efeaf8;
  --line: #e9e5f2;
  --line-strong: #d9d3e8;

  /* dark surfaces — deep violet-anthracite */
  --ink: #201a2e;
  --ink-2: #2c2440;
  --on-ink: #efecf6;
  --on-ink-muted: #b1aac4;

  /* text */
  --text: #1f2128;
  --muted: #5d5866;
  --muted-2: #837e90;

  /* accent — brand violet */
  --accent: #9d3fa0;
  --accent-deep: #7d3080;     /* hover / links on white */
  --accent-soft: #cc79cf;     /* accents on dark */
  --accent-tint: #f1eafa;     /* very light violet fill */
  --on-accent: #ffffff;

  /* type */
  --font-body: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --font-head: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --head-spacing: -0.022em;
  --head-weight: 700;

  /* metrics — airier */
  --container: 1180px;
  --radius: 8px;
  --radius-lg: 14px;
  --section-y: 132px;
  --header-h: 78px;

  --shadow-sm: 0 1px 2px rgba(32, 26, 46, 0.05);
  --shadow-md: 0 14px 40px -18px rgba(45, 36, 64, 0.22);
  --shadow-lg: 0 30px 70px -28px rgba(45, 36, 64, 0.32);
}

/* ---- accent shade variants (tweakable) ---- */
:root[data-accent="deep"] {
  --accent: #553080;
  --accent-deep: #3f2463;
  --accent-soft: #8f6cc4;
  --accent-tint: #ece5f6;
}
:root[data-accent="bright"] {
  --accent: #7c4dd0;
  --accent-deep: #6238b0;
  --accent-soft: #a888e0;
  --accent-tint: #f2ebfc;
}

/* ---- dark-surface tone variant (tweakable) ---- */
:root[data-tone="anthracite"] {
  --ink: #1c1f25;
  --ink-2: #282c34;
  --on-ink-muted: #a7adb6;
}

/* ---- heading style variant (tweakable) ---- */
:root[data-headings="serif"] {
  --font-head: Georgia, "Times New Roman", Cambria, serif;
  --head-spacing: -0.01em;
  --head-weight: 600;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-spacing);
  line-height: 1.1;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.section { padding: var(--section-y) 0; }
.section--paper { background: var(--paper); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 680px; margin-bottom: 72px; }
.section-head h2 { font-size: clamp(31px, 4vw, 46px); }
.section-head p { margin-top: 20px; font-size: 19px; color: var(--muted); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  min-height: 52px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }

.btn--on-dark { background: transparent; color: var(--on-ink); border-color: rgba(255,255,255,.26); }
.btn--on-dark:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }

.btn--block { width: 100%; }

.btn--soft { background: var(--accent-tint); color: var(--accent-deep); }
.btn--soft:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-deep);
  font-size: 15px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1; margin-right: auto; }
.brand__logo { height: 40px; width: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__mark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.brand__mark b { color: var(--accent); font-weight: 700; }
.brand__sub {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; justify-content: flex-end; }
.nav a:last-of-type { margin-right: 28px; }
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
  font-weight: 600;
  padding: 9px 10px;
  border-radius: var(--radius);
  position: relative;
  transition: color .15s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover { color: var(--accent-deep); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active { color: var(--accent-deep); }
.nav a.is-active::after { transform: scaleX(1); }
.nav__shop { display: none; }

.header__cta { display: flex; align-items: center; gap: 12px; }
.header__cta .btn { min-height: 46px; padding: 11px 22px; }
.cta-short { display: none; }
@media (max-width: 520px) {
  .header__cta .btn .cta-full { display: none; }
  .header__cta .btn .cta-short { display: inline; }
  .header__cta .btn { padding: 11px 16px; }
  .brand__sub { display: none; }
}

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle span::before { transform: translateY(-7px); }
.menu-toggle span::after { transform: translateY(5px); }
body.nav-open .menu-toggle span { background: transparent; }
body.nav-open .menu-toggle span::before { transform: rotate(45deg); }
body.nav-open .menu-toggle span::after { transform: rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 80px 0 104px; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
.hero__title { font-size: clamp(40px, 5.4vw, 62px); line-height: 1.03; }
.hero__lead {
  margin-top: 26px;
  font-size: 21px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
}
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust {
  margin-top: 52px;
  padding: 30px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  list-style: none;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.trust-item svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

.hero__media .ph { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
.hero__media { overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); }
.hero__video { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; display: block; border-radius: var(--radius-lg); background: var(--ink); }

/* Hero variant B: full-bleed image with overlay copy */
:root[data-hero="overlay"] .hero { padding: 0; }
:root[data-hero="overlay"] .hero__grid { display: block; position: relative; }
:root[data-hero="overlay"] .hero__media { margin: 0 calc(50% - 50vw); }
:root[data-hero="overlay"] .hero__media .ph { aspect-ratio: auto; height: 600px; border-radius: 0; }
:root[data-hero="overlay"] .hero__copy {
  position: absolute; top: 50%; left: 40px; transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  padding: 56px; border-radius: var(--radius-lg);
  max-width: 620px; box-shadow: var(--shadow-lg);
}

/* ============================================================
   Image placeholders
   ============================================================ */
.ph {
  position: relative;
  width: 100%;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, rgba(45,36,64,0.05) 0 2px, transparent 2px 12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ph__tag {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: 0.02em; color: var(--muted-2);
  background: rgba(255,255,255,0.85); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 12px; text-align: center; max-width: 80%;
}
.ph__tag strong { display: block; font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--accent-deep); letter-spacing: 0; }
.ph__tag span { display: block; margin-top: 4px; opacity: 0.85; }

/* ============================================================
   Services (Leistungen) — open, borderless, airy
   ============================================================ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 40px; }
.service { display: flex; flex-direction: column; align-items: flex-start; padding: 20px; margin: -20px; border-radius: var(--radius-lg); transition: background-color .2s ease, transform .2s ease; }
.service:hover { background: var(--paper); transform: translateY(-3px); }
.service__ic {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.service__ic svg { width: 25px; height: 25px; }
.service h3 { font-size: 20px; margin-bottom: 12px; }
.service p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.service .link-arrow { margin-top: auto; padding-top: 18px; }

/* ============================================================
   Beratung — calm light statement section
   ============================================================ */
.beratung { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.beratung__head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.beratung__body p { font-size: 19px; color: var(--muted); margin-bottom: 28px; }

.beratung-asym { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; align-items: center; }
.beratung-asym__media { border-radius: var(--radius-lg); overflow: hidden; }
.beratung-asym__media img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.beratung-asym--rev { grid-template-columns: 1fr 1.3fr; }
.beratung-asym__copy h2 { font-size: clamp(26px, 3vw, 36px); margin: 14px 0 18px; }
.checks--single { grid-template-columns: 1fr; }
.beratung-asym__copy p { font-size: 17px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }

/* ============================================================
   Products — image card (consistent format) + soft button
   ============================================================ */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-products--3 { grid-template-columns: repeat(3, 1fr); }
.product {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.product:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product__img { position: relative; }
.product__img .ph { aspect-ratio: 4 / 3; border-radius: 0; border: none; border-bottom: 1px solid var(--line); }
.product__code {
  position: absolute; top: 14px; left: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--on-ink); background: rgba(32,26,46,0.92);
  padding: 6px 11px; border-radius: 999px;
}
.product__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 19px; margin-bottom: 9px; }
.product p { font-size: 15px; color: var(--muted); line-height: 1.55; flex: 1; }
.product__btn { margin-top: 22px; align-self: flex-start; }

.produkte__more {
  margin-top: 44px;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}
.produkte__more a { color: var(--accent-deep); font-weight: 600; }
.produkte__more a:hover { text-decoration: underline; }

/* tinted card variant (tweakable) */
:root[data-cards="tinted"] .product { background: var(--paper); border-color: transparent; }
:root[data-cards="tinted"] .product:hover { background: var(--bg); }
:root[data-cards="tinted"] .section--paper .product { background: var(--bg); border-color: var(--line); }

/* ============================================================
   Advantages (Warum Hygofant)
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 56px; }
.adv { display: flex; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.adv__num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 3px;
}
.adv h3 { font-size: 18px; margin-bottom: 7px; }
.adv p { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ============================================================
   About
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 72px; align-items: center; }
.about__media .ph { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team-card { margin: 0; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.team-card img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(0.15) contrast(1.03); }
.team-card--empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 13px; color: var(--muted); background: var(--paper); border-style: dashed; }
.about__copy p { margin-top: 22px; font-size: 18px; color: var(--muted); }
.about__copy .link-arrow { margin-top: 28px; font-size: 16px; }
.team-row { display: flex; justify-content: center; gap: 56px; margin-top: 56px; flex-wrap: wrap; }
.team-row--tiered { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.team-row__tier { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.team-member { margin: 0; width: 340px; max-width: 100%; text-align: center; }
.team-member__photo { aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.team-member__photo.ph { display: flex; }
.team-member__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-member figcaption { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.team-member__name { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--text); letter-spacing: var(--head-spacing); }
.team-member__role { font-size: 15px; color: var(--muted); }
.team-member__mail { font-size: 14px; margin-top: 2px; }
.team-more { max-width: 720px; margin: 40px auto 0; text-align: center; font-size: 17px; color: var(--muted); }
.team-more .link-arrow { display: inline-flex; margin-left: 6px; }

/* ============================================================
   Contact
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact__info { background: var(--ink); color: var(--on-ink); border-radius: var(--radius-lg); padding: 48px; }
.contact__info h2 { color: var(--on-ink); font-size: 26px; margin-bottom: 26px; }
.addr { font-style: normal; font-size: 18px; line-height: 1.75; color: var(--on-ink); }
.contact__info .row { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.contact__info .row svg { width: 20px; height: 20px; color: var(--accent-soft); flex: none; }
.contact__info a.tel { color: var(--on-ink); font-size: 20px; font-weight: 600; }
.contact__info .actions { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.contact__map { margin-top: 32px; aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden; display: block; cursor: pointer; }
.contact__map .ph { aspect-ratio: 16 / 7; border-radius: var(--radius); background-color: var(--ink-2); border-color: rgba(255,255,255,.12); }
.contact__map .ph__tag { background: rgba(255,255,255,0.1); color: var(--on-ink-muted); border-color: rgba(255,255,255,0.16); }

.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px; }
.form h3 { font-size: 23px; margin-bottom: 6px; }
.form > .form__fields > p.hint { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.field { margin-bottom: 20px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 0; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px; color: var(--text);
  padding: 13px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field input.invalid, .field textarea.invalid { border-color: #c0392b; }
.field .err { display: none; font-size: 13px; color: #c0392b; margin-top: 6px; }
.field input.invalid ~ .err, .field textarea.invalid ~ .err { display: block; }
.form__submit { margin-top: 26px; }
.form__note { font-size: 13px; color: var(--muted-2); margin-top: 16px; }
.form__success {
  display: none;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  border-radius: var(--radius);
  padding: 18px 20px; font-size: 15px; line-height: 1.55;
}
.form.is-sent .form__success { display: block; }
.form.is-sent .form__fields { display: none; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: var(--on-ink-muted); padding: 84px 0 44px; }
.footer__top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .brand__mark { color: var(--on-ink); }
.footer .brand__mark b { color: var(--accent-soft); }
.footer__about { margin-top: 18px; font-size: 15px; max-width: 36ch; line-height: 1.65; }
.footer h4 { font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--on-ink); margin-bottom: 20px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.footer ul a, .footer ul li { font-size: 15px; color: var(--on-ink-muted); transition: color .15s ease; }
.footer ul a:hover { color: var(--on-ink); }
.footer__bottom { padding-top: 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; }
.footer__bottom a:hover { color: var(--on-ink); }

/* ============================================================
   Entrance — subtle, robust (content always visible)
   ============================================================ */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  html.js-anim .reveal:not(.in) { opacity: 0; transform: translateY(36px) scale(0.98); }
  html.js-anim .reveal { transition: opacity .8s cubic-bezier(.16,.8,.3,1), transform .8s cubic-bezier(.16,.8,.3,1); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 44px 40px; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .grid-products--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  :root { --section-y: 84px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__cta { margin-left: auto; gap: 10px; }
  .header__cta .btn { min-height: 46px; padding: 11px 18px; font-size: 15px; }

  .nav.is-mobile {
    display: flex;
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 12px 24px 28px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  body.nav-open .nav.is-mobile { transform: none; opacity: 1; pointer-events: auto; }
  .nav.is-mobile a { padding: 16px 6px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav.is-mobile a::after { display: none; }
  .nav.is-mobile .btn { display: inline-flex; margin-top: 20px; }

  .hero { padding: 48px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__media { order: -1; }
  .hero__media .ph { aspect-ratio: auto; height: 320px; }
  .hero__video { aspect-ratio: auto; height: 320px; }
  .beratung { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .beratung-asym { grid-template-columns: 1fr; gap: 28px; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { order: -1; }
  .contact__grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  :root[data-hero="overlay"] .hero__copy { position: static; transform: none; max-width: none; border-radius: 0; padding: 48px 40px; }
  :root[data-hero="overlay"] .hero__media { margin: 0; }
  :root[data-hero="overlay"] .hero__media .ph { height: 300px; }
}
@media (max-width: 620px) {
  .container { padding: 0 22px; }
  :root { --section-y: 72px; }
  body { font-size: 16px; }
  .grid-4, .grid-products, .grid-3 { grid-template-columns: 1fr; gap: 36px; }
  .grid-products--3 { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 48px; }
  .field.row2 { grid-template-columns: 1fr; gap: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .contact__info, .form { padding: 30px 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   SUBPAGES — shared components
   ============================================================ */

/* footer legal links spacing */
.footer__legal { display: flex; gap: 22px; }

/* ---- Breadcrumbs ---- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted-2); margin-bottom: 22px; }
.crumbs a { color: var(--muted); transition: color .15s ease; }
.crumbs a:hover { color: var(--accent-deep); }
.crumbs span.sep { opacity: 0.5; }
.crumbs span.here { color: var(--text); font-weight: 500; }

/* ---- Page hero (subpage banner) ---- */
.pagehero { background: var(--paper); padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.pagehero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.pagehero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.05; }
.pagehero__lead { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.pagehero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.pagehero__media .ph { aspect-ratio: 5 / 4; border-radius: var(--radius-lg); }
.pagehero--simple { text-align: left; }
.pagehero--simple .pagehero__lead { max-width: 60ch; }

/* ---- Prose (text content) ---- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: clamp(24px, 2.8vw, 32px); margin-top: 8px; }
.prose h3 { font-size: 20px; margin-top: 14px; }
.prose p { font-size: 17px; color: var(--muted); line-height: 1.7; }
.prose a { color: var(--accent-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.prose ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.prose ul li { position: relative; padding-left: 30px; font-size: 17px; color: var(--muted); line-height: 1.6; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 16px; height: 16px; border-radius: 5px;
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

/* ---- Check list (advantages / use cases) ---- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 36px; }
.checks li { position: relative; padding-left: 34px; font-size: 16px; line-height: 1.5; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23543080' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}

/* ---- Feature rows (alternating image/text) ---- */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.frow + .frow { margin-top: 72px; }
.frow__media .ph { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.frow__copy h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 16px; }
.frow__copy p { font-size: 17px; color: var(--muted); line-height: 1.65; }
.frow__copy .link-arrow { margin-top: 20px; }
.frow--rev .frow__media { order: 2; }

/* ---- Category mini grid (icon + label + link) ---- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat {
  display: flex; flex-direction: column; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 28px; background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cat:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat__ic { width: 46px; height: 46px; border-radius: 11px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.cat__ic svg { width: 23px; height: 23px; }
.cat h3 { font-size: 18px; margin-bottom: 8px; }
.cat p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.cat .link-arrow { margin-top: auto; padding-top: 16px; }

/* ---- FAQ (native accordion) ---- */
.faq { max-width: 820px; display: flex; flex-direction: column; gap: 0; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; font-family: var(--font-head); font-weight: 600;
  font-size: 18px; color: var(--text); letter-spacing: var(--head-spacing);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 22px; height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23543080' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; background-position: center;
  transition: transform .22s ease;
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item .faq__a { padding: 0 4px 26px; font-size: 16px; color: var(--muted); line-height: 1.65; max-width: 70ch; }

/* ---- Final CTA band ---- */
.cta-final { background: var(--accent-tint); }
.cta-final .inner { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-final h2 { font-size: clamp(26px, 3.4vw, 38px); }
.cta-final p { margin-top: 18px; font-size: 18px; color: var(--muted); }
.cta-final .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---- Two-column intro (heading left / text right) ---- */
.split2 { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.split2 h2 { font-size: clamp(26px, 3.2vw, 38px); }

/* ---- Legal pages ---- */
.legal { max-width: 800px; }
.product__actions { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.product__body h3 a { color: inherit; transition: color .15s ease; }
.product__body h3 a:hover { color: var(--accent-deep); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery .ph { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.todo-badge {
  display: inline-block; font-family: ui-monospace, Menlo, monospace; font-size: 12px;
  background: rgba(255,255,255,0.14); color: var(--on-ink-muted);
  border: 1px dashed rgba(255,255,255,0.35); padding: 3px 9px; border-radius: 6px;
}
.legal h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 16px; color: var(--muted); line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal .todo {
  display: inline-block; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px;
  background: #fff3cd; color: #8a6d00; border: 1px solid #f0d98a;
  padding: 2px 8px; border-radius: 5px; margin: 0 2px;
}
.legal address { font-style: normal; line-height: 1.8; color: var(--text); }

@media (max-width: 980px) {
  .pagehero__grid { grid-template-columns: 1fr; gap: 36px; }
  .pagehero__media { order: -1; }
  .pagehero__media .ph { aspect-ratio: 16 / 10; }
  .frow { grid-template-columns: 1fr; gap: 32px; }
  .frow__media { order: -1; }
  .frow--rev .frow__media { order: -1; }
  .cats { grid-template-columns: 1fr 1fr; }
  .split2 { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 620px) {
  .checks { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .pagehero { padding: 40px 0 48px; }
  .cta-final .actions .btn { flex: 1 1 100%; }
}

