/* ==========================================================================
   BR PLAN UND RAUM — Designsystem
   Editorial, ruhig, materialnah. Kantig (0px Ecken), grosse Flächen, Brass
   als sparsamer Akzent. Diese Datei wird von ALLEN 6 Seiten geladen — jede
   Komponente hier ist generisch gehalten, damit Folgeseiten (Geschäftspartner,
   Privatkunden, Projekte, Über mich, Kontakt) dieselben Klassen wiederverwenden
   können, ohne neues CSS zu schreiben.

   Inhaltsverzeichnis:
   1. Reset & Grundlagen
   2. Tokens (Farben, Typo, Spacing)
   3. Typografie-Skala
   4. Layout-Utilities (Container, Sections)
   5. Header
   6. Overlay-Menü
   7. Buttons
   8. Hero (voll + kompakt)
   9. Statement / Intro-Reveal
   10. Split-Panels ("Zwei Welten")
   11. Service-Liste (Tabellen-Look)
   12. Material-Band (horizontales Scroll-Band / Marquee)
   13. Projekt-Karten & Projekte-Grid
   14. Filter-Leiste
   15. Zahlen / Counter
   16. Zitate / Slider
   17. Schritt-Listen (Ablauf/Prozess)
   18. Pull-Quote
   19. Karten allgemein (.card)
   20. Über-mich-Prinzipien
   21. Formular
   22. Footer-CTA & Footer
   23. Reveal-System (Ausgangszustände nur unter html.js)
   24. Utilities
   25. Reduced Motion
   26. Responsive (bis 375px)
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* 1. Reset & Grundlagen                                                   */
/* ---------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Lenis übernimmt das Smooth-Scrolling */
  -webkit-text-size-adjust: 100%;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* Der generische Reset oben (display:block) schlägt sonst das native
   [hidden]-Verhalten von Bildern — betrifft konkret den Hero-Fallback in
   hero3d.js, der per .hidden-Attribut ein-/ausgeblendet wird. */
img[hidden] {
  display: none;
}

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

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

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

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

/* ---------------------------------------------------------------------- */
/* 2. Tokens                                                               */
/* ---------------------------------------------------------------------- */
:root {
  /* Farben — verbindlich laut Brief §2 */
  --paper:    #F4EFE6;
  --paper-2:  #EAE2D3;
  --ink:      #26221C;
  --ink-soft: #57503F;
  --night:    #211C16;
  --cream:    #F4EFE6;
  --walnut:   #5F4633;
  --brass:    #B08D57;
  --line:     rgba(38, 34, 28, .14);
  --line-on-dark: rgba(244, 239, 230, .16);

  /* Schrift */
  --font-display: "Fraunces", serif;
  --font-body: "Instrument Sans", sans-serif;

  /* Fluide Typo-Skala */
  --fs-display: clamp(2.8rem, 8vw, 7rem);
  --fs-h2:      clamp(2rem, 4.5vw, 3.5rem);
  --fs-h3:      clamp(1.5rem, 2.6vw, 2.1rem);
  --fs-lead:    clamp(1.1rem, 1.6vw, 1.35rem);
  --fs-body:    1.05rem;
  --fs-small:   .9rem;
  --fs-label:   .78rem;

  /* Layout */
  --container-max: 1320px;
  --container-pad: clamp(20px, 5vw, 72px);
  --section-space: clamp(96px, 14vh, 180px);
  --section-space-tight: clamp(64px, 9vh, 120px);

  /* Bewegung */
  --ease-smooth: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: .3s;
  --dur-med: .6s;
  --dur-slow: .9s;

  /* Header-Höhe (für Anker-Offsets etc.) */
  --header-h: clamp(76px, 9vh, 104px);
  --header-h-scrolled: 64px;
}

/* ---------------------------------------------------------------------- */
/* 3. Typografie-Skala                                                    */
/* ---------------------------------------------------------------------- */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: .98;
  letter-spacing: -.02em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -.015em;
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.15;
}

.lead {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 42ch;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brass);
}

.label::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--brass);
}

.label--plain::before {
  content: none;
}

p, .body-text {
  font-size: var(--fs-body);
  color: var(--ink);
}

.text-soft {
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------- */
/* 4. Layout-Utilities                                                     */
/* ---------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section--tight {
  padding-block: var(--section-space-tight);
}

.section--alt {
  background: var(--paper-2);
}

.section--dark {
  background: var(--night);
  color: var(--cream);
}

.section--dark .text-soft {
  color: rgba(244, 239, 230, .64);
}

.section-head {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.section--dark .rule {
  border-top-color: var(--line-on-dark);
}

main {
  display: block;
}

/* ---------------------------------------------------------------------- */
/* 5. Header                                                               */
/* ---------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: height var(--dur-fast) var(--ease-smooth),
              background-color var(--dur-fast) var(--ease-smooth),
              backdrop-filter var(--dur-fast) var(--ease-smooth),
              border-color var(--dur-fast) var(--ease-smooth);
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Scrolled-Zustand: von main.js per Klasse gesetzt */
.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  background: rgba(244, 239, 230, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* Auf dunklen Hero-Varianten (kompakte Heros ohne Bild) optional invertierbar */
.site-header.on-dark:not(.is-scrolled) {
  color: var(--cream);
}

.site-header__mark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.site-header__mark span {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--brass);
  margin-top: .15rem;
}

.site-nav {
  display: none;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.25rem);
}

.site-nav__link {
  position: relative;
  font-size: .92rem;
  padding-block: .3rem;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-smooth);
}

.site-nav__link:hover::after {
  transform: scaleX(1);
}

.site-nav__link.is-active {
  color: var(--brass);
}

.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.menu-btn__icon {
  position: relative;
  width: 22px;
  height: 14px;
}

.menu-btn__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease-smooth), opacity var(--dur-fast) var(--ease-smooth);
}

.menu-btn__icon span:nth-child(1) { top: 0; }
.menu-btn__icon span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-btn__icon span:nth-child(3) { bottom: 0; }

html.menu-open .menu-btn__icon span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
html.menu-open .menu-btn__icon span:nth-child(2) {
  opacity: 0;
}
html.menu-open .menu-btn__icon span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------------------------------------------------------------------- */
/* 6. Overlay-Menü                                                         */
/* ---------------------------------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--night);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 5vw, 56px) var(--container-pad);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* JS steuert Ein-/Ausblenden per GSAP-Timeline (opacity/visibility werden dort
   direkt gesetzt); die Klasse ist ein reiner Fallback-Zustand ohne JS. */
html.menu-open .menu-overlay {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-overlay__close {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cream);
}

.menu-overlay__nav {
  display: flex;
  flex-direction: column;
  gap: clamp(.5rem, 1.5vh, 1rem);
}

.menu-overlay__link {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 380;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--cream);
  display: inline-flex;
  align-items: baseline;
  gap: 1rem;
  overflow: hidden;
}

.menu-overlay__link-index {
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--brass);
  letter-spacing: .1em;
}

.menu-overlay__link:hover,
.menu-overlay__link.is-active {
  color: var(--brass);
}

.menu-overlay__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  font-size: .9rem;
  color: rgba(244, 239, 230, .64);
  padding-top: 2rem;
  border-top: 1px solid var(--line-on-dark);
}

.menu-overlay__bottom a:hover {
  color: var(--cream);
}

/* ---------------------------------------------------------------------- */
/* 7. Buttons                                                              */
/* ---------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .95rem 1.6rem;
  border: 1px solid var(--ink);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--walnut);
  transform: translateY(101%);
  transition: transform var(--dur-med) var(--ease-smooth);
  z-index: -1;
}

.btn:hover,
.btn:focus-visible {
  color: var(--cream);
  border-color: var(--walnut);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-smooth);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Sekundär: auf dunklem Grund, cream statt ink */
.btn--on-dark {
  border-color: var(--cream);
  color: var(--cream);
}

.btn--on-dark::before {
  background: var(--brass);
}

.btn--on-dark:hover {
  color: var(--night);
  border-color: var(--brass);
}

/* Sekundärlink ohne Rahmen, nur Unterstrich + Pfeil */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .92rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: .15rem;
}

.link-arrow .btn__arrow {
  color: var(--brass);
}

.link-arrow:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------------- */
/* 8. Hero                                                                 */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--paper);
}

.hero__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__fallback-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

/* Scrim: liegt zwischen Bild/Canvas (z-index 1) und Text (z-index 2), damit
   der Hero-Text auf dem Foto immer lesbar bleibt — unten links dunkler
   (Textzone), oben rechts heller (Bildwirkung bleibt sichtbar). */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top right, rgba(24, 20, 15, .62), rgba(24, 20, 15, .15));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-inline: var(--container-pad);
  padding-bottom: clamp(64px, 9vh, 120px);
  padding-top: calc(var(--header-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 900px;
}

/* Hero mit Vollbild-Foto/3D-Canvas dahinter: Text in Cream statt Ink,
   Lead etwas gedämpft. Nur index.html (kompakte Hero-Varianten auf den
   Unterseiten bleiben auf Paper-Grund, unverändert). */
.hero--image .hero__content {
  color: var(--cream);
}

.hero--image .hero__content .lead {
  color: rgba(244, 239, 230, .82);
  /* Sicherheitsabstand: main.js animiert [data-reveal-group]-Kinder generisch
     mit y:40px (GSAP setzt das per Inline-Style, das jede CSS-Transform-Regel
     übersteuert — daher hier keine reine CSS-Lösung möglich). Der zusätzliche
     Abstand stellt sicher, dass das letzte H1-Wort selbst am Anfang seiner
     Einblend-Animation (max. 40px Versatz) den Lead-Text nie berühren kann. */
  margin-top: 1rem;
}

.hero--image .hero__scroll-hint {
  color: rgba(244, 239, 230, .72);
}

.hero--image .hero__scroll-hint .scroll-line {
  background: rgba(244, 239, 230, .4);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: .98;
  letter-spacing: -.02em;
}

/* Wörter werden von main.js/HTML in <span class="word"> gewrappt, damit sie
   einzeln gestaffelt einblenden können. */
.hero__title .word,
.statement__text .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.hero__title .word > span,
.statement__text .word > span {
  display: inline-block;
}

/* H1-Wort-Reveal (Hero): nutzt dieselbe Mechanik wie das generische
   Reveal-Group-System (Abschnitt 23: opacity 0->1 + [data-reveal-group] > *
   is-revealed), NUR der Versatz wird deutlich reduziert. Der volle
   40px-Versatz des generischen Systems kann bei grossen Display-Schriften
   auf schmalen Viewports während der Animation kurzzeitig mit dem Lead-Text
   darunter überlappen (Wörter sind inline-block, das Layout bleibt so oder
   so im Fluss — reiner Transform, nie Position/Display). Mit 10px statt
   40px ist eine Überlappung selbst im ungünstigsten Moment der Animation
   ausgeschlossen. */
html.js .hero__title[data-reveal-group] > .word {
  transform: translateY(10px);
}

html.js .hero__title[data-reveal-group] > .word.is-revealed {
  transform: translateY(0);
}

.hero__scroll-hint {
  position: absolute;
  left: var(--container-pad);
  bottom: 2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-soft);
}

.hero__scroll-hint .scroll-line {
  width: 1px;
  height: 34px;
  background: var(--ink-soft);
  position: relative;
  overflow: hidden;
}

.hero__scroll-hint .scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--brass);
  animation: scrollHintMove 2.4s var(--ease-smooth) infinite;
}

@keyframes scrollHintMove {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: .5rem;
}

/* Hero-Variante "kompakt": für Unterseiten ohne 3D-Canvas, niedrigere Höhe */
.hero--compact {
  min-height: 62vh;
  align-items: flex-end;
}

.hero--compact .hero__content {
  max-width: 780px;
  gap: 1.25rem;
}

.hero--compact .hero__title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
}

/* Hinweiszeile direkt unter kompaktem Hero (z.B. projekte.html) */
.hero-notice {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--brass);
}

/* ---------------------------------------------------------------------- */
/* 9. Statement / Intro-Reveal                                             */
/* ---------------------------------------------------------------------- */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.statement__text {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(1.7rem, 3.6vw, 2.85rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  max-width: 60%;
  color: var(--ink-soft);
}

/* Wort-für-Wort-Scrub beim Scrollen (main.js: [data-word-scrub]) — färbt
   Wörter von ink-soft auf ink um (Klasse .is-lit je Wort). Generisch gehalten,
   damit auch andere grosse Fliesstexte (z.B. Pull-Quotes) das Muster nutzen
   können, nicht nur die Statement-Sektion. */
[data-word-scrub] .word > span {
  color: inherit;
  transition: color var(--dur-fast) linear;
}

[data-word-scrub] .word.is-lit > span {
  color: var(--ink);
}

.statement__byline {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .85rem;
  color: var(--ink-soft);
  white-space: nowrap;
  text-align: right;
}

.statement__byline strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 400;
}

/* ---------------------------------------------------------------------- */
/* 10. Split-Panels ("Zwei Welten")                                        */
/* ---------------------------------------------------------------------- */
.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.split-panel {
  position: relative;
  background: var(--paper);
  display: block;
  overflow: hidden;
}

.split-panel__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.split-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}

.split-panel:hover .split-panel__media img {
  transform: scale(1.04);
}

.split-panel__body {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.split-panel__body .link-arrow {
  align-self: flex-start;
}

/* ---------------------------------------------------------------------- */
/* 11. Service-Liste (Tabellen-Look)                                       */
/* ---------------------------------------------------------------------- */
.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 4rem 1fr 2fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  transition: transform var(--dur-fast) var(--ease-smooth), padding-left var(--dur-fast) var(--ease-smooth);
}

.section--dark .service-row {
  border-bottom-color: var(--line-on-dark);
}

.service-row:hover {
  padding-left: .75rem;
}

.service-row__num {
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--brass);
  letter-spacing: .05em;
}

.service-row__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
}

.service-row__text {
  color: var(--ink-soft);
  max-width: 46ch;
}

.section--dark .service-row__text {
  color: rgba(244, 239, 230, .64);
}

/* ---------------------------------------------------------------------- */
/* 12. Material-Band (horizontales Band / Marquee-Fallback)                */
/* ---------------------------------------------------------------------- */
.material-band {
  overflow: hidden;
  position: relative;
}

.material-band__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: max-content;
  will-change: transform;
}

.material-band__item {
  position: relative;
  flex: 0 0 auto;
  width: clamp(220px, 26vw, 380px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.material-band__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-band__word {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 350;
  color: var(--ink-soft);
  white-space: nowrap;
}

.material-band__word em {
  font-style: normal;
  color: var(--brass);
}

/* Marquee-Fallback, wenn horizontales ScrollTrigger deaktiviert ist:
   Klasse .material-band--marquee auf den Wrapper setzen. */
.material-band--marquee .material-band__track {
  animation: materialMarquee 32s linear infinite;
}

@keyframes materialMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------- */
/* 13. Projekt-Karten & Projekte-Grid                                      */
/* ---------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Editoriale Versetzung: Modifikatoren für Spannweite + vertikalen Versatz */
.project-card {
  grid-column: span 12;
  perspective: 1200px;
}

@media (min-width: 800px) {
  .project-card--wide   { grid-column: span 7; }
  .project-card--narrow { grid-column: span 5; }
  .project-card--half   { grid-column: span 6; }
  .project-card--offset { margin-top: clamp(2rem, 6vw, 5rem); }
}

.project-card__link {
  display: block;
}

.project-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  transform-style: preserve-3d;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform var(--dur-slow) var(--ease-smooth);
}

/* Reveal setzt Bild von 1.06 -> 1; Hover zoomt zusätzlich auf 1.04 */
.project-card__media img.is-revealed {
  transform: scale(1);
}

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

.project-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  margin-top: 1.1rem;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}

.project-card__tags {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  text-align: right;
}

.project-card__cat {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brass);
}

.project-card__place {
  font-size: .82rem;
  color: var(--ink-soft);
}

/* Aufklappbares Detail (Material/Herausforderung) — projekte.html */
.project-card__detail {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .88rem;
  color: var(--ink-soft);
}

.project-card__detail dt {
  font-weight: 600;
  color: var(--ink);
  display: inline;
}

.project-card__detail dd {
  display: inline;
  margin: 0;
}

.project-card__detail div + div {
  margin-top: .2rem;
}

/* ---------------------------------------------------------------------- */
/* 14. Filter-Leiste                                                       */
/* ---------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.filter-pill {
  padding: .55rem 1.1rem;
  border: 1px solid var(--line);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  transition: background-color var(--dur-fast) var(--ease-smooth),
              color var(--dur-fast) var(--ease-smooth),
              border-color var(--dur-fast) var(--ease-smooth);
}

.filter-pill:hover {
  border-color: var(--brass);
  color: var(--ink);
}

.filter-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ---------------------------------------------------------------------- */
/* 15. Zahlen / Counter                                                    */
/* ---------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-dark);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  color: var(--brass);
  line-height: 1;
}

.stat__value .stat__suffix {
  font-size: .5em;
  margin-left: .1em;
}

.stat__label {
  font-size: .88rem;
  color: rgba(244, 239, 230, .64);
}

/* ---------------------------------------------------------------------- */
/* 16. Zitate / Slider                                                     */
/* ---------------------------------------------------------------------- */
.quotes {
  position: relative;
}

.quotes__track {
  position: relative;
}

/* Sichtbarkeit ausschliesslich über die .is-active-Klasse + CSS-Transition
   gesteuert (nicht über einen GSAP-Tween) — friert ein Tween ein (z.B. Tab
   im Hintergrund), bleibt das aktive Zitat trotzdem garantiert voll
   sichtbar. GSAP übernimmt hier höchstens einen dekorativen Zusatz
   (main.js), nie die Grund-Sichtbarkeit. */
.quotes__item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 760px;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-smooth);
}

.quotes__item.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.quotes__text {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  letter-spacing: -.01em;
}

.quotes__author {
  font-size: .88rem;
  color: rgba(244, 239, 230, .64);
}

.quotes__author strong {
  color: var(--cream);
  font-weight: 600;
}

.quotes__controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.quotes__arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-on-dark);
  transition: border-color var(--dur-fast) var(--ease-smooth), background-color var(--dur-fast) var(--ease-smooth);
}

.quotes__arrow:hover {
  border-color: var(--brass);
  background: rgba(176, 141, 87, .12);
}

.quotes__dots {
  display: flex;
  gap: .6rem;
}

.quotes__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-on-dark);
  transition: background-color var(--dur-fast) var(--ease-smooth);
}

.quotes__dot.is-active {
  background: var(--brass);
}

.quotes__note {
  margin-top: 1.5rem;
  font-size: .78rem;
  color: rgba(244, 239, 230, .45);
}

/* ---------------------------------------------------------------------- */
/* 17. Schritt-Listen (Ablauf/Prozess)                                     */
/* ---------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.step {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.step__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--brass);
  line-height: 1;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.step__text {
  color: var(--ink-soft);
  font-size: .94rem;
}

/* Variante: Schritte als horizontale Linie mit Verbindungslinie (für 4-Schritt-Abläufe) */
.steps--rail {
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

@media (max-width: 900px) {
  .steps--rail {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------- */
/* 18. Pull-Quote                                                          */
/* ---------------------------------------------------------------------- */
.pull-quote {
  position: relative;
  padding-left: clamp(1.75rem, 3.5vw, 3rem);
  margin-block: clamp(2rem, 4.5vw, 3.5rem);
  border-left: 2px solid var(--brass);
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.32;
  letter-spacing: -.01em;
  max-width: 56ch;
}

/* Parallax-Bild-Wrapper: overflow hidden + überhöhtes Bild, damit das
   per JS (data-parallax) vertikal verschobene <img> nie Lücken zeigt. */
.media-parallax {
  position: relative;
  overflow: hidden;
}

.media-parallax img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
}

/* ---------------------------------------------------------------------- */
/* 19. Karten allgemein (.card)                                            */
/* ---------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
}

.section--dark .card {
  border-color: var(--line-on-dark);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
}

.card__text {
  color: var(--ink-soft);
  font-size: .94rem;
}

.section--dark .card__text {
  color: rgba(244, 239, 230, .64);
}

/* ---------------------------------------------------------------------- */
/* 20. Über-mich-Prinzipien: nummerierte Prinzipien-Blöcke (ueber-mich.html) */
/* ---------------------------------------------------------------------- */
.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.principle__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--brass);
  line-height: 1;
}

.principle__body {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.principle__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 400;
}

.principle__text {
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------------------------------------------------------------------- */
/* 21. Formular                                                            */
/* ---------------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form__label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

.form__label .req {
  color: var(--brass);
}

.form__input,
.form__select,
.form__textarea {
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: .75rem .1rem;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-smooth);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-bottom-color: var(--brass);
}

.form__submit {
  align-self: flex-start;
  margin-top: .5rem;
}

.form__note {
  font-size: .82rem;
  color: var(--ink-soft);
}

.form__success {
  display: none;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--brass);
  background: rgba(176, 141, 87, .08);
  font-size: .95rem;
}

.form__success.is-visible {
  display: block;
}

/* Karten-Platzhalter (kontakt.html) */
.map-placeholder {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, rgba(38,34,28,.05) 0 2px, transparent 2px 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-size: .85rem;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------- */
/* 22. Footer-CTA & Footer                                                 */
/* ---------------------------------------------------------------------- */
.footer-cta {
  background: var(--night);
  color: var(--cream);
  padding-block: clamp(64px, 10vh, 140px);
}

.footer-cta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.footer-cta__title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  letter-spacing: -.015em;
  max-width: 14ch;
}

.site-footer {
  background: var(--night);
  color: rgba(244, 239, 230, .72);
  padding-top: clamp(48px, 7vh, 88px);
  padding-bottom: 2rem;
  border-top: 1px solid var(--line-on-dark);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.site-footer__mark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 1rem;
}

.site-footer h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brass);
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  font-size: .92rem;
}

.site-footer__list a:hover {
  color: var(--cream);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-dark);
  font-size: .8rem;
}

/* ---------------------------------------------------------------------- */
/* 23. Reveal-System                                                       */
/* Ausgangszustände (unsichtbar/verschoben) NUR unter html.js, damit Inhalt
   ohne JavaScript sofort sichtbar bleibt (Brief §3.7).                    */
/* ---------------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--dur-slow) var(--ease-smooth),
              transform var(--dur-slow) var(--ease-smooth);
}

/* [data-reveal-group] selbst bleibt sichtbar, nur die Kinder animieren gestaffelt */
html.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(40px);
}

html.js [data-reveal-group] > *.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--dur-slow) var(--ease-smooth),
              transform var(--dur-slow) var(--ease-smooth);
}

/* Tilt-Karten: 3D-Hover via JS gesetzte inline transforms, hier nur die
   Transition-Basis */
html.js .tilt {
  transition: transform .2s var(--ease-smooth);
  transform-style: preserve-3d;
}

/* ---------------------------------------------------------------------- */
/* 24. Utilities                                                           */
/* ---------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flow > * + * {
  margin-top: 1rem;
}

.text-center {
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.grid-2--align-start {
  align-items: start;
}

.u-max-w-prose {
  max-width: 62ch;
}

/* Werdegang-Fliesstext (ueber-mich.html): wirkt neben der grossen Headline
   knapp zu klein — minim angehoben. Kombination .flow + .u-max-w-prose ist
   auf der Site nur dort verwendet. */
.flow.u-max-w-prose p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.u-mt-lg {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: .75rem 1.25rem;
  transition: top var(--dur-fast) var(--ease-smooth);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------------------------------------------------------------------- */
/* 25. Reduced Motion                                                      */
/* ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  html.js [data-reveal],
  html.js [data-reveal-group] > * {
    opacity: 1;
    transform: none;
  }

  .hero__scroll-hint .scroll-line::after {
    animation: none;
  }

  .material-band--marquee .material-band__track {
    animation: none;
  }
}

/* ---------------------------------------------------------------------- */
/* 26. Responsive (bis 375px)                                              */
/* ---------------------------------------------------------------------- */
@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

@media (max-width: 900px) {
  .split-panels {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 3rem 1fr;
  }

  .service-row__text {
    grid-column: 2 / 3;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .statement {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .statement__text {
    max-width: 100%;
  }

  .statement__byline {
    text-align: left;
  }

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

  .principle {
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 640px) {
  .hero__content {
    max-width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-card--offset {
    margin-top: 0;
  }

  .menu-overlay__bottom {
    flex-direction: column;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .site-header__mark {
    font-size: .92rem;
  }

  h1, .h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }
}
