/* =========================================================
   Orbit Werk — Startseite
   Visuelle Sprache: Architektur-/Werkmagazin (ARCH+).
   Sehr ruhig. Hairlines. Magazin-Kapitelmarker.
   ========================================================= */
:root{
  --paper:#f4f1ec; --paper-2:#ebe7df; --paper-3:#e1dcd1;
  --ink:#1a1816; --ink-2:#9a978f; --ink-3:#3a342d; --ink-soft:#3e3a35; --ink-mute:#807a70;
  --concrete:#6b7a6a; --concrete-d:#52604f; --concrete-l:#8a9889;
  --blush:#d4a5a0;
  --line:rgba(26,24,22,.12);
  --line-2:rgba(26,24,22,.22);
  --line-i:rgba(244,241,236,.18);
  --line-i-2:rgba(244,241,236,.32);

  --fs-body:clamp(1rem,.95rem + .25vw,1.125rem);
  --fs-lead:clamp(1.125rem,1rem + .6vw,1.35rem);
  --fs-h3:clamp(1.35rem,1.1rem + 1vw,1.75rem);
  --fs-h2:clamp(2rem,1.4rem + 2.5vw,3.25rem);
  --fs-display:clamp(2.75rem,1.6rem + 5vw,6rem);

  --maxw:1320px;
  --gutter:clamp(1.5rem,3vw,2.75rem);
  --section-pad: clamp(6rem,11vw,11rem);

  --ease:cubic-bezier(.2,.7,.1,1);
}
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:'Satoshi',system-ui,sans-serif;
  font-weight:400; color:var(--ink); background:var(--paper);
  font-size:var(--fs-body); line-height:1.55;
  -webkit-font-smoothing:antialiased;
  /* "clip" statt "hidden": kein Scroll-Container, damit position:sticky bei
     Descendants nicht bricht. Fallback auf hidden falls clip nicht supported. */
  overflow-x: hidden;
  overflow-x: clip;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ margin:0; font-weight:700; letter-spacing:-.015em; }
h2{ font-size:var(--fs-h2); line-height:1.02; letter-spacing:-.025em; }
h3{ font-size:var(--fs-h3); line-height:1.15; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); position:relative; }

/* Kapitel-Marker entfernt — clean */
.chap{ display:none; }

/* =====================================================================
   TOPBAR — fix, mix-blend für adaptive Lesbarkeit
   ===================================================================== */
.topbar{
  position:fixed; inset:0 0 auto 0; z-index:60;
  display:flex; justify-content:space-between; align-items:center;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding:1.3rem clamp(1.5rem,3vw,2.75rem);
  color:#f4f1ec;
  transition: color .3s var(--ease);
}
.topbar.is-dark{ color: var(--ink); }
.topbar .brand{ font-weight:700; letter-spacing:-.005em; font-size:1.05rem; white-space: nowrap; }

/* Desktop-Nav (rechts, neben dem Brand) */
.topbar-nav{
  display:flex; gap:clamp(1.25rem,2.4vw,2.4rem);
  font-size:.75rem; letter-spacing:.22em; text-transform:uppercase;
  font-weight:500;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.topbar-nav a{ opacity:.92; transition:opacity .25s var(--ease); }
.topbar-nav a:hover{ opacity:1; }

/* Sprache DE/EN */
.topbar-lang{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  flex-shrink: 0;
}
.topbar-lang .lang-active{ opacity: 1; }
.topbar-lang .lang-sep{ opacity: .35; }
.topbar-lang .lang-link{ opacity: .55; transition: opacity .2s var(--ease); }
.topbar-lang .lang-link:hover{ opacity: 1; }
.mobile-nav-lang{
  margin-top: clamp(1rem, 2vh, 1.5rem) !important;
  font-size: .75rem !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  opacity: .65;
}

/* === Hamburger-Button (oben rechts in der Topbar) === */
.topbar-burger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: .5rem;
  margin: 0;
  cursor: pointer;
  width: 38px;
  height: 38px;
  color: inherit;
  flex-shrink: 0;
}
.topbar-burger span{
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

/* === Mobile-Nav: Fullscreen-Overlay mit Blur + Logo + X === */
.mobile-nav{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  /* Semi-transparenter ink-Tint, dahinter starker Blur */
  background: rgba(26, 24, 22, .42);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
          backdrop-filter: blur(28px) saturate(130%);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.mobile-nav.is-open{
  opacity: 1;
  visibility: visible;
  transition: opacity .35s var(--ease), visibility 0s;
}
.mobile-nav-bar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem clamp(1.5rem, 3vw, 2.75rem);
  flex-shrink: 0;
}
.mobile-nav-brand{
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.005em;
}
.mobile-nav-close{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: .5rem;
  margin: 0;
  cursor: pointer;
  color: var(--paper);
  width: 38px;
  height: 38px;
  transition: color .2s var(--ease);
}
.mobile-nav-close:hover{ color: var(--blush); }
.mobile-nav-close svg{ width: 22px; height: 22px; }

.mobile-nav-links{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(.85rem, 1.8vh, 1.4rem);
  padding: 0 clamp(1.5rem, 3vw, 2.75rem) clamp(2rem, 8vh, 6rem);
}
.mobile-nav-links a{
  color: var(--paper);
  text-decoration: none;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -.015em;
  padding: .35rem 0;
  transition: color .2s var(--ease), transform .25s var(--ease);
}
.mobile-nav-links a:hover{
  color: var(--blush);
  transform: translateX(4px);
}

/* body-scroll-lock wenn mobile-nav offen */
body.mobile-nav-open{
  overflow: hidden;
}

/* Breakpoint: Hamburger erscheint, bevor die Nav-Links umbrechen würden */
@media (max-width: 880px){
  .topbar-nav{ display: none; }
  .topbar-lang{ display: none; }
  .topbar-burger{ display: flex; }
}

/* =====================================================================
   HERO — Story-Slideshow (Außenansicht → Schadstelle → Wandlung)
   ===================================================================== */
.hero{
  position:relative; min-height:100vh;
  background:var(--ink); color:var(--paper); overflow:hidden;
}
.hero .stage-imgs{ position:absolute; inset:0; }
.hero .frame{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:0; transition:opacity 1.2s var(--ease);
  transform:scale(1.04);
  will-change:opacity, transform, clip-path;
}
.hero .frame.is-on{ opacity:1; animation: kb 14s linear forwards; }
@keyframes kb{
  from { transform:scale(1.02) translate3d(0,0,0); }
  to   { transform:scale(1.08) translate3d(0,-1.4%,0); }
}
/* Hero Layer: keine Eigen-Animation, kein KB — Stack-Wisch via JS clip-path */
.hero .frame{
  animation: none !important;
  transform: none !important;
  opacity: 1;
  will-change: clip-path;
}
.hero .scrim{
  position:absolute; inset:0; pointer-events:none; z-index:5;
  background:
    linear-gradient(180deg, rgba(26,24,22,.45) 0%, rgba(26,24,22,.10) 28%, rgba(26,24,22,.10) 55%, rgba(26,24,22,.78) 100%);
}
.hero .grain{
  position:absolute; inset:0; pointer-events:none; z-index:5;
  opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .8 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero .frame-line{ display:none; }
.hero .headline{
  position:relative; z-index:6; min-height:100vh;
  pointer-events:none;
  display:flex; align-items:flex-end;
  /* Padding linksbündig mit Topbar-Logo (gleicher horizontaler Wert) */
  padding: clamp(7rem,12vh,10rem) clamp(1.5rem,3vw,2.75rem) clamp(5rem,9vh,7rem);
}
.hero .head{ width:100%; max-width:none; margin:0; }
.hero h1{
  /* Eigener clamp — auf mobile kleiner als --fs-display, damit der erzwungene
     Umbruch "Sichtbeton, der" / "aussieht wie geplant." auf Handy noch passt. */
  font-size: clamp(1.85rem, 1.1rem + 4.5vw, 6rem);
  line-height:.98; font-weight:900; letter-spacing:-.04em;
  color:var(--paper); max-width:30ch;
  text-shadow: 0 1px 30px rgba(26,24,22,.35);
}
.hero h1 em{ font-style:normal; color:var(--concrete-l); }
.hero .sub{
  margin-top:1.6rem; max-width:50ch;
  font-size:clamp(1.3rem, 1rem + .8vw, 1.65rem); font-weight:300; line-height:1.45;
  color:rgba(244,241,236,.84);
  text-shadow: 0 1px 20px rgba(26,24,22,.35);
}
.hero .sub-partner{
  margin: 1.2rem 0 0;
  font-size: clamp(.85rem, .8rem + .15vw, .98rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(244,241,236,.62);
  letter-spacing: .005em;
  text-shadow: 0 1px 16px rgba(26,24,22,.4);
}
.hero .sub-partner em{ font-style: italic; color: inherit; }
.hero .sub-partner a{
  color: inherit;
  border-bottom: 1px solid rgba(244,241,236,.3);
  padding-bottom: .04em;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.hero .sub-partner a:hover{
  color: var(--paper);
  border-bottom-color: rgba(244,241,236,.7);
}
.hero .hero-arrow{ display:none !important; }
.hero .hero-arrow.prev,
.hero .hero-arrow.next,
.hero .hero-arrow svg,
.hero .hero-arrow:hover{ display:none !important; }
/* hero-progress: ausgeblendet — die Slideshow-Logik schreibt zwar
   weiter Segmente rein, aber sie sind nicht sichtbar. */
.hero .hero-progress{ display: none !important; }

/* Bildkredit links unten am Hero – schlanke Caption */
.hero-project-label{
  position: absolute;
  left: clamp(1.5rem, 3vw, 2.75rem);
  bottom: clamp(1.5rem, 2.5vw, 2.5rem);
  z-index: 7;
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  text-decoration: none;
  color: rgba(244, 241, 236, .78);
  font-size: clamp(.78rem, .74rem + .15vw, .88rem);
  font-weight: 400;
  letter-spacing: .005em;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
  transition: color .2s var(--ease);
}
.hero-project-label:hover{
  color: var(--paper);
}
.hero-project-paren{
  opacity: .55;
}
.hero-project-kind{
  opacity: .75;
}
.hero-project-name{
  font-weight: 500;
  border-bottom: 1px solid rgba(244, 241, 236, .35);
  padding-bottom: .08rem;
  transition: border-color .2s var(--ease);
}
.hero-project-label:hover .hero-project-name{
  border-bottom-color: var(--blush);
  color: var(--blush);
}
@media (max-width: 700px){
  .hero-project-label{
    left: 1rem;
    bottom: 1rem;
  }
}
.hero .hero-progress .seg.is-on{ background:var(--paper); }
@media(max-width:680px){
  .hero .hero-arrow{ width:60px; height:60px; }
  .hero .hero-arrow svg{ width:34px; height:34px; }
}

/* Kooperationspartner-Münze – heller Kreis mit Komposit-Bild (im Stil von SB5) */
.coop-badge{
  position: absolute;
  right: clamp(1.25rem, 2.5vw, 2.25rem);
  bottom: clamp(1.25rem, 2.25vw, 2.25rem);
  z-index: 7;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(244, 241, 236, .94);
  transition: transform .3s var(--ease), background .3s var(--ease);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
  overflow: hidden;
  padding: 9%;
  box-sizing: border-box;
}
.coop-badge:hover{
  background: rgba(244, 241, 236, 1);
  transform: scale(1.05);
}
.coop-badge-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 700px){
  .coop-badge{
    right: .85rem;
    bottom: .85rem;
    width: 76px;
    height: 76px;
  }
}

/* =====================================================================
   Generic helpers
   ===================================================================== */
.section{
  position:relative;
  padding-block: var(--section-pad);
  /* Anker-Sprünge landen sauber unter der fixed Topbar */
  scroll-margin-top: clamp(60px, 6vw, 80px);
}
.section.dark{ background:var(--ink); color:var(--paper); }
.section.alt{ background:var(--paper-2); }

.inline-link{
  display:inline-flex; align-items:center; gap:.55rem;
  font-size:.78rem; letter-spacing:.22em; text-transform:uppercase; font-weight:700;
  color:var(--concrete-d); border-bottom:1px solid var(--concrete);
  padding-bottom:.3rem; transition:color .2s var(--ease), border-color .2s var(--ease);
}
.inline-link:hover{ color:var(--blush); border-color:var(--blush); }
.dark .inline-link{ color:var(--concrete-l); border-bottom-color:var(--concrete-l); }
.dark .inline-link:hover{ color:var(--blush); border-bottom-color:var(--blush); }

/* =====================================================================
   1 — ERKENNTNIS — ein ruhiger Textblock, keine eigene Headline
   ===================================================================== */
.s-erkenntnis{ background:var(--paper); }
.s-erkenntnis .block{
  max-width: 52ch; margin: 0 auto;
  padding-block: clamp(2.5rem, 5vw, 5rem);
  position:relative;
  text-align: center;
}
.s-erkenntnis .block::before{
  content:''; display:block; width:48px; height:1px;
  background:var(--concrete); margin: 0 auto 3rem;
}
.s-erkenntnis p{
  margin: 0 0 1.4rem;
  color:var(--ink-soft);
  font-size: clamp(1.45rem, 1.15rem + 1.05vw, 1.95rem);
  font-weight:300; line-height:1.45;
  letter-spacing:-.01em;
}
.s-erkenntnis p:last-child{ margin-bottom:0; }
.s-erkenntnis p .lead-in{
  color:var(--ink); font-weight:700; letter-spacing:-.018em;
}
.s-erkenntnis p em{ font-style:normal; color:var(--ink); font-weight:500; }

/* =====================================================================
   2 — FOKUS-PROJEKT · Konstanz (zentriertes Foto, überlappende Karte)
   ===================================================================== */
.s-fokus{ background:var(--paper-3); padding-bottom: clamp(6rem, 10vw, 9rem); }
.s-fokus .stage{
  position:relative;
  max-width: 1100px; margin: 0 auto;
}
.s-fokus .photo{
  width:100%; aspect-ratio: 16/10;
  background-image:url('bilder/projekte/konstanz-aussen.jpg');
  background-size:cover; background-position:center;
  background-color:var(--ink);
  border:1px solid var(--line-2);
}
.s-fokus .card{
  position:absolute; right: clamp(2rem, 6vw, 6rem); bottom: clamp(-5rem, -7vw, -7rem);
  background:var(--paper);
  width: clamp(440px, 42vw, 560px); max-width: 90vw;
  padding: clamp(2rem, 2.5vw, 2.75rem) clamp(2rem, 2.5vw, 2.75rem);
  display:flex; flex-direction:column; gap:1.25rem;
  box-shadow: 0 36px 72px -22px rgba(26,24,22,.32), 0 8px 24px -8px rgba(26,24,22,.14);
  border:1px solid var(--line-2);
}
.s-fokus .card .kicker{
  font-size:.62rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:500;
}
.s-fokus .card .kicker b{ color:var(--ink); font-weight:600; letter-spacing:.22em; }
.s-fokus .card h3{
  font-size:clamp(1.4rem, 1.05rem + 1vw, 1.85rem);
  line-height:1.15; letter-spacing:-.02em; max-width:28ch;
}
.s-fokus .card p{
  margin:0; color:var(--ink-soft); font-weight:300; font-size:1rem; line-height:1.5;
}
.s-fokus .card dl{
  margin:0; padding:1rem 0 0;
  border-top:1px solid var(--line);
  display:grid; grid-template-columns: 1fr 1fr; row-gap:.75rem; column-gap:1rem;
}
.s-fokus .card dt{
  font-size:.58rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:500; margin-bottom:.25rem;
}
.s-fokus .card dd{ margin:0; color:var(--ink); font-weight:500; font-size:.92rem; }
.s-fokus .card h3 em{ font-style:normal; color:var(--concrete-d); }
.s-fokus .card .card-cta{ align-self:flex-end; margin-top:.25rem; }
@media(max-width:1100px){
  .s-fokus .stage{
    max-width:none;
    background: var(--paper);
    box-shadow: 0 30px 60px -22px rgba(26,24,22,.28), 0 6px 18px -6px rgba(26,24,22,.1);
    border-radius: 0;
    overflow: hidden;
  }
  .s-fokus .photo{
    aspect-ratio: 4/3;
    box-shadow: none;
    border: none;
  }
  .s-fokus .card{
    position:relative; right:auto; bottom:auto; width:100%; max-width:none;
    margin: 0; padding: 1.75rem;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--line-2);
  }
}

/* =====================================================================
   FÜNF SCHRITTE  (hell — paper-2, ruhiger Akzent in concrete-d)
   ===================================================================== */
.section.dark.s-schritte{ background:var(--paper-3); color:var(--ink); }
.s-schritte .intro h2{ color:var(--ink); }
.s-schritte .intro h2 em{ font-style:normal; color:var(--concrete-d); }
.s-schritte .intro p{ color:var(--ink-soft); }
.s-schritte .intro p em{ font-style:normal; color:var(--ink); font-weight:500; }
.s-schritte .step{ border-top-color:var(--line); }
.s-schritte .steps-list .step:last-child{ border-bottom-color:var(--line); }
.s-schritte .step .num{ color:var(--ink-mute); font-weight:300; }
.s-schritte .step .title-col h3{ color:var(--ink); }
.s-schritte .step .copy p{ color:var(--ink-soft); }
.s-schritte .step .copy .source,
.s-schritte .step .copy .xref{ color:var(--ink-mute); }
.s-schritte .step .copy .source::before,
.s-schritte .step .copy .xref::before{ background:var(--line-2); }
.s-schritte .step .copy .xref a{ color:var(--ink); border-bottom-color:var(--line-2); }
.s-schritte .step .copy .xref a:hover{ color:var(--concrete-d); border-bottom-color:var(--concrete-d); }

/* Scroll-Animation: Zahl, Titel, Copy, Bild faden gestaffelt ein
   A: Stagger 0 → .18s → .36s → .54s   (Num → Title → Copy → Bild)
   B: Bild kommt mit subtiler Scale-Animation (0.96 → 1)
   C: Trennlinie wischt von links nach rechts (siehe ::before unten) */
.s-schritte .step:not(.is-in) .num,
.s-schritte .step:not(.is-in) .title-col,
.s-schritte .step:not(.is-in) .copy{
  opacity:0; transform: translateY(20px);
}
.s-schritte .step:not(.is-in) .vn{
  opacity:0; transform: scale(.96);
}
.s-schritte .step .num,
.s-schritte .step .title-col,
.s-schritte .step .copy{
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.s-schritte .step .vn{
  transform-origin: left center;
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.s-schritte .step.is-in .num{        transition-delay: 0s; }
.s-schritte .step.is-in .title-col{  transition-delay: .18s; }
.s-schritte .step.is-in .copy{       transition-delay: .36s; }
.s-schritte .step.is-in .vn{
  transition-delay: .54s;
  transform: scale(1);
}
.s-schritte .intro{
  /* 1-spaltig: H2 läuft breit aus, Subtext mit Atemraum darunter */
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2vw, 1.6rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.s-schritte .intro h2{
  max-width: 22ch;
  margin: 0;
}
.s-schritte .intro p{
  margin: 0;
  font-weight: 300;
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 62ch;
}

.steps-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; }
.step{
  position:relative;
  /* Copy-Spalte breiter (8fr) — Bilder bekommen ca. 60% der Inhaltsbreite */
  display:grid; grid-template-columns: 80px minmax(0,4fr) minmax(0,8fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  padding: clamp(2.5rem,5vw,4rem) 0;
  align-items:start;
  /* Trennlinie als animierbares Pseudo-Element (Wisch-Effekt) */
}
.step::before{
  content:'';
  position:absolute;
  top:0; left:0;
  width:0;
  height:1px;
  background:var(--line);
  transition: width 1s var(--ease);
}
.steps-list .step:last-child::after{
  content:'';
  position:absolute;
  bottom:0; left:0;
  width:0;
  height:1px;
  background:var(--line);
  transition: width 1s var(--ease);
  transition-delay: .35s;
}
.s-schritte .step.is-in::before{ width:100%; transition-delay: 0s; }
.s-schritte .steps-list .step.is-in:last-child::after{ width:100%; }

/* Künstlerische Schritte: Trennlinie in Blush */
.step.kuenstlerisch::before,
.step.kuenstlerisch + .step::before{ background:var(--blush); }

.step .num{
  font-size:clamp(2rem, 1.4rem + 1.5vw, 2.75rem);
  line-height:1; font-weight:300; letter-spacing:-.04em;
  font-feature-settings:"tnum"; color:var(--ink);
}
.step .title-col{ position:relative; }
.step .title-col h3{
  font-size:clamp(1.35rem, 1.05rem + 1vw, 1.85rem);
  line-height:1.15; letter-spacing:-.02em; max-width:18ch;
}
/* Badges Künstlerisch/Optional entfernt */
.step .copy{ display:flex; flex-direction:column; gap:1rem; }
.step .copy p{ margin:0; color:var(--ink-soft); font-weight:300; font-size:1.05rem; line-height:1.5; max-width:62ch; }
.step .copy .source,
.step .copy .xref{
  font-size:.6rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:500;
  display:inline-flex; align-items:center; gap:.6rem;
}
.step .copy .source::before,
.step .copy .xref::before{ content:''; width:14px; height:1px; background:var(--ink-mute); }
.step .copy .xref a{ color:var(--ink); border-bottom:1px solid var(--ink-mute); padding-bottom:1px; transition:color .2s var(--ease), border-color .2s var(--ease); }
.step .copy .xref a:hover{ color:var(--blush); border-color:var(--blush); }

/* Vorher/Nachher-Block — zwei Hochformate nebeneinander (in 02–05),
   ein Hochformat in 01 (Musterfläche). Inhalte aus Sichtbeton-Rework. */
.vn{
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(.5rem, 1vw, 1rem);
  width: 100%;          /* nimmt die volle Copy-Spalte ein */
}
.vn.vn-single{
  grid-template-columns: 1fr;
  width: 100%;
}
/* Single-Image: bekommt die volle Breite UND eine landscape-Aspect-Ratio,
   so dass es etwa die gleiche Bounding-Box wie zwei nebeneinanderliegende
   Hochformate ergibt. */
.vn.vn-single .vn-pic{
  aspect-ratio: 4 / 3;
}
.vn-pic{
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;   /* leichtes Hochformat — Bilder wirken größer */
  background: var(--ink);
  overflow: hidden;
}

/* ===== Swipe-Step (Reinigung): Scroll-Pin + Bottom-to-Top Reveal =====
   Die Section pinnt am viewport_top, beim weiteren Scrollen swiped das
   Nachher-Bild von unten nach oben über das Vorher-Bild. Wenn voll bedeckt,
   geht es im normalen Scroll weiter. JS treibt die clip-path-Position. */

/* Pin-Zone: doppelt so hoch wie Viewport, damit für die Swipe-Animation
   eine ganze Viewport-Höhe Scroll zur Verfügung steht. */
.step.swipe-step{
  display: block;
  height: 200vh;
  padding: 0;
  border: none;
}
.step.swipe-step::before{ display: none; }

/* Step-Inner: nimmt die ursprüngliche Grid-Layout-Form an, sticky am Top */
.step.swipe-step .step-inner{
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 80px minmax(0,4fr) minmax(0,8fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  padding: clamp(2.5rem,5vw,4rem) 0;
  align-items: start;
  align-content: center;
}

/* Swipe-VN-Block: erstes Bild voll, zweites absolut darüber clipped */
.vn.vn-swipe{
  display: block;
  position: relative;
  width: 100%;
  margin-top: 1.25rem;
  transform: none !important;
  opacity: 1 !important;
}
.vn.vn-swipe .vn-pic{
  aspect-ratio: 4 / 3;
}
.vn.vn-swipe .vn-pic:nth-child(1){
  position: relative;
  z-index: 1;
}
.vn.vn-swipe .vn-pic:nth-child(2){
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* Initial: kompletter Top-Inset = nichts sichtbar, Reveal von unten nach oben
     wird vom JS gesteuert (style.clipPath). */
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
}

/* Mobile: kein Pin (zu eng, Layout stack) — fallback auf flat 2-Bild Anzeige */
@media (max-width: 820px){
  .step.swipe-step{
    height: auto;
    padding: clamp(2.5rem,5vw,4rem) 0;
  }
  .step.swipe-step .step-inner{
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    padding: 0;
  }
  .vn.vn-swipe .vn-pic:nth-child(2){
    /* Mobile: Nachher direkt voll sichtbar (kein Pin-Swipe) */
    clip-path: inset(0 0 0 0);
    position: relative;
    margin-top: clamp(.5rem, 1vw, 1rem);
  }
}
.vn-pic img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vn-lab{
  position: absolute;
  top: .6rem; left: .6rem;
  font-size: .6rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--paper);
  background: rgba(26, 24, 22, .55);
  padding: .3rem .55rem;
  font-weight: 500;
  margin: 0;
}
.vn-lab-nachher{
  background: var(--concrete-d);
  left: auto;
  right: .6rem;
}

/* Fließtext bricht an Bild-Außenkante (volle Copy-Spaltenbreite) */
.s-schritte .step .copy p{
  max-width: none;
}

/* Mobile/Tablet: V/N-Bilder behalten Hochformat, vn-single = volle Breite */
@media(max-width: 820px){
  .vn.vn-single{ width: 100%; max-width: 480px; }
}

@media(max-width:820px){
  .step{ grid-template-columns: 1fr; gap:1.25rem; }
}

/* Reduced-Motion: Steps ohne Animation
   ===================================================================== */
@media(prefers-reduced-motion: reduce){
  .s-schritte .step,
  .s-schritte .step .num,
  .s-schritte .step .title-col,
  .s-schritte .step .copy,
  .s-schritte .step .cf{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =====================================================================
   KLASSEN  (kompakt — drei Karten)
   ===================================================================== */
.s-klassen{ background:var(--paper); }
.s-klassen .grid{
  display:grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr);
  gap: clamp(2rem,5vw,5rem);
  align-items:start;
  margin-top: 0;
  margin-bottom: clamp(3rem,5vw,4rem);
}
.s-klassen h2{ max-width:24ch; margin-top:0; }
.s-klassen h2 em{ font-style:normal; color:var(--concrete-d); }
.s-klassen .body{ max-width:62ch; padding-top:.4rem; }
.s-klassen .body p{ margin:0; color:var(--ink-soft); font-weight:300; font-size:var(--fs-lead); line-height:1.5; }
.s-klassen .body p em{ font-style:normal; color:var(--ink); font-weight:500; }
@media(max-width:1100px){ .s-klassen .grid{ grid-template-columns:1fr; } }

.kl-cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.kl-card{
  background:var(--paper-2);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display:flex; flex-direction:column;
  border-top:1px solid var(--ink);
  cursor:pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .35s var(--ease);
  text-align:left; font:inherit; width:100%;
  border-left:none; border-right:none; border-bottom:none;
}
.kl-card:hover,
.kl-card:focus-visible{
  background:var(--ink); color:var(--paper);
  transform: translateY(-2px);
  outline:none;
}
.kl-card:hover header .sb,
.kl-card:focus-visible header .sb{ color:var(--paper); }
.kl-card:hover header .title,
.kl-card:focus-visible header .title{ color:rgba(244,241,236,.7); }
.kl-card:hover .hairline,
.kl-card:focus-visible .hairline{ background:rgba(244,241,236,.3); }
.kl-card:hover ul,
.kl-card:focus-visible ul{ border-top-color:rgba(244,241,236,.18); }
.kl-card:hover li,
.kl-card:focus-visible li{ border-bottom-color:rgba(244,241,236,.12); }
.kl-card:hover li b,
.kl-card:focus-visible li b{ color:rgba(244,241,236,.6); }
.kl-card:hover li span,
.kl-card:focus-visible li span{ color:var(--paper); }
.kl-card:hover footer,
.kl-card:focus-visible footer{ color:rgba(244,241,236,.65); border-top-color:rgba(244,241,236,.18); }
.kl-card:hover .more,
.kl-card:focus-visible .more{ color:var(--blush); }
.kl-card header{
  display:flex; align-items:center; gap:.85rem;
  margin-bottom: 1.5rem;
}
.kl-card header .sb{
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  font-weight:900; letter-spacing:-.04em; color:var(--ink);
  line-height:1;
}
.kl-card header .hairline{ flex:1; height:1px; background:var(--ink-mute); }
.kl-card header .title{
  font-size:.66rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600; max-width:14ch; line-height:1.3;
}
.kl-card ul{
  list-style:none; margin:0; padding: 1rem 0 0;
  border-top:1px solid var(--line);
  display:flex; flex-direction:column;
  flex:1;
}
.kl-card li{
  display:flex; justify-content:space-between; align-items:baseline; gap:1rem;
  padding:.7rem 0;
  border-bottom:1px solid var(--line);
}
.kl-card li:last-child{ border-bottom:none; }
.kl-card li b{
  font-size:.62rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600;
}
.kl-card li span{
  font-size:.95rem; color:var(--ink); font-weight:500; text-align:right;
  letter-spacing:-.005em;
}
.kl-card footer{
  margin-top: 1.25rem; padding-top: 1rem;
  border-top:1px solid var(--line);
  font-size:.85rem; color:var(--ink-mute); font-weight:400; line-height:1.4;
  display:flex; justify-content:space-between; align-items:flex-end; gap:1rem;
}
.kl-card footer .more{
  font-size:.6rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink); font-weight:600; flex-shrink:0;
  transition: color .2s var(--ease);
}
@media(max-width:900px){
  .kl-cards{ grid-template-columns:1fr; }
}

/* Klassen-Modal */
.kl-modal{
  position:fixed; inset:0; z-index:200;
  display:flex; align-items:center; justify-content:center;
  padding: clamp(1rem, 3vw, 2.5rem);
  pointer-events:none; opacity:0;
  transition: opacity .35s var(--ease);
}
.kl-modal[aria-hidden="false"]{ pointer-events:auto; opacity:1; }
.kl-modal .backdrop{
  position:absolute; inset:0;
  background:rgba(26,24,22,.65);
  backdrop-filter: blur(6px);
}
/* Außenleisten */
.kl-modal .ext-nav,
.kl-modal .ext-btn{
  position:absolute; z-index:3;
  background:rgba(253,250,243,.08);
  border:1px solid rgba(253,250,243,.25);
  color:var(--paper);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; backdrop-filter:blur(8px);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.kl-modal .ext-nav{
  width:48px; height:48px; top:50%; transform:translateY(-50%);
}
.kl-modal .ext-nav.prev{ left: clamp(1rem, 3vw, 2.5rem); }
.kl-modal .ext-nav.next{ right: clamp(1rem, 3vw, 2.5rem); }
.kl-modal .ext-nav svg{ width:14px; height:14px; }
.kl-modal .ext-top{
  position:absolute; z-index:3; top: clamp(1rem, 3vw, 2.5rem);
  right: clamp(1rem, 3vw, 2.5rem);
  display:flex; gap:.5rem;
}
.kl-modal .ext-btn{
  height:40px; padding: 0 .9rem; gap:.5rem;
  font-size:.6rem; letter-spacing:.24em; text-transform:uppercase; font-weight:600;
}
.kl-modal .ext-btn.close{ width:40px; padding:0; }
.kl-modal .ext-btn svg{ width:13px; height:13px; }
.kl-modal .ext-nav:hover,
.kl-modal .ext-btn:hover{ background:rgba(253,250,243,.18); border-color:rgba(253,250,243,.5); }

.kl-modal .dialog{
  position:relative; z-index:2;
  background:var(--paper); color:var(--ink);
  width:min(720px, calc(100% - 9rem));
  max-height: 88vh; overflow:auto;
  display:grid; grid-template-columns: 1fr;
  transform: translateY(12px);
  transition: transform .4s var(--ease);
  border:1px solid var(--line-2);
}
.kl-modal[aria-hidden="false"] .dialog{ transform: translateY(0); }
.kl-modal .head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:2rem;
  padding: clamp(2rem, 3.5vw, 2.75rem) clamp(2rem, 3.5vw, 2.75rem) 1.75rem;
  border-bottom:1px solid var(--line);
}
.kl-modal .head .sb{
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-weight:900; letter-spacing:-.04em; line-height:.95; color:var(--ink);
}
.kl-modal .head .title{
  font-size:.7rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600; margin-bottom:.6rem;
  display:block;
}
.kl-modal .head .label{
  font-size:1.15rem; color:var(--ink); font-weight:500; max-width:24ch; line-height:1.3;
}
.kl-modal .head .pager{
  font-size:.62rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600; white-space:nowrap;
}
.kl-modal .head .pager b{ color:var(--ink); font-weight:900; font-size:1.1rem; letter-spacing:-.02em; }
.kl-modal .head .pager span{ margin-left:.3rem; }
.kl-modal .close{
  background:transparent; border:1px solid var(--line-2);
  width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--ink); flex-shrink:0;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.kl-modal .close:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.kl-modal .close svg{ width:14px; height:14px; }
.kl-modal .body{
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(2rem, 3.5vw, 2.75rem);
  display:flex; flex-direction:column;
  gap: clamp(2rem, 3.5vw, 2.75rem);
}
.kl-modal .body .lead{
  font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem);
  font-weight:300; line-height:1.55; color:var(--ink-soft); margin:0;
  max-width: 70ch;
}
.kl-modal .body .lead em{ font-style:normal; color:var(--ink); font-weight:500; }
.kl-modal .body dl{
  margin:0; width:100%;
  display:grid; grid-template-columns: 1fr;
  gap:0;
  border-top:1px solid var(--line);
}
.kl-modal .body dl > div{
  display:grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr); gap: clamp(1.5rem, 3vw, 3rem);
  padding: 1.1rem 0; border-bottom:1px solid var(--line);
  align-items:start;
}
.kl-modal .body dt{
  font-size:.6rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600;
  padding-top:.2rem;
}
.kl-modal .body dd{
  margin:0; font-size:.95rem; color:var(--ink); font-weight:400; line-height:1.4;
}
.kl-modal .foot{
  display:flex; align-items:center; justify-content:flex-start;
  padding: 1.1rem clamp(2rem, 3.5vw, 2.75rem);
  border-top:1px solid var(--line);
  background:var(--paper-2);
}
.kl-modal .foot .pager{
  font-size:.62rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600;
}
.kl-modal .foot .pager b{ color:var(--ink); font-weight:700; }
.kl-modal .foot .nav{
  display:flex; gap:.5rem;
}
.kl-modal .foot button{
  background:transparent; border:1px solid var(--line-2);
  width:40px; height:40px; display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.kl-modal .foot button:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.kl-modal .foot button:disabled{ opacity:.3; pointer-events:none; }
.kl-modal .foot button svg{ width:14px; height:14px; }
.kl-modal .foot .source{
  font-size:.6rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:500;
}
@media(max-width:720px){
  .kl-modal .dialog{ width: calc(100% - 1.5rem); }
  .kl-modal .head{ flex-direction:column; align-items:flex-start; gap:1rem; }
  .kl-modal .body dl > div{ grid-template-columns:1fr; gap:.4rem; }
  .kl-modal .ext-nav{ width:38px; height:38px; }
  .kl-modal .ext-nav.prev{ left:.4rem; }
  .kl-modal .ext-nav.next{ right:.4rem; }
  .kl-modal .ext-top{ top:.6rem; right:.6rem; }
  .kl-modal .ext-btn{ height:34px; padding:0 .6rem; font-size:.55rem; }
}

/* =====================================================================
   VERBUND  (hell — paper-2, Personen-Reihe)
   ===================================================================== */
.s-verbund{ background:var(--paper-3); color:#000; }
.s-verbund h2{ color:#000; }
.s-verbund h2 em{ color:var(--concrete-d); }
.s-verbund .body p{ color:#000; }
.s-verbund .body p em{ color:#000; font-weight:600; }
.s-verbund .team-name{ color:#000; }
.s-verbund .team-role{ color:var(--concrete-d); }
.s-verbund .grid{
  display:grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr);
  gap: clamp(2rem,5vw,5rem); align-items:start;
  margin-top: clamp(2rem,4vw,3rem);
}
.s-verbund h2{ max-width:18ch; margin-top:1rem; color:#000; font-style:normal; }
.s-verbund h2 em{ font-style:normal; color:var(--concrete-d); }
.s-verbund .body{ max-width:60ch; }
.s-verbund .body p{ margin:0 0 1.1rem; color:#000; font-weight:400; font-size:var(--fs-lead); line-height:1.5; }
.s-verbund .body p em{ font-style:normal; color:#000; font-weight:600; }

/* Team-Band: 6 Karten, einheitliches Portrait-Format */
.team-band{
  margin-top: clamp(3.5rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top:1px solid rgba(0,0,0,.18);
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 2.5vw, 2.25rem);
}
.team-card{ margin: 0; min-width:0; }
.team-photo{
  width: 100%;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  filter: grayscale(.55) contrast(.97);
  margin-bottom: 1.1rem;
}
.team-caption{ max-width: 38ch; }
.team-name{
  font-size: clamp(1.05rem, .95rem + .35vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -.01em;
  color: #000;
  margin-bottom: .55rem;
}
.team-caption p{
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
  color: rgba(0,0,0,.72);
  font-weight: 400;
}

@media(max-width: 900px){
  .team-band{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 1.75rem);
  }
}
@media(max-width: 540px){
  .team-band{
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}
@media(max-width:1100px){ .s-verbund .grid{ grid-template-columns:1fr; } }

/* =====================================================================
   BUNDESWEIT · Deutschlandkarte
   ===================================================================== */
.s-karte{ background:var(--paper); }
.s-karte .head{
  margin-bottom: clamp(3rem, 5vw, 4rem);
  max-width: 60ch;
}
.s-karte .head h2{ max-width:22ch; margin:0; font-size:clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem); line-height:1.04; letter-spacing:-.035em; font-weight:900; text-wrap:balance; }
.s-karte .head h2 em{ font-style:normal; color:var(--concrete-d); }
.s-karte .head .sub{
  margin-top: 1.25rem; max-width: 56ch;
  font-size: var(--fs-lead); color: var(--ink-soft); font-weight: 300; line-height: 1.5;
}

.s-karte .karte-kpis{
  list-style: none; margin: clamp(2.5rem, 4.5vw, 4rem) auto 0; padding: 0;
  max-width: 720px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.s-karte .karte-kpis li{
  padding: 1.5rem 1rem 0;
  display: flex; flex-direction: column; gap: .35rem;
  border-right: 1px solid var(--line);
}
.s-karte .karte-kpis li:last-child{ border-right: none; }
.s-karte .karte-kpis .num{
  font-size: clamp(1.85rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 900;
  color: var(--ink); letter-spacing: -.03em; line-height: 1;
}
.s-karte .karte-kpis .lbl{
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
}
@media(max-width:680px){
  .s-karte .karte-kpis{ grid-template-columns: 1fr; }
  .s-karte .karte-kpis li{ border-right: none; border-bottom: 1px solid var(--line); padding: 1rem 0; }
  .s-karte .karte-kpis li:last-child{ border-bottom: none; }
}

.s-karte .karte-layout{
  display:block;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.s-karte .kpis,
.s-karte .kpi{ display:none; }
@media(max-width:900px){
  .karte-stage{ max-width:480px; }
}

.karte-stage{
  position:relative;
  max-width: 560px; margin: 0 auto;
}
.karte-stage svg{
  width:100%; height:auto;
  display:block;
}
.karte-stage .de-shape{
  opacity:.85;
}
.karte-stage .de-outline{
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}
.karte-stage .label{
  font-size:9px; letter-spacing:.04em;
  fill:var(--ink); font-weight:500;
  pointer-events:none;
  paint-order: stroke fill;
  stroke: var(--paper); stroke-width:2.5px; stroke-linejoin:round;
  transition: font-size .18s var(--ease), font-weight .18s var(--ease);
}
.karte-stage .dot{
  fill:var(--ink);
  transition: r .18s var(--ease), fill .18s var(--ease);
}
.karte-stage .dot-ring{ fill:none; stroke:var(--concrete-d); stroke-width:1.2; opacity:.5; }
.karte-stage .loc{ cursor:default; }
.karte-stage .loc:hover .dot{ r:5; fill:var(--concrete-d); }
.karte-stage .loc:hover .label{ font-size:11px; font-weight:700; fill:var(--ink); }
.karte-stage .loc.is-anchor .dot{ fill:var(--concrete-d); }
.karte-stage .loc.is-anchor .label{ font-weight:700; font-size:11px; }

@media(max-width:900px){
  .karte-stage{ max-width:480px; }
}
/* !important nötig, weil .section.dark { padding-block } in der CSS-Datei
   weiter unten kommt (source-order gewinnt bei gleicher Specificity). */
.section.s-lab{
  background:var(--ink); color:var(--paper);
  padding: 0 !important;
  padding-block: 0 !important;
  overflow:hidden;
}
.s-lab .split{
  display:grid;
  /* Text links, Bilder rechts — exakt halbiert */
  grid-template-columns: 1fr 1fr;
  align-items:stretch;
}
.s-lab .text-col{
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 5rem);
  display:flex; flex-direction:column; justify-content:center;
}
/* Photo-Col: füllt komplett bis Section-Oberkante/-Unterkante */
.s-lab .photo-col{
  position: relative;
  margin: 0;
  padding: 0;
  background: var(--ink);
}
/* Desktop: 6-Kachel-Grid (2×3), randlos */
.s-lab .lab-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 1px;
  width: 100%;
  height: 100%;
  background: var(--ink);
}
.s-lab .lab-tile{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--ink);
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  min-height: 0;
  /* Quadratische Kacheln in beiden Modi (Desktop 2×3 und Mobile 2×2) */
  aspect-ratio: 1 / 1;
  transition: filter .35s var(--ease), transform .35s var(--ease);
}
.s-lab .lab-tile:hover{
  filter: brightness(1.08);
}
.s-lab .text-col .badge{
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:.62rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--concrete-l); font-weight:600;
  border:1px solid var(--concrete-l);
  padding:.45rem .85rem; border-radius:999px;
  margin-bottom: 1.25rem;
}
.s-lab .text-col .badge::before{
  content:''; width:6px; height:6px; border-radius:50%; background:var(--concrete-l);
}
.s-lab .text-col h2{
  color:var(--paper); max-width:18ch;
  font-size:clamp(2.25rem,1.6rem + 2.5vw,3.75rem);
  line-height:1; font-weight:900; letter-spacing:-.035em;
}
.s-lab .text-col h2 em{ font-style:normal; color:var(--concrete-l); }
.s-lab .text-col p{ margin:1.5rem 0 0; color:rgba(244,241,236,.78); font-weight:300; font-size:var(--fs-lead); line-height:1.5; max-width:50ch; }
.s-lab .text-col .lk{ margin-top:2rem; }

@media(max-width:1100px){
  /* Vertical Stack: Text oben, Bilder unten als 2×2 quadratisch (4 sichtbar) */
  .s-lab .split{ grid-template-columns:1fr; }
  .s-lab .photo-col{ aspect-ratio: 1/1; }
  .s-lab .lab-grid{
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-auto-rows: 0;
  }
  .s-lab .lab-tile{ aspect-ratio: 1/1; }
  .s-lab .lab-tile:nth-child(n+5){ display: none; }
}

/* ============ LAB-LIGHTBOX (Galerie-Vollbild) ============ */
.lab-lightbox{
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease);
}
.lab-lightbox.is-open{
  display: block;
  opacity: 1;
  visibility: visible;
}
.lab-lb-bg{
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 22, .94);
  cursor: zoom-out;
}
.lab-lb-img{
  position: absolute;
  inset: clamp(3rem, 5vw, 5rem) clamp(4rem, 9vw, 7rem) clamp(3rem, 5vw, 5rem);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.lab-lb-close{
  position: absolute;
  top: clamp(1rem, 2vw, 1.75rem);
  right: clamp(1rem, 2vw, 1.75rem);
  width: 36px; height: 36px;
  background: none; border: none; padding: 0;
  color: var(--paper);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 4;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
  transition: color .2s var(--ease), filter .2s var(--ease);
}
.lab-lb-close:hover{ color: var(--blush); }
.lab-lb-close svg{ width: 20px; height: 20px; }
.lab-lb-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(48px, 5vw, 72px);
  height: clamp(48px, 5vw, 72px);
  background: none; border: none; padding: 0;
  color: var(--paper);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 3;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.6));
  transition: filter .2s var(--ease);
}
.lab-lb-arrow svg{ width: 100%; height: 100%; }
.lab-lb-arrow:hover{ filter: drop-shadow(0 5px 14px rgba(0,0,0,.85)); }
.lab-lb-prev{ left: clamp(.75rem, 2vw, 1.5rem); }
.lab-lb-next{ right: clamp(.75rem, 2vw, 1.5rem); }

/* =====================================================================
   CTA · Kuh — Foto fullscreen-Hintergrund mit hellem Overlay, Rechteck-Buttons
   ===================================================================== */
/* CTA — Hero-Style: dunkel, linksbündig, viel Whitespace.
   Spiegelt die Startseiten-Hero (gleiche Typografie, gleiches Padding).
   Subtile dunklere Tönung als Footer, plus Hairline-Trenner unten,
   damit beide dunklen Sektionen nicht ineinander verschwimmen. */
.s-cta{
  position:relative;
  background: #0d0c0b;
  color:var(--paper);
  padding-block: clamp(12rem, 24vh, 20rem);
  border-bottom: 1px solid rgba(244, 241, 236, .08);
}
.s-cta .wrap{
  max-width:var(--maxw); margin:0 auto;
  padding: 0 clamp(1.5rem,3vw,2.75rem);
}
.s-cta h2{
  color:#fff;
  font-size: clamp(2.5rem, 1.6rem + 4.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 900;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.s-cta .sub{
  margin: clamp(2rem, 4vh, 3rem) 0 0;
  font-size: var(--fs-lead);
  line-height: 1.5;
  font-weight: 400;
  color: rgba(244, 241, 236, .82);
  max-width: 50ch;
}
.s-cta .actions{
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  display: inline-flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  flex-wrap: wrap;
}

/* Primary-Button: Paper auf Ink, mit Pfeil */
.cta-btn-primary{
  display: inline-flex;
  align-items: center;
  gap: clamp(.75rem, 1.4vw, 1.1rem);
  padding: 1rem 1.6rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-lead);
  font-weight: 500;
  letter-spacing: -.005em;
  border: 1px solid var(--paper);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), gap .25s var(--ease);
}
.cta-btn-primary:hover{
  background: var(--blush);
  border-color: var(--blush);
  color: var(--ink);
  gap: clamp(1rem, 1.7vw, 1.4rem);
}
.cta-btn-primary svg{
  width: clamp(1.8rem, 2.6vw, 2.4rem);
  height: auto;
  flex-shrink: 0;
  transition: transform .25s var(--ease);
}
.cta-btn-primary:hover svg{ transform: translateX(4px); }

/* Sekundärer Text-Link mit Underline */
.cta-link{
  display: inline-flex;
  align-items: baseline;
  color: var(--paper);
  text-decoration: none;
  font-size: var(--fs-lead);
  font-weight: 400;
  letter-spacing: -.005em;
  border-bottom: 1px solid rgba(244, 241, 236, .55);
  padding-bottom: .15rem;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.cta-link:hover{
  color: var(--blush);
  border-bottom-color: var(--blush);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer{
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(4rem, 7vw, 6rem) 2rem;
}
/* Hauptbereich: Brand-Block links, Kontakt-Block rechts */
.site-footer .footer-main{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.site-footer .brand-block .logo{
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.005em;
  margin-bottom: 1rem;
}
.site-footer .brand-block p{
  margin: 0;
  max-width: 52ch;
  color: rgba(244, 241, 236, .62);
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.6;
}
.site-footer .footer-contact h4{
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--concrete-l);
  font-weight: 600;
  margin: 0 0 1rem;
}
.site-footer .footer-contact address{
  font-style: normal;
  color: rgba(244, 241, 236, .60);
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.55;
  margin: 0 0 .65rem;
}
.site-footer .footer-contact a{
  color: rgba(244, 241, 236, .85);
  font-size: .92rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(244, 241, 236, .25);
  padding-bottom: .12rem;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-footer .footer-contact a:hover{
  color: var(--blush);
  border-bottom-color: var(--blush);
}
/* Baseline: Copyright links, Legal-Links rechts */
.site-footer .baseline{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 241, 236, .14);
  flex-wrap: wrap;
  gap: .8rem 2rem;
}
.site-footer .copyright{
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, .5);
}
.site-footer .legal-links{
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
}
.site-footer .legal-links a{
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, .5);
  transition: color .2s var(--ease);
}
.site-footer .legal-links a:hover{
  color: var(--blush);
}
@media(max-width: 700px){
  .site-footer .footer-main{ grid-template-columns: 1fr; }
}

/* =====================================================================
   ====================  SUBPAGES MODUL  ===============================
   Wiederverwendbare Patterns für Unterseiten
   (Leistungen · Referenzen · Orbit Lab · Über uns · Kontakt · Projekte)
   Magazin-Sprache wie Startseite: Hairlines, Ruhe, Display-Type
   ===================================================================== */

/* -- PAGE HERO (kompakter Hero für Unterseiten) ----------------------- */
.page-hero{
  position:relative; min-height: clamp(58vh, 70vh, 82vh);
  background:var(--ink); color:var(--paper); overflow:hidden;
  display:flex; align-items:flex-end;
  padding: clamp(7rem,12vh,10rem) 0 clamp(4rem,7vh,6rem);
}
.page-hero .bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:.95;
}
.page-hero .bg::after{
  content:''; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(26,24,22,.55) 0%, rgba(26,24,22,.18) 35%, rgba(26,24,22,.20) 60%, rgba(26,24,22,.78) 100%);
}
.page-hero .inner{
  position:relative; z-index:2;
  width:100%; max-width:var(--maxw); margin:0 auto; padding: 0 var(--gutter);
}
.page-hero .breadcrumb{
  font-size:.7rem; letter-spacing:.28em; text-transform:uppercase;
  color:rgba(244,241,236,.7); font-weight:500;
  margin-bottom: 1.6rem;
  display:flex; align-items:center; gap:.7rem;
}
.page-hero .breadcrumb a{ color:inherit; opacity:.85; transition:opacity .2s var(--ease); }
.page-hero .breadcrumb a:hover{ opacity:1; }
.page-hero .breadcrumb .sep{ opacity:.4; }
.page-hero h1{
  font-size:clamp(2.75rem, 1.6rem + 4.5vw, 5.5rem);
  line-height:.96; font-weight:900; letter-spacing:-.04em;
  color:var(--paper); max-width:18ch; text-wrap:balance;
  text-shadow: 0 1px 30px rgba(26,24,22,.35);
  margin:0;
}
.page-hero h1 em{ font-style:normal; color:var(--concrete-l); }
.page-hero .lead-hero{
  margin:1.5rem 0 0; max-width:54ch;
  font-size:clamp(1.15rem, .95rem + .55vw, 1.45rem); font-weight:300; line-height:1.5;
  color:rgba(244,241,236,.86);
  text-shadow: 0 1px 20px rgba(26,24,22,.35);
}

/* -- SECTION (heller Untergrund, Padding wie Startseiten-Sections) ---- */
.section.light{ background:var(--paper); color:var(--ink); padding-block: var(--section-pad); }
.section.dark{ background:var(--ink); color:var(--paper); padding-block: var(--section-pad); }
.section.alt{ background:var(--paper-2); color:var(--ink); padding-block: var(--section-pad); }

/* -- SECTION-HEAD (H2 + Intro-Text) ----------------------------------- */
.section-head{
  display:grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  align-items:start;
}
.section-head h2{
  font-size:var(--fs-h2); line-height:1.02; letter-spacing:-.025em; font-weight:900;
  margin:0; max-width:18ch; text-wrap:balance;
}
.section-head h2 em{ font-style:normal; color:var(--concrete-d); }
.section-head .intro{
  font-size:var(--fs-lead); line-height:1.55; color:var(--ink-soft); font-weight:300;
  margin:0; max-width:55ch;
}
@media(max-width:900px){ .section-head{ grid-template-columns:1fr; gap:1.5rem; } }

/* -- PROSE (lange Textstrecken mit H3) -------------------------------- */
.prose{ max-width: 68ch; }
.prose .lead{
  font-size:var(--fs-lead); line-height:1.55; color:var(--ink); font-weight:400;
  margin: 0 0 2rem;
}
.prose p{ margin: 0 0 1.4rem; line-height:1.7; color:var(--ink-soft); font-weight:400; }
.prose p:last-child{ margin-bottom:0; }
.prose strong{ color:var(--ink); font-weight:600; }
.prose em{ font-style:italic; color:var(--ink); }
.prose h3{
  margin: 2.5rem 0 .9rem;
  font-size: clamp(1.15rem, .95rem + .5vw, 1.35rem); line-height:1.25; letter-spacing:-.01em;
  font-weight:700; color:var(--ink);
}
.prose ul.bullets{
  list-style:none; padding:0; margin: 1.2rem 0 0;
}
.prose ul.bullets li{
  padding: .55rem 0 .55rem 1.4rem;
  position:relative;
  border-bottom:1px solid var(--line);
  font-size:.97rem; line-height:1.5; color:var(--ink-soft);
}
.prose ul.bullets li::before{
  content:''; position:absolute; left:0; top:1.05rem;
  width:6px; height:1px; background:var(--ink);
}
.prose ul.bullets li:last-child{ border-bottom:none; }

/* -- BUTTONS / BTN-ROW / CTA ------------------------------------------ */
.btn{
  display:inline-block; padding:.95rem 1.6rem;
  border:1px solid var(--ink); background:transparent; color:var(--ink);
  font-size:.95rem; font-weight:500; letter-spacing:.04em;
  cursor:pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover{ background:var(--ink); color:var(--paper); }
.btn.primary{ background:var(--ink); color:var(--paper); }
.btn.primary:hover{ background:var(--ink-3); }
.btn.ghost{ background:transparent; }
.btn-row{ display:flex; flex-wrap:wrap; gap:.8rem; margin-top:1.5rem; }

/* -- CTA-Block (am Seitenende) ---------------------------------------- */
.cta{
  background:var(--paper-3); padding-block: clamp(5rem, 8vw, 7rem);
  text-align:center;
}
.cta h2{
  font-size:clamp(2rem,1.4rem + 2.4vw,3.25rem); line-height:1.04; letter-spacing:-.03em; font-weight:900;
  margin: .5rem 0 1.5rem; max-width:24ch; margin-inline:auto; text-wrap:balance;
}
.cta .btn-row{ justify-content:center; margin-top:2rem; }
.cta .hint{
  font-size:.7rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:500; margin-top:1.5rem;
}

/* -- BA-DETAIL (Baustein-Block: Head + Media) ------------------------- */
.ba-detail{
  display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: clamp(4rem, 7vw, 6rem);
  align-items:center;
}
.ba-detail:last-child{ margin-bottom:0; }
.ba-detail:nth-child(even) .head{ order:2; }
.ba-detail .head .idx{
  font-size:.68rem; letter-spacing:.32em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600; margin-bottom: 1rem;
}
.ba-detail .head h2{
  font-size:clamp(1.85rem,1.3rem + 1.8vw,2.75rem);
  line-height:1.04; letter-spacing:-.025em; font-weight:900;
  margin:0 0 1.2rem; max-width:14ch;
}
.ba-detail .head .lead{
  font-size:var(--fs-lead); line-height:1.5; color:var(--ink); font-weight:400;
  margin: 0 0 1.4rem;
}
.ba-detail .head p{ color:var(--ink-soft); line-height:1.7; margin: 0 0 1.4rem; }
.ba-detail .head ul.bullets{
  list-style:none; padding:0; margin: 1.2rem 0 0; max-width:42ch;
}
.ba-detail .head ul.bullets li{
  padding: .55rem 0 .55rem 1.4rem; position:relative;
  border-bottom:1px solid var(--line);
  font-size:.95rem; line-height:1.5; color:var(--ink-soft);
}
.ba-detail .head ul.bullets li::before{
  content:''; position:absolute; left:0; top:1.05rem;
  width:6px; height:1px; background:var(--ink);
}
.ba-detail .head ul.bullets li:last-child{ border-bottom:none; }
.ba-detail .media{
  width:100%; aspect-ratio: 4/5;
  background-size:cover; background-position:center;
}
@media(max-width:900px){
  .ba-detail{ grid-template-columns:1fr; gap:1.5rem; }
  .ba-detail:nth-child(even) .head{ order:initial; }
  .ba-detail .media{ aspect-ratio: 5/4; }
}

/* -- REF-GRID (Projekt-Index) ----------------------------------------- */
.ref-grid{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 2.5vw, 2.5rem);
}
@media(max-width:1100px){ .ref-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:680px){ .ref-grid{ grid-template-columns:1fr; } }
.ref-card{
  display:block; color:inherit; text-decoration:none;
  border-top:1px solid var(--line);
  padding-top: 1.5rem;
  transition: opacity .2s var(--ease);
}
.ref-card:hover{ opacity:.78; }
.ref-card .thumb{ width:100%; aspect-ratio: 4/3; overflow:hidden; margin-bottom:1.4rem; }
.ref-card .thumb-img{
  width:100%; height:100%; background-size:cover; background-position:center;
  transform: scale(1); transition: transform .8s var(--ease);
}
.ref-card:hover .thumb-img{ transform: scale(1.04); }
.ref-card .body .kicker{
  font-size:.68rem; letter-spacing:.32em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600;
  display:block; margin-bottom: .7rem;
}
.ref-card .body h3{
  font-size:clamp(1.3rem, 1.05rem + .6vw, 1.55rem);
  line-height:1.15; letter-spacing:-.015em; font-weight:700;
  margin: 0 0 .7rem;
}
.ref-card .body p{
  margin: 0 0 1rem; color:var(--ink-soft); font-size:.95rem; line-height:1.5;
  max-width:38ch;
}
.ref-card .body .more{
  font-size:.78rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--ink); font-weight:600;
}

/* -- PROJECT META (Detailseite: dl mit Auftrag, Jahr, Fläche, ...) ---- */
.project-meta{
  display:grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem) clamp(2rem, 4vw, 3.5rem);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem) 0;
  margin: clamp(2rem,4vw,3rem) 0;
}
.project-meta .item dt{
  font-size:.68rem; letter-spacing:.32em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600; margin-bottom: .5rem;
}
.project-meta .item dd{
  margin:0; font-size:1rem; line-height:1.4; color:var(--ink); font-weight:500;
}
@media(max-width:900px){ .project-meta{ grid-template-columns:repeat(2,1fr); } }

/* -- IMAGE STRIP (Bilderstrecke auf Projektdetailseiten) -------------- */
.image-strip{
  display:grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem,2vw,1.5rem);
  margin: clamp(2rem,4vw,3rem) 0;
}
.image-strip .ph{
  width:100%; aspect-ratio: 4/3; background-size:cover; background-position:center;
}
.image-strip .ph.tall{ aspect-ratio: 3/4; }
.image-strip .ph.wide{ grid-column: 1 / -1; aspect-ratio: 16/9; }
@media(max-width:680px){ .image-strip{ grid-template-columns:1fr; } .image-strip .ph.wide{ grid-column:auto; } }

/* -- QUOTE BLOCK (z.B. Lorenz-Zitat auf Über uns) --------------------- */
.quote-block{
  padding-block: clamp(5rem, 9vw, 8rem);
  background: var(--paper-2);
}
.quote-block .grid{
  display:grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2.5rem, 5vw, 5rem);
  align-items:center;
}
.quote-block .q .mark{
  font-family: 'Satoshi', serif; font-weight:900; font-size:6rem; line-height:.7;
  color:var(--concrete); margin-bottom: .5rem;
}
.quote-block blockquote{
  margin:0; font-size:clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem);
  line-height:1.18; letter-spacing:-.018em; font-weight:500; color:var(--ink);
  text-wrap:balance; max-width:28ch;
}
.quote-block .cite{
  margin-top: 1.6rem;
  font-size:.7rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600;
}
.quote-block figure{ margin:0; }
.quote-block .portrait{
  width:100%; aspect-ratio: 4/5; background-size:cover; background-position:center;
}
.quote-block .portrait-placeholder{
  width:100%; aspect-ratio: 4/5; background:var(--paper-3);
  display:flex; align-items:center; justify-content:center;
  color:var(--ink-mute); font-size:.78rem; letter-spacing:.2em; text-transform:uppercase;
}
.quote-block figcaption{
  margin-top:.8rem; font-size:.78rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:500;
}
@media(max-width:900px){ .quote-block .grid{ grid-template-columns:1fr; gap:2rem; } }

/* -- ECKDATEN-DL (z.B. Über uns Qualifikationen) ---------------------- */
.eckdaten{
  display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,4rem);
}
.eckdaten dl{ margin:0; display:grid; grid-template-columns: max-content 1fr; gap: .8rem 1.5rem; }
.eckdaten dt{
  font-size:.68rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600; padding-top:.15rem;
}
.eckdaten dd{ margin:0; font-size:.97rem; line-height:1.4; color:var(--ink); font-weight:400; }
@media(max-width:900px){ .eckdaten{ grid-template-columns:1fr; } }

/* -- PARTNERS GRID (Verbund-Block) ------------------------------------ */
.partners{
  display:grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem clamp(2rem,4vw,3.5rem);
  margin-top: 2.5rem;
  border-top:1px solid var(--line); padding-top: 2rem;
}
.partners .p .role{
  font-size:.68rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600; margin-bottom:.4rem;
}
.partners .p .name{ font-size:1.05rem; color:var(--ink); font-weight:500; line-height:1.3; }

/* -- CONTACT GRID (Kontakt: Info + Form) ------------------------------ */
.contact-grid{
  display:grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 5vw, 5rem);
}
.contact-info dl{
  display:grid; grid-template-columns: max-content 1fr; gap:.7rem 1.5rem; margin:0;
}
.contact-info dt{
  font-size:.68rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600; padding-top:.15rem;
}
.contact-info dd{ margin:0; color:var(--ink); }
.contact-info dd a{ color:var(--ink); border-bottom:1px solid var(--line-2); transition:border-color .2s var(--ease); }
.contact-info dd a:hover{ border-color:var(--ink); }
.contact-form{ display:flex; flex-direction:column; gap:1rem; }
.contact-form .field{ display:flex; flex-direction:column; gap:.4rem; }
.contact-form label{
  font-size:.68rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600;
}
.contact-form input, .contact-form textarea{
  font:inherit; padding:.85rem 1rem;
  border:1px solid var(--line-2); background:var(--paper); color:var(--ink);
  border-radius:0;
  transition:border-color .2s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus{
  outline:none; border-color:var(--ink);
}
.contact-form textarea{ min-height: 9rem; resize:vertical; }
.contact-form button[type="submit"]{
  margin-top:.5rem; padding: 1rem 1.6rem;
  border:1px solid var(--ink); background:var(--ink); color:var(--paper);
  font-size:.95rem; font-weight:500; letter-spacing:.04em; cursor:pointer;
  transition: background .2s var(--ease);
}
.contact-form button[type="submit"]:hover{ background:var(--ink-3); }
@media(max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }

/* -- COLLAPSIBLE (Impressum/Datenschutz Akkordeon) -------------------- */
.collapsible{
  border-top:1px solid var(--line);
  padding: 1.2rem 0;
}
.collapsible:last-child{ border-bottom:1px solid var(--line); }
.collapsible summary{
  list-style:none; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center;
  font-size:1.05rem; font-weight:600; color:var(--ink);
  padding: .3rem 0;
}
.collapsible summary::-webkit-details-marker{ display:none; }
.collapsible summary::after{
  content:'+'; font-size:1.6rem; color:var(--ink-mute); font-weight:300;
  transition: transform .2s var(--ease);
}
.collapsible[open] summary::after{ content:'−'; }
.collapsible .content{ padding: 1rem 0 .5rem; }

/* -- ORBIT LAB GALLERY ------------------------------------------------ */
.lab-page{
  background:var(--paper); padding-block: var(--section-pad);
}
.lab-page .lab-grid{
  display:grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2.5rem, 5vw, 5rem);
  align-items:start;
}
.lab-page .text-col h2{
  font-size:clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height:1.04; letter-spacing:-.025em; font-weight:900;
  margin: 0 0 1.5rem; max-width:16ch; text-wrap:balance;
}
.lab-page .text-col h2 em{ font-style:normal; color:var(--concrete-d); }
.lab-page .text-col .lead-lab{
  font-size:var(--fs-lead); line-height:1.55; color:var(--ink-soft); font-weight:300;
  margin: 0 0 2rem; max-width:42ch;
}
.lab-page .text-col .meta{
  font-size:.78rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:500;
}
.lab-page .gallery-stage{ width:100%; aspect-ratio: 4/3; background-size:cover; background-position:center; margin-bottom:1rem; }
.lab-page .gallery-thumbs{
  display:grid; grid-template-columns: repeat(6, 1fr); gap:.6rem;
}
.lab-page .gallery-thumbs button{
  border:none; padding:0; background:transparent; cursor:pointer;
  aspect-ratio: 1/1; background-size:cover; background-position:center;
  opacity:.55; transition: opacity .2s var(--ease);
}
.lab-page .gallery-thumbs button:hover,
.lab-page .gallery-thumbs button.is-active{ opacity:1; }
@media(max-width:900px){
  .lab-page .lab-grid{ grid-template-columns:1fr; }
  .lab-page .gallery-thumbs{ grid-template-columns: repeat(6, 1fr); }
}

/* -- TEAM-MARQUEE (Über uns: Team-Cards in horizontaler Zeile) -------- */
.team-marquee{
  background:var(--paper); padding-block: var(--section-pad);
}
.team-marquee .head{
  max-width: var(--maxw); margin: 0 auto clamp(3rem, 5vw, 4rem); padding: 0 var(--gutter);
  display:grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 5rem);
  align-items:start;
}
.team-marquee .head h2{
  font-size:var(--fs-h2); line-height:1.02; letter-spacing:-.025em; font-weight:900; margin:0;
  max-width:18ch; text-wrap:balance;
}
.team-marquee .head p{
  font-size:var(--fs-lead); line-height:1.55; color:var(--ink-soft); font-weight:300; margin:0;
  max-width:55ch;
}
.team-marquee .row{
  display:grid; grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  overflow-x:auto;
}
.team-marquee .card{ display:flex; flex-direction:column; gap:.6rem; }
.team-marquee .card .photo{
  width:100%; aspect-ratio: 4/5; background-size:cover; background-position:center;
}
.team-marquee .card .role{
  font-size:.66rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600; margin-top:.6rem;
}
.team-marquee .card .name{ font-size:1rem; color:var(--ink); font-weight:600; line-height:1.2; }
.team-marquee .card .disc{ font-size:.88rem; color:var(--ink-soft); line-height:1.4; }
@media(max-width:900px){
  .team-marquee .head{ grid-template-columns:1fr; }
  .team-marquee .row{ grid-template-columns: repeat(6, 220px); }
}

/* -- DREI-SÄULEN (Leistungen: Analyse · Muster · Ausführung) ---------- */
.drei-saeulen{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem);
  border-top:1px solid var(--line); padding-top: clamp(2rem, 4vw, 3rem);
}
.drei-saeulen .item .num{
  font-size:.68rem; letter-spacing:.32em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600; margin-bottom: .8rem;
}
.drei-saeulen .item h3{
  font-size:clamp(1.4rem, 1.05rem + .8vw, 1.8rem); line-height:1.1; letter-spacing:-.015em;
  font-weight:700; margin: 0 0 .9rem;
}
.drei-saeulen .item p{ color:var(--ink-soft); line-height:1.6; margin:0; max-width:36ch; }
@media(max-width:900px){ .drei-saeulen{ grid-template-columns:1fr; } }

/* -- TOPBAR auf Subpages: dezent dunkler Übergang nach Hero ----------- */
/* (Topbar bleibt wie auf Startseite weiß, da Page-Hero dunkel ist.
   Optional .topbar.is-dark wenn JS den Scroll erkennt — hier nicht nötig.) */

/* -- PROJECT NEXT (Footer-CTA: nächstes Projekt verlinken) ------------ */
.project-next{
  background:var(--ink); color:var(--paper);
  padding-block: clamp(4rem,7vw,6rem);
}
.project-next .wrap{
  display:grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem,4vw,4rem);
  align-items:center;
}
.project-next .label{
  font-size:.7rem; letter-spacing:.28em; text-transform:uppercase;
  color:rgba(244,241,236,.6); font-weight:600;
  display:block; margin-bottom: .7rem;
}
.project-next h2{
  margin:0; color:var(--paper);
  font-size:clamp(1.8rem,1.3rem + 1.6vw,2.6rem); line-height:1.06; letter-spacing:-.025em;
  font-weight:900; text-wrap:balance; max-width:22ch;
}
.project-next h2 em{ font-style:normal; color:var(--concrete-l); }
.project-next .arrow-link{
  justify-self:end;
  font-size:clamp(1.2rem, .9rem + .7vw, 1.6rem);
  color:var(--paper); font-weight:500; letter-spacing:-.005em;
  border-bottom:1px solid rgba(244,241,236,.5);
  padding-bottom:.4rem;
  transition: border-color .2s var(--ease);
}
.project-next .arrow-link:hover{ border-color:var(--paper); }
@media(max-width:780px){
  .project-next .wrap{ grid-template-columns:1fr; }
  .project-next .arrow-link{ justify-self:start; }
}

/* -- PROJECT INTRO (Detailseite: intro + dl im 2-Spalten-Layout) ------ */
.project-intro .meta-row{
  display:grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2.5rem, 5vw, 5rem);
  align-items:start;
}
.project-intro .meta-text{ max-width: 60ch; }
.project-intro .meta-text .lead{
  font-size:var(--fs-lead); line-height:1.55; color:var(--ink); font-weight:400;
  margin: 0 0 1.5rem;
}
.project-intro .meta-text p{ margin:0 0 1.4rem; line-height:1.7; color:var(--ink-soft); }
.project-intro .meta-dl{
  display:grid; grid-template-columns: max-content 1fr; gap:.75rem 1.5rem;
  margin:0; padding-top: .25rem;
  border-top:1px solid var(--line);
}
.project-intro .meta-dl::before{
  content:''; grid-column: 1 / -1; height:.5rem;
}
.project-intro .meta-dl dt{
  font-size:.68rem; letter-spacing:.28em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600; padding-top:.15rem;
}
.project-intro .meta-dl dd{ margin:0; font-size:.97rem; color:var(--ink); font-weight:500; line-height:1.4; }
@media(max-width:900px){ .project-intro .meta-row{ grid-template-columns:1fr; } }

/* -- PROJECT STORY (head + body in 2-Spalten) ------------------------- */
.project-story .story-grid{
  display:grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 5rem);
  align-items:start;
}
.project-story .story-head .idx{
  font-size:.68rem; letter-spacing:.32em; text-transform:uppercase;
  color:var(--ink-mute); font-weight:600; margin-bottom: 1rem;
}
.project-story .story-head h2{
  font-size:clamp(1.85rem,1.3rem + 1.8vw,2.75rem);
  line-height:1.04; letter-spacing:-.025em; font-weight:900;
  margin:0; max-width:14ch;
}
.project-story .story-head h2 em{ font-style:normal; color:var(--concrete-d); }
.project-story .story-body p{ margin: 0 0 1.4rem; line-height:1.7; color:var(--ink-soft); }
.project-story .story-body p:last-child{ margin-bottom:0; }
.project-story .story-body .lead{
  font-size:var(--fs-lead); line-height:1.55; color:var(--ink); font-weight:400; margin: 0 0 1.5rem;
}
@media(max-width:900px){ .project-story .story-grid{ grid-template-columns:1fr; } }

/* -- PROJECT GALLERY (asymmetrisches Bildraster) ---------------------- */
.project-gallery{
  background:var(--paper); padding-block: clamp(3rem, 6vw, 5rem) var(--section-pad);
}
.project-gallery .grid{
  display:grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(.6rem, 1.2vw, 1rem);
}
.project-gallery .tile{
  width:100%; aspect-ratio: 4/3;
  background-size:cover; background-position:center;
}
.project-gallery .tile.tall{ aspect-ratio: 3/4; grid-row: span 2; }
.project-gallery .tile.wide{ grid-column: span 2; aspect-ratio: 16/9; }
@media(max-width:900px){
  .project-gallery .grid{ grid-template-columns: repeat(2, 1fr); }
  .project-gallery .tile.wide{ grid-column: span 2; }
  .project-gallery .tile.tall{ grid-row: auto; aspect-ratio: 4/5; }
}
@media(max-width:520px){
  .project-gallery .grid{ grid-template-columns: 1fr; }
  .project-gallery .tile.wide,
  .project-gallery .tile.tall{ grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
}

/* -- IS-ACTIVE Nav State ---------------------------------------------- */
.topbar nav a.is-active{ opacity:1; position:relative; }
.topbar nav a.is-active::after{
  content:''; position:absolute; left:0; right:0; bottom:-.6rem;
  height:1px; background: currentColor; opacity:.7;
}

/* =====================================================================
   REFERENZEN — Sticky-Hero über die ganze Sektion
   Stage pinnt 100vh top:0. Content overlay scrollt drüber.
   Darken-Overlay faded mit dem Scroll. Side-Nav fixed links unten.
   ===================================================================== */
.s-referenzen{
  position: relative;
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  /* Section-Padding raus — sonst entsteht ein schwarzer Balken über dem Hero */
  padding-block: 0;
  /* Default-State: genau 100vh als Hero-Slide */
  min-height: 100vh;
  min-height: 100svh;
  /* Stacking-Context */
  isolation: isolate;
}

/* ============ STICKY-STAGE ============ */
.ref-stage{
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}
.ref-bg{
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ref-slides{ position: absolute; inset: 0; display: block; }
.ref-slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.ref-slide.is-active{ opacity: 1; }

/* Verdunkelung — Basis-Layer leicht dunkel (dimmt das ganze Hero-Bild),
   wird beim Expand stärker. CSS-Transition für sanften Fade. */
.ref-darken{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 1);
  opacity: 0.22;
  pointer-events: none;
  transition: opacity .9s var(--ease);
  z-index: 2;
}
.s-referenzen.is-expanded .ref-darken{
  opacity: 0.70;
}
/* Hero-Scrim: zurück auf leichten Schatten oben + unten.
   Lesbarkeit kommt jetzt vor allem aus dem weichen Text-Glow auf
   Headline + Lead. */
.ref-scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, .45) 0%,
      rgba(0, 0, 0, 0)   22%),
    linear-gradient(to top,
      rgba(0, 0, 0, .45) 0%,
      rgba(0, 0, 0, 0)   22%);
  pointer-events: none;
  z-index: 3;
}
.ref-photo-trigger{
  position: absolute;
  inset: 0;
  z-index: 4;
  background: none;
  border: none;
  padding: 0;
  cursor: zoom-in;
}

/* ============ CONTENT-OVERLAY (scrollt über die Stage) ============ */
.ref-content{
  position: relative;
  z-index: 2;
  /* Hochziehen über die Sticky-Stage */
  margin-top: -100vh;
  margin-top: -100svh;
}

/* Header oben — Headline + Lead ON the image, linksbündig im .wrap */
.ref-content .ref-head{
  margin: 0;
  padding-top: clamp(7rem, 14vh, 11rem);   /* unter Topbar */
  padding-bottom: clamp(2rem, 4vw, 3rem);  /* schlank im Default-State */
  max-width: 920px;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
/* Im expanded State: padding-bottom auf Lead-Gap reduzieren,
   damit der erste Absatz direkt in der nächsten Zeile beginnt. */
.s-referenzen.is-expanded .ref-content .ref-head{
  padding-bottom: 0;
}
.ref-headline{
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: -.025em;
  font-weight: 900;
  margin: 0;
  color: #fff;
  text-wrap: balance;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.ref-headline em{
  font-style: normal;
  color: #fff;
}
.ref-hero-lead{
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.5;
  font-weight: 400;
  color: #fff;
  max-width: 920px;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* "Mehr erfahren" — Toggle in ref-head */
.ref-toggle-more{
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(244, 241, 236, .55);
  padding: .35rem 0;
  margin: clamp(.5rem, 1vw, 1rem) 0 0;
  cursor: pointer;
  color: var(--paper);
  font: inherit;
  font-size: clamp(.85rem, .8rem + .25vw, 1rem);
  letter-spacing: -.005em;
  transition: gap .25s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.ref-toggle-more:hover{
  gap: .85rem;
  color: var(--blush);
  border-bottom-color: var(--blush);
}
.ref-toggle-more svg{
  width: 14px; height: 14px;
  flex-shrink: 0;
  transition: transform .2s var(--ease);
}
.ref-toggle-more:hover svg{ transform: translateY(2px); }

/* Long-form: collapsed via grid-rows 0fr, expanded auf 1fr.
   Slide-Down + Fade animiert in einem Rutsch — wie die 5-Schritte. */
.ref-longform{
  position: relative;
  background: transparent;
  margin: 0;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    grid-template-rows .9s var(--ease),
    opacity .9s var(--ease),
    transform .9s var(--ease);
  pointer-events: none;
}
.s-referenzen.is-expanded .ref-longform{
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ref-longform-content{
  overflow: hidden;
  min-height: 0;
  padding: clamp(1.25rem, 2vw, 1.6rem) 0 clamp(8rem, 14vw, 12rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 920px;
}
/* Im expanded State Toggle ausblenden */
.s-referenzen.is-expanded .ref-toggle-more{
  display: none;
}
.ref-lf-text{
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(244, 241, 236, .94);
  hyphens: auto;
  -webkit-hyphens: auto;
  max-width: 920px;
}

/* Section heading inside long-form: kicker + h3 */
.ref-lf-head{
  margin: clamp(1rem, 2vw, 1.5rem) 0 .25rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  max-width: 62ch;
}
.ref-lf-kicker{
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(244, 241, 236, .65);
}
.ref-lf-title{
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--paper);
}

/* Meta-Block: dl mit Label · Wert */
.ref-lf-meta{
  margin: 0;
  display: grid;
  grid-template-columns: minmax(8ch, 16ch) 1fr;
  gap: .35rem clamp(1rem, 2vw, 1.75rem);
  max-width: 920px;
  padding: clamp(1rem, 2vw, 1.5rem) 0;
  border-top: 1px solid rgba(244, 241, 236, .14);
  border-bottom: 1px solid rgba(244, 241, 236, .14);
  font-size: clamp(.85rem, .8rem + .25vw, .98rem);
  line-height: 1.5;
}
.ref-lf-meta dt{
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(244, 241, 236, .65);
  margin: 0;
}
.ref-lf-meta dd{
  margin: 0;
  font-weight: 400;
  color: rgba(244, 241, 236, .92);
}

/* ============ SLIDER (Bild-Carousel mit prev/next) ============ */
.ref-lf-slider{
  position: relative;
  margin: clamp(1rem, 2vw, 1.5rem) 0 .5rem;
  width: 100%;
}
.ref-lf-slider-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 16px 50px -16px rgba(0, 0, 0, .65);
}
.ref-lf-slide{
  position: absolute;
  inset: 0;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  cursor: zoom-in;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.ref-lf-slide.is-active{
  opacity: 1;
  pointer-events: auto;
}
.ref-lf-slider-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 18, 16, .55);
  border: none;
  padding: .9rem 1rem;
  cursor: pointer;
  color: var(--paper);
  z-index: 2;
  transition: background .2s var(--ease);
}
.ref-lf-slider-nav:hover{
  background: rgba(20, 18, 16, .85);
}
.ref-lf-slider-nav svg{
  width: clamp(2rem, 3vw, 2.6rem);
  height: auto;
}
.ref-lf-slider-prev{ left: 0; }
.ref-lf-slider-next{ right: 0; }
.ref-lf-slider-caption{
  margin: .85rem 0 0;
  font-size: .82rem;
  font-weight: 400;
  color: rgba(244, 241, 236, .72);
  letter-spacing: .01em;
}

/* ============ GALLERY (Mosaik / Kachel-Grid) ============ */
.ref-lf-gallery{
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 .5rem;
}
.ref-lf-gallery-title{
  margin: 0 0 clamp(.85rem, 1.6vw, 1.25rem);
  font-size: clamp(1.15rem, .95rem + .8vw, 1.5rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--paper);
}
/* Standard-Galerie: immer 2 Spalten, quadratische Kacheln */
.ref-lf-gallery-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(.5rem, 1vw, .85rem);
}
.ref-lf-gallery-tile{
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--ink);
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.ref-lf-gallery-tile:hover{
  transform: scale(1.01);
  filter: brightness(1.05);
}
.ref-lf-gallery-img{
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Sequential-Variante: große Bilder untereinander, volle Breite */
.ref-lf-gallery--sequential .ref-lf-gallery-grid{
  display: flex;
  flex-direction: column;
  gap: clamp(.75rem, 1.5vw, 1.25rem);
}
.ref-lf-gallery--sequential .ref-lf-gallery-tile{
  aspect-ratio: 16 / 10;
}

/* Mobile: Galerie bleibt 2 Spalten (Quadrate werden kleiner) */
@media (max-width: 540px){
  .ref-lf-gallery-grid{
    gap: .4rem;
  }
}
.ref-lf-fig{
  margin: clamp(.5rem, 1vw, 1rem) 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.ref-lf-img-btn{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  border: none;
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 0 16px 50px -16px rgba(0, 0, 0, .65);
  transition: transform .35s var(--ease);
}
.ref-lf-img-btn:hover{ transform: scale(1.01); }
.ref-lf-img{
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.ref-lf-cap{
  margin: 0;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(244, 241, 236, .65);
}

/* ============ SIDE-NAV ============
   position: absolute am Section-Bottom. Vorher links, Nächste rechts —
   beide Buttons spreizen über die Section-Breite (gutter-bündig). */
.ref-nav-side{
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  left:  max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  z-index: 100;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  pointer-events: auto;
}

.ref-nav-side .ref-nav-btn{
  display: inline-flex;
  align-items: center;
  gap: clamp(.6rem, 1.1vw, .95rem);
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  color: var(--paper);
  font: inherit;
  /* Eine Stufe kleiner als ".ref-toggle-more" (mehr erfahren) */
  font-size: clamp(.75rem, .7rem + .2vw, .9rem);
  font-weight: 400;
  letter-spacing: -.005em;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
  transition: color .2s var(--ease), gap .25s var(--ease);
}
.ref-nav-side .ref-nav-btn:hover{
  color: var(--blush);
  gap: clamp(1rem, 1.6vw, 1.4rem);
}
/* Dünner langer Pfeil */
.ref-nav-side .ref-nav-arrow{
  width: clamp(2.2rem, 3.2vw, 3rem);
  height: auto;
  flex-shrink: 0;
  transition: transform .25s var(--ease);
}
.ref-nav-side .ref-nav-prev:hover .ref-nav-arrow{ transform: translateX(-4px); }
.ref-nav-side .ref-nav-next:hover .ref-nav-arrow{ transform: translateX(4px); }

/* Stack: Lead-Label + Projektname mit Underline unter dem Namen */
.ref-nav-stack{
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: .4rem;
}
.ref-nav-side .ref-nav-lbl{
  font-weight: 400;
  opacity: .75;
}
.ref-nav-side .ref-nav-name{
  font-weight: 400;
  white-space: nowrap;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid rgba(244, 241, 236, .55);
  padding-bottom: .15rem;
  transition: border-color .2s var(--ease);
}
.ref-nav-side .ref-nav-btn:hover .ref-nav-name{
  border-bottom-color: var(--blush);
}

/* Generelle Buttons (Wiederhol-Block falls vorhanden) — wir behalten die alte Klasse */
.ref-nav-btn{
  cursor: pointer;
}

/* ============ MOBILE / TABLET ============ */
@media (max-width: 900px){
  /* Nav: gespreizt — Vorher links, Nächste rechts, beide am Außenrand */
  .ref-nav-side{
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
  }
}
@media (max-width: 700px){
  .ref-content .ref-head{
    padding-top: clamp(5.5rem, 12vh, 8rem);
    padding-bottom: 0;
  }
  .ref-nav-side{
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }
  .ref-nav-side .ref-nav-btn{
    font-size: .8rem;
    gap: .4rem;
  }
  .ref-nav-side .ref-nav-name{ max-width: 14ch; }
  .ref-lf-text{ font-size: 1rem; }
}

/* ============ LIGHTBOX (unverändert vom Karten-Stand) ============ */
.ref-lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.ref-lightbox.is-open{ display: block; opacity: 1; }
.ref-lb-bg{
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 22, .94);
  cursor: zoom-out;
}
.ref-lb-stage{
  position: absolute;
  top: 0; left: 0; right: 0;
  /* Platz unten für Thumbnail-Stripe + Meta-Zeile */
  bottom: clamp(7rem, 12vw, 10rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(4rem, 9vw, 7rem);
  pointer-events: none;
}
.ref-lb-img{
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: auto;
}
/* X ohne Kasten — frei schwebend mit Schatten */
.ref-lb-close{
  position: absolute;
  top: clamp(1rem, 2vw, 1.75rem);
  right: clamp(1rem, 2vw, 1.75rem);
  width: 36px; height: 36px;
  background: none;
  border: none;
  padding: 0;
  color: var(--paper);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 4;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
  transition: color .2s var(--ease), filter .2s var(--ease), transform .15s var(--ease);
}
.ref-lb-close:hover{
  color: var(--blush);
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.7));
}
.ref-lb-close:active{ transform: scale(.92); }
.ref-lb-close svg{ width: 20px; height: 20px; stroke-width: 1.6; }
.ref-lb-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(48px, 5vw, 72px);
  height: clamp(48px, 5vw, 72px);
  background: none; border: none; padding: 0;
  cursor: pointer;
  color: var(--paper);
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.6));
  transition: filter .2s var(--ease), transform .15s var(--ease);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 3;
}
.ref-lb-arrow svg{ width: 100%; height: 100%; }
.ref-lb-arrow:hover{ filter: drop-shadow(0 5px 14px rgba(0,0,0,.85)); }
.ref-lb-arrow:active{ transform: translateY(-50%) scale(.92); }
.ref-lb-arrow-prev{ left: clamp(.75rem, 2vw, 1.5rem); }
.ref-lb-arrow-next{ right: clamp(.75rem, 2vw, 1.5rem); }

.ref-lb-meta{
  position: absolute;
  bottom: clamp(4.5rem, 8vw, 7rem);
  left: clamp(1.5rem, 3vw, 2.5rem);
  right: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: rgba(244, 241, 236, .85);
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 3;
}
.ref-lb-meta .ref-lb-titel{ color: var(--paper); }
.ref-lb-meta .ref-lb-counter{ font-feature-settings: "tnum"; }
.ref-lb-meta .ref-lb-counter .sep{ opacity: .5; margin: 0 .25rem; }

/* Thumbnail-Reihe in der Lightbox — unten zentriert */
.ref-lb-thumbs{
  position: absolute;
  bottom: clamp(1rem, 2vw, 1.75rem);
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: clamp(.4rem, .8vw, .7rem);
  padding: 0 clamp(1rem, 3vw, 2rem);
  z-index: 3;
  flex-wrap: wrap;
}
.ref-lb-thumb{
  background: none;
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  width: clamp(48px, 5vw, 72px);
  height: clamp(48px, 5vw, 72px);
  flex-shrink: 0;
  opacity: .55;
  transition: opacity .25s var(--ease), border-color .25s var(--ease);
}
.ref-lb-thumb:hover{ opacity: .85; }
.ref-lb-thumb.is-active{
  opacity: 1;
  border-color: rgba(244, 241, 236, .8);
}
.ref-lb-thumb-img{
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* ============ MOBILE ============ */
@media (max-width: 700px){
  .ref-carousel{ max-width: 100%; }
  .ref-card{ padding: 1.25rem 1rem; gap: 1.25rem; }
  .ref-photo-wrap{ aspect-ratio: 4/3; max-height: none; }
  .ref-lb-arrow{ width: 40px; height: 40px; }
  .ref-lb-stage{ padding: 4rem 1rem 8rem; }
}

/* Reduced-Motion */
@media (prefers-reduced-motion: reduce){
  .ref-slide{ transition: none; }
  .ref-card{ transition: none !important; }
  .ref-lightbox{ transition: none; }
  .ref-nav-btn:hover{ gap: .85rem; }
}

/* =====================================================================
   PAGE-ARROW — fixed bottom-right, freistehend, atmend
   ===================================================================== */
@keyframes pageArrowBreathe{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

.page-arrow{
  position: fixed;
  right: clamp(1.25rem, 2.5vw, 2.5rem);
  bottom: clamp(1.25rem, 2.5vw, 2.5rem);
  width: 48px;
  height: 96px;
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  filter: drop-shadow(0 2px 8px rgba(26, 24, 22, .35));
  animation: pageArrowBreathe 3.6s ease-in-out infinite;
  transition:
    color .2s var(--ease),
    filter .25s var(--ease),
    opacity .25s var(--ease);
}
.page-arrow:hover{
  color: var(--concrete-d);
  filter: drop-shadow(0 3px 12px rgba(26, 24, 22, .5));
}
.page-arrow:active{ transform: scale(.94); animation-play-state: paused; }
.page-arrow.is-hidden{
  opacity: 0;
  pointer-events: none;
  animation-play-state: paused;
}
/* Heller Pfeil auf dunklem Untergrund (Hero, Lab, Verbund, Footer) */
.page-arrow.is-on-dark{
  color: var(--paper);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
}
.page-arrow.is-on-dark:hover{
  color: var(--blush);
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, .8));
}
.page-arrow-svg{
  width: 26px;
  height: 72px;
  transition: transform .4s var(--ease);
}
.page-arrow.is-top .page-arrow-svg{
  transform: rotate(180deg);
}

@media (max-width: 600px){
  .page-arrow{
    right: 1rem;
    bottom: 1rem;
    width: 36px;
    height: 72px;
  }
  .page-arrow-svg{ width: 20px; height: 52px; }
}

@media (prefers-reduced-motion: reduce){
  .page-arrow{ animation: none; transition: none; }
  .page-arrow-svg{ transition: none; }
}

/* =====================================================================
   LEGAL PAGES (Impressum / Datenschutz) — minimal Reading-Layout
   ===================================================================== */
body.legal-page{
  background: var(--paper);
  color: var(--ink);
}
.legal-content{
  padding: clamp(7rem, 14vh, 10rem) 0 clamp(4rem, 8vh, 6rem);
}
.legal-content .wrap{
  max-width: 720px;
}
.legal-content h1{
  font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3.5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.025em;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  color: var(--ink);
}
.legal-content h2{
  font-size: clamp(1.25rem, 1rem + .8vw, 1.5rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: clamp(2rem, 4vw, 3rem) 0 .75rem;
  color: var(--ink);
}
.legal-content h3{
  font-size: clamp(1rem, .9rem + .35vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 1.25rem 0 .5rem;
  color: var(--ink);
}
.legal-content p{
  font-size: clamp(.95rem, .9rem + .25vw, 1.05rem);
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  max-width: 62ch;
}
.legal-content .legal-intro{
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  color: var(--ink);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.legal-content address{
  font-style: normal;
  margin: 0 0 1rem;
  line-height: 1.55;
  font-size: .92rem;
  font-weight: 400;
  color: var(--ink-mute);
}
.legal-content address a{
  color: var(--ink-mute);
  border-bottom: 1px solid var(--concrete);
}
.legal-content a{
  color: var(--ink);
  border-bottom: 1px solid var(--concrete);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.legal-content a:hover{
  color: var(--concrete-d);
  border-bottom-color: var(--concrete-d);
}
.legal-back{
  margin-top: clamp(2.5rem, 5vw, 4rem) !important;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  font-size: .9rem;
  letter-spacing: .04em;
}
