/* ===== Schriften =====
   Beide frei (SIL Open Font License) und lokal eingebunden, nichts wird von Google geladen.
   Google Sans: Laufschrift, variable Schrift 400–700.
   Platypi: Titel, variable Schrift 300–800 (Gelica/Roca wären Adobe Fonts, nicht selbst hostbar). */
@font-face {
  font-family: "Google Sans";
  src: url("assets/fonts/google-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Platypi";
  src: url("assets/fonts/platypi-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Platypi";
  src: url("assets/fonts/platypi-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Design Tokens (aus Figma) ===== */
:root {
  --neutral-100: #f1efef;
  --neutral-300: #e7e4e1;
  --neutral-400: #d0cec7;
  --neutral-500: #959585;
  --neutral-800: #343c43;
  --white: #ffffff;
  --green-200: #8bc7a9;
  --green-400: #467673;
  --blue-200: #a0c9e8;
  --orange-400: #ed897a;
  --orange-200: #f6c9d3;

  --font-script: "Platypi", Georgia, serif;
  --font-rt: "Google Sans", system-ui, sans-serif;

  --font-6xl: clamp(80px, 6.25vw, 100px);
  --font-4xl: clamp(42px, 4vw, 64px);
  --font-stat: 120px;
  --font-newsletter: 52px;
  --font-3xl: 32px;
  --font-2xl: 28px;
  --font-xl: 27px;
  --font-lg: 26px;
  --font-base: 19px;
  --font-xs: 14px;

  --space-xxs: 4px;
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 30px;
  --space-l: 48px;
  --space-xl: 96px;
  --space-section: 120px;
  --margin: 48px;

  --radius-m: 12px;
  --radius-tile: 12.951px;
  --radius-xl: 64px;

  /* Kein Maximum: Inhalte laufen über die ganze Bildschirmbreite (mit --margin Rand) */
  --max-width: none;
}

/* ===== Basis ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  background: var(--neutral-100);
  color: var(--neutral-800);
  font-family: var(--font-rt);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, blockquote, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

/* Trimmt Zeilenabstand oben/unten wie in Figma (text-box-trim) */
.trim {
  text-box: trim-both cap alphabetic;
}

/* ===== Typografie ===== */
.display {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: var(--font-6xl);
  line-height: 1;
  letter-spacing: -1px;
  text-align: center;
}

.heading-4xl {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: var(--font-4xl);
  line-height: 1;
  letter-spacing: -0.03em;
}

.heading-newsletter {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: var(--font-newsletter);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Laufschrift-Stile nach Figma Styleguide (211:3657) */
.text-3xl { font-size: var(--font-3xl); line-height: 1.3; }
.text-2xl { font-size: var(--font-2xl); line-height: 1.27; }
.text-xl  { font-size: var(--font-xl); line-height: 1.3; letter-spacing: -0.01em; }
.text-lg  { font-size: var(--font-lg); line-height: 1.4; }
.text-base { font-size: var(--font-base); line-height: 1.4; }
.text-base-b { font-size: var(--font-base); line-height: 1.34; font-weight: 700; }
.text-xs { font-size: var(--font-xs); line-height: 1.4; }

/* ===== Buttons (Figma: «Button Final Primary») ===== */
/* Primary: Default dunkel · Hover grün · Active dunkelgrün */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  height: 55.333px;
  padding: var(--space-xs) calc(var(--space-xs) + var(--space-s));
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--neutral-800);
  color: var(--white);
  font-family: var(--font-rt);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(15px);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: var(--green-200);
  color: var(--neutral-800);
}

.button:active {
  background: var(--green-400);
  color: var(--white);
}

.button:focus-visible,
.link-button:focus-visible {
  outline: 2px solid var(--neutral-800);
  outline-offset: 3px;
}

.button--with-icon {
  padding-right: var(--space-xs);
}

/* Runder Pfeil im Button */
.button__fab {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: var(--space-xs);
  border-radius: 180px;
  background: var(--white);
  color: var(--neutral-800);
  backdrop-filter: blur(30px);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover .button__fab {
  background: var(--neutral-100);
}

.button:active .button__fab {
  background: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

/* Secondary (Text-Link mit Pfeil): Default dunkel · Hover grün · Active dunkelgrün */
.link-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.link-button:hover {
  color: var(--green-200);
}

/* Aktive Seite in der Navigation: grün (Figma 12092:6467) */
.nav__links .link-button[aria-current="page"] {
  color: var(--green-200);
}

/* Navigationspunkt mit Pfeil (Vision): 24px-Iconbox direkt am Text, ohne Abstand */
.link-button--nav-ext {
  gap: 0;
}

.link-button:active {
  color: var(--green-400);
}

.link-button__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
}

.link-button__icon--small {
  width: 20px;
  height: 20px;
}

/* Icons übernehmen die Textfarbe (currentColor) */
.icon {
  display: block;
  flex: none;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.icon--arrow-right {
  width: 11.7728px;
  height: 11.4px;
  -webkit-mask-image: url("assets/arrow-right-small.svg");
  mask-image: url("assets/arrow-right-small.svg");
}

.icon--arrow-up-right {
  width: 13.8px;
  height: 13.8px;
  -webkit-mask-image: url("assets/arrow-up-right.svg");
  mask-image: url("assets/arrow-up-right.svg");
  transform: rotate(-90deg);
}

/* Pfeil in der Navigation (Figma «Arrow Up Right», 9px, gleich lange Schenkel) */
.icon--arrow-nav {
  width: 9px;
  height: 9px;
  -webkit-mask-image: url("assets/arrow-nav.svg");
  mask-image: url("assets/arrow-nav.svg");
  transform: rotate(-90deg);
}

.icon--arrow-up-right-small {
  width: 11.5px;
  height: 11.5px;
  -webkit-mask-image: url("assets/arrow-up-right-small.svg");
  mask-image: url("assets/arrow-up-right-small.svg");
  transform: rotate(-90deg);
}

/* Social-Links nutzen in Figma die Komponente «Buttons» (Bold) */
.footer__social .link-button {
  gap: var(--space-xxs);
  font-weight: 700;
}

/* Google Maps und Email im Footer ebenfalls fett */
.footer__col .link-button {
  font-weight: 700;
}

/* Runde Pfeil-Buttons (FAB) */
.fab {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 180px;
  background: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.fab__icon {
  grid-area: 1 / 1;
}

.fab__icon--flip {
  transform: rotate(180deg);
}

.fab__icon--disabled,
.fab:disabled .fab__icon--enabled {
  display: none;
}

.fab:disabled .fab__icon--disabled {
  display: block;
}

.fab:disabled {
  background: var(--neutral-300);
  cursor: default;
}

.fab:not(:disabled):hover {
  background: var(--neutral-300);
}

/* ===== Navigation ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  padding: var(--space-m) var(--margin);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin: 0 auto;
  /* rechts gleich viel Abstand wie oben/unten, damit der Kontakt-Button bündig sitzt */
  padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-s);
  border-radius: var(--radius-xl);
  background: var(--white);
  backdrop-filter: blur(30px);
  pointer-events: auto;
}

.nav__logo {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  padding: 0 var(--space-m);
}

.nav__logo-img {
  display: block;
  width: auto;
  height: 30px;
}

.nav__links {
  flex: 1 0 0;
  display: flex;
  justify-content: center;
  gap: var(--space-m);
}

.nav__cta {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

/* Sprachwahl DE · EN · FR */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1;
}

.lang-switch a {
  color: var(--neutral-500);
  font-weight: 500;
  transition: color 0.2s ease;
}

.lang-switch a[aria-current="true"] {
  color: var(--neutral-800);
  font-weight: 700;
}

.lang-switch a:hover {
  color: var(--green-200);
}

.lang-switch a:focus-visible {
  outline: 2px solid var(--neutral-800);
  outline-offset: 3px;
}

/* Kopien im Mobile-Menü, auf Desktop/Tablet ausgeblendet */
.lang-switch--menu,
.nav__menu-cta {
  display: none;
}

.nav__toggle {
  display: none;
}

.nav__toggle img {
  width: 27px;
  height: 8.25px;
}

/* Schwebender Kontakt-Button (nur Mobile) */
.mobile-cta {
  display: none;
}

/* ===== Hero ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-l);
  padding-top: calc(132px + var(--space-l));
}

/* Mehr Luft zwischen Titel und Bildstreifen (Wunsch 20.11., mehr als Figma):
   Desktop 80px = Gap 48 + 32 */
.hero .display {
  padding: 0 var(--margin);
  margin-bottom: 32px;
}

.hero-strip {
  width: 100%;
}

.hero-strip__group {
  display: flex;
  gap: 19px;
  height: 437px;
  padding-right: 19px;
}

.tile {
  position: relative;
  flex: 0 0 auto;
  width: 304px;
  height: 380px;
  border-radius: var(--radius-tile);
  background: var(--tile-bg, transparent);
  overflow: hidden;
}

.tile img,
.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile--top { align-self: flex-start; }
.tile--bottom { align-self: flex-end; }
.tile--center { align-self: center; }

/* Figma Hero (9866:12832): Bildstreifen → Text = Section-Abstand (120px).
   Der Gap der Hero-Spalte (--space-l) zählt schon mit, darum oben die Differenz */
.hero__intro {
  max-width: 820px;
  padding: calc(var(--space-section) - var(--space-l)) var(--margin) var(--space-section);
  text-align: center;
  box-sizing: content-box;
}

/* ===== Endlos-Laufband (Marquee) ===== */
.marquee {
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration, 60s) linear infinite;
}

/* Pausiert beim Hover – ausser beim Bilder-Laufband im Hero, das läuft immer weiter */
.marquee:not(.hero-strip):hover .marquee__track {
  animation-play-state: paused;
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }

  .marquee--reverse .marquee__track {
    transform: translateX(-892px);
  }
}

/* ===== Zahlen ===== */
.facts {
  background: var(--green-400);
  padding: 0 var(--margin);
}

.facts__inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(var(--space-l), 7.5vw, var(--space-section));
  margin: 0 auto;
}

.facts__aside {
  position: sticky;
  top: 0;
  /* Text- und Kartenspalte wachsen im Figma-Verhältnis 472 : 912 */
  flex: 472 1 0;
  min-width: 0;
  padding: 170px 0 var(--space-section);
  color: var(--neutral-100);
}

.facts__grid {
  flex: 912 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 30px;
  padding: 170px 0 var(--space-section);
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxs);
  min-height: 294px;
  padding: clamp(30px, 3vw, var(--space-l));
  border-radius: var(--radius-m);
  background: var(--green-200);
  overflow: hidden;
  container-type: inline-size;
}

.stat-card__number {
  flex: 1 0 auto;
  margin-bottom: var(--space-s);
  font-family: var(--font-script);
  font-weight: 400;
  /* Max. 120px, aber nie breiter als die Karte («6’000» ist ca. 2.7× so breit wie hoch) */
  font-size: min(var(--font-stat), 36cqi);
  line-height: 0.86;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

/* ===== Statement ===== */
/* Desktop: Lead links (340px), Text rechts (max. 987px); nie umbrechen, der Text wird schmaler */
.statement {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-l) var(--space-l);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--margin);
}

.statement__lead {
  flex: none;
  width: 340px;
}

.statement__body {
  flex: 0 1 987px;
  min-width: 340px;
}

/* ===== Abschnitts-Titel ===== */
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-l);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin) var(--space-l);
}

.section-title--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 calc(var(--margin) + var(--space-section)) var(--space-l);
}

.carousel-controls {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

/* ===== Karussell (Services, Team) ===== */
.carousel-section {
  padding: var(--space-xl) 0;
}

.carousel {
  display: flex;
  gap: var(--space-m);
  padding: 0 var(--margin);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--margin);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.team-card {
  position: relative;
  flex: 0 0 auto;
  width: min(598px, 85vw);
  min-width: 300px;
  border-radius: var(--radius-m);
  overflow: hidden;
  scroll-snap-align: start;
}

.team-card {
  display: flex;
  height: 662px;
  padding: var(--space-xs);
  background: var(--blue-200);
  color: var(--white);
}

.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(135, 135, 135, 0.2), rgba(0, 0, 0, 0.2));
}

.team-card__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-m);
  width: 100%;
  padding: var(--space-m);
}

/* ===== Testimonials ===== */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-xl) 0;
}

.testimonials .section-title--center {
  gap: var(--space-l);
}

.testimonials__intro {
  max-width: 946px;
}

/* Eine Reihe zum Swipen bzw. Blättern mit den Pfeilen (Figma 12092:6291), kein Laufband */
.testimonials__track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--margin);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonials__track::-webkit-scrollbar {
  display: none;
}

.testimonial-row {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 0 var(--margin);
}

/* Figma «Testemonial Container» (10012:24407): Bild und Text in einer weissen Karte */
.testimonial {
  display: flex;
  flex: 0 0 auto;
  height: 319px;
  scroll-snap-align: start;
  padding: var(--space-xs);
  border-radius: var(--radius-m);
  background: var(--white);
}

.testimonial__image {
  position: relative;
  flex: 0 0 auto;
  width: 304px;
  border-radius: var(--radius-m);
  background: var(--tile-bg);
  overflow: hidden;
}

/* Porträts im Hochformat 3:4 (Figma «Bilder» → Aufbereitet), Hintergrund im Bild */
.testimonial__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.testimonial__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-xxs);
  width: 436px;
  padding: var(--space-m);
}

.testimonial__quote {
  font-size: var(--font-base);
  font-weight: 500;
  line-height: 1.4;
}

.testimonial__card figcaption {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxs);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.testimonial__name {
  font-weight: 700;
}

/* Pfeile unter den Karten, wie beim Team */
.testimonials__controls {
  padding: 0 var(--margin);
}

/* ===== CTA (Figma 9866:12871 / Tablet 10012:21728 / Mobile 10012:22099) ===== */
/* CTA steht nach dem Team. Die Team-Section bringt unten schon --space-xl mit,
   darum oben nur die Differenz zum Figma-Abstand (Desktop 120px) */
.cta-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--space-section) - var(--space-xl)) var(--margin) var(--space-section);
}

.cta {
  display: flex;
  align-items: stretch;
  gap: var(--space-section);
  padding: var(--space-s);
  border-radius: var(--radius-m);
  background: var(--blue-200);
}

.cta__image {
  position: relative;
  flex: 0 0 396px;
  min-width: 340px;
  border-radius: var(--radius-m);
  overflow: hidden;
}

.cta__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-l);
  max-width: 725px;
  padding: var(--space-l) 0;
}

/* ===== Footer ===== */
/* Footer-Box läuft bis an den Bildschirmrand (Figma: Footer-Default) */
.footer {
  padding: 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  padding: var(--space-l) var(--margin) var(--space-m);
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  background: var(--white);
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--space-l);
  border-radius: var(--radius-m);
  background: var(--green-200);
}

.newsletter__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  max-width: 698px;
  padding: 0 var(--space-s);
}

.newsletter__form {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  width: min(450px, 100%);
  padding: var(--space-s);
  border-radius: var(--radius-xl);
  background: var(--neutral-100);
}

.newsletter__form input {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 var(--space-s);
  border: 0;
  background: transparent;
  outline: none;
}

.newsletter__form input::placeholder {
  color: var(--neutral-500);
}

/* Fokus wie bei den Feldern im Kontaktformular: 1.5px hellgrau, innen */
.newsletter__form {
  transition: box-shadow 0.15s ease;
}

.newsletter__form:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--neutral-400);
}

.newsletter__form .button {
  height: 56px;
}

.newsletter__thanks {
  flex: 1 1 0;
  padding: 0 var(--space-s);
}

.footer__columns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l);
  padding: var(--space-l) var(--margin) 0;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  flex: 1 1 0;
  min-width: min(340px, 100%);
  max-width: 340px;
}

.footer__line {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-l);
  padding: var(--space-xl) var(--margin) var(--space-l);
}

.footer__lang,
.footer__legal,
.footer__social {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: min(340px, 100%);
  max-width: 340px;
}

.footer__lang { gap: var(--space-xs); }
.footer__legal { gap: 24px; }
.footer__social { gap: var(--space-m); }

.footer__legal a:hover,
.footer__lang a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Responsive: Tablet (Figma 834px) ===== */
@media (max-width: 1100px) {
  :root {
    --font-6xl: 80px;
    --font-4xl: 42px;
    --margin: 32px;
    --space-section: 96px;
  }

  .site-header {
    padding: var(--space-m) var(--margin);
  }

  /* Figma Tablet (12093:2556): Leiste 8px Innenabstand, Logo 123px mit 30px Rand,
     Sprachwahl 14px, 16px bis zum Kontakt-Button */
  .nav {
    gap: 24px;
    padding: var(--space-xs);
  }

  .nav__logo {
    padding: 0 30px;
  }

  .nav__logo-img {
    height: 26.5px;
  }

  .nav__cta {
    gap: var(--space-s);
  }

  .nav__cta .lang-switch {
    gap: var(--space-xs);
    font-size: 14px;
  }

  /* Hero */
  .hero {
    gap: 0;
    padding-top: 132px;
  }

  /* Tablet: Titel → Bildstreifen 96px (64 + 32 Abstand des Streifens) */
  .hero .display {
    padding: var(--space-l) var(--margin) 64px;
    margin-bottom: 0;
  }

  .hero-strip {
    margin-top: 32px;
  }

  /* Figma Tablet: Bildstreifen → Text 64px (32px Gap + 32px Innenabstand) */
  .hero__intro {
    max-width: 678px;
    padding: 64px var(--margin) 120px;
  }

  /* Zahlen */
  .facts {
    padding: var(--space-l) 12px;
  }

  .facts__inner {
    flex-direction: column;
    gap: 24px;
  }

  .facts__aside {
    position: static;
    flex: none;
    max-width: none;
    padding: 24px;
  }

  .facts__grid {
    flex: none;
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
  }

  .stat-card {
    min-height: 267px;
    padding: 30px;
  }

  /* Statement */
  /* Tablet (Figma Text 10012:21713): untereinander, Lead 16px fett, Text LG, 30px Abstand */
  .statement {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 30px;
    padding: var(--space-xl) var(--margin);
  }

  .statement__lead,
  .statement__body {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .statement__lead {
    font-size: 16px;
  }

  .statement__body .text-lg {
    font-size: 23px;
  }

  /* Abschnitts-Titel */
  .section-title--center {
    padding-left: var(--margin);
    padding-right: var(--margin);
  }

  /* CTA: Figma Tablet unten 30px; oben bringt die Team-Section schon 96px mit */
  .cta-section {
    padding: 0 var(--margin) var(--space-m);
  }

  .cta {
    align-items: center;
    gap: var(--space-l);
    padding: var(--space-xs);
  }

  .cta__image {
    flex: 1 1 0;
    min-width: 0;
    height: 298px;
  }

  .cta__content {
    flex: 1 1 0;
    gap: var(--space-s);
    padding: 0;
  }

  /* Footer */
  .footer__inner {
    padding: var(--space-l) var(--space-l) var(--space-m);
  }

  .newsletter {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-m);
  }

  .newsletter__text {
    padding: 0;
  }

  .newsletter__form {
    width: 100%;
  }

  .footer__columns {
    flex-wrap: nowrap;
    padding: 0;
  }

  .footer__col {
    min-width: 0;
    max-width: 297px;
  }

  .footer__bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-m) 16px;
    padding: 0;
  }

  .footer__social {
    order: -1;
    grid-column: 1 / -1;
    max-width: none;
    padding-bottom: var(--space-m);
    border-bottom: 1px solid var(--neutral-400);
  }

  .footer__lang,
  .footer__legal {
    min-width: 0;
    max-width: none;
  }

  /* Testimonials (Figma Tablet 12092:2246): Karte mit Bild oben, Text darunter */
  .testimonials .testimonial-row {
    gap: 16px;
  }

  .testimonials .testimonial {
    flex-direction: column;
    gap: var(--space-xs);
    width: 413px;
    height: auto;
  }

  .testimonials .testimonial__image {
    width: 100%;
    height: 233px;
  }

  /* Querformat: Kopf und Oberkörper zeigen (wie in Figma).
     Pro Bild anpassbar mit style="--img-y: …" am img */
  .testimonials .testimonial__image img {
    object-position: 50% var(--img-y, 25%);
  }

  .testimonials .testimonial__card {
    justify-content: flex-start;
    gap: var(--space-s);
    width: 100%;
    padding: var(--space-s);
  }

}

/* ===== Navigation mit Burger-Menü (Figma Mobile 10012:25223, Menü 10012:24559) =====
   schon ab 767px: darüber passt die Leiste mit allen Einträgen nicht mehr */
@media (max-width: 767px) {
  /* Navigation mit Hamburger-Menü */
  .site-header {
    padding: 24px 12px;
  }

  .nav {
    position: relative;
    justify-content: space-between;
    padding: var(--space-xs) var(--space-s); /* Figma: 16px seitlich, 8px oben/unten */
  }

  /* Figma Mobile (10012:25223): Logo 171px breit, 4px eingerückt */
  .nav__logo {
    flex: 0 1 auto;
    padding: 0 var(--space-xxs);
  }

  .nav__logo-img {
    height: 37px;
  }

  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: grid;
  }

  /* Vollbild-Menü (Figma: Menu-Mobile). Liegt hinter der weissen Nav-Leiste. */
  .nav.is-open {
    backdrop-filter: none;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-top: 120px;
    background: var(--neutral-100);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out, ease), visibility 0.35s;
  }

  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
  }

  /* Figma Menu-Mobile: 36px */
  .nav__links .link-button {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
  }

  /* Im Vollbild-Menü ohne Pfeil (Figma Menu-Mobile 10012:24559) */
  .nav__links .link-button__icon {
    display: none;
  }

  /* Services/Team mittig, Kontakt und Sprachwahl unten */
  .nav__links .link-button:first-child {
    margin-top: auto;
  }

  .nav__menu-cta {
    display: inline-flex;
    margin-top: auto;
    margin-bottom: 32px;
  }

  .lang-switch--menu {
    display: flex;
    justify-content: center;
    align-self: stretch;
    gap: var(--space-s);
    padding: 24px;
    border-top: 1px solid var(--neutral-400);
    font-size: 17px;
  }

  .lang-switch--menu a {
    color: var(--neutral-800);
  }

  /* Einträge gleiten beim Öffnen gestaffelt hoch */
  .nav__links > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out, ease), transform 0.5s var(--ease-out, ease);
  }

  .nav.is-open .nav__links > * {
    opacity: 1;
    transform: none;
  }

  .nav.is-open .nav__links > :nth-child(1) { transition-delay: 0.08s; }
  .nav.is-open .nav__links > :nth-child(2) { transition-delay: 0.14s; }
  .nav.is-open .nav__links > :nth-child(3) { transition-delay: 0.2s; }
  .nav.is-open .nav__links > :nth-child(4) { transition-delay: 0.26s; }
  .nav.is-open .nav__links > :nth-child(5) { transition-delay: 0.32s; }

  /* Menü-Button bleibt weiss wie in Figma (kein grauer Hover auf Touch-Geräten) */
  .nav .nav__toggle:not(:disabled):hover {
    background: var(--white);
  }

  /* Hamburger wird zum X */
  .nav__toggle img {
    grid-area: 1 / 1;
  }

  .nav__toggle-close,
  .nav.is-open .nav__toggle-open {
    display: none;
  }

  .nav.is-open .nav__toggle-close {
    display: block;
    width: 24.716px;
    height: 24.716px;
  }

  html:has(.nav.is-open) {
    overflow: hidden;
  }

  .nav.is-open ~ .mobile-cta,
  html:has(.nav.is-open) .mobile-cta {
    opacity: 0;
    visibility: hidden;
  }
}

/* ===== Responsive: Mobile (Figma 393px) ===== */
@media (max-width: 600px) {
  :root {
    --font-6xl: 48px;
    --font-lg: 23px;
    --margin: 12px;
    --space-section: 56px;
  }

  html {
    scroll-padding-top: 110px;
  }

  .mobile-cta {
    display: inline-flex;
    position: fixed;
    left: 50%;
    bottom: 56px;
    z-index: 9;
    transform: translateX(-50%);
    transition: opacity 0.2s ease, visibility 0.2s;
  }

  .mobile-cta.is-hidden {
    opacity: 0;
    visibility: hidden;
  }

  /* Hero */
  .hero {
    padding-top: 120px;
  }

  /* H1 auf Mobile: skaliert mit der Breite (393px ≈ 53px), max. 56px */
  .hero .display {
    padding: 32px var(--margin) 72px; /* Titel → Bildstreifen 72px */
    font-size: min(56px, 13.5vw);
    letter-spacing: -0.01em;
  }

  .hero-strip {
    margin-top: 0;
  }

  .hero-strip__group {
    height: 349px;
  }

  .tile {
    width: 243px;
    height: 304px;
    border-radius: 10.361px;
  }

  /* Lead-Text über die ganze Breite, mit normalem Seitenrand */
  .hero__intro {
    max-width: none;
    width: 100%;
    padding: var(--space-section) var(--margin);
    box-sizing: border-box;
  }

  /* Zahlen */
  .facts {
    padding: var(--space-l) var(--margin);
  }

  .facts__inner {
    gap: var(--space-l);
  }

  .facts__aside {
    padding: 0;
  }

  .facts__grid {
    grid-template-columns: 1fr;
  }

  /* Statement */
  .statement {
    flex-direction: column;
    gap: 32px;
    padding: var(--space-section) var(--margin);
  }

  .statement__lead {
    flex: none;
    font-size: 17px;
  }

  .statement__body {
    flex: none;
  }

  /* Karussells: Pfeile unter den Karten */
  .carousel-section {
    display: flex;
    flex-direction: column;
    padding: var(--space-section) 0 0;
  }

  .carousel-section .section-title {
    display: contents;
  }

  .carousel-section .section-title h2 {
    padding: 0 var(--margin) 32px;
  }

  .carousel-section .carousel-controls {
    order: 1;
    padding: 32px var(--margin) var(--space-section);
  }

  #team .carousel-controls {
    padding-top: var(--space-s);
    padding-bottom: 32px;
  }

  #team {
    padding-bottom: var(--space-l);
  }

  .carousel {
    gap: var(--space-s);
  }

  /* Team-Karten */
  .team-card {
    width: 343px;
    min-width: 0;
    max-width: calc(100vw - 2 * var(--margin) - 38px);
    height: 459px;
  }

  /* Testimonials */
  .testimonials {
    padding: var(--space-l) 0 var(--space-xs);
  }

  .testimonials .section-title--center {
    gap: 32px;
    padding: 0 24px 24px;
  }

  .testimonials .display {
    letter-spacing: -0.48px;
  }

  /* Swipe-Reihe kommt aus dem Tablet-Block. Hier nur: schmalere Abstände und
     Karte etwas schmaler als der Screen, damit die nächste anschaut */
  .testimonials .testimonial-row {
    gap: 8px;
  }

  .testimonials .testimonial {
    width: calc(100vw - 2 * var(--margin) - 32px);
  }

  .testimonials__controls {
    padding-bottom: 32px; /* Abstand nach oben kommt vom gap der Section */
  }

  /* CTA: Figma Mobile 56px oben und unten (Team bringt oben schon 48px mit) */
  .cta-section {
    padding: 8px var(--margin) var(--space-section);
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .cta__image {
    flex: none;
    height: 244px;
  }

  .cta__content {
    gap: 24px;
    padding: var(--space-xs);
  }

  /* Footer (Figma Footer-Default Mobile 10012:24329):
     Weiss 24px oben/unten, 16px seitlich, Ecken 12px; Abstände innen 24px */
  .footer__inner {
    gap: var(--space-l);
    padding: 24px var(--space-s);
    border-radius: var(--radius-m) var(--radius-m) 0 0;
  }

  .newsletter {
    gap: 24px;
    padding: var(--space-s);
  }

  .newsletter__text {
    gap: 24px;
    padding: var(--space-xs) 0;
  }

  /* Newsletter-Titel gleich gross wie «Interested?» in der CTA-Karte (42px) */
  .heading-newsletter {
    font-size: var(--font-4xl);
  }

  .newsletter__form {
    padding: var(--space-xs);
  }

  .newsletter__form input {
    font-size: 16px;
  }

  .footer__columns {
    flex-direction: column;
    gap: 24px;
    padding: 0 var(--space-s);
  }

  .footer__col {
    max-width: none;
  }

  /* Social (mit Linie) → 24px → Sprache → 16px → Impressum/Datenschutz */
  .footer__bottom {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 0 var(--space-s);
  }

  .footer__social {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-s);
    padding-bottom: 24px;
  }

  .footer__legal {
    margin-top: -8px;
  }
}

/* ===== Kontaktseite ===== */
.contact {
  display: flex;
  align-items: flex-start;
  gap: var(--space-l);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 144px var(--margin) var(--space-xl);
}

.contact__intro {
  position: sticky;
  top: 144px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  padding: 120px var(--space-xl) var(--space-section) 0;
}

.contact__title {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: var(--font-5xl, 80px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-box: trim-both cap alphabetic;
}

.contact__lead {
  font-size: var(--font-base);
  line-height: 1.4;
}

.contact__form {
  flex: 0 1 857px;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  min-width: 0;
  padding: 160px 0 var(--space-section);
}

.contact__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  border: 0;
}

.contact__legend {
  margin-bottom: var(--space-m);
  padding: 0;
}

.contact__choices {
  display: flex;
  gap: var(--space-s);
}

.contact__choices-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

/* Radio-Buttons und Checkboxen */
.choice {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
  cursor: pointer;
}

.choice__input {
  flex: none;
  appearance: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1px solid var(--neutral-400);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.choice__input::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

.choice__input:checked {
  border-color: var(--neutral-800);
  background: var(--neutral-800);
}

.choice__input:hover {
  border-color: var(--neutral-800);
}

.choice__input:focus-visible {
  outline: 2px solid var(--neutral-800);
  outline-offset: 2px;
}

.choice__label {
  font-size: var(--font-xs);
  line-height: 1.4;
}

.choice--checkbox {
  padding: 0;
}

.choice--checkbox .choice__input {
  border-radius: 2px;
  background: var(--white);
}

.choice--checkbox .choice__input::after {
  width: 10px;
  height: 6px;
  border-radius: 0;
  background: none;
  border: solid var(--white);
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}

.choice--checkbox .choice__input:checked {
  background: var(--neutral-800);
}

.choice--checkbox .choice__label {
  font-size: 16px;
}

.choice__label a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Textfelder */
.contact__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.field--full {
  grid-column: 1 / -1;
}

.field--message {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.field__label {
  font-size: var(--font-xs);
  line-height: 1.4;
}

.field__input {
  display: block;
  width: 100%;
  padding: calc(var(--space-m) - 1.5px);
  border: 1.5px solid transparent;
  border-radius: var(--radius-m);
  background: var(--white);
  font-size: var(--font-xs);
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s ease;
}

.field__input::placeholder {
  color: var(--neutral-500);
}

.field__input:focus {
  border-color: var(--neutral-400);
}

/* Fehler-State (Figma: Text Fields, State=Error) */
.field__input[aria-invalid="true"] {
  border-color: var(--orange-400);
}

.field__caption {
  margin-top: var(--space-xs);
  color: var(--orange-400);
  font-size: var(--font-xs);
  line-height: 1.4;
}

.field__textarea {
  min-height: 128px;
  font-size: var(--font-base);
  resize: vertical;
}

.contact__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.contact__error {
  margin-top: calc(var(--space-xs) - var(--space-m));
  color: var(--orange-400);
  font-size: var(--font-xs);
  line-height: 1.4;
}

.contact__thanks {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

@media (max-width: 1100px) {
  .contact {
    flex-direction: column;
    gap: 0;
    padding: 132px 0 0;
  }

  .contact__intro {
    position: static;
    flex: none;
    width: 100%;
    padding: var(--space-l) var(--margin);
  }

  .contact__title {
    font-size: 60px;
  }

  .contact__form {
    flex: none;
    width: 100%;
    padding: 0 var(--margin) 120px;
  }
}

@media (max-width: 600px) {
  .contact {
    padding-top: 120px;
  }

  .contact__intro {
    gap: 24px;
    padding: 24px var(--margin) 32px;
  }

  .contact__title {
    font-size: 48px;
  }

  .contact__form {
    gap: 24px;
    padding-bottom: var(--space-section);
  }

  .contact__legend {
    margin-bottom: 24px;
  }

  .contact__choices {
    flex-direction: column;
    gap: 4px;
  }

  .contact__choices-col {
    gap: 4px;
  }

  .contact__fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .field__input {
    padding: calc(20px - 1.5px) calc(var(--space-m) - 1.5px);
    font-size: 16px;
  }

  .field__textarea {
    min-height: 160px;
    font-size: 19px;
  }

  .contact__options .choice__label {
    font-size: var(--font-xs);
  }
}

.choice__input[aria-invalid="true"] {
  border-color: var(--orange-400);
}

/* ===== Team: klickbare Karten ===== */
.team-card .cover {
  transition: transform 0.4s ease;
}

.team-card:hover .cover {
  transform: scale(1.03);
}

.team-card__open {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.team-card__open:focus-visible {
  outline: 3px solid var(--neutral-800);
  outline-offset: -3px;
}

/* ===== Team-Overlay (Figma: Team-Overlay) ===== */
html:has(.team-dialog[open]) {
  overflow: hidden;
}

.team-dialog {
  width: min(1552px, 100vw - 48px);
  max-width: none;
  height: min(852px, 100dvh - 48px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 32px;
  background: var(--neutral-100);
  color: var(--neutral-800);
  overflow: hidden;
}

.team-dialog::backdrop {
  background: rgba(52, 60, 67, 0.45);
  backdrop-filter: blur(4px);
}

.team-dialog[open] {
  animation: team-dialog-in 0.25s ease;
}

@keyframes team-dialog-in {
  from { opacity: 0; transform: translateY(12px); }
}

/* Desktop (Figma Team-Overlay 9994:16188): links Foto über die ganze Höhe mit Kontakt unten,
   rechts X oben, Name/Rolle/Bio oben ausgerichtet, Pfeile unten rechts */
.team-dialog__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: var(--space-xl);
  row-gap: var(--space-l);
  height: 100%;
  padding: 30px;
  overflow-y: auto;
}

.team-dialog__top {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
}

.team-dialog__body {
  display: contents;
}

.team-dialog__media {
  grid-column: 1;
  grid-row: 1 / -1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 360px;
  padding: var(--space-xs);
}

.team-dialog__photo {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-m);
  background: var(--blue-200);
  overflow: hidden;
}

.team-dialog__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(135, 135, 135, 0.2), rgba(0, 0, 0, 0.2));
}

.team-dialog__contact {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-s);
  padding: 30px;
  border-radius: var(--radius-m);
  background: var(--white);
  font-size: var(--font-base);
  line-height: 1.4;
}

.team-dialog__contact[hidden] {
  display: none;
}

.team-dialog__contact a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.team-dialog__text {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-l);
  min-width: 0;
}

.team-dialog__heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.team-dialog__name {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: var(--font-4xl);
  line-height: 1;
  letter-spacing: -0.03em;
  text-box: trim-both cap alphabetic;
}

.team-dialog__role {
  font-size: var(--font-base);
  font-weight: 700;
  line-height: 1.34;
}

.team-dialog__bio {
  font-size: var(--font-base);
  line-height: 1.4;
}

.team-dialog__nav {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.team-dialog .fab:hover {
  background: var(--neutral-300);
}

/* Tablet (Figma Team-Overlay, Tablet 10017:4830): eine Spalte.
   Name + Rolle mit X oben, Bio, Kontakt, Foto (382px) mit Pfeilen unten rechts im Foto.
   Raster statt Spalten, damit die Pfeile im Foto liegen und nie den Text verdecken. */
@media (max-width: 1100px) {
  /* fit-content: ein offenes Overlay ist oben und unten verankert und würde sich sonst strecken */
  .team-dialog {
    width: min(786px, 100vw - 48px);
    height: fit-content;
    max-height: calc(100dvh - 48px);
  }

  .team-dialog__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto;
    column-gap: var(--space-s);
    row-gap: 0;
    height: auto;
    max-height: calc(100dvh - 48px);
    padding: 30px;
  }

  .team-dialog__body,
  .team-dialog__media,
  .team-dialog__text {
    display: contents;
  }

  .team-dialog__top {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .team-dialog__heading {
    grid-column: 1;
    grid-row: 1;
    gap: var(--space-s);
  }

  .team-dialog__bio {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: var(--space-l);
  }

  .team-dialog__contact {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: 30px;
    padding: 24px;
  }

  .team-dialog__photo {
    grid-column: 1 / -1;
    grid-row: 4;
    position: relative;
    inset: auto;
    /* Figma 382px; auf niedrigen Screens (Tablet quer) kleiner, damit möglichst nichts scrollt */
    height: clamp(240px, 100dvh - 560px, 382px);
    margin-top: 30px;
  }

  /* Pfeile unten rechts im Foto, 30px vom Rand */
  .team-dialog__nav {
    grid-column: 1 / -1;
    grid-row: 4;
    align-self: end;
    justify-self: end;
    position: relative;
    z-index: 1;
    padding: 30px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  /* 16px Rand rundherum, damit man die Seite dahinter noch ahnt */
  .team-dialog {
    width: calc(100vw - 32px);
    height: calc(100dvh - 32px);
    max-height: calc(100dvh - 32px);
    border-radius: 32px;
  }

  /* Figma (Team-Overlay, Mobile): Name + X oben, Bio, Kontakt, Foto mit Pfeilen unten rechts.
     Raster statt Spalten, damit die Pfeile im Foto liegen und nie den Text verdecken. */
  .team-dialog__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    /* letzte Zeile (Foto) füllt die restliche Höhe */
    grid-template-rows: auto auto auto minmax(240px, 1fr);
    column-gap: var(--space-s);
    row-gap: 0;
    height: 100%;
    max-height: none;
    padding: 24px;
  }

  .team-dialog__body,
  .team-dialog__media,
  .team-dialog__text {
    display: contents;
  }

  .team-dialog__top {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .team-dialog__heading {
    grid-column: 1;
    grid-row: 1;
    gap: 24px;
  }

  .team-dialog__bio {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 24px;
  }

  .team-dialog__contact {
    grid-column: 1 / -1;
    grid-row: 3;
    gap: 0;
    margin-top: var(--space-s);
    padding: var(--space-s);
  }

  .team-dialog__photo {
    grid-column: 1 / -1;
    grid-row: 4;
    position: relative;
    inset: auto;
    height: auto;
    min-height: 240px;
    margin-top: 32px;
  }

  /* Pfeile liegen immer unten rechts im Foto (= unten rechts im Overlay) */
  .team-dialog__nav {
    grid-column: 1 / -1;
    grid-row: 4;
    align-self: end;
    justify-self: end;
    position: relative;
    z-index: 1;
    padding: var(--space-s);
  }

  .team-dialog__role,
  .team-dialog__bio {
    font-size: 17px;
  }
}

/* ===== Services: gestapelte Karten (Figma: «List Card Benefits») ===== */
.benefits {
  padding: var(--space-xl) 0 var(--space-section);
}

.benefits__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin);
  list-style: none;
}

/* Jede Karte bleibt beim Scrollen kleben, leicht versetzt, damit sie sich stapeln */
.benefit {
  position: sticky;
  top: 90px;
  padding-top: var(--stack-offset, 48px);
}

/* Service-Karte (Figma: Card-Long 12037:3703, Stand 20.11.)
   Desktop: links Text (Nummer + Titel / Zielgruppe + Text / Link), rechts Bild */
.benefit-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(var(--space-l), 7.5vw, var(--space-section));
  padding: var(--space-m);
  border-radius: var(--radius-m);
  background: var(--card-bg);
}

.benefit-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  gap: var(--space-l);
  min-width: 0;
  padding: var(--space-m);
}

/* Nummer und Titel in einer Zeile. Der Kopf ist ein Container, damit der Titel
   nie breiter als seine Spalte wird («Neighborhood» ist ca. 6.6 × Schriftgrösse breit) */
.benefit-card__head {
  --head-offset: 80px; /* Nummer + Abstand */
  display: flex;
  align-items: flex-start;
  align-self: stretch;
  gap: var(--space-l);
  min-width: 0;
  container-type: inline-size;
}

.benefit-card__number {
  flex-shrink: 0;
  font-size: var(--font-base);
  font-weight: 700;
  line-height: 1.34;
}

.benefit-card__title {
  font-family: var(--font-script);
  font-weight: 500;
  /* --title-em: Breite des längsten Wortes in em, mit etwas Luft
     (EN «Neighborhood» 6.6 em, DE «Nachbarschafts-» 7.6 em) */
  --title-em: 7;
  font-size: min(var(--font-4xl), calc((100cqi - var(--head-offset)) / var(--title-em)));
  line-height: 1;
  letter-spacing: -0.03em;
  text-box: trim-both cap alphabetic;
}

:lang(de) .benefit-card__title {
  --title-em: 8;
}

/* Zielgruppe (Base B) direkt über dem Text */
.benefit-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.benefit-card__audience {
  font-size: var(--font-base);
  font-weight: 700;
  line-height: 1.34;
}

.benefit-card__text {
  font-size: var(--font-base);
  line-height: 1.4;
}

/* Bild mit Verlauf und «Scope» in Weiss unten links */
.benefit-card__media {
  position: relative;
  display: flex;
  align-items: flex-end;
  align-self: stretch;
  min-width: 0;
  min-height: 360px;
  padding: var(--space-l);
  border-radius: var(--radius-m);
  overflow: hidden;
  container-type: inline-size;
}

.benefit-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(102, 102, 102, 0), rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.benefit-card__scope {
  position: relative;
  z-index: 1;
  color: var(--white);
  /* Figma Card-Long (9949:7115): XL 27px bold; bei sehr schmalem Bild kleiner */
  font-size: min(var(--font-xl), 9cqi);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-box: trim-both cap alphabetic;
}

.benefits .section-title {
  align-items: flex-end;
}

.benefits__intro {
  max-width: 560px;
}

/* «Let’s talk» auf den farbigen Karten: Hover weiss */
.benefit-card .link-button:hover {
  color: var(--white);
}

/* Tablet (Figma: Card-Long, Variant2) */
@media (max-width: 1100px) {
  .benefit-card {
    align-items: center;
    column-gap: var(--space-l);
    padding: 30px;
  }

  .benefit-card__content {
    align-self: center;
    gap: 30px;
    padding: 0;
  }

  .benefit-card__head {
    --head-offset: 60px;
    gap: 30px;
  }

  .benefit-card__body {
    gap: var(--space-s);
  }

  .benefit-card__media {
    min-height: 380px;
    padding: 32px;
  }
}

/* Schmales Tablet und Mobile (Figma: Card-Long, Variant3):
   unter 768px ist für zwei Spalten zu wenig Platz. Nummer + Titel, Zielgruppe, Text, Bild, Link */
@media (max-width: 767px) {
  /* Ohne Stapeleffekt: die Karten sind unterschiedlich hoch und fast so hoch wie der Bildschirm */
  .benefits__list {
    gap: var(--space-s);
  }

  .benefit {
    position: static;
    padding-top: 0;
  }

  .benefit-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 32px 24px;
  }

  /* Alle Teile stehen direkt untereinander, damit das Bild vor den Link kann */
  .benefit-card__content,
  .benefit-card__body {
    display: contents;
  }

  .benefit-card__head {
    --head-offset: 50px;
    gap: 24px;
  }

  .benefit-card__media {
    order: 1;
    height: clamp(256px, 50vw, 360px);
    min-height: 0;
    padding: 32px;
  }

  .benefit-card .link-button {
    order: 2;
    align-self: flex-start;
  }
}

/* Mobile: Schriftgrössen und Abstände der Section */
@media (max-width: 600px) {
  .benefits {
    padding: var(--space-section) 0;
  }

  .benefits .section-title {
    padding-bottom: 24px;
  }

  .benefit-card__number,
  .benefit-card__audience,
  .benefit-card__text {
    font-size: 17px;
  }
}

/* ===== Grosse Screens: Navigation etwas grösser ===== */
@media (min-width: 1600px) {
  .nav {
    padding: 12px 12px 12px 24px;
  }

  .nav__logo-img {
    height: 40px;
  }

  .nav__links {
    gap: 40px;
  }

  .nav__links .link-button,
  .nav .lang-switch {
    font-size: 18px;
  }

  .nav__cta {
    gap: 32px;
  }

  .nav__cta .button {
    height: 64px;
    padding: 0 32px;
    font-size: 18px;
  }
}

/* =====================================================================
   Micro-Interaktionen & Scroll-Effekte (inspiriert von reforma-template)
   Werden nur aktiv, wenn script.js die Klasse .motion auf <html> setzt
   (also nicht ohne JavaScript und nicht bei «Bewegung reduzieren»).
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 1. Überschriften: Wörter gleiten gestaffelt von unten herein */
.motion .split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em) rotate(2deg);
  filter: blur(8px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.motion .is-visible .split-word,
.motion .split-word.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* 2. Blöcke gleiten beim Scrollen sanft hoch */
.motion .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Service- und CTA-Karten: ruhiger. Die ganze Karte hebt sich leicht an,
   Text und Bild haben keine eigenen Effekte */
.motion .benefit-card.reveal,
.motion .cta.reveal,
.motion .story.reveal,
.motion .video.reveal {
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 0.9s ease-out,
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.motion .benefit-card.reveal.is-visible,
.motion .cta.reveal.is-visible,
.motion .story.reveal.is-visible,
.motion .video.reveal.is-visible {
  transform: none;
}

/* 3. Bilder werden von unten aufgedeckt und zoomen leicht heraus
   (Maske liegt auf dem Bild, damit der Container für die Sichtbarkeits-Erkennung messbar bleibt) */
.motion .reveal-img > img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.18);
  transition:
    clip-path 1.2s var(--ease-in-out),
    transform 1.6s var(--ease-out);
}

.motion .reveal-img.is-visible > img {
  clip-path: inset(0 0 0 0);
  transform: none;
}

/* 4. Buttons: Text rollt beim Hover nach oben und kommt von unten neu */
.roll {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: 0.12em;
  margin-block: -0.12em;
}

.roll__inner {
  display: inline-block;
  text-shadow: 0 1.4em currentColor;
  transition: transform 0.5s var(--ease-out);
}

.button:hover .roll__inner,
.link-button:hover .roll__inner {
  transform: translateY(-1.4em);
}

/* Pfeile fliegen beim Hover rechts raus und von links wieder rein */
@keyframes arrow-through {
  0% { transform: translateX(0); }
  45% { transform: translateX(140%); opacity: 0; }
  46% { transform: translateX(-140%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes arrow-through-diagonal {
  0% { transform: rotate(-90deg) translate(0, 0); }
  45% { transform: rotate(-90deg) translate(-140%, 140%); opacity: 0; }
  46% { transform: rotate(-90deg) translate(140%, -140%); opacity: 0; }
  100% { transform: rotate(-90deg) translate(0, 0); opacity: 1; }
}

.button__fab,
.link-button__icon {
  overflow: hidden;
}

.button:hover .icon--arrow-right,
.link-button:hover .icon--arrow-right {
  animation: arrow-through 0.6s var(--ease-out);
}

.link-button:hover .icon--arrow-up-right,
.link-button:hover .icon--arrow-up-right-small,
.link-button:hover .icon--arrow-nav {
  animation: arrow-through-diagonal 0.6s var(--ease-out);
}

/* Runder Pfeil-Button wächst beim Hover leicht */
.button__fab {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.4s var(--ease-out);
}

.button:hover .button__fab {
  transform: scale(1.08);
}

/* FAB-Buttons (Karussell, Overlay, Menü) */
.fab {
  transition: background-color 0.2s ease, transform 0.3s var(--ease-out);
}

.fab:not(:disabled):hover {
  transform: scale(1.06);
}

.fab:not(:disabled):active {
  transform: scale(0.94);
}

/* 5. Karten: Bild zoomt beim Hover sanft */
.benefit-card__media > img {
  transition: transform 0.9s var(--ease-out);
}

.benefit-card:hover .benefit-card__media > img {
  transform: scale(1.04);
}

.motion .reveal-img.is-visible:hover > img {
  transform: scale(1.04);
}

.team-card .cover {
  transition: transform 0.9s var(--ease-out);
}

.team-card:hover .cover {
  transform: scale(1.05);
}

/* Navigation erhält beim Scrollen einen feinen Schatten */
.nav {
  transition: box-shadow 0.4s ease, padding 0.4s var(--ease-out);
}

.is-scrolled .nav {
  box-shadow: 0 8px 30px rgba(52, 60, 67, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .roll__inner,
  .button__fab,
  .fab,
  .benefit-card__media > img,
  .team-card .cover {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}


/* =====================================================================
   XL-Screens (ab 1920px): alles etwas grösser
   ===================================================================== */
@media (min-width: 1920px) {
  :root {
    --font-6xl: 120px;
    --font-4xl: 76px;
    --font-3xl: 38px;
    --font-2xl: 32px;
    --font-xl: 30px;
    --font-lg: 30px;
    --font-base: 21px;
    --font-xs: 16px;
    --font-stat: 140px;
    --font-newsletter: 60px;
    --space-l: 56px;
    --space-xl: 112px;
    --space-section: 144px;
  }

  /* Navigation */
  .nav__logo-img {
    height: 44px;
  }

  .nav__links .link-button,
  .nav .lang-switch {
    font-size: 20px;
  }

  /* Buttons */
  .button {
    height: 64px;
    padding: 0 32px;
    font-size: 18px;
  }

  .button--with-icon {
    padding-right: 10px;
  }

  .button__fab {
    width: 46px;
    height: 46px;
  }

  .link-button {
    font-size: 18px;
  }

  /* Hero-Laufband */
  .hero {
    padding-top: calc(160px + var(--space-l));
  }

  .hero .display {
    margin-bottom: 40px; /* Titel → Bildstreifen 96px (Gap 56 + 40) */
  }

  .hero-strip__group {
    gap: 22px;
    height: 518px;
    padding-right: 22px;
  }

  .tile {
    width: 360px;
    height: 450px;
  }

  .hero__intro {
    max-width: 980px;
  }

  /* Zahlen */
  .stat-card {
    min-height: 350px;
  }

  /* Testimonials */
  .testimonial {
    height: 394px; /* Bild 378px + 2 × 8px Innenabstand */
  }

  .testimonial__image {
    width: 360px;
  }

  .testimonial__card {
    width: 516px;
  }

  .testimonial__card figcaption {
    font-size: 18px;
  }

  .testimonials__intro {
    max-width: 1120px;
  }

  /* CTA */
  .cta__image {
    flex-basis: 470px;
  }

  .cta__content {
    max-width: 860px;
  }

  /* Team */
  .team-card {
    width: 700px;
    height: 775px;
  }

  /* Footer */
  .footer__line {
    font-size: 18px;
  }

  .newsletter__form {
    width: 520px;
  }

  /* Kontaktseite: Intro 1/3, Formular 2/3 (beginnt beim ersten Drittel) */
  .contact__intro {
    flex: 0 0 calc((100% - var(--space-l)) / 3);
    padding-right: 0;
  }

  .contact__form {
    flex: 1 1 0;
  }

  .contact__title {
    font-size: 96px;
  }

  .choice__label {
    font-size: 16px;
  }

  /* Service-Karten (Figma: Card-Long, Property=XL): Nummer+Titel | Zielgruppe+Text+Link | Bild */
  .benefit-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    column-gap: 120px;
    padding: 48px;
  }

  .benefit-card__content {
    display: contents;
  }

  .benefit-card__head {
    --head-offset: 90px;
    grid-column: 1;
    grid-row: 1;
  }

  .benefit-card__body {
    grid-column: 2;
    grid-row: 1;
    gap: 24px;
  }

  .benefit-card__text {
    font-size: 24px;
  }

  .benefit-card .link-button {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: start;
    margin-top: var(--space-l);
  }

  .benefit-card__media {
    grid-column: 3;
    grid-row: 1 / -1;
    height: 338px;
    min-height: 0;
  }

}


/* ===== Neue Texte: Quellen und Intro-Zeilen ===== */
.stat-card__source,
.statement__source {
  font-size: var(--font-xs);
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.7;
}

.stat-card__source {
  margin-top: var(--space-xs);
}

.statement__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.section-title__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

/* Mobile */
@media (max-width: 600px) {
  .benefits .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .carousel-section .section-title__text {
    gap: 0;
  }

  .carousel-section .section-title__text h2 {
    padding-bottom: 16px;
  }

  .carousel-section .section-title__text p {
    padding: 0 var(--margin) 32px;
  }
}

/* ===== Karussells mit der Maus ziehen ===== */
@media (hover: hover) and (pointer: fine) {
  [data-carousel-track] {
    cursor: grab;
  }

  /* Während dem Ziehen: kein Einrasten, kein Text markieren */
  [data-carousel-track].is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
  }
}

/* =====================================================================
   Vision-Seite (Figma «Detailseite» 12092:6353)
   ===================================================================== */

/* Titel: wie im Hero der Startseite, 120px Seitenrand auf Desktop */
.page-hero {
  padding: calc(132px + var(--space-l)) var(--space-section) var(--space-l);
}

.page-hero .display {
  max-width: 1264px;
  margin: 0 auto;
}

/* Video 16:9, YouTube wird erst nach dem Klick geladen */
.video-section {
  padding: var(--space-l) var(--margin);
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  background: var(--neutral-800);
  overflow: hidden;
}

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/* leichter Schleier, damit der Play-Button gut sichtbar ist */
.video__play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25));
}

.video__icon {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.3s var(--ease-out, ease);
}

/* Dreieck */
.video__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 26px;
  height: 30px;
  background: var(--neutral-800);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-50%, -50%);
}

.video__play:hover .video__icon,
.video__play:focus-visible .video__icon {
  transform: scale(1.08);
}

.video__play:focus-visible {
  outline: 3px solid var(--neutral-800);
  outline-offset: -3px;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__note {
  margin-top: var(--space-xs);
  color: var(--neutral-500);
}

/* Story-Karte: Bild links, Text rechts */
.story-section {
  padding: 0 var(--margin);
}

.story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--space-l);
  padding: var(--space-s);
  border-radius: var(--radius-m);
  background: var(--white);
}

/* Höhe über min-height (Figma 798px bei 1600px Breite), Breite kommt aus der Spalte */
.story__image {
  position: relative;
  min-height: clamp(360px, 50vw, 798px);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.story__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-m);
  padding: var(--space-l);
}

.story__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.story__title {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: var(--font-4xl);
  line-height: 1;
  letter-spacing: -0.03em;
  text-box: trim-both cap alphabetic;
}

.story__lead {
  font-size: var(--font-2xl);
  line-height: 1.27;
}

.story__content .button {
  margin-top: var(--space-s);
}

/* CTA ohne Team davor: eigener Abstand oben (Figma 120px) */
.cta-section--standalone {
  padding-top: var(--space-section);
}

/* Tablet */
@media (max-width: 1100px) {
  .page-hero {
    padding: calc(132px + var(--space-l)) var(--margin) var(--space-l);
  }

  .video-section {
    padding: 32px var(--margin);
  }

  .story {
    gap: 30px;
  }

  .story__content {
    padding: var(--space-s);
  }

  .story__lead {
    font-size: var(--font-lg);
  }
}

/* Mobile: Story untereinander */
@media (max-width: 767px) {
  .story {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story__image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .story__content {
    padding: var(--space-xs) var(--space-xs) var(--space-s);
    gap: 24px;
  }

  .story__text {
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding: calc(120px + 32px) var(--margin) 32px;
  }

  .page-hero .display {
    font-size: min(56px, 13.5vw);
    letter-spacing: -0.01em;
  }

  .video-section {
    padding: 24px var(--margin);
  }

  .video__icon {
    width: 64px;
    height: 64px;
  }

  .video__icon::before {
    width: 18px;
    height: 21px;
  }

  .story__lead {
    font-size: 19px;
  }
}

/* Vision: grosser Text (3XL) auf kleineren Screens etwas kleiner */
@media (max-width: 1100px) {
  .vision .statement .text-3xl {
    font-size: var(--font-2xl);
  }
}

@media (max-width: 600px) {
  .vision .statement .text-3xl {
    font-size: 21px;
    line-height: 1.35;
  }
}

/* =====================================================================
   Impressum und Datenschutz (Figma 12092:7348 / 12092:7119)
   Links Titel (bleibt beim Scrollen stehen), rechts Text in Abschnitten
   ===================================================================== */

/* Vereinfachte Navigation: nur Logo und Kontakt, auch auf Mobile */
.nav--simple .nav__cta {
  display: flex;
}

.nav--simple .nav__logo,
.nav--simple .nav__cta {
  flex: 1 0 0;
}

.legal {
  display: grid;
  grid-template-columns: 469px minmax(0, 857px);
  column-gap: var(--space-l);
  padding: 132px var(--margin) var(--space-xl);
}

.legal__aside {
  align-self: start;
  position: sticky;
  top: 132px;
  padding: var(--space-section) var(--space-xl) 0 0;
}

.legal__title {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: var(--font-4xl);
  line-height: 1;
  letter-spacing: -0.03em;
  text-box: trim-both cap alphabetic;
}

.legal__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: var(--space-section) 0;
  font-size: var(--font-lg);
  line-height: 1.4;
}

.legal__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.legal__section h2 {
  font-size: var(--font-3xl);
  font-weight: 500;
  line-height: 1.3;
}

.legal__section strong {
  font-weight: 700;
}

.legal__section a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.legal__section a:hover {
  color: var(--green-400);
}

/* Aktiver Footer-Link (Impressum/Datenschutz) */
.footer__legal a[aria-current="page"] {
  font-weight: 700;
}

/* Tablet: Titel über dem Text */
@media (max-width: 1100px) {
  .legal {
    grid-template-columns: minmax(0, 1fr);
    padding: 132px var(--margin) var(--space-xl);
  }

  .legal__aside {
    position: static;
    padding: var(--space-l) 0 0;
  }

  .legal__content {
    gap: 64px;
    padding: var(--space-l) 0 0;
    max-width: 857px;
    font-size: 23px;
  }

  .legal__section h2 {
    font-size: var(--font-2xl);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .legal {
    padding-top: 120px;
  }

  .legal__aside {
    padding-top: 32px;
  }

  .legal__content {
    gap: var(--space-l);
    padding-top: 32px;
    font-size: 19px;
  }

  .legal__section h2 {
    font-size: 23px;
  }

  /* Logo und Kontakt-Button in einer Zeile */
  .nav--simple {
    padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-s);
  }

  .nav--simple .nav__logo {
    flex: 0 1 auto;
  }

  .nav--simple .nav__cta {
    flex: 0 0 auto;
  }
}

@media (max-width: 600px) {
  .legal__content {
    font-size: 17px;
  }

  .legal__section h2 {
    font-size: 21px;
  }
}

/* Impressum/Datenschutz auf grossen Screens (ab 1920px, z. B. 4K):
   wie die Kontaktseite. Titel im ersten Drittel, Text beginnt beim ersten Drittel */
@media (min-width: 1920px) {
  .legal {
    grid-template-columns: 1fr 2fr;
    padding-top: 160px;
  }

  .legal__aside {
    top: 160px;
    padding-right: 0;
  }

  /* Zeilen nicht zu lang werden lassen */
  .legal__content {
    max-width: 1100px;
  }
}
