/* ============================================================
   Janze & Janze – Designsystem
   Richtung 2: „Aus vielen Linien eine Richtung"
   ============================================================ */

/* ---------- Schriften (lokal, SIL OFL) ---------- */
@font-face {
  font-family: "Fjord One";
  src: url("../fonts/fjordone-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Statische Fallback-Schnitte für Browser ohne Variable Fonts */
@supports not (font-variation-settings: normal) {
  @font-face {
    font-family: "Inter";
    src: url("../fonts/inter-regular.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: "Inter";
    src: url("../fonts/inter-semibold.woff2") format("woff2");
    font-weight: 600; font-style: normal; font-display: swap;
  }
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben */
  --ink: #1E2A35;
  --ink-soft: #334352;
  --bg: #FFFFFF;
  --bg-soft: #F5F6F7;
  --bg-inverse: #334352;
  --green: #219B68;
  --green-strong: #157A52;
  --green-dark: #0F5E3F;
  --green-bright: #14D987;   /* nur Grafik, nie Text */
  --green-tint: #ADEFC4;
  --violet: #9E5293;         /* nur Grafik/große Akzente */
  --violet-deep: #6A4E66;
  --violet-tint: #D8C2D5;
  --line: #DDE0E2;
  --focus: #157A52;

  /* Typografie */
  --font-display: "Fjord One", Georgia, "Times New Roman", serif;
  --font-text: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --max: 1200px;
  --max-text: 46rem;
  --pad: clamp(1.5rem, 5vw, 4rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 500ms;

  /* Akzent pro Seite (Standard: Grün) */
  --accent: var(--green);
  --accent-strong: var(--green-strong);
  --accent-tint: var(--green-tint);
}
[data-accent="violet"] {
  --accent: var(--violet);
  --accent-strong: var(--violet-deep);
  --accent-tint: var(--violet-tint);
}

/* ---------- Seitenübergänge ----------
   Weicher Crossfade beim Wechsel zwischen den Seiten (View Transitions API).
   Browser ohne Unterstützung wechseln einfach normal. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 280ms;
  animation-timing-function: ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.875rem); line-height: 1.15; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.2; }
h4 { font-family: var(--font-text); font-weight: 600; font-size: 1.25rem; line-height: 1.35; margin: 0 0 0.5em; }
p { margin: 0 0 1.1em; max-width: var(--max-text); }
ul, ol { max-width: var(--max-text); }
img, svg { max-width: 100%; height: auto; display: block; }
::selection { background: var(--green-tint); color: var(--ink); }

a { color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-thickness 150ms ease, color 150ms ease; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--bg-inverse); color: #fff; padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Layout-Helfer ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4.5rem, 10vw, 9rem); position: relative; }
.section--soft { background: var(--bg-soft); }
/* Dunkle Sektionen: heller als der Footer, damit sie sich abheben */
.section--inverse { background: #4C5F73; color: #fff; }
.section--inverse h1, .section--inverse h2, .section--inverse h3 { color: #fff; }
.section--inverse a { color: var(--green-tint); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.09em;
  /* immer grün, unabhängig vom Seiten-/Sektions-Akzent */
  text-transform: uppercase; color: var(--green-strong); margin: 0 0 1rem;
}
.section--inverse .eyebrow { color: var(--green-tint); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--ink-soft); }
.section--inverse .lead { color: #E7EAEC; }

/* Leitlinie zwischen Abschnitten */
.guide {
  width: 2px; height: clamp(3rem, 7vw, 6rem);
  margin: 0 auto;
  background: linear-gradient(to bottom, transparent, var(--accent));
  border-radius: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  /* bleibt beim Seitenwechsel stehen, nur der Inhalt blendet über */
  view-transition-name: site-header;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.5rem;
}
.site-header__logo img { width: clamp(150px, 18vw, 200px); height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9875rem;
  padding: 0.4rem 0.1rem; border-bottom: 2px solid transparent;
}
/* Navigation: Unterstreichung immer grün, unabhängig vom Seiten-Akzent */
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--green); }
/* „Branchen" gilt als aktiv, wenn eine Unterseite daraus geöffnet ist */
.nav-group:has(a[aria-current="page"]) .nav-group__toggle { border-bottom-color: var(--green); }
.site-nav a.btn {
  border-bottom: 0;
  padding: 1rem 1.6rem; font-size: 1rem; font-weight: 600; line-height: 1;
  color: #fff;
}

/* Sprachumschalter (Dropdown wie „Branchen", rechtsbündig geöffnet) */
.nav-group--lang .nav-group__toggle { font-weight: 600; }
/* kein Unterstrich unter dem Sprachkürzel – weder aktiv noch beim Hover */
.nav-group--lang .nav-group__toggle,
.nav-group--lang:has(a[aria-current="page"]) .nav-group__toggle,
.nav-group--lang .nav-group__toggle:hover { border-bottom-color: transparent; }
.nav-group--lang .nav-group__list { left: auto; right: 0; min-width: 9rem; }
/* nicht verfügbare Sprachen (z. B. Impressum/Datenschutz nur auf Deutsch) */
.nav-group__disabled {
  display: block; padding: 0.55rem 0.75rem;
  color: #A9B0B6; cursor: not-allowed;
  font-weight: 500; font-size: 0.9875rem;
}

/* Branchen-Disclosure */
.nav-group { position: relative; }
.nav-group__toggle {
  font: inherit; font-weight: 500; color: var(--ink); background: none; border: 0;
  padding: 0.4rem 0.1rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem;
  border-bottom: 2px solid transparent;
}
.nav-group__toggle:hover { border-bottom-color: var(--green); }
.nav-group__toggle svg { transition: transform 200ms var(--ease); }
.nav-group__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-group__list {
  position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 14rem;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 0.5rem; margin: 0; list-style: none;
  box-shadow: 0 12px 32px rgba(30,42,53,0.10);
  display: none;
}
.nav-group__list.is-open { display: block; }
.nav-group__list a { display: block; padding: 0.55rem 0.75rem; border-bottom: 0; border-radius: 3px; }
.nav-group__list a:hover { background: var(--bg-soft); }

/* Mobile Navigation */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.6rem;
  color: var(--ink);
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--pad) 1.5rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a, .nav-group__toggle { padding: 0.85rem 0; width: 100%; text-align: left; }
  .nav-group__list { position: static; box-shadow: none; border: 0; padding-left: 1rem; }
  .site-nav a.btn { margin-top: 0.75rem; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 1rem 1.6rem; border-radius: 4px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn--primary { background: var(--green-strong); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--secondary { background: var(--bg-soft); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: #E2E5E7; border-color: var(--ink); }
/* Primärbutton auf dunklem Grund: im hellen Grün der Links */
.section--inverse .btn--primary { background: var(--green-tint); color: var(--ink); }
.section--inverse .btn--primary:hover { background: #93E2B3; }
.section--inverse .btn--secondary { color: #fff; border-color: #fff; background: rgba(255,255,255,0.08); }
.section--inverse .btn--secondary:hover { border-color: #fff; background: rgba(255,255,255,0.18); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.arrow-link {
  font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
}
.arrow-link--green { color: var(--green-strong); } /* grüner Link in violett akzentuierten Sektionen */
.arrow-link::after { content: "→"; transition: transform 200ms var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }
/* Hover (auch über dem Pfeil): nur den Linktext unterstreichen, nie den Pfeil */
.arrow-link:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #FBFBFC;
  border-bottom: 1px solid var(--line);
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  padding-block: clamp(6rem, 14vw, 11rem) clamp(5rem, 12vw, 9rem);
}
.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 38rem; }
.hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.no-js .hero__fallback, .reduced-motion .hero__fallback { opacity: 1; }
.no-js .hero__canvas, .reduced-motion .hero__canvas { display: none; }

/* Hero Variante B: „Linien am Berg" – helles Headerbild, Linien folgen dem Hang */
.hero--berg {
  background: #FBFBFC;
  /* Mehr Himmel: der Hero bekommt eigene Höhe, der Berg sitzt tief */
  min-height: clamp(560px, 82vh, 880px);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.hero--berg .hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  /* Vertikale Lage des Bildes: 62 % = Gipfel etwa auf Höhe der zweiten
     Headline-Zeile. Das Linien-Skript liest diesen Wert automatisch aus –
     hier justieren genügt. */
  object-position: 100% 62%;
  opacity: 0.55; z-index: 0;
}
.hero--berg::after {
  /* Aufhellung: hält das Bild leicht und die Typografie lesbar */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg,
    rgba(255,255,255,0.94) 0%,
    rgba(255,255,255,0.78) 40%,
    rgba(255,255,255,0.30) 75%,
    rgba(255,255,255,0.12) 100%);
}
.hero--berg .hero__canvas { z-index: 2; }
.hero--berg .hero__inner { z-index: 3; }
/* Lesbarkeit: weiche, halbtransparente Fläche hinter dem Einleitungstext.
   Die Fläche liegt auf einem Pseudo-Element und läuft über eine Maske
   an allen Rändern verwaschen aus – keine harte Kante. */
.hero--berg .lead {
  position: relative;
  width: fit-content;
  padding: 0.9rem 1.25rem;
  margin-left: -1.25rem;
}
.hero--berg .lead::before {
  content: "";
  position: absolute;
  inset: -2.5rem -4rem;
  z-index: -1;
  background: rgba(255,255,255,0.3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  -webkit-mask-image: radial-gradient(ellipse 65% 65% at center, #000 0%, rgba(0,0,0,0.7) 40%, transparent 78%);
  mask-image: radial-gradient(ellipse 65% 65% at center, #000 0%, rgba(0,0,0,0.7) 40%, transparent 78%);
}
.reduced-motion .hero--berg .hero__bg, .no-js .hero--berg .hero__bg { opacity: 0.55; }

/* Unterseiten-Hero */
.page-hero {
  background: #FBFBFC; border-bottom: 1px solid var(--line);
  /* Einheitliche Höhe auf allen Subseiten; Inhalt vertikal zentriert */
  min-height: 600px;
  padding-block: 3rem;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.page-hero > .wrap { width: 100%; }
@media (max-width: 820px) {
  .page-hero { min-height: 0; padding-block: 4rem; }
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 40rem; }
.page-hero__lines { position: absolute; right: -4rem; bottom: -1rem; width: min(48vw, 560px); opacity: 0.9; pointer-events: none; }
/* Subseiten-Header: freigestellter Bergrücken mit Linien (Stil der Startseite) */
.page-hero__berg {
  position: absolute; right: 0; bottom: 0; z-index: 0;
  width: min(62vw, 800px); height: auto;
  opacity: 0.95; pointer-events: none;
}
/* So weit nach unten geschoben, dass die linke Bildkante unter dem
   Abschnittsrand liegt – der Grat wächst kantenlos aus dem Seitenrand. */
/* Vollflächiges Headerbild (z. B. Öffentliche Verwaltung): ganzes Foto, leicht transparent */
.page-hero__voll {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.1; /* 90 % Transparenz */
  pointer-events: none;
}
.page-hero__berg--s30 { transform: translateY(30%); }
.page-hero__berg--s39 { transform: translateY(39%); }
.page-hero__berg--s45 { transform: translateY(45%); }
.page-hero__berg--s51 { transform: translateY(51%); }
.page-hero__berg--s66 { transform: translateY(66%); }
.page-hero .wrap { position: relative; z-index: 1; }
@media (max-width: 820px) {
  .page-hero__lines, .page-hero__berg { display: none; }
  .page-hero__voll { opacity: 0.2; } /* mobil: 80 % Transparenz */
}

/* Begriffspaar */
.wordpair {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  color: var(--ink-soft); margin: 0 0 1.5rem;
}
.wordpair s { text-decoration-color: var(--accent); text-decoration-thickness: 2px; opacity: 0.55; }
.wordpair strong { font-weight: 400; color: var(--ink); }

/* ---------- Karten: Ausgangssituationen ---------- */
.cards {
  display: grid; gap: 1.5rem; margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 2rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 0.75rem;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
  position: relative;
}
.card::before {
  content: ""; position: absolute; left: 1.75rem; right: 1.75rem; top: 0; height: 3px;
  background: var(--line); border-radius: 0 0 3px 3px;
  transition: background-color 200ms ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,42,53,0.08); }
.card:hover::before { background: var(--accent); }
.card h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.card p { font-size: 0.9875rem; color: var(--ink-soft); flex: 1; }
.card .arrow-link { font-size: 0.9375rem; }

/* ---------- Leistungsfelder ---------- */
.fields { display: grid; gap: 0; margin-top: 3rem; border-top: 1px solid var(--line); }
.field {
  display: grid; grid-template-columns: 5rem 1fr auto; gap: 1.5rem; align-items: baseline;
  padding: 2rem 0.5rem; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; position: relative;
}
.field__num { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent-strong); }
.field h3 { margin-bottom: 0.35rem; font-size: 1.5rem; }
.field p { margin: 0; color: var(--ink-soft); font-size: 0.9875rem; }
.field::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--accent); transition: width 350ms var(--ease);
}
.field:hover::after, .field:focus-visible::after { width: 100%; }
.field .field__go { font-size: 1.5rem; color: var(--accent-strong); transition: transform 200ms var(--ease); }
.field:hover .field__go { transform: translateX(6px); }
@media (max-width: 640px) {
  .field { grid-template-columns: 3rem 1fr; }
  .field .field__go { display: none; }
}

/* Leistungsseite: Detailfelder */
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; }
.service__head { position: sticky; top: 6rem; align-self: start; }
.service__num { font-family: var(--font-display); font-size: 1.25rem; color: var(--accent-strong); display: block; margin-bottom: 0.5rem; }
.service__claim { font-family: var(--font-display); font-size: 1.25rem; color: var(--green-strong); margin: 0.5rem 0 0; }
.service ul { padding-left: 1.2rem; margin: 0.5rem 0 1.25rem; }
.service li { margin-bottom: 0.4rem; }
@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; }
  .service__head { position: static; }
}

/* ---------- Faktenzeilen ---------- */
.facts { margin-top: 2.5rem; border-top: 1px solid var(--line); max-width: 52rem; }
.fact {
  display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr; gap: 1.5rem;
  padding: 1.35rem 0.25rem; border-bottom: 1px solid var(--line); align-items: baseline;
}
.fact dt { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin: 0; }
.fact dd { margin: 0; color: var(--ink-soft); font-size: 0.9875rem; }
@media (max-width: 560px) { .fact { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------- Personenkarten ---------- */
.people {
  display: grid; gap: 2rem; margin-top: 3rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}
.person { position: relative; }
.person__media {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px;
  background: var(--bg-soft); cursor: pointer; border: 0; padding: 0; width: 100%; display: block;
}
.person__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 450ms ease-in-out, transform 450ms ease-in-out;
}
.person__media img.img--situation { opacity: 0; transform: scale(1.02); }
.person__media:hover img.img--situation,
.person__media:focus-visible img.img--situation,
.person__media.show-situation img.img--situation { opacity: 1; transform: scale(1); }
.person__media:hover img.img--portrait,
.person__media:focus-visible img.img--portrait,
.person__media.show-situation img.img--portrait { opacity: 0; }
.person__dots {
  position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%);
  display: none; gap: 0.35rem; z-index: 2;
}
.person__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.65); border: 1px solid rgba(30,42,53,0.35); }
.person__dots span.is-active { background: var(--ink); }
@media (hover: none) { .person__dots { display: flex; } }
.person__name { font-family: var(--font-display); font-size: 1.3rem; margin: 1rem 0 0.1rem; }
.person__role { color: var(--accent-strong); font-size: 0.9rem; font-weight: 500; margin: 0 0 0.5rem; }
.person__tags { font-size: 0.875rem; color: var(--ink-soft); margin: 0; }
.person__more {
  font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--accent-strong);
  background: none; border: 0; padding: 0.4rem 0; cursor: pointer; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.person__more:hover { text-decoration-thickness: 2px; }
.person__bio { display: none; padding-top: 0.5rem; font-size: 0.9375rem; color: var(--ink-soft); }
.person__bio.is-open { display: block; }
.person--advisor .person__role { color: var(--violet-deep); }
.person--advisor .person__media { border: 1px solid var(--violet-tint); }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink); background: #D5D9DC;
  border-radius: 3px; padding: 0.2rem 0.5rem; margin-bottom: 0.5rem;
}

/* ---------- Team kompakt (Startseite) ----------
   Kacheln nach dem Muster der Portrait-Platzhalter: getönte Fläche,
   rundes Foto mittig, darunter Name, Rolle und Links. */
.team-scroller { position: relative; margin-top: 3rem; }
.team-grid {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(16rem, 24vw, 19rem);
  gap: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Scrollbalken ausblenden */
}
.team-grid::-webkit-scrollbar { display: none; }
.team-scroller__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: #fff; border: 0; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 6px 20px rgba(30,42,53,0.12);
}
.team-scroller__btn:hover { color: var(--accent-strong); }
.team-scroller__btn--prev { left: -1.1rem; }
.team-scroller__btn--next { right: -1.1rem; }
/* Team-Seite: gleiche Kacheln, aber als festes Raster ohne Scrolling */
.team-grid--static {
  grid-auto-flow: row;
  grid-auto-columns: unset;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  overflow-x: visible;
  margin-top: 3rem;
}
.team-card .badge { margin-bottom: 0.85rem; }
.team-card {
  /* Grauton, etwas dunkler als der Seitenhintergrund (--bg-soft #F5F6F7) */
  background: #E9EBED;
  border-radius: 8px;
  padding: 2.25rem 1.75rem 1.75rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.team-card img {
  width: clamp(6.5rem, 9vw, 8rem); aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 50%; background: var(--bg-soft);
}
/* Karten mit „in Action"-Bild: weicher Wechsel beim Hover (ohne Zoom) */
.team-card__media { position: relative; display: block; width: clamp(6.5rem, 9vw, 8rem); aspect-ratio: 1 / 1; }
.team-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.team-card__media .img--action {
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.team-card:hover .img--action, .team-card:focus-within .img--action { opacity: 1; }
.team-card__name { font-family: var(--font-display); font-size: 1.2rem; margin: 1.1rem 0 0.7rem; color: var(--ink); }
.team-card__role { display: none; } /* Rolle nur im Profil-Popup */
.team-card__tags { color: var(--ink); font-size: 0.8125rem; line-height: 1.55; margin: 0 0 1.25rem; }
.team-card__links {
  display: flex; gap: 1.25rem; align-items: center; justify-content: center;
  font-size: 0.9rem; margin: auto 0 0;
}
/* LinkedIn-Icon: erbt exakt die Farbe von „Profil lesen" */
.team-card__linkedin {
  display: inline-flex; align-items: center; padding: 0.2rem; text-decoration: none;
  color: var(--green-strong);
}
/* Trenner zwischen Icon und „Profil lesen" */
.team-card__linkedin::after {
  content: "|"; margin-left: 1.1rem;
  color: var(--green); font-weight: 400;
}
/* Hover (auch über dem Pfeil, da er Teil des Buttons ist):
   Text in eigener Textfarbe unterstreichen */
.team-card__more:hover span {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
/* Hover über dem LinkedIn-Icon: Unterstreichung unter dem Symbol */
.team-card__linkedin svg { border-bottom: 1.5px solid transparent; padding-bottom: 3px; }
.team-card__linkedin:hover svg { border-bottom-color: currentColor; }
.team-card__more {
  font: inherit; font-weight: 600; color: var(--green-strong);
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.team-card__more::after { content: "→"; display: inline-block; transform: rotate(-45deg); }

/* Profil-Popup */
.profile-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(30, 42, 53, 0.7);
  display: flex; align-items: center; justify-content: center;
  padding: var(--pad); overflow-y: auto;
}
.profile-overlay[hidden] { display: none; }
.profile-modal {
  background: #fff; border-radius: 8px; max-width: 42rem; width: 100%;
  max-height: min(85vh, 100%); overflow-y: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem); position: relative;
  box-shadow: 0 24px 64px rgba(30, 42, 53, 0.35);
}
.profile-modal__close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
  color: var(--ink); border-radius: 4px;
}
.profile-modal__close:hover { background: var(--bg-soft); }
.profile-modal__head { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.25rem; }
.profile-modal__head img {
  width: clamp(5rem, 12vw, 7.5rem); height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: 6px; background: var(--bg-soft);
}
.profile-modal__head h3 { margin: 0 0 0.2rem; font-size: 1.5rem; }
.profile-modal__role { color: var(--accent-strong); font-size: 0.9375rem; font-weight: 500; margin: 0; }
.profile-modal__text p { font-size: 0.9875rem; color: var(--ink-soft); }
.profile-modal__text p:last-child { margin-bottom: 0; }
body.has-overlay { overflow: hidden; }

/* ---------- Zitat ---------- */
.quote {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.4; color: var(--violet-deep); max-width: 44rem; margin: 0;
}
.quote footer { font-family: var(--font-text); font-size: 0.9375rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Prinzipien ---------- */
.principles { counter-reset: p; display: grid; gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--line); max-width: 52rem; }
.principle { counter-increment: p; padding: 1.75rem 0.25rem; border-bottom: 1px solid var(--line); }
.principle h3 { display: flex; gap: 1rem; align-items: baseline; font-size: 1.35rem; }
.principle h3::before { content: counter(p, decimal-leading-zero); font-size: 1rem; color: var(--green-strong); }
.principle p { margin: 0.5rem 0 0 2.6rem; color: var(--ink-soft); font-size: 0.9875rem; }

/* ---------- Split (Text + Bild) ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.split__media { border-radius: 6px; overflow: hidden; background: var(--bg-soft); }
.split__media img, .split__media svg { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Arbeitsweise: Bergrücken im Hintergrund ---------- */
/* Freigestelltes Bild (Himmel transparent), sitzt unten rechts im
   Abschnitt hinter dem Inhalt. Es ist so weit nach unten verschoben,
   dass der linke Bildrand unterhalb der Abschnittskante liegt –
   der Grat wächst ohne sichtbare Kante aus dem Seitenrand. */
.section--berg {
  overflow: hidden;
  /* Platz für den Berg reservieren: sichtbare Berghöhe = 31,4 % der
     Bergbreite (Bild 1600×670, um 25 % abgesenkt), Bergbreite =
     min(85 % der Sektionsbreite, 1000 px) – plus 2.5rem Luft zum Text. */
  padding-bottom: calc(min(26.7%, 315px) + 2.5rem);
}
.section--berg::after {
  content: "";
  position: absolute; right: 0; bottom: 0; z-index: 0;
  width: min(85%, 1000px);
  aspect-ratio: 1600 / 670;
  background: url("../img/berg-arbeitsweise.webp") right bottom / contain no-repeat;
  transform: translateY(25%);
  opacity: 0.5;
  pointer-events: none;
}
.section--berg > .wrap { position: relative; z-index: 1; }
@media (max-width: 820px) {
  /* mobil: Berg deutlich transparenter, damit Text darüber lesbar bleibt */
  .section--berg::after { opacity: 0.2; }
}

/* ---------- Kontakt / Formular ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.25rem; }
.form label { font-weight: 600; font-size: 0.9375rem; display: block; margin-bottom: 0.4rem; }
.form .hint { font-weight: 400; color: var(--ink-soft); }
.section--inverse .form .hint { color: #fff; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink-soft); border-radius: 4px;
  padding: 0.9rem 1rem; min-height: 3.5rem;
}
.section--inverse .form input, .section--inverse .form textarea { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); color: #fff; }
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; border-color: var(--green-bright); }
.form__error { color: #B4304A; font-size: 0.875rem; margin-top: 0.35rem; display: none; }
.section--inverse .form__error { color: #FFB3C1; }
.form .is-invalid input, .form .is-invalid textarea { border-color: #B4304A; }
.form .is-invalid .form__error { display: block; }
.form__note { font-size: 0.875rem; color: var(--ink-soft); }
.section--inverse .form__note { color: #C9CFD4; }
.form__success {
  display: none; border: 1.5px solid var(--green-tint); border-radius: 6px;
  padding: 1.5rem; background: rgba(173,239,196,0.12);
  margin-top: 2rem; /* Abstand zum Senden-Button */
}
.form__success.is-visible { display: block; }
/* Honeypot */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-person { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.contact-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.contact-person strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.contact-person span { font-size: 0.875rem; color: var(--ink-soft); }
.section--inverse .contact-person span { color: #C9CFD4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-inverse); color: #E7EAEC; padding-block: 3.5rem 2.5rem; font-size: 0.9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--green-tint); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.site-footer__logo img { width: 180px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; font-size: 0.8125rem; color: #B9C0C6; }
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Reveals ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .site-footer, .hero__canvas, .btn, .guide { display: none; }
}
