:root {
  --ink:         #232020;          /* primary dark: text, dark surfaces, footer, frames + dividers */
  --ink-soft:    #332E2E;          /* secondary dark surface / hover */
  --paper:       #F6F5F4;          /* warm off-white page background */
  --white:       #FFFFFF;          /* cards, header */
  --wash:        #E9EEF8;          /* very light CI-blue tint — section-rhythm background (muted text ≥5:1) */
  --muted:       #6B6360;          /* muted text on light (≥5.2:1 on white/paper/wash) */
  --muted-light: rgba(246,245,244,.75); /* muted text on dark */
  --line:        #E7E4E1;          /* soft borders on light */
  --rule:        #232020;          /* dark hairline — section dividers & frames */
  --line-dark:   rgba(255,255,255,.14); /* borders on dark */
  --lime:        #C8F051;          /* signal green — special highlights only (CTAs, News alert, badges) */
  --lime-bright: #D6F86A;
  --ci-blue:     #143A84;          /* CI brand blue — the everyday accent on light surfaces */
  --ci-blue-soft:#1C4AA0;

  --header-h: 78px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--lime); color: var(--ink); font-weight: 700;
  padding: .7rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* Focus ring: CI-blue reads ≥3:1 on the light-dominant surfaces (WCAG 1.4.11).
   On dark surfaces (Leistungen, footer, mobile-nav overlay) CI-blue would
   vanish, so those switch to the lime ring, which is high-contrast on dark.
   The Neuigkeit bar is lime itself, so it keeps the default CI-blue ring. */
:focus-visible { outline: 3px solid var(--ci-blue); outline-offset: 2px; border-radius: 3px; }
.leistungen :focus-visible,
.footer :focus-visible,
.nav :focus-visible { outline-color: var(--lime); }

/* ---------- Shared bits ---------- */
/* Eyebrow line: lives *inside* its heading (an inner <span> of the <h2>, mirroring
   the H1 location-keyword line) so its text carries heading weight for SEO instead
   of being a sibling <p> of body text. display:flex makes it a block-level row that
   sits on its own line above the heading text, which follows the span. */
.section-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ci-blue);            /* CI-blue eyebrow — the everyday accent */
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem;
}
.section-label::before {
  content: ''; width: 30px; height: 3px; background: var(--ci-blue); border-radius: 3px;
}
.section-label--light { color: var(--muted-light); }
.section-label--light::before { background: var(--white); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--ink);
  text-transform: uppercase;
}
.section-title--light { color: var(--white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.12rem; letter-spacing: .03em; text-transform: uppercase;
  padding: .85rem 1.8rem; border-radius: 60px;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-bright); transform: translateY(-3px); box-shadow: 0 12px 26px -10px rgba(200,240,81,.7); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(35,32,32,.28); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-3px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-soft); transform: translateY(-3px); box-shadow: 0 12px 26px -12px rgba(35,32,32,.5); }

/* HEADER */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1200;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 6px 24px -16px rgba(35,32,32,.4);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.header__logo { display: inline-flex; align-items: center; height: 100%; }
.header__logo img { height: 46px; width: auto; }

.nav__list { display: flex; align-items: center; gap: 2rem; }
.nav__home-li { display: none; } /* logo is the home link on desktop; Start link shown only in mobile overlay */
.nav__list a {
  font-weight: 600; font-size: .98rem; color: var(--ink);
  position: relative; padding: .3rem 0; transition: color .2s var(--ease);
}
.nav__list a:not(.nav__cta)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--ci-blue); transition: width .25s var(--ease);
}
.nav__list a:not(.nav__cta):hover::after,
.nav__list a.active::after { width: 100%; }
.nav__list a:not(.nav__cta):hover,
.nav__list a.active { color: var(--ci-blue); }
.nav__cta { color: var(--ink) !important; padding: .6rem 1.3rem !important; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; }

/* burger */
.nav-toggle {
  display: none; position: relative; z-index: 1100;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px; padding: 0 8px;
}
.nav-toggle span { display: block; height: 3px; width: 28px; background: var(--ink); border-radius: 3px; transition: transform .3s var(--ease), opacity .2s var(--ease); }

/* NEUIGKEIT — persistent signal alert strip (electric-lime, under header) */
/* Neuigkeit → a floating lime alert card straddling the infobar↔USP seam.
   Not a full-bleed band: a contained, rounded card whose shadow overlaps both
   neighbours (negative block margins), so the three hard colour stripes read as
   two calm surfaces + one floating accent. When the card is absent (CMS toggle
   off) the :has()/adjacency rules below don't fire, so infobar→USP stays a clean
   two-band transition. */
.neuigkeit { position: relative; z-index: 5; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
.neuigkeit__inner {
  max-width: 960px; margin: -26px auto;
  background: var(--lime); color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 22px 48px -18px rgba(35, 32, 32, .45);
  padding: .95rem clamp(1.3rem, 3vw, 1.9rem);
  display: flex; align-items: center; gap: .9rem;
}
/* breathing room around the overlap — only fires when the card is present */
.firstscreen:has(+ .neuigkeit) .infobar__inner { padding-bottom: 2.7rem; }
.neuigkeit + .usp .usp__inner { padding-top: 3.4rem; }
.neuigkeit__icon { width: 22px; height: 22px; color: var(--ink); flex: 0 0 auto; }
.neuigkeit__text { font-size: .95rem; font-weight: 600; flex: 1 1 auto; }
.neuigkeit__text a { border-bottom: 1px solid var(--ci-blue); }
.neuigkeit__text a:hover { color: var(--ci-blue); }

/* HERO (light, money shot) */
/* First screen: hero grows to fill the viewport so the infobar (its last child)
   is pinned to the bottom edge; the Neuigkeit alert then sits directly below,
   revealed on scroll. Hero keeps its own header-h top padding to clear the
   fixed header. */
.firstscreen { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.firstscreen > .hero { flex: 1 0 auto; }

.hero {
  position: relative; background: var(--white); color: var(--ink);
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem)) 0 0;
  overflow: hidden; isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero__trails {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .6;
}
.hero__trails .trail {
  fill: none; stroke: var(--ci-blue); stroke-width: 2.5;
  stroke-dasharray: 14 26; opacity: .55;
  animation: trailflow 9s linear infinite;
}
.hero__trails .trail:nth-child(2) { stroke: rgba(28,74,160,.42); animation-duration: 12s; stroke-dasharray: 10 30; }
.hero__trails .trail:nth-child(3) { stroke: rgba(35,32,32,.1); animation-duration: 15s; opacity: .8; }
@keyframes trailflow { to { stroke-dashoffset: -400; } }

.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero__title {
  position: relative; padding-left: clamp(1rem, 2vw, 1.5rem);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3.1rem, 8vw, 6rem); line-height: .92; letter-spacing: -.015em;
  color: var(--ink);
}
.hero__title::before {
  content: ''; position: absolute; left: 0; top: .08em; bottom: .08em;
  width: clamp(6px, .8vw, 10px); background: var(--ci-blue); border-radius: 5px;
}
.hero__title .word {
  display: block; opacity: 0; transform: translateY(28px);
  animation: wordIn .8s var(--ease) forwards;
}
/* location keyword — a full, brand-blue first headline line (folded into the H1 for SEO) */
.hero__title .word--place {
  font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.02;
  color: var(--ci-blue); margin-bottom: .5rem;
}
.hero__title .word[data-w="1"] { animation-delay: .1s; }
.hero__title .word[data-w="2"] { animation-delay: .26s; }
.hero__title .word[data-w="3"] { animation-delay: .42s; }
.hero__title .word[data-w="4"] { animation-delay: .58s; }
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }

.hero__lead {
  margin: 1.6rem 0 2rem; font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--ink-soft); max-width: 30em;
  opacity: 0; animation: wordIn .8s var(--ease) .72s forwards;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; opacity: 0; animation: wordIn .8s var(--ease) .84s forwards; }

.hero__media { position: relative; }
.hero__media::before {
  content: ''; position: absolute; z-index: 0;
  top: clamp(12px, 2vw, 22px); left: clamp(12px, 2vw, 22px); right: clamp(-22px, -2vw, -12px); bottom: clamp(-22px, -2vw, -12px);
  border: 3px solid var(--ci-blue); border-radius: 26px;
}
.hero__photo {
  position: relative; z-index: 1; border-radius: 26px; overflow: hidden;
  aspect-ratio: 5/6; box-shadow: 0 40px 70px -34px rgba(35,32,32,.45);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__badge {
  position: absolute; left: -22px; bottom: 34px; z-index: 2; /* sit in front of the photo (z-index:1) */
  background: var(--ci-blue); color: var(--white);
  border-radius: 18px; padding: 1rem 1.3rem; text-align: center;
  box-shadow: 0 20px 40px -18px rgba(20,58,132,.55);
}
.hero__badge-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.hero__badge-label { display: block; font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

/* INFOBAR (slim contact strip under the hero) */
.infobar { background: var(--paper); border-bottom: 1px solid var(--line); }
.infobar__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(.9rem, 2vw, 1.35rem) clamp(1.1rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.5rem;
}
.infobar__item { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.infobar__item:not(:first-child) { padding-left: clamp(.9rem, 2vw, 1.8rem); border-left: 1px solid var(--line); }
.infobar__icon { width: 24px; height: 24px; color: var(--ci-blue); flex: 0 0 auto; }
.infobar__text { font-size: .92rem; line-height: 1.3; color: var(--ink); font-weight: 500; min-width: 0; word-break: break-word; }
.infobar__label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .12rem; }
a.infobar__text { transition: color .2s var(--ease); }
a.infobar__text:hover { color: var(--ci-blue); }

@media (max-width: 860px) {
  .infobar__inner { grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
  .infobar__item:not(:first-child) { border-left: none; padding-left: 0; }
  .infobar__item:nth-child(even) { border-left: 1px solid var(--line); padding-left: clamp(.9rem, 3vw, 1.5rem); }
}
@media (max-width: 620px) {
  .infobar__inner { grid-template-columns: 1fr; gap: .9rem; }
  .infobar__item:nth-child(even) { border-left: none; padding-left: 0; }
}

/* USP / CREDIBILITY (light wash band — subtle tint standout, no border/bar,
   NOT signal-green and not a full blue fill) */
.usp { background: var(--wash); color: var(--ink); }
.usp__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.6rem, 5vw, 3.6rem) clamp(1.1rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center;
}
.usp__kicker { color: var(--ci-blue); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7rem; }
.usp__headline {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.03; letter-spacing: -.01em;
}
.usp__headline span { display: inline; box-shadow: inset 0 -.36em 0 rgba(20,58,132,.16); }
.usp__sub { margin-top: 1rem; font-size: 1.04rem; max-width: 44em; color: var(--muted); font-weight: 500; }
.usp__badges { display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.usp__badges img { background: var(--white); border-radius: 14px; padding: .9rem 1.1rem; box-shadow: 0 14px 30px -16px rgba(35,32,32,.35); }
.usp__badges img:first-child { height: 70px; width: auto; }
.usp__badges img:last-child { height: 104px; width: auto; }

/* PHILOSOPHIE (light, editorial) */
.philo__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: .85fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.philo { background: var(--white); }
.philo__media {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/5;
  border: 5px solid var(--ink);            /* dark frame — structural */
  box-shadow: 0 30px 60px -38px rgba(35,32,32,.45);
}
.philo__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.philo__copy p { color: var(--muted); font-size: 1.08rem; margin-top: 1.1rem; max-width: 40em; }
.philo__copy .section-title { margin-bottom: .4rem; }

/* LEISTUNGEN — indexed ledger (DARK contrast section) */
.leistungen { background: var(--ink); color: var(--white); }
.leistungen__head {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.ledger { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem) clamp(3.5rem, 8vw, 6rem); }
.ledger__row {
  display: grid; grid-template-columns: 44px minmax(220px, 290px) 1fr;
  gap: 1.5rem; align-items: center;
  padding: 1.5rem 1.5rem 1.5rem 1rem;
  border-top: 1px solid var(--line-dark);
}
.ledger__row { border-bottom: 1px solid var(--line-dark); }
/* CI-blue line icon (halo carries legibility on the dark section) — see render.php */
.ledger__icon { color: var(--ci-blue); align-self: center; display: inline-flex; }
.ledger__icon svg { width: 28px; height: 28px; display: block; }
.ledger__name {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-transform: uppercase; line-height: 1.05; letter-spacing: .01em;
  /* Element is a <button> for the mobile accordion; strip native chrome so desktop is unchanged. */
  background: none; border: 0; padding: 0; margin: 0; color: inherit; text-align: left; width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
/* muted-light (not ci-blue): the ledger is the dark ink section — ci-blue is ~1.3:1 there
   (see GOTCHAS dark-section icon note); the chevron carries no brand duty, so a light stroke. */
.ledger__chevron { display: none; flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted-light); transition: transform .3s var(--ease); }
.ledger__desc { color: var(--muted-light); font-size: 1rem; align-self: center; }

/* Desktop: split the ledger into two columns (fills column-wise, robust to a
   dynamic CMS count). Each row narrows to a stacked cell: icon in col 1
   (spanning both rows, centred), name over description in col 2. */
@media (min-width: 901px) {
  .ledger { columns: 2; column-gap: clamp(2rem, 4vw, 3.5rem); }
  .ledger__row {
    break-inside: avoid;
    grid-template-columns: 40px 1fr;
    gap: .15rem 1.1rem;
    padding: 1.25rem 1.25rem 1.25rem 1rem;
  }
  .ledger__icon { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .ledger__name { grid-column: 2; grid-row: 1; }
  .ledger__desc-wrap { grid-column: 2; grid-row: 2; align-self: start; }
}

/* TEAM (light) */
.team { background: var(--wash); }
.team__head { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.team__grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem) clamp(3.5rem, 8vw, 6rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 3.5vw, 2.6rem);
  align-items: start;
}
.member {
  background: var(--white); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 50px -38px rgba(35,32,32,.4); border: 1px solid var(--line);
}
.member__photo { position: relative; flex: 0 0 auto; border-bottom: 4px solid var(--ink); }
.member__photo img { width: 100%; height: 320px; object-fit: cover; object-position: center 22%; }
.member__body { padding: 1.7rem 1.7rem 1.9rem; }
.member__name { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; text-transform: uppercase; line-height: 1; }
.member__role { color: var(--muted); font-weight: 600; font-size: .92rem; margin-top: .25rem; }
.member__highlight {
  margin: 1rem 0 1.1rem; font-weight: 700; color: var(--white); font-size: 1rem;
  background: var(--ci-blue); display: inline-block; padding: .4rem .8rem; border-radius: 8px; line-height: 1.3;
}
.member__quals-label {
  margin: 1.2rem 0 .6rem; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  /* Element is a <button> for the mobile accordion; strip native chrome so desktop is unchanged.
     font-family:inherit — no global button reset exists, and a <button> would otherwise fall back
     to the UA system font (this was a <p> inheriting the body font). */
  background: none; border: 0; padding: 0; text-align: left; width: 100%; font-family: inherit;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.member__quals-chevron { display: none; flex: 0 0 auto; width: 16px; height: 16px; color: var(--ci-blue); transition: transform .3s var(--ease); }
.member__quals li {
  display: flex; gap: .8rem; align-items: baseline;
  padding: .4rem 0 .4rem 1rem; margin-top: .7rem;
  border-left: 4px solid var(--ci-blue);
  color: var(--muted); font-size: .94rem; line-height: 1.5;
}
.member__quals li:first-child { margin-top: 0; }
.member__year { flex: 0 0 4.4rem; min-width: 4.4rem; font-weight: 700; color: var(--ci-blue); }

/* GALERIE (light) + lightbox */
.galerie { background: var(--paper); color: var(--ink); border-top: 2px solid var(--rule); }
.galerie__head {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
/* Full-bleed, gapless editorial mosaic. The grid breaks out of the page
   container to span the whole viewport width; tiles butt together (gap 0,
   no radius/border) for a seamless wall. Desktop gets an asymmetric 4-column
   mosaic (below); the base is a clean 2-column mosaic for tablet/mobile. */
.gallery {
  max-width: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: clamp(150px, 40vw, 300px); gap: 0;
}
.gallery__item {
  position: relative; overflow: hidden;
  cursor: pointer; background: var(--white);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .55s var(--ease); }
/* Soft inset shadow overlay: separates similar-toned neighbouring photos by a
   faint edge + inner vignette. Sits above the image (a plain box-shadow on the
   tile would render behind the <img>); pointer-events off so hover/lightbox work. */
.gallery__item::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(35,32,32,.28), inset 0 0 26px -4px rgba(35,32,32,.5);
}
.gallery__item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(35,32,32,.55), rgba(35,32,32,0) 55%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery__zoom {
  position: absolute; right: .8rem; bottom: .8rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ci-blue); color: var(--white);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.7); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery__zoom svg { width: 20px; height: 20px; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.06); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: scale(1); }

/* Desktop mosaic: 4 columns, exactly 8 tiles placed for a hole-free wall —
   a 2×2 hero, two stacked squares, a wide banner, and a row of four.
   (Placement is explicit because the image count is fixed at 8.) */
@media (min-width: 981px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 18vw, 320px); }
  .gallery__item:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
  .gallery__item:nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
  .gallery__item:nth-child(3) { grid-area: 1 / 4 / 2 / 5; }
  .gallery__item:nth-child(4) { grid-area: 2 / 3 / 3 / 5; }
  .gallery__item:nth-child(5) { grid-area: 3 / 1 / 4 / 2; }
  .gallery__item:nth-child(6) { grid-area: 3 / 2 / 4 / 3; }
  .gallery__item:nth-child(7) { grid-area: 3 / 3 / 4 / 4; }
  .gallery__item:nth-child(8) { grid-area: 3 / 4 / 4 / 5; }
}

.lightbox { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(23,20,20,.95); }
.lightbox.active { display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 5vw, 4rem); }
.lightbox__content { position: relative; max-width: 1100px; max-height: 88vh; }
.lightbox__img { display: block; max-width: 100%; max-height: 88vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 40px 90px -24px rgba(0,0,0,.75); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: fixed; background: rgba(255,255,255,.14); border: none; color: var(--white);
  cursor: pointer; display: grid; place-items: center; border-radius: 50%;
  transition: background .2s var(--ease), color .2s var(--ease); line-height: 1;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--lime); color: var(--ink); }
.lightbox__close { top: 1.2rem; right: 1.4rem; width: 48px; height: 48px; font-size: 2rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2.4rem; }
.lightbox__prev { left: 1.2rem; }
.lightbox__next { right: 1.2rem; }

/* PREISE (light) + preisliste accordion */
/* No divider above Preise: the full-bleed image wall of Galerie ends on its own. */
.preise { background: var(--white); color: var(--ink); }
.preise__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.preise__copy p { color: var(--muted); font-size: 1.06rem; margin-top: 1rem; max-width: 38em; }
.preise__copy .btn { margin-top: 1.8rem; }
.preise__cards { display: grid; gap: 1rem; }
.pricecard {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.3rem 1.4rem; transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.pricecard:hover { border-color: var(--ci-blue); transform: translateX(6px); }
.pricecard__head { display: flex; align-items: center; gap: .65rem; margin-bottom: .35rem; }
.pricecard__icon { width: 26px; height: 26px; color: var(--ci-blue); flex: 0 0 auto; }
.pricecard__tag { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; color: var(--ci-blue); display: block; }
.pricecard__text { color: var(--muted); font-size: .98rem; }

.preisliste { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem) clamp(3.5rem, 8vw, 6rem); }
.preisliste__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.preisliste__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); text-transform: uppercase; color: var(--ink); }
.preisliste__note { color: var(--muted); font-size: .92rem; }
.price-acc { border-top: 1px solid var(--line); }
.price-group { border-bottom: 1px solid var(--line); }
.price-cat {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: none; cursor: pointer; text-align: left; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(1.1rem, 2vw, 1.35rem); padding: 1.15rem .15rem;
}
.price-cat__name { line-height: 1.1; transition: color .2s var(--ease); }
.price-cat:hover .price-cat__name { color: var(--ci-blue); }
.price-cat__meta { display: inline-flex; align-items: center; gap: .9rem; flex: 0 0 auto; }
.price-cat__count { font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.price-cat__chevron { width: 22px; height: 22px; color: var(--ci-blue); transition: transform .3s var(--ease); }
.price-group.open .price-cat__chevron { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.accordion-body__inner { padding: 0 .15rem 1rem; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.accordion-body__inner .price-row:last-child { border-bottom: none; padding-bottom: 0; }
.price-row__name { color: var(--ink); font-size: .98rem; }
.price-row__price { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--ci-blue); white-space: nowrap; }
.price-cat__download { display: inline-block; margin-top: .8rem; font-weight: 700; color: var(--ci-blue); border-bottom: 2px solid var(--ci-blue); }
.preisliste__download {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.8rem;
  font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ci-blue); padding-bottom: 2px;
  transition: color .2s var(--ease);
}
.preisliste__download:hover { color: var(--ci-blue); }
.preisliste__download svg { width: 20px; height: 20px; }

/* TERMIN — THEORG online booking (direct iframe embed) */
/* JOBS (light) — always-on Initiativbewerbung + CMS job cards */
.jobs { background: var(--paper); border-top: 2px solid var(--rule); }
.jobs__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2.5rem);
}
.jobs__head { max-width: 46em; margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }
.jobs__intro { color: var(--muted); font-size: 1.08rem; margin-top: 1rem; }

/* Initiativbewerbung — permanent invite panel (wash band, CI-blue accent) */
.jobs__initiativ {
  --ib-padx: clamp(1.4rem, 3vw, 2.2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap;
  background: var(--wash); border: 1px solid var(--line); border-left: 4px solid var(--ci-blue);
  border-radius: 16px; padding: clamp(1.4rem, 3vw, 2rem) var(--ib-padx);
}
.jobs__initiativ-text { min-width: 0; flex: 1 1 22rem; }
.jobs__initiativ-title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; letter-spacing: .02em; color: var(--ci-blue); margin-bottom: .35rem; }
.jobs__initiativ-text p { color: var(--ink); max-width: 46em; }
.jobs__initiativ-cta { flex: 0 0 auto; }

/* Open positions */
.jobs__openings { margin-top: clamp(2.2rem, 4.5vw, 3.2rem); }
.jobs__openings-title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--ink); margin-bottom: 1.3rem; }
.jobs__list {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(2, 1fr);
}
.job-card {
  --jc-pad: clamp(1.5rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--ci-blue);
  border-radius: 16px; padding: var(--jc-pad);
  box-shadow: 0 18px 40px -34px rgba(35,32,32,.5);
}
.job-card__title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--ink); line-height: 1.1; }
.job-card__body { color: var(--muted); margin-top: 1rem; font-size: 1.02rem; }
.job-card__body p { margin: 0 0 .85rem; }
.job-card__body h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; color: var(--ink); margin: 1.1rem 0 .5rem; }
.job-card__body strong { color: var(--ink); }
.job-card__body blockquote { margin: .6rem 0 1rem; padding-left: 1rem; border-left: 3px solid var(--ci-blue); color: var(--ink); }
.job-card__body ul, .job-card__body ol { list-style: none; display: grid; gap: .55rem; margin: .3rem 0 1rem; padding: 0; }
.job-card__body li { position: relative; padding-left: 1.5rem; }
.job-card__body ul li::before { content: ''; position: absolute; left: .1rem; top: .55em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ci-blue); }
.job-card__body ol { counter-reset: jc; }
.job-card__body ol li { counter-increment: jc; }
.job-card__body ol li::before { content: counter(jc) '.'; position: absolute; left: 0; top: 0; color: var(--ci-blue); font-weight: 700; }
.job-card__body a { color: var(--ci-blue); border-bottom: 1px solid var(--ci-blue); }
.job-card__body a:hover { color: var(--ink); }
.job-card__apply { margin-top: auto; }

/* KONTAKT + TERMIN (light) — contact/map | THEORG booking */
.kontakt { background: var(--wash); color: var(--ink); border-top: 2px solid var(--rule); }
.kontakt__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
}
.kontakt__info { min-width: 0; }
.kontakt__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8rem 0; }
.kont-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.4rem; }
.kont-card:first-child { grid-column: 1 / -1; }
.kont-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; color: var(--ci-blue); margin-bottom: .5rem; }
.kont-card p { color: var(--ink); }
.kont-card a { color: var(--ci-blue); border-bottom: 1px solid var(--ci-blue); transition: color .2s; }
.kont-card a:hover { color: var(--ink); }
.kontakt__note { color: var(--muted) !important; font-size: .9rem; margin-top: .6rem; }
.kontakt__map { border-radius: 20px; overflow: hidden; min-height: 340px; border: 1px solid var(--line); }
.kontakt__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* THEORG booking column */
.termin { min-width: 0; }
.termin__title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.termin__lead { color: var(--muted); font-size: 1.06rem; margin: 1rem 0 1.6rem; max-width: 40em; }
.termin__embed {
  background: var(--white); border: 4px solid var(--ink);   /* dark frame — the key interactive element */
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 50px -38px rgba(35,32,32,.4);
}
.termin__iframe { width: 100%; min-height: 750px; border: 0; display: block; background: var(--white); }
.termin__privacy { margin-top: 1rem; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.termin__privacy a { color: var(--ci-blue); font-weight: 700; border-bottom: 1px solid var(--ci-blue); }
.termin__linkout { display: inline-block; margin-top: .5rem; }
.termin__hint { margin-top: 1rem; font-size: .98rem; color: var(--muted); }
.termin__hint a { color: var(--ci-blue); border-bottom: 1px solid var(--ci-blue); }

/* DOWNLOADS (light) — patient forms */
.downloads { background: var(--paper); border-top: 2px solid var(--rule); }
.downloads__head { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) clamp(1.1rem, 4vw, 2.5rem) clamp(1rem, 2vw, 1.6rem); }
.downloads__intro { color: var(--muted); font-size: 1.02rem; margin-top: .8rem; max-width: 42em; }
.downloads__grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
/* Icon left (spanning both rows, centred), title over meta on the right — all viewports. */
.download-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; row-gap: .15rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.3rem 1.4rem; transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
a.download-card:hover { transform: translateY(-3px); border-color: var(--ci-blue); box-shadow: 0 16px 34px -24px rgba(35,32,32,.4); }
.download-card__icon { width: 30px; height: 30px; color: var(--ci-blue); grid-row: 1 / span 2; align-self: center; }
.download-card__title { font-weight: 700; color: var(--ink); grid-column: 2; align-self: end; }
.download-card__meta { font-size: .84rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ci-blue); grid-column: 2; align-self: start; }
/* Pending forms are a deliberate "coming soon" slot, not a disabled/broken card:
   full opacity, dashed placeholder border, muted icon + meta, no hover lift. */
.download-card--pending { border-style: dashed; border-color: rgba(107,99,96,.4); background: var(--paper); }
.download-card--pending .download-card__icon { color: var(--muted); }
.download-card--pending .download-card__meta { color: var(--muted); }

/* WERBEPARTNER (light) */
.partner-sec { background: var(--wash); border-top: 2px solid var(--rule); }
.partner-sec__head { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) clamp(1.1rem, 4vw, 2.5rem) clamp(1rem, 2vw, 1.6rem); }
.partner-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch;
}
.partner {
  display: grid; place-items: center; background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.4rem; min-height: 110px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
a.partner:hover { border-color: var(--ci-blue); transform: translateY(-3px); }
.partner img { max-height: 70px; width: auto; filter: grayscale(1); opacity: .85; transition: filter .2s var(--ease), opacity .2s var(--ease); }
a.partner:hover img { filter: grayscale(0); opacity: 1; }
.partner__name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: var(--ink); }

/* JOBS-WIDGET — floating side tab */
.jobs-widget {
  position: fixed; right: 14px; bottom: 22%; z-index: 1150;
  display: flex; align-items: stretch;
  background: var(--lime); color: var(--ink);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 14px 34px -14px rgba(35,32,32,.55);
  transform: translateX(0); transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.jobs-widget.hidden { transform: translateX(120%); opacity: 0; pointer-events: none; }
.jobs-widget__link { display: flex; align-items: center; gap: .55rem; padding: .8rem .9rem .8rem 1rem; font-weight: 700; }
.jobs-widget__link svg { width: 20px; height: 20px; flex: 0 0 auto; }
.jobs-widget__text { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.02rem; white-space: nowrap; }
.jobs-widget__close {
  border: none; background: rgba(35,32,32,.12); color: var(--ink); cursor: pointer;
  width: auto; padding: 0 .75rem; font-size: 1.2rem; line-height: 1; transition: background .2s var(--ease);
}
.jobs-widget__close:hover { background: rgba(35,32,32,.24); }

/* FOOTER (dark) */
.footer { background: var(--ink); color: var(--white); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.6rem, 5vw, 3.6rem) clamp(1.1rem, 4vw, 2.5rem) 2rem;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem;
}
.footer__logo { height: 50px; width: auto; margin-bottom: 1rem; }
.footer__tag { color: var(--muted-light); font-size: .96rem; }
.footer__contact p { color: var(--muted-light); margin-bottom: .5rem; font-size: .96rem; }
.footer__contact a { color: #EDEBEA; }
.footer__contact a:hover { color: var(--lime); }

.footer__bottom {
  border-top: 1px solid var(--line-dark);
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.3rem clamp(1.1rem, 4vw, 2.5rem);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.footer__legal { display: flex; gap: 1.2rem; }
.footer__legal a { color: var(--muted-light); font-size: .88rem; }
.footer__legal a:hover, .footer__legal a.active { color: var(--lime); }
.footer__credit, .footer__copy { color: var(--muted-light); font-size: .88rem; }
.powered-by { color: #EDEBEA; font-weight: 700; }
.powered-by:hover { color: var(--lime); }

/* LEGAL PAGES (Impressum / Datenschutz) */
/* .legal-page: the class name is intentional — qm.mjs treats `.legal-page` as a
   scoped context and skips it in the cross-page CSS-consistency check, since legal
   prose is legitimately styled differently from the marketing pages. */
.legal-page { max-width: 860px; width: 100%; margin: 0 auto; padding: calc(var(--header-h) + 3rem) clamp(1.1rem, 4vw, 2.5rem) 4rem; }
.legal-page .legal__back { display: inline-block; margin-bottom: 1.2rem; font-weight: 700; color: var(--ci-blue); border-bottom: 2px solid var(--ci-blue); padding-bottom: 2px; }
.legal-page h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; color: var(--ink); line-height: 1.05; margin-bottom: 1.4rem; }
.legal-page h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; color: var(--ci-blue); margin: 2.1rem 0 .6rem; }
.legal-page h3 { font-size: 1.05rem; margin: 1.3rem 0 .3rem; color: var(--ink); }
.legal-page p, .legal-page li { color: var(--ink); margin-bottom: .7rem; }
.legal-page ul { padding-left: 1.2rem; list-style: disc; margin-bottom: .8rem; }
.legal-page a { color: var(--ci-blue); border-bottom: 1px solid var(--ci-blue); }
.legal-page a:hover { color: var(--ink); }
.legal-page .legal__note { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--ci-blue); border-radius: 10px; padding: 1rem 1.2rem; color: var(--muted); font-size: .95rem; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero__photo { aspect-ratio: 16/12; }
  .usp__inner { grid-template-columns: 1fr; text-align: left; }
  .philo__inner { grid-template-columns: 1fr; }
  .philo__media { max-width: 420px; aspect-ratio: 16/12; }
  .preise__inner, .kontakt__inner { grid-template-columns: 1fr; }
  .jobs__list { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .downloads__grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 1100;
    background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
  }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  .nav__home-li { display: block; }
  .nav__list { flex-direction: column; gap: 1.6rem; text-align: center; }
  .nav__list a { color: var(--white) !important; font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; }
  .nav__list a.active { color: var(--lime) !important; }
  .nav__cta { background: var(--lime); color: var(--ink) !important; padding: .7rem 1.8rem !important; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 620px) {
  :root { --header-h: 66px; }
  .header__logo img { height: 38px; }
  .hero__badge { left: 12px; bottom: 12px; padding: .7rem 1rem; }
  .hero__badge-num { font-size: 2rem; }
  .ledger__row { grid-template-columns: 40px 1fr; row-gap: .5rem; padding: 1.2rem .6rem; }
  /* Leistungen: each service is a tap-to-expand accordion (exclusive — see script.js).
     grid-template-rows 0fr → 1fr animates to natural height without JS measurement. */
  .ledger__name { cursor: pointer; }
  .ledger__chevron { display: block; }
  .ledger__row.open .ledger__chevron { transform: rotate(180deg); }
  .ledger__desc-wrap {
    grid-column: 1 / -1;
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease);
  }
  .ledger__row.open .ledger__desc-wrap { grid-template-rows: 1fr; }
  /* align-self:stretch overrides the base .ledger__desc center — the child must fill (0) the
     0fr track, else it keeps its content height and overflows the wrapper as ghost text.
     padding only in the open state — on a 0fr track padding would not collapse (8px stub). */
  .ledger__desc { overflow: hidden; min-height: 0; align-self: stretch; }
  .ledger__row.open .ledger__desc { padding-top: .5rem; }
  /* Fachliche Qualifikation: each member's list collapses independently. */
  .member__quals-label { cursor: pointer; }
  .member__quals-chevron { display: block; }
  .member__quals-label[aria-expanded="true"] .member__quals-chevron { transform: rotate(180deg); }
  .member__quals-wrap {
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease);
  }
  .member__quals-wrap.open { grid-template-rows: 1fr; }
  .member__quals { overflow: hidden; min-height: 0; }
  .member__photo img { height: 300px; object-position: center 18%; }
  .kontakt__cards { grid-template-columns: 1fr; }
  .kont-card:first-child { grid-column: auto; }
  .downloads__grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .hero__actions .btn { width: 100%; }
  /* Apply CTA becomes a full-bleed card-footer button (reaches the card's inner
     edges) so its width matches the page's other full-width mobile buttons. */
  .job-card__apply {
    align-self: stretch; width: auto;
    margin: .6rem calc(-1 * var(--jc-pad)) calc(-1 * var(--jc-pad));
    border-radius: 0 0 12px 12px; text-align: center;
  }
  /* Initiativbewerbung panel: stack, and let its CTA span to the panel edges too. */
  .jobs__initiativ { display: block; }
  .jobs__initiativ-cta {
    display: block; width: auto;
    margin: .9rem calc(-1 * var(--ib-padx)) calc(-1 * var(--ib-padx));
    border-radius: 0 0 12px 12px; text-align: center;
  }
  .usp__badges { justify-content: flex-start; }
  .gallery { grid-auto-rows: clamp(140px, 46vw, 220px); }
  .price-row { gap: 1rem; }
  .price-row__name { font-size: .92rem; }
  .lightbox__prev, .lightbox__next { width: 44px; height: 44px; font-size: 2rem; }
  .lightbox__prev { left: .5rem; } .lightbox__next { right: .5rem; }
  .jobs-widget__text { display: none; }
  .jobs-widget__link { padding: .8rem; }
  .termin__iframe { min-height: 700px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__trails .trail { animation: none; }
  .accordion-body { transition: none; }
  .price-cat__chevron { transition: none; }
  .ledger__desc-wrap, .member__quals-wrap { transition: none; }
  .ledger__chevron, .member__quals-chevron { transition: none; }
  .hero__title .word, .hero__lead, .hero__actions { animation: none; opacity: 1; transform: none; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .jobs-widget { transition: none; }
}
