/* ==========================================================================
   physio·lab Tegel — Global Stylesheet
   --------------------------------------------------------------------------
   Organized in sections:
   1. Design tokens (colors, type, spacing)
   2. Base + typography
   3. Layout primitives (container, grid, sections)
   4. Components (nav, buttons, cards, stats, FAQ, footer, etc.)
   5. Page-specific helpers
   6. Responsive
   ========================================================================== */

/* ───────────── FONTS ───────────── */
@font-face {
  font-family: "LT Museum";
  src: url("../fonts/LTMuseum-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "LT Museum";
  src: url("../fonts/LTMuseum-LightItalic.ttf") format("truetype");
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "LT Museum";
  src: url("../fonts/LTMuseum-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "LT Museum";
  src: url("../fonts/LTMuseum-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Comum Sans";
  src: url("../fonts/ComumSans-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Comum Sans";
  src: url("../fonts/ComumSans-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* 1. ───────────── DESIGN TOKENS (Brand Guidelines) ───────────── */
:root {
  /* Warm neutral base */
  --c-off-white:  #fff8f2;
  --c-beige:      #f2d9b5;
  --c-beige-soft: #f8ecd9;
  --c-mid-brown:  #5d5448;
  --c-dark-brown: #4c4540;
  --c-black:      #1a1714;
  --c-ink:        #2a241f;

  /* Accents */
  --c-green:      #3d4236;
  --c-red:        #943e31;

  /* Colourful bar (gradient accent) */
  --c-bar-blue:   #166bd8;
  --c-bar-pink:   #f8696d;
  --c-bar-red:    #fa3928;
  --c-bar-orange: #f79d2b;

  /* Semantic */
  --bg:           var(--c-off-white);
  --bg-alt:       #f5ece0;
  --bg-dark:      var(--c-dark-brown);
  --text:         var(--c-ink);
  --text-muted:   #6f6459;
  --text-dim:     #8a7e72;
  --line:         #e5d8c4;
  --line-strong:  #c9b89e;
  --accent:       var(--c-green);

  /* Type */
  --f-display: "LT Museum", "Fraunces", Georgia, serif;
  --f-body:    "Comum Sans", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --maxw:         1280px;
  --maxw-narrow:  960px;
  --pad-x:        clamp(20px, 4vw, 56px);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 22px;
}

/* 2. ───────────── BASE + TYPOGRAPHY ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--c-dark-brown);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 7vw, 104px); }
h2 { font-size: clamp(36px, 5vw, 72px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 400; letter-spacing: 0; line-height: 1.1; }
h4 { font-size: 20px; font-weight: 500; letter-spacing: 0; line-height: 1.2; font-family: var(--f-body); color: var(--c-dark-brown); }

p  { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--text); max-width: 58ch; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mid-brown);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--c-mid-brown);
}
.eyebrow.no-rule::before { display: none; }

/* 3. ───────────── LAYOUT ───────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
.container.narrow { max-width: var(--maxw-narrow); }

section { padding: clamp(48px, 6vw, 96px) 0; }
section.tight { padding: clamp(32px, 4vw, 64px) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Brand colour bar (gradient accent) */
.color-bar {
  height: 10px;
  background: linear-gradient(
    90deg,
    var(--c-bar-blue) 0%,
    #5485d9 18%,
    #8f7fc8 32%,
    var(--c-bar-pink) 48%,
    var(--c-bar-red) 66%,
    var(--c-bar-orange) 100%
  );
  width: 100%;
}
.color-bar.thin { height: 4px; }

/* 4. ───────────── COMPONENTS ───────────── */

/* --- Top bar + Nav --- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.nav.is-scrolled {
  box-shadow: 0 4px 24px -12px rgba(0,0,0,.18);
  background: rgba(255, 248, 242, 0.79);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: flex; gap: 36px; align-items: center; }
.nav__links > a,
.nav__links .nav__item-has-menu > a {
  font-size: 15px;
  color: var(--c-dark-brown);
  position: relative;
  padding: 4px 0;
  opacity: .6;
  transition: opacity .35s cubic-bezier(.25,.46,.45,.94), color .35s cubic-bezier(.25,.46,.45,.94);
}
.nav__links > a:hover,
.nav__links .nav__item-has-menu > a:hover,
.nav__links .nav__item-has-menu:hover > a { opacity: 1; }
.nav__links a.is-active,
.nav__links .nav__item-has-menu > a[aria-current="page"],
.nav[data-active-page] .nav__links a.is-active { opacity: 1; }
.nav__caret { opacity: inherit; }

/* ── Dropdown submenu ── */
.nav__item-has-menu { position: relative; }
.nav__caret {
  display: inline-block;
  margin-left: 2px;
  font-size: 11px;
  transition: transform .25s ease;
  vertical-align: middle;
}
.nav__item-has-menu:hover .nav__caret { transform: rotate(180deg); }
.nav__submenu {
  position: absolute;
  top: 100%;
  left: -18px;
  margin-top: 14px;
  min-width: 240px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.2);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 60;
}
.nav__item-has-menu:hover .nav__submenu,
.nav__item-has-menu:focus-within .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__submenu a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--c-dark-brown);
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.nav__submenu a:hover {
  background: var(--bg-alt);
  color: var(--c-black);
}
.nav__submenu a::after { display: none; }

/* Logo hover */
.nav__logo img { transition: opacity .25s ease; }
.nav__logo:hover img { opacity: .7; }

/* Phone hover */
.nav__phone { transition: color .25s ease; }
.nav__phone:hover { color: var(--c-red); }

/* Topbar link hovers */

/* ───────────── SCROLL REVEAL ───────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__phone { font-size: 14px; color: var(--c-mid-brown); display: inline-flex; align-items: center; gap: 8px; }
.nav__phone .phone-ico { color: var(--c-red); flex: none; }
.nav__toggle {
  display: none;
  background: none; border: none; padding: 8px; cursor: pointer;
  color: var(--c-dark-brown);
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1.5px solid var(--c-dark-brown);
  color: var(--c-dark-brown);
  background: transparent;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.btn:hover { background: var(--c-dark-brown); color: var(--c-off-white); }
.btn--fill { background: var(--c-dark-brown); color: var(--c-off-white); }
.btn--fill:hover { background: var(--c-black); border-color: var(--c-black); }
.btn--accent { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.btn--accent:hover { background: #7a3328; border-color: #7a3328; }
.btn--ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--c-dark-brown); }
.btn--small { padding: 10px 18px; font-size: 13px; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* --- Card (generic) --- */
.card {
  background: var(--c-off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.card--warm { background: var(--c-beige-soft); border-color: transparent; }
.card--warm a { transition: color .2s ease, text-decoration-color .2s ease; text-decoration: underline; text-decoration-color: transparent; }
.card--warm a:hover { color: var(--c-red); text-decoration-color: currentColor; }
.card--dark { background: var(--c-dark-brown); color: var(--c-off-white); border-color: transparent; }
.card--dark h3, .card--dark h4 { color: #fff; }

/* --- Media (image wrapper with subtle overlay) --- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--c-beige);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }

/* --- Hero (home) --- */
.hero {
  position: relative;
  min-height: min(85vh, 820px);
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.75) 100%);
}
.hero__content { padding-block: 56px 40px; width: 100%; }
.hero h1 {
  color: #fff;
  max-width: 14ch;
  font-size: clamp(48px, 7vw, 120px);
  line-height: .95;
}
.hero__sub {
  margin-top: 24px;
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 52ch;
  color: rgba(255,255,255,.92);
}
.hero__tag {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 28px);
  font-style: italic;
  font-weight: 300;
  color: #e9d9bd;
  margin-bottom: 18px;
  display: block;
}
.hero__cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badges {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero__badge {
  padding: 22px 20px 4px 10px;
  border-right: 1px solid rgba(255,255,255,.18);
  font-size: 14px;
  color: rgba(255,255,255,.9);
  line-height: 1.35;
}
.hero__badge:last-child { border-right: none; }
.hero__badge-num {
  display: block;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 28px;
  color: #fff;
  margin-bottom: 10px;
  opacity: .7;
}

/* --- Sub-hero (interior pages) --- */
.subhero {
  position: relative;
  padding: clamp(80px, 10vh, 120px) 0 clamp(60px, 8vh, 90px);
  background: var(--c-dark-brown);
  color: var(--c-off-white);
  overflow: hidden;
}
.subhero h1 { color: var(--c-off-white); }
.subhero__eyebrow { color: #e9d9bd; }
.subhero__eyebrow::before { background: #e9d9bd; }
.subhero--image { background: #000; }
.subhero--image::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--subhero-image);
  background-size: cover; background-position: center;
}
.subhero--image::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.65) 100%);
}
.subhero > * { position: relative; z-index: 1; }

/* --- Feature list (numbered) --- */
.feat-list { display: grid; gap: 14px; }
.feat {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.feat:last-child { border-bottom: 1px solid var(--line); }
.feat__num {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 32px;
  color: var(--c-red);
  line-height: 1;
}
.feat h4 { margin-bottom: 4px; }
.feat p { color: var(--text-muted); font-size: 15px; }

/* --- Stat --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat__num {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  color: var(--c-dark-brown);
}
.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat__desc { margin-top: 4px; font-size: 14px; color: var(--text-dim); }

/* --- Service card --- */
.service {
  position: relative;
  background: var(--c-off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease;
}
.service__media { aspect-ratio: 4 / 3; background: #f3ece2; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.service__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.service__index {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--c-red);
  letter-spacing: 0;
}
.service__body h3 { margin: 0; }
.service__body ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.service__body ul li::marker { color: var(--c-accent-red); }

/* --- Team card --- */
.person {
  display: flex; flex-direction: column;
  background: var(--c-beige-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s;
}
.person:hover { transform: translateY(-4px); }
.person__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-beige); }
.person__media img { width: 100%; height: 100%; object-fit: cover; }
.person__body { padding: 28px; }
.person__role { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-red); }
.person__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(32px, 3vw, 44px); color: var(--c-dark-brown); line-height: 1; margin: 10px 0 14px; }
.person__bio { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }

/* --- Profile data table --- */
.datatable { width: 100%; font-size: 14px; }
.datatable .row {
  display: grid; grid-template-columns: 140px 1fr; gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.datatable .row:first-child { border-top: none; }
.datatable .k { color: var(--text-dim); letter-spacing: .05em; text-transform: uppercase; font-size: 12px; padding-top: 2px; }
.datatable .v { color: var(--c-dark-brown); }

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--c-off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.step__num {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  color: var(--c-red);
  margin-bottom: 18px;
  display: block;
}
.step h4 { margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* --- FAQ --- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 20px;
  align-items: center;
  text-align: left;
  padding: 24px 0;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: var(--c-dark-brown);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
}
.faq__q:hover { color: var(--c-red); }
.faq__n { color: var(--c-red); font-size: 14px; font-family: var(--f-body); letter-spacing: .04em; padding-top: 8px; }
.faq__plus {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--c-dark-brown);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-body); font-size: 18px; font-weight: 300;
  transition: transform .3s;
}
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--c-dark-brown); color: #fff; }
.faq__a {
  padding: 0 0 28px 56px;
  max-width: 78ch;
  color: var(--text-muted);
  font-size: 16px;
}

/* --- CTA band — now a contained card (same width as rest of page) --- */
.cta-band {
  background: transparent;
  color: var(--c-off-white);
  padding: clamp(50px, 7vw, 96px) 0;
  text-align: center;
  position: relative;
}
.cta-band__inner {
  background: var(--c-dark-brown);
  color: var(--c-off-white);
  border-radius: 24px;
  padding: clamp(56px, 8vw, 100px) clamp(28px, 5vw, 72px);
  overflow: hidden;
  position: relative;
}
.cta-band h2 { color: #fff; max-width: 22ch; margin: 0 auto; }
.cta-band p { margin: 20px auto 32px; max-width: 52ch; color: rgba(255,255,255,.82); }

/* --- Info row --- */
.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--line); }
.info-cell { background: var(--c-off-white); padding: 30px 28px; }
.info-cell h4 { font-family: var(--f-display); font-weight: 300; font-size: 24px; margin-bottom: 6px; }

/* --- Form --- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; }
.form input, .form textarea {
  font: inherit;
  font-size: 16px;
  color: var(--c-dark-brown);
  background: var(--c-off-white);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: inherit;
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--c-dark-brown); }
.form textarea { min-height: 140px; resize: vertical; }
.form__checkbox { display: flex; gap: 10px; align-items: center; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text-muted); }

/* --- Ticker --- */
.ticker {
  background: var(--c-dark-brown);
  color: var(--c-off-white);
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ticker__track {
  display: flex; gap: 48px; animation: ticker 45s linear infinite;
  width: max-content;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 56px);
  white-space: nowrap;
}
.ticker__track span { display: inline-flex; align-items: center; gap: 48px; }
.ticker__dot { width: 10px; height: 10px; background: var(--c-red); border-radius: 50%; display: inline-block; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Footer --- */
.footer {
  background: var(--c-black);
  color: #b8aea0;
  padding: 80px 0 30px;
  font-size: 14px;
}
.footer a { color: #b8aea0; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid #2a2421;
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.footer__brand img { height: 44px; width: auto; display: block; margin-left: -6px; }
.footer__brand p { color: #8c8375; line-height: 1.6; }
.footer__col h5 {
  font-family: var(--f-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: #8c8375; margin: 0 0 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px;
  color: #6f665a;
  letter-spacing: .06em; text-transform: uppercase;
}

/* --- Small helpers --- */
.flex { display: flex; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mt-6 { margin-top: 60px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--c-beige);
  color: var(--c-dark-brown);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}

/* ───────────── HOVER INTERACTIONS (transform / opacity / filter / color only) ───────────── */

/* Shared easing + duration for all hover transitions. */
.service,
.service__media img,
.btn,
.card,
.feat__num,
.stat__num,
.media img {
  transition:
    transform .35s cubic-bezier(.25,.46,.45,.94),
    opacity   .35s cubic-bezier(.25,.46,.45,.94),
    filter    .35s cubic-bezier(.25,.46,.45,.94),
    color     .35s cubic-bezier(.25,.46,.45,.94);
}

/* .service — card lifts, inner image subtly rises/scales. */
.service__media { overflow: hidden; }
.service__media img { transform-origin: center; }
.service:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}
.service:hover .service__media img {
  transform: scale(1.04);
}

/* .btn — lift + softer. */
.btn:hover {
  transform: translateY(-2px);
  opacity: .88;
}
/* .btn--accent — lift + brighten, no opacity change. */
.btn--accent:hover {
  transform: translateY(-2px);
  opacity: 1;
  filter: brightness(1.08);
}

/* .card — gentle lift, no shadow. */
.card:hover {
  transform: translateY(-3px);
}

/* .media img — smooth center-origin zoom. */
.media { overflow: hidden; }
.media img { transform-origin: center; }
.media:hover img {
  transform: scale(1.04);
}

/* .feat — number fades to accent red. */
.feat:hover .feat__num {
  color: var(--c-red);
}

/* .stat — number fades to accent red. */
.stat:hover .stat__num {
  color: var(--c-red);
}

@media (prefers-reduced-motion: reduce) {
  .service,
  .service__media img,
  .btn,
  .card,
  .feat__num,
  .stat__num,
  .media img,
  .nav__links > a,
  .nav__links .nav__item-has-menu > a {
    transition: none !important;
  }
  .service:hover,
  .service:hover .service__media img,
  .btn:hover,
  .card:hover,
  .media:hover img { transform: none !important; }
  .btn:hover { opacity: 1 !important; }
  .btn--accent:hover { filter: none !important; }
  .feat:hover .feat__num,
  .stat:hover .stat__num { color: inherit !important; }
}

/* ───────────── SCROLL REVEAL (utility classes) ───────────── */
.animate-fade-up,
.animate-fade-in,
.animate-slide-left,
.animate-slide-right {
  opacity: 0;
  transition:
    opacity .5s ease-out,
    transform .5s ease-out;
  transition-delay: calc(var(--delay, 0) * 80ms);
}
.animate-fade-up    { transform: translateY(24px); }
.animate-slide-left { transform: translateX(-24px); }
.animate-slide-right{ transform: translateX(24px); }
.animate-fade-in    { transform: none; }

.animate-fade-up.is-animating,
.animate-fade-in.is-animating,
.animate-slide-left.is-animating,
.animate-slide-right.is-animating { will-change: transform, opacity; }

.is-visible.animate-fade-up,
.is-visible.animate-fade-in,
.is-visible.animate-slide-left,
.is-visible.animate-slide-right {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .animate-fade-in,
  .animate-slide-left,
  .animate-slide-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* 6. ───────────── RESPONSIVE ───────────── */
@media (max-width: 960px) {
  .grid-3, .grid-4, .steps, .stats, .info-row, .hero__badges { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--bg);
    padding: 24px var(--pad-x); gap: 20px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .nav__item-has-menu { width: 100%; }
  .nav__item-has-menu > a .nav__caret { display: none; }
  .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 6px 0 2px 14px;
    background: transparent;
    min-width: 0;
    margin: 6px 0 0;
    gap: 0;
  }
  .nav__submenu a {
    padding: 8px 0;
    font-size: 14px;
    color: var(--muted);
  }
  .grid-2, .grid-3, .grid-4, .steps, .stats, .info-row, .hero__badges,
  .datatable .row { grid-template-columns: 1fr; }
  .datatable .row { gap: 2px; }
  .feat { grid-template-columns: 44px 1fr; gap: 14px; }
  .hero__badge { border-right: none; border-bottom: 1px solid rgba(255,255,255,.18); padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .person-hero .person-hero__media { order: -1; margin-bottom: 20px; }
}

/* ===========================================================
   Hero entrance + scroll fade
   =========================================================== */
.hero__content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn .9s cubic-bezier(.16,.84,.36,1) forwards;
}
.hero__content .hero__tag     { animation-delay: .05s; }
.hero__content h1             { animation-delay: .20s; }
.hero__content .hero__sub     { animation-delay: .40s; }
.hero__content .hero__cta     { animation-delay: .60s; }
.hero__content .hero__badges  { animation-delay: .80s; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__content > * { animation: none !important; opacity: 1; transform: none; }
}

/* Scroll-fade for hero + subhero content (opacity is updated via JS as inline style) */
.hero__content,
.subhero .container {
  will-change: opacity, transform;
  transition: opacity .2s linear;
}

/* ===========================================================
   Subhero image scroll-fade (applies to the bg layers too for depth)
   =========================================================== */

/* ===========================================================
   FAQ — full container width (override any .narrow usage)
   =========================================================== */
.faq-wrap { max-width: var(--maxw); margin-inline: auto; }
.faq { width: 100%; }

/* ===========================================================
   Feature-icons grid (ueber-uns: Ursachen statt Symptome …)
   =========================================================== */
.icon-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.icon-feat {
  background: var(--c-off-white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .25s ease, transform .25s ease;
}
.icon-feat:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.icon-feat__icon {
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--c-beige-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-red);
}
.icon-feat__icon svg { width: 26px; height: 26px; }
.icon-feat h4 { margin: 0; font-size: 20px; line-height: 1.25; }
.icon-feat p { margin: 0; color: var(--text-muted); font-size: 15px; }
@media (max-width: 720px) {
  .icon-feat-grid { grid-template-columns: 1fr; gap: 16px; }
}


/* Static map card (kontakt.html) */
.map-static { transition: transform .3s ease, box-shadow .3s ease; }
.map-static:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
