/* ==========================================================================
   MUNIQUE PERFORMANCE – Stylesheet
   Nachbau der Webflow-Seite ohne Webflow-Abhängigkeiten.
   Aufbau: 1 Tokens · 2 Basis · 3 Layout · 4 Komponenten · 5 Sektionen · 6 Responsive
   ========================================================================== */

/* 1 · Tokens ------------------------------------------------------------- */
/* Alle Schriften lokal ausgeliefert (kein Google-Fonts-Abruf). Anton: SIL Open Font License, siehe fonts/Anton-OFL.txt */
@font-face { font-family: "Anton"; src: url("../fonts/Anton-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-SemiBold.otf") format("opentype"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --c-bg: #171717;
  --c-black: #000;
  --c-white: #fff;
  --c-muted: rgba(255, 255, 255, 0.72);
  --c-orange: #dd4600;
  --c-yellow: #dd9700;

  --f-head: "Anton", "Arial Narrow", sans-serif;
  --f-body: "Geist", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --container: 82.5rem;
  --gutter: 2rem;
  --section-y: 100px;
  --section-top: 100px;

  /* Einheitliche Typo-Skala – alle Überschriften und Texte nutzen nur diese Stufen */
  --fs-hero: 12svh;                         /* H1 im Kopfbereich */
  --fs-h2: clamp(2.25rem, 3.2vw, 3.25rem);  /* Abschnitts-Überschriften, große Kennzahlen */
  --fs-h3: clamp(1.5rem, 2vw, 2rem);        /* Kachel-/Punkt-Überschriften, Namen */
  --fs-2xl: var(--fs-h3);                   /* Claim-Zeilen (Geist, gleiche Größe wie H3) */
  --fs-lead: clamp(1.375rem, 2vw, 1.75rem); /* Einleitender Kernsatz */
  --fs-base: 1.25rem;                       /* Fließtext, Listen, Beschreibungen */
  --fs-small: 1rem;                         /* Navigation, Buttons, Footer */
}

/* 2 · Basis -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2, h4 { font-family: var(--f-head); }
h1, h2 { text-transform: uppercase; }
h2 { font-size: var(--fs-h2); line-height: 1.18; }
h3, .legal h4, .card__title, .stat__value--sm { font-family: var(--f-head); font-size: var(--fs-h3); line-height: 1.18; font-weight: 400; letter-spacing: 0; text-transform: uppercase; }
h2 { overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 14 6 6; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul { margin: 0; padding-left: 1.5rem; }
li { margin-bottom: 0.25rem; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page { overflow: clip; }

/* 3 · Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--full { max-width: none; padding-inline: 0; }
.container--edge { padding-inline: 0 !important; }
.section { position: relative; z-index: 3; padding-top: var(--section-top); padding-bottom: var(--section-y); }
.section--flush-top { padding-top: 0; }
.pt-medium { padding-top: 7.5rem; }
.pt-small { padding-top: 3.25rem; }

/* Typo-Helfer */
.t-2xl { font-family: var(--f-body); font-size: var(--fs-2xl); line-height: 1.25; font-weight: 600; letter-spacing: -0.03em; text-transform: uppercase; }
.t-muted { color: var(--c-muted); }
.t-mono { font-family: var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.t-center { text-align: center; }
/* Claim steht immer zusammen in einer Zeile */
.claim { white-space: nowrap; font-size: min(1em, 11.5vw); }

/* 4 · Komponenten -------------------------------------------------------- */

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 15px;
  font-family: var(--f-mono); font-size: 1rem; line-height: 1.5; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  background: var(--c-white); color: var(--c-black);
  border: 0; cursor: pointer;
  transition: background-color .3s, color .3s;
}
.btn:hover { background: var(--c-orange); color: var(--c-white); }
.btn--orange { background: var(--c-orange); color: var(--c-white); font-weight: 600; padding: 9px 20px; }
.btn--orange:hover { background: var(--c-white); color: var(--c-orange); }
.btn--yellow { background: var(--c-yellow); color: var(--c-white); font-weight: 600; padding: 9px 20px; }
.btn--yellow:hover { background: var(--c-white); color: var(--c-yellow); }
.btn--on-orange { color: var(--c-orange); min-height: 3rem; padding-inline: 1.25rem; }
.btn--on-orange:hover { background: var(--c-black); color: var(--c-white); }
.btn--wide { width: 200px; }

/* Nummernbox */
.num {
  position: relative; z-index: 2; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  background: var(--c-orange); font-family: var(--f-mono); font-size: 1.25rem;
}
.num--yellow { background: var(--c-yellow); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding-inline: 20px; }
.nav::before { /* Leiste erscheint nach dem ersten Scrollen */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: rgba(23, 23, 23, .86); border-bottom: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: opacity .4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav__inner { position: relative; display: flex; align-items: center; gap: 2.5rem; max-width: var(--container); margin-inline: auto; padding-block: 1.25rem; transition: padding .4s; }
.nav.is-scrolled .nav__inner { padding-block: .75rem; }
.nav__logo { position: relative; z-index: 2; margin-right: auto; }
.nav__logo img { width: 52px; height: auto; transition: width .4s; }
.nav.is-scrolled .nav__logo img { width: 40px; }
.nav__panel { display: flex; align-items: center; }
.nav__menu { display: flex; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.nav__menu li { margin: 0; }
.nav__link {
  position: relative; display: block; padding-block: .4rem;
  font-family: var(--f-mono); font-size: .875rem; line-height: 1.42; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-muted); transition: color .3s;
}
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent, var(--c-orange)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--c-white); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__foot { display: none; }
.nav__actions { position: relative; z-index: 2; display: flex; align-items: center; }
.nav__cta { padding: 9px 18px; }
.nav__lang { display: flex; align-items: center; gap: .15rem; margin-right: 1.25rem; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; color: var(--c-muted); }
.nav__lang a { padding: .35rem .3rem; transition: color .3s; }
.nav__lang a:hover { color: var(--c-white); }
.nav__lang a[aria-current] { color: var(--c-white); text-decoration: underline; text-decoration-color: var(--accent, var(--c-orange)); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.nav__burger { display: none; }

/* 5 · Sektionen ---------------------------------------------------------- */

/* Hero */
.hero { position: relative; height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__media { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(0, 0, 0, .86); }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .61); }
.hero__gradient { position: absolute; inset: auto 0 0; height: 70%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(23, 23, 23, 0) 54%, var(--c-bg) 81%); }
.hero__content { position: relative; z-index: 3; padding-top: 100px; padding-bottom: 7.5rem; }
.hero__title { font-size: var(--fs-hero); line-height: 1; }
/* Desktop & Tablet: Titel immer einzeilig, Schriftgröße passt sich der Breite an */
@media (min-width: 768px) {
  .hero__title { --fit-ems: 8.95; white-space: nowrap; font-size: min(var(--fs-hero), calc((min(100vw, var(--container) + 2 * var(--gutter)) - 2 * var(--gutter)) / var(--fit-ems))); }
  .hero__title--long { --fit-ems: 12.7; }
}
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.hero__cta { padding-top: 1.25rem; }
.hero__cta .btn { margin-top: 30px; }
.hero__location { display: flex; align-items: flex-start; gap: 1.5rem; padding: 1.5rem; font-family: var(--f-mono); font-size: 1.25rem; letter-spacing: .1em; text-transform: uppercase; }
.hero__location svg { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; margin-top: .2em; }

/* Split-Layout (Text sticky links, Inhalt rechts) */
.split { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; }
.split__sticky { position: sticky; top: 20svh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--c-bg); }
.split__text { max-width: 30rem; }
.split__text > p { margin-top: 60px; color: var(--c-muted); }
.split__text ul { margin-top: 1.5rem; }

/* Timeline */
.timeline { position: relative; display: flex; flex-direction: column; }
.timeline > p:first-child { margin-bottom: .5rem; }
.timeline > h2 { margin-bottom: var(--tl-head-gap, 4.5rem); }
.timeline__item { position: relative; display: flex; align-items: flex-start; gap: 2.5rem; }
.timeline__item::before { /* gestrichelte Verbindungslinie */
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(1.25rem - .5px); width: 1px;
  background: url("../images/line.svg") center top / auto repeat-y;
}
.timeline__item:last-child::before { display: none; }
.timeline__item:last-child { padding-bottom: 100px; }
.timeline__body { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 4.5rem; }
.timeline__body h3 { line-height: 2.5rem; } /* Höhe wie die Nummernbox */
.timeline__item:last-child .timeline__body { padding-bottom: 0; }
.timeline__body ul { color: var(--c-muted); }
.timeline--plain .timeline__item::before { left: 0; }
.timeline--plain .timeline__item { gap: 2.5rem; }
.timeline--plain .timeline__body { padding-left: 0; }

/* Video-Band (Institute-Teaser) */
.feature { position: relative; height: 100vh; margin-top: 60px; overflow: hidden; }
.feature video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Ausnahme: Video-Band bleibt zentriert */
.feature__overlay { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(2, 2, 2, .7); padding-inline: var(--gutter); }
.feature__overlay .btn { margin-top: 30px; }

/* Karten-Grid (Schwerpunkte, Module, Teamliste) */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; align-items: stretch; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
/* Karten sehen aus wie die Kennzahlen-Kacheln */
.card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.75rem 0 2.25rem; border-top: 1px solid rgba(255, 255, 255, .14); min-width: 0; }
.card::after { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--c-orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.card:hover::after { transform: scaleX(1); }
.course .card::after { background: var(--c-yellow); }
.card__text { color: var(--c-muted); }
.cards-head { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-bottom: 4rem; }

/* Ansatz + Kennzahlen ("Performance entsteht nicht zufällig") */
.approach { display: grid; grid-template-columns: 5fr 7fr; gap: 4.5rem; align-items: start; }
.approach__head { position: sticky; top: 20svh; display: flex; flex-direction: column; gap: .5rem; }
.approach__text { display: flex; flex-direction: column; gap: 1.25rem; color: var(--c-muted); }
.approach__lead { font-size: var(--fs-lead); line-height: 1.3; font-weight: 600; letter-spacing: -.02em; color: var(--c-white); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 4.5rem; margin-top: 6rem; }
.stat { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.75rem 0 2.25rem; border-top: 1px solid rgba(255, 255, 255, .14); min-width: 0; }
.stat::after { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--c-orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.stat:hover::after { transform: scaleX(1); }
.stat__value { font-family: var(--f-head); font-size: var(--fs-h2); line-height: 1.1; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--c-muted); max-width: 22rem; }
.stats--topics { margin-top: 0; gap: 0 2.5rem; }
.approach__title--long { hyphens: manual; }
.approach__intro { margin-top: 1.5rem; max-width: 30rem; color: var(--c-muted); }
.stat__value--sm { font-size: var(--fs-h3); line-height: 1.18; hyphens: manual; overflow-wrap: break-word; }

/* Fotos in den Leistungen */
.timeline__media { margin: .5rem 0 0; aspect-ratio: 3 / 2; overflow: hidden; max-width: 34rem; }
.timeline__media img { width: 100%; height: 100%; object-fit: cover; }

/* Studio-Galerie */
.studio-head { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 3rem; }
.studio-head__text { max-width: 36rem; margin-top: 1rem; color: var(--c-muted); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(11rem, 19vw, 19rem); gap: .75rem; }
.gallery__item { margin: 0; overflow: hidden; min-width: 0; }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.gallery__item:hover img { transform: scale(1.04); }

/* Anfahrt */
.visit { display: grid; grid-template-columns: 5fr 7fr; gap: 4.5rem; align-items: start; }
.visit__head { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.visit__address { margin-top: 1.5rem; font-style: normal; color: var(--c-white); }
.visit__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.visit__photos { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.visit__photos figure { margin: 0; min-width: 0; }
.visit__photos img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.visit__photos figcaption { margin-top: .6rem; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.placeholder { margin-top: 1rem; padding: .75rem 1rem; border: 1px dashed var(--c-yellow); color: var(--c-yellow); font-size: var(--fs-small); max-width: 30rem; }

/* Vollbreites Bild */
.photo { position: relative; padding-top: 51%; filter: saturate(0); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Team-Kacheln (Startseite) */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 4rem; }
.team-card { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 1.5rem 0; } /* bündig mit der Überschrift */
.team-card img { width: 100%; height: auto; }
.team-card .btn { margin-top: 30px; }

/* Bio (Teamseite) */
.bio { padding-top: 4rem; margin-bottom: 140px; }
.bio, [id] { scroll-margin-top: 6rem; } /* Anker landen unter der fixierten Navigation */
.bio img { width: 100%; height: auto; }
.bio .split__text { text-align: left; }

/* Institut */
/* Überschrift und Einleitung direkt untereinander, bündig mit den Kursen */
.inst-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.inst-head p { max-width: 46rem; color: var(--c-muted); }
.course { display: flex; flex-direction: column; gap: 2rem; padding: 1.5rem 0; }
.course h2 { margin-bottom: 1rem; }
.course .cards { margin-top: 1.5rem; }
.course p { color: var(--c-muted); }
.course > * { min-width: 0; }
.course h2 + p { margin-top: 0; }
.courses { display: grid; gap: 6rem; margin-top: 5rem; }

/* Call to Action */
.cta {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2.5rem;
  padding: 2.5rem; overflow: clip;
  background-image: linear-gradient(90deg, var(--c-orange) 44%, rgba(221, 70, 0, 0)), url("../images/performance-background.jpg");
  background-position: 0 0, 100% center;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
}
.cta--yellow { background-image: linear-gradient(90deg, var(--c-yellow) 44%, rgba(221, 151, 0, 0)), url("../images/performance-background.jpg"); }
.cta__title { max-width: 40rem; }
/* CTA volle Breite und höher; Inhalt bündig mit dem Seitenraster */
.cta { min-height: clamp(13rem, 32vh, 22rem); padding: 2.5rem max(var(--gutter), calc((100% - var(--container)) / 2)); }

/* Footer */
.footer { padding-top: 3.25rem; padding-bottom: 3.25rem; }
.footer__inner { display: flex; flex-direction: column; gap: 4rem; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 2rem; font-size: var(--fs-small); }
.footer__link { color: var(--c-muted); transition: color .2s; }
.footer__link:hover { color: var(--c-white); }

/* Rechtstexte */
.legal { width: 85%; margin-inline: auto; }
.legal h2 { margin-top: 2rem; margin-bottom: .5rem; }
.legal h2:first-child { margin-top: 0; }
.legal h4 { margin-top: 1rem; text-transform: none; }
.legal p, .legal ul { margin-top: .25rem; }
.legal a { overflow-wrap: anywhere; }
.legal-imprint { margin-bottom: 4rem; }
.legal-imprint p { margin-top: 60px; color: var(--c-muted); }
.legal-note { width: 85%; margin: 0 auto 2.5rem; padding: 1rem 1.25rem; border-left: 2px solid var(--c-orange); color: var(--c-muted); }

/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2rem; padding-top: 120px; }

/* Einblend-Animationen (per JS aktiviert, respektiert reduzierte Bewegung) */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal="left"] { transform: translate3d(-32px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(32px, 0, 0); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* 6 · Responsive --------------------------------------------------------- */

/* Große Desktops: Feinheiten wie im Original */
@media (min-width: 1440px) {
  .section { --section-top: 0px; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .timeline--center { align-self: center; }
}
@media (min-width: 1280px) {
  .timeline--plain .timeline__item::before { display: none; }
}

/* Tablet */
@media (max-width: 991px) {
  .feature { margin-top: 0; }

  /* Mobiles Menü: Vollbild-Panel mit großen Links */
  .nav__panel {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 3rem;
    padding: 7rem 5% 2.5rem; background: var(--c-bg); overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s;
  }
  .nav.is-open .nav__panel { visibility: visible; opacity: 1; transition: opacity .35s; }
  .nav__menu { flex-direction: column; gap: .25rem; }
  .nav__link { font-family: var(--f-head); font-size: clamp(2.75rem, 11vw, 4.5rem); line-height: 1.15; letter-spacing: 0; color: var(--c-white); padding-block: .1rem; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--accent, var(--c-orange)); }
  .nav__menu li { opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .6s cubic-bezier(.16, 1, .3, 1); }
  .nav.is-open .nav__menu li { opacity: 1; transform: none; }
  .nav.is-open .nav__menu li:nth-child(2) { transition-delay: .06s; }
  .nav.is-open .nav__menu li:nth-child(3) { transition-delay: .12s; }
  .nav__foot { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; font-family: var(--f-mono); font-size: .875rem; letter-spacing: .06em; color: var(--c-muted); }
  .nav__foot .btn { margin-bottom: 1rem; }
  .nav__foot a:hover { color: var(--c-white); }
  .nav.is-open::before { opacity: 0; }
  .nav__burger {
    display: block; position: relative; width: 3rem; height: 3rem; margin-left: .75rem;
    background: transparent; border: 1px solid rgba(255, 255, 255, .5); cursor: pointer;
  }
  .nav__burger span { position: absolute; left: 25%; right: 25%; top: 50%; height: 2px; margin-top: -1px; background: #fff; transition: transform .35s, opacity .3s; }
  .nav__burger span:nth-child(1) { transform: translateY(-.4rem); }
  .nav__burger span:nth-child(3) { transform: translateY(.4rem); }
  .nav.is-open .nav__burger span:nth-child(1) { transform: rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: rotate(-45deg); }

  .hero { padding-bottom: 3rem; }
  .hero__content { padding-bottom: 3rem; }
  .hero__location { gap: 1.25rem; padding: 1.25rem; white-space: nowrap; }

  .split { display: flex; flex-direction: column; gap: 4.5rem; }
  .split__sticky { position: relative; top: auto; width: 100%; align-items: flex-start; }
  .split__text { max-width: none; width: 100%; }
  .timeline { width: 100%; }
  .timeline__body { gap: 2rem; }
  .timeline { --tl-head-gap: 3.5rem; }

  .cards { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .cards-head { margin-bottom: 3rem; }
  .team-grid { margin-top: 3rem; }
  .bio { padding-top: 3rem; }

  .approach { grid-template-columns: 1fr; gap: 2.5rem; }
  .approach__head { position: static; }
  .stats { gap: 0 2rem; margin-top: 4rem; }
  .inst-head p { max-width: none; }
  .visit { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .gallery__item { aspect-ratio: 3 / 2; }
  .gallery__item--big, .gallery__item--wide { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
  .courses { margin-top: 3.5rem; gap: 4rem; }
  .course { padding-inline: 0; }

  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* Großes Smartphone */
@media (max-width: 767px) {
  :root { --fs-hero: 10svh; }
  .nav__cta { display: none; }
  .container { padding-inline: 5%; }
  .hero__content { padding-inline: 1rem; }
  .hero__location { gap: 1rem; padding: .75rem 1rem; font-size: 1rem; }
  .split { gap: 4rem; }
  .timeline__item { gap: 1.5rem; }
  .timeline__body { padding-bottom: 3rem; }
  .team-card { gap: 1.25rem; padding: 1.25rem 0; }
  .cta { gap: 2rem; min-height: clamp(12rem, 30vh, 18rem); padding: 2rem 5%; }
  .footer__inner { gap: 3rem; }
  .course { gap: 1.25rem; }
  /* Galerie am Handy: wischbare Reihe */
  .gallery { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -5.6%; padding-inline: 5.6%; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item, .gallery__item--big, .gallery__item--wide { flex: 0 0 82%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .timeline__media { max-width: none; }
  .stats { grid-template-columns: 1fr; }
  .stat__value { font-size: min(var(--fs-h2), 9vw); }
  .stat__value--sm, .card__title { font-size: min(var(--fs-h3), 7.5vw); }
}

/* Smartphone */
@media (max-width: 479px) {
  :root { --fs-base: 1.125rem; --fs-hero: 2.9rem; }
  .section { --section-top: 40px; --section-y: 40px; }
  .pt-medium { padding-top: 0; }
  .container { padding-inline: 5%; }
  .nav { padding-inline: 0; }
  .nav__inner { padding-inline: 5%; }
  .hero { height: 90vh; padding-bottom: 0; overflow: hidden; }
  .hero__content { padding-inline: 5%; padding-bottom: 2rem; }
  .hero__gradient { inset: 15% 0 0; height: auto; background: linear-gradient(rgba(0, 0, 0, 0), #000 81%); }
  .hero__row { flex-direction: column; align-items: stretch; gap: 1rem; }
  .hero__cta .btn { display: flex; width: 100%; }
  .hero__cta--sub { display: none; }
  .hero__location { flex-direction: column; gap: .5rem; padding-left: 0; white-space: normal; font-size: .9rem; }
  .t-2xl { margin-bottom: 10px; }
  .timeline__item { gap: .6rem; }
  .timeline .num, .timeline__item::before { display: none; }
  .cards, .cards--3, .team-grid { grid-template-columns: 1fr; }
  .card { padding: 1.5rem 0 1.75rem; }
  .team-card { padding-inline: 0; }
  .cta { gap: 1.5rem; align-items: stretch; min-height: 0; padding: 30% 5% 1.75rem; background-position: 0 0, 70% 20%; }
  .cta--yellow { background-position: 0 0, 67% center; }
  .legal, .legal-note { width: 100%; }
  .stats { grid-template-columns: 1fr; margin-top: 3rem; }
  .stat { padding: 1.5rem 0 1.75rem; }
  .stat__value { font-size: min(var(--fs-h2), 9vw); }
  .stat__value--sm, .card__title { font-size: min(var(--fs-h3), 7vw); }
}
