/* ============================================================
   VARIANTE 5 - "PUNKT"  (Ausschnitt bis "Was wir leisten")
   Basis: Variante 1 (Kontor) - Brandfarben, ruhige Flaeche, Weissraum.
   Typografie: die kraeftigere, enge Display-Schrift aus Variante 2.
   Richtung: attio.com - zentrierter Hero, sehr clean, Punktraster als
   Flaechenmuster, leicht gerundete Buttons und Karten, feine Kanten
   statt Schatten.
   Brandfarben: #F1E8D7 Creme, #AC9C8C Taupe, #5F5F5D Grau, #111 Schwarz.
   ============================================================ */

:root {
  --paper:   #fbf9f4;
  --cream:   #f1e8d7;
  --cream-2: #f6f1e6;
  --white:   #ffffff;
  --taupe:   #ac9c8c;
  --grey:    #5f5f5d;
  --ink:     #111111;
  --line:    rgba(17,17,17,0.10);
  --line-2:  rgba(17,17,17,0.06);
  --dot:     rgba(172,156,140,0.42);

  --maxw: 1200px;
  --nav-h: 64px;
  /* Abstand der schwebenden Menueleiste zur oberen Kante ... */
  --nav-gap: 14px;
  /* ... und zu den Seitenkanten des Viewports. */
  --nav-inset: clamp(16px, 5vw, 76px);
  --nav-total: calc(var(--nav-h) + var(--nav-gap));
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 9px;
  --shadow: 0 10px 34px rgba(17,17,17,0.06);

  /* Fliesstext durchgaengig 14px. */
  --body-size: 0.875rem;

  --disp: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px; scroll-behavior: smooth;
  /* Die Leiste schwebt und nimmt keinen Platz ein - Ankerspruenge muessen
     ihre Hoehe deshalb selbst freihalten. */
  scroll-padding-top: calc(var(--nav-total) + 12px);
}
body {
  font-family: var(--body); background: var(--paper); color: var(--grey);
  line-height: 1.66; font-size: var(--body-size); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--ink); text-decoration: none; }

h1, h2, h3 { font-family: var(--disp); color: var(--ink); font-weight: 600; line-height: 1.04; }
h1 { font-size: clamp(2.1rem, 3.9vw, 3.3rem); letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -0.03em; }
h3 { font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.25; }
h4 { font-family: var(--disp); font-size: 0.9rem; font-weight: 600; color: var(--ink); }
p  { max-width: 62ch; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.container--narrow { max-width: 880px; }
.container--wide { max-width: 1480px; }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--taupe); font-weight: 600; margin-bottom: 14px;
}
/* Alles linksbuendig, keine zentrierten Satzspiegel. */
.lead { font-size: var(--body-size); color: var(--grey); max-width: 54ch; }
.sec-head .lead { margin-top: 16px; }
.sec-head > .btn { margin-top: 26px; }

.section { padding: clamp(64px, 8.5vw, 118px) 0; position: relative; }

/* ---------- Punktraster ---------- */
.hero__dots, .section__dots {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero__dots {
  -webkit-mask-image: radial-gradient(ellipse 95% 90% at 45% 48%, #000 55%, transparent 92%);
  mask-image: radial-gradient(ellipse 95% 90% at 45% 48%, #000 55%, transparent 92%);
}
/* oben und unten weich auslaufen, sonst entsteht eine sichtbare Bandkante */
.section__dots { mask-image: linear-gradient(180deg, transparent, #000 20%, transparent 78%); opacity: 0.55; }
.hero .container, .section--leist .container { position: relative; z-index: 1; }

/* Canvas-Ebene fuer den Zeigereffekt, deckungsgleich ueber dem Grundraster.
   hero-dots.js zeichnet dort die Punkte im Umkreis des Zeigers groesser und
   dunkler. Kein eigenes Hintergrundmuster, nur die Hero-Vignette als Maske,
   damit die Punkte am ausgelaufenen Rand nicht wieder auftauchen. */
.hero__dots--fx {
  background-image: none; opacity: 0; transition: opacity .3s ease;
}
.hero.is-pointing .hero__dots--fx { opacity: 1; }

/* ---------- Pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 0.76rem; font-weight: 500; color: var(--grey);
  box-shadow: 0 1px 2px rgba(17,17,17,0.04);
}

/* ---------- Buttons: leicht gerundet ----------
   Hover aendert nur Flaeche, Rahmen und Schrift, nie die Position.
   Sekundaer: etwas Grau. Primaer: Umkehrung, aus Schwarz wird Hell mit
   schwarzem Rahmen. Immer dieselbe Dauer, damit es ueberall gleich wirkt. */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-sm);
  padding: 12px 22px; border: 1px solid var(--line);
  font-family: var(--body); font-size: 0.88rem; font-weight: 600; color: var(--ink);
  background: var(--white);
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.btn:hover { background: #efebe2; border-color: rgba(17,17,17,0.18); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn--ghost { background: transparent; }
.btn--nav { padding: 9px 18px; font-size: 0.84rem; }

/* ---------- Platzhalter ---------- */
.ph {
  background: var(--cream-2);
  background-image: radial-gradient(circle, rgba(172,156,140,0.5) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md); min-height: 180px; aspect-ratio: 4 / 3;
  /* Ohne feste Breite leitet Chrome die Breite aus min-height und
     aspect-ratio ab - auf schmalen Viewports sprengt das die Spalte. */
  width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.ph span { font-size: 0.74rem; font-weight: 600; color: var(--taupe); text-align: center; padding: 0 18px; }
.ph--tall { aspect-ratio: 3 / 4; }

/* ---------- Navigation: schwebende Leiste ueber dem Inhalt ----------
   Nicht an der Oberkante klebend, sondern als eigenes Element mit Abstand
   nach oben und zu beiden Seiten. Der aeussere .nav spannt die volle Breite
   auf, faengt aber keine Klicks - sichtbar und klickbar ist nur .nav__inner. */
.nav {
  position: fixed; top: var(--nav-gap); left: 0; right: 0; z-index: 50;
  padding: 0 var(--nav-inset); pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  max-width: var(--maxw); margin: 0 auto; height: var(--nav-h);
  padding: 0 14px 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(251,249,244,0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(17,17,17,0.04), 0 16px 36px rgba(17,17,17,0.07);
}
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__brand img { height: 28px; width: auto; }
.nav__brand-txt { font-family: var(--disp); font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__links > li > a {
  font-size: 0.89rem; font-weight: 500; color: var(--grey); padding: 8px 14px;
  border-radius: var(--r-sm); display: inline-flex; align-items: center;
  transition: background .15s ease, color .15s ease;
}
.nav__links > li > a:hover { background: rgba(17,17,17,0.10); color: var(--ink); }
.nav__caret { margin-left: 6px; color: var(--taupe); }
.nav__item { position: relative; }
.nav__item--dropdown::after { content: ""; position: absolute; left: -16px; right: -16px; top: 100%; height: 16px; }
.nav__dropdown {
  position: absolute; top: 100%; left: -16px; margin-top: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: 10px; min-width: 250px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-5px); transition: opacity .18s ease, transform .18s ease; z-index: 60;
}
.nav__dropdown--wide { min-width: 430px; }
.nav__dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; }
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav__dropdown a { display: block; padding: 8px 12px; font-size: 0.86rem; color: var(--grey); border-radius: var(--r-sm); }
.nav__dropdown a:hover { background: rgba(17,17,17,0.06); color: var(--ink); }

/* ---------- Hero: fuellt den Viewport, links Text, rechts der Wuerfel ---------- */
.hero {
  position: relative; overflow: hidden;
  /* svh statt vh: auf Mobile springt die Hoehe sonst mit der Browserleiste.
     Die Leiste schwebt darueber, der Hero reicht also bis zur Oberkante und
     haelt ihre Hoehe nur als Innenabstand frei. */
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-total) + clamp(24px, 3vw, 48px)) 0 clamp(28px, 4vw, 56px);
}
.hero > .container { width: 100%; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.hero__copy { text-align: left; }
/* 22ch haelt die Zeile "Wir stellen die Weichen" zusammen, damit die
   Ueberschrift auf drei Zeilen umbricht statt auf vier. */
.hero__copy h1 { max-width: 22ch; }
.hero__copy .lead { margin-top: 22px; max-width: 44ch; }
.hero__actions { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }

/* Buehne fuer die 3D-Szene. Keine eigene Flaeche, kein Rahmen: der Wuerfel
   steht frei auf dem Punktraster. Hoehe fest, damit beim Laden nichts springt. */
.hero__stage { position: relative; min-height: clamp(340px, 54vh, 640px); }
.hero__stage .cube {
  display: block; width: 100%; height: clamp(340px, 54vh, 640px);
  background: transparent;
  opacity: 0; transition: opacity .6s ease;
  pointer-events: none;      /* Events gehen ausschliesslich an .cube__grab */
}
.hero__stage.is-live .cube { opacity: 1; }

/* Unsichtbare Greif-Flaeche ueber der Szene */
.cube__grab {
  position: absolute; inset: 0; z-index: 2;
  cursor: grab; touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.hero__stage.is-dragging .cube__grab { cursor: grabbing; }
.cube__fallback {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  background: var(--cream-2);
  background-image: radial-gradient(circle, rgba(172,156,140,0.5) 1px, transparent 1px);
  background-size: 18px 18px; border-radius: var(--r-lg);
}
.hero__stage.is-live .cube__fallback { display: none; }
.cube__fallback span { font-size: 0.74rem; font-weight: 600; color: var(--taupe); text-align: center; padding: 0 18px; }

/* ---------- Karten ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(17,17,17,0.16); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(32px, 4vw, 52px); }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--cream); color: var(--ink);
  font-family: var(--disp); font-weight: 700; font-size: 1.05rem; margin-bottom: 18px;
}
.kom-card h3 { margin-bottom: 7px; font-size: 1.16rem; }
.kom-card p { font-size: var(--body-size); }

/* Panel mit Punktraster hinter dem Dreieck */
.panel {
  margin-top: clamp(36px, 5vw, 60px); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px); display: flex; justify-content: center;
}
.panel--dots {
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
}
.panel img { width: min(380px, 100%); }

/* ---------- Motivation ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 70px); align-items: center;
}
.bento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
/* Ueber zwei Reihen hat das hohe Feld eine feste Hoehe. Mit aspect-ratio wuerde
   Chrome daraus die Breite ableiten und die Spalte sprengen - also hier keine. */
.bento .ph--tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- Leistungen ---------- */
.ltiles { margin-top: clamp(32px, 4vw, 52px); }
.ltile { display: flex; flex-direction: column; position: relative; min-height: 232px; }
.ltile__icon {
  width: 104px; height: 104px; border-radius: var(--r-md); background: var(--cream-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.ltile__icon img { width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }
.ltile__num {
  position: absolute; top: 26px; right: 26px; font-family: var(--disp);
  font-size: 0.8rem; font-weight: 600; color: var(--taupe);
}
.ltile h3 { margin-top: auto; }
.ltile--cta { background: var(--ink); border-color: var(--ink); justify-content: space-between; }
.ltile--cta:hover { border-color: var(--ink); }
.ltile--cta h3 { color: var(--paper); font-size: 1.3rem; max-width: 14ch; margin-top: 0; }
.ltile--cta .btn { align-self: flex-start; background: var(--paper); border-color: var(--paper); color: var(--ink); }
.ltile--cta .btn:hover { background: transparent; border-color: var(--paper); color: var(--paper); }

/* ---------- HOAI-Prozess ---------- */
/* Kein eigener Grundton und keine Trennlinien: alle Sektionen stehen auf
   demselben Papierton #FBF9F4 (--paper). */
.section--hoai { background: var(--paper); }
.hoai__intro { max-width: 66ch; }

/* Schiene und Rhythmus 1:1 aus dem Live-Prototyp: eine durchgehende 3px-Linie
   fester Hoehe, die Ziffern gleichmaessig darauf verteilt, der Fuellbalken
   waechst linear mit dem Scrollfortschritt. Keine Punkte, keine Ringe. */
.hoai-layout {
  display: grid; grid-template-columns: 48px 1fr; gap: 48px; align-items: start;
  margin-top: clamp(40px, 5vw, 56px);
}
.hoai-rail {
  position: sticky; top: calc(var(--nav-total) + 56px);
  height: min(56vh, 520px); display: flex; gap: 12px;
}
.hoai-rail__track {
  position: relative; flex: none; width: 3px; height: 100%;
  background: var(--line); border-radius: 2px;
}
.hoai-rail__fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: var(--ink); border-radius: 2px; transition: height .1s linear;
}
.hoai-rail__nums { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.hoai-rail__num {
  background: none; border: none; padding: 4px; text-align: left;
  font-family: var(--disp); font-size: 0.72rem; color: var(--taupe);
  transition: color .2s ease;
}
.hoai-rail__num:hover { color: var(--grey); }
.hoai-rail__num.is-active { color: var(--ink); font-weight: 700; }

.hoai-cards { display: flex; flex-direction: column; gap: 11.2vh; padding: 5.6vh 0; }
.hoai-card {
  max-width: 660px; min-height: 35.2vh;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 36px 34px;
  opacity: 0.15; transition: opacity .5s ease;
}
.hoai-card.is-visible { opacity: 1; box-shadow: var(--shadow); }
.hoai-card__head h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.hoai-card__desc { margin-top: 14px; font-size: var(--body-size); }
.hoai-card__partners { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.hoai-card__partners-label {
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--taupe); font-weight: 600; margin-bottom: 11px;
}
.hoai-card__partners ul { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.hoai-card__partners li {
  font-size: 0.76rem; font-weight: 500; color: var(--grey);
  background: var(--cream-2); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 6px 13px;
}

/* ---------- Bayern-Karte + Projekt-Karussell ---------- */
.section--bayern { background: var(--paper); }
.bayern { display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.bayern .lead + .lead { margin-top: 14px; }
/* Die Karte steht frei auf der Sektionsflaeche: kein Panel, kein Rahmen,
   keine abweichende Hintergrundfarbe. */
.bayern-stage { position: relative; }
.bayern-map { position: relative; width: 100%; aspect-ratio: 2925 / 3158; }
.bayern-map img {
  width: 100%; height: 100%; object-fit: contain;
  /* Die Karte ist eine weisse Grafik - fuer die helle Flaeche invertiert,
     damit sie als feine dunkle Zeichnung auf dem Papierton liegt. */
  filter: invert(1); opacity: 0.72;
}
.map-dot {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--taupe); transform: translate(-50%, -50%); opacity: 0.55;
}
.map-pin {
  position: absolute; width: 13px; height: 13px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--paper); padding: 0;
  transform: translate(-50%, -50%); cursor: pointer;
  box-shadow: 0 1px 4px rgba(17,17,17,0.22);
  transition: background .2s ease, box-shadow .2s ease;
}
.map-pin__tip {
  position: absolute; left: 50%; bottom: 175%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); border-radius: var(--r-sm);
  padding: 6px 11px; font-size: 0.7rem; font-weight: 500; white-space: nowrap;
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.map-pin:hover .map-pin__tip, .map-pin.is-active .map-pin__tip { opacity: 1; }
.map-pin.is-active { background: var(--taupe); box-shadow: 0 0 0 5px rgba(172,156,140,0.28); }

.proj-carousel-wrap { position: relative; margin-top: clamp(48px, 7vw, 86px); }
.proj-carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; scrollbar-width: none;
}
.proj-carousel::-webkit-scrollbar { display: none; }
.proj-carousel.is-dragging { cursor: grabbing; }
.proj-carousel-fade { position: absolute; top: 0; bottom: 0; width: 90px; z-index: 3; pointer-events: none; }
.proj-carousel-fade--left { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.proj-carousel-fade--right { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }
.proj-card {
  flex: 0 0 360px; scroll-snap-align: center; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.proj-card.is-active { border-color: rgba(17,17,17,0.18); box-shadow: var(--shadow); }
.proj-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.proj-card__body { padding: 22px 24px 26px; }
.proj-card__body h3 { font-size: 1.16rem; }
.proj-card__body p { font-size: 0.86rem; margin-top: 9px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream-2); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 11px; font-size: 0.7rem; font-weight: 500; color: var(--grey);
}
.tag .icon { color: var(--taupe); flex: none; }

/* ---------- Karriere ---------- */
.section--kar { background: var(--paper); }
.split--rev { align-items: center; }

/* ---------- CTA-Karten ----------
   Grundton ist das Brandgrau, weil die Bauskizzen genau darauf gezeichnet
   sind (weisse Linien auf #5F5F5D). Jede andere Kartenfarbe laesst die
   Skizze als Rechteck stehen. */
.section--cta { background: var(--paper); }
.cta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cta-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--grey); border: 1px solid var(--grey); border-radius: var(--r-lg);
  padding: clamp(30px, 3.2vw, 44px); min-height: 400px; color: rgba(255,255,255,0.88);
}
.cta-card__content { position: relative; z-index: 2; max-width: 78%; }
.cta-card h2 { color: var(--white); font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
.cta-lead {
  display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream); font-weight: 600; margin-bottom: 12px;
}
.cta-card p { position: relative; z-index: 2; margin-top: 14px; font-size: var(--body-size); max-width: 34ch; }
.cta-card__media { position: absolute; right: 0; bottom: 0; width: 88%; height: 74%; z-index: 1; }
.cta-card__media img { width: 100%; height: 100%; object-fit: contain; object-position: bottom right; }
.cta-card .btn {
  position: relative; z-index: 2; align-self: flex-start; margin-top: auto;
  background: var(--paper); border-color: var(--paper); color: var(--ink);
}
.cta-card .btn:hover { background: transparent; border-color: var(--paper); color: var(--paper); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(241,232,215,0.70); padding: clamp(60px, 7vw, 92px) 0 36px; }
/* Im Footer ist nichts groesser als 12px (0.75rem bei 16px Basis). */
.footer a, .footer li { color: rgba(241,232,215,0.70); font-size: 0.75rem; line-height: 1.5; }
.footer a:hover { color: var(--cream); }
.footer h4 { color: var(--cream); font-size: 0.75rem; letter-spacing: 0.01em; margin-bottom: 14px; }
.footer__grid { display: grid; grid-template-columns: 1fr repeat(4, max-content); gap: clamp(24px, 3.4vw, 54px); }
.footer__brand img { width: 150px; opacity: 0.92; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer__bar {
  margin-top: clamp(40px, 5vw, 66px); padding-top: 22px;
  border-top: 1px solid rgba(241,232,215,0.16);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.69rem; color: rgba(241,232,215,0.5);
}

/* ---------- Kontakt-Modal ---------- */
body.modal-open { overflow: hidden; }
.kontakt-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.kontakt-modal.is-open { display: block; }
.kontakt-modal__backdrop { position: absolute; inset: 0; background: rgba(17,17,17,0.45); backdrop-filter: blur(2px); }
.kontakt-modal__panel {
  position: relative; z-index: 2; width: min(560px, calc(100% - 40px));
  margin: 6vh auto; max-height: 88vh; overflow-y: auto;
  background: var(--white); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(17,17,17,0.22);
}
.kontakt-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 34px; height: 34px;
  border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line);
  color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.kontakt-modal__close:hover { background: var(--cream-2); }
.kontakt-modal__banner { height: 165px; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.kontakt-modal__banner img { width: 100%; height: 100%; object-fit: cover; }
.kontakt-modal__body { padding: 30px 34px 34px; }
.kontakt-modal__body h3 { font-size: 1.5rem; }
.kontakt-form { margin-top: 22px; display: flex; flex-direction: column; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-bottom: 9px; }
.kontakt-form input, .kontakt-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); font-family: var(--body); font-size: var(--body-size); color: var(--ink);
}
.kontakt-form input:focus, .kontakt-form textarea:focus { outline: none; border-color: var(--taupe); background: #fff; }
.kontakt-form textarea { resize: vertical; min-height: 110px; }
.choice-group { display: flex; gap: 8px; flex-wrap: wrap; }
.choice__input { position: absolute; opacity: 0; pointer-events: none; }
.choice {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 16px; cursor: pointer;
  font-size: 0.84rem; font-weight: 500; color: var(--grey); background: var(--white); transition: all .15s ease;
}
.choice:hover { border-color: var(--taupe); }
.choice__input:checked + .choice { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.kontakt-form__send { margin-top: 4px; align-self: flex-start; }
/* Vorname und Nachname teilen sich eine Zeile. */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row .field { margin-bottom: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }


@media (max-width: 1020px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .split, .hero__grid, .bayern, .cta-cards { grid-template-columns: 1fr; }
  .hero__copy h1, .hero__copy .lead { max-width: none; }
  /* Bei Karriere steht das Bildfeld im Markup zuerst - einspaltig soll
     die Textspalte wieder nach oben. */
  .split--rev .bento { order: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .cards-3 { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: center; }
  /* Wie im Live-Prototyp: auf schmalen Viewports faellt die Schiene weg,
     die Karten stehen fuer sich. */
  .hoai-layout { grid-template-columns: 1fr; }
  .hoai-rail { display: none; }
  .hoai-cards { gap: 28px; padding: 0; }
  .hoai-card { min-height: 0; }
  .proj-card { flex-basis: 290px; }
  .footer__grid { grid-template-columns: 1fr; }
}
