/* =========================================================================
   Niche Brand Studio — Designsystem
   Farben, Typografie und Strukturen nach "Brand Guidelines - Niche.pdf"
   Layout nach "Website - Mockup - Niche.pdf"
   ========================================================================= */

/* ------------------------------------------------------------------ Tokens */
:root {
  /* Markenfarben laut Brand Guidelines */
  --orange:      #CF5527;   /* Call-to-Action */
  --orange-dark: #B4461C;
  --brown:       #493A35;   /* Überschriften | Fließtext | Hintergrund */
  --black:       #000000;
  --gold:        #998731;   /* Akzentfarbe */
  --olive:       #262B12;   /* Akzentfarbe */
  --cream:       #F1ECE3;   /* Hintergrund */

  /* Abgeleitete Flächen */
  --paper:       #F7F6F4;
  --ink:         #241D20;
  --ink-deep:    #1B1417;
  --line-light:  rgba(73, 58, 53, .18);
  --line-dark:   rgba(241, 236, 227, .22);

  --text-light:  rgba(241, 236, 227, .78);
  --text-light-strong: #F1ECE3;

  /* Typografie */
  --serif:  "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --tenor:  "Tenor Sans", "Optima", "Avenir Next", sans-serif;
  --sans:   "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Maße */
  --h1:      clamp(2.5rem, 6.2vw, 4.6rem);
  --wrap:    1240px;
  --wrap-nar: 900px;
  --gut:     clamp(1.25rem, 4vw, 3.5rem);
  --sec:     clamp(4.5rem, 10vw, 9rem);
  --radius:  2px;
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(.875rem, .4vw + .78rem, .95rem);
  line-height: 1.85;
  color: var(--brown);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { max-width: 100%; display: block; }
figure, blockquote { margin: 0; }
address { font-style: normal; }
a { color: inherit; }

/* --------------------------------------------------------------- Strukturen
   Leinen-, Papier- und Lichtkegel-Struktur laut Brand Guidelines,
   als Inline-SVG erzeugt — keine externen Assets, kein zusätzlicher Request. */
.tex-linen::before,
.tex-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* Original-Leinenstruktur aus dem Mockup, nahtlos gekachelt */
.tex-linen::before {
  background-image: image-set(url("../img/leinen.webp") type("image/webp"),
                              url("../img/leinen.jpg") type("image/jpeg"));
  background-size: 240px 240px;
  background-repeat: repeat;
  opacity: .8;
  mix-blend-mode: multiply;
}
.tex-paper::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23p)' opacity='.4'/%3E%3C/svg%3E");
  opacity: .35;
  mix-blend-mode: multiply;
}

/* Dunkle Flächen: Papierkorn + Lichtkegel-Verlauf */
.dark {
  position: relative;
  background: var(--ink);
  color: var(--text-light);
  isolation: isolate;
}
.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* dieselbe Leinenfaser wie auf hellen Flaechen, in Braun eingefaerbt.
     Ohne Blendmodus, damit die Faser auf dem dunklen Grund wirklich sichtbar ist. */
  background-image: image-set(url("../img/struktur-braun.webp") type("image/webp"),
                              url("../img/struktur-braun.jpg") type("image/jpeg"));
  background-size: 200px 200px;
  background-repeat: repeat;
  opacity: .75;
}
.dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 0%, rgba(241,236,227,.10) 0%, rgba(241,236,227,0) 58%),
    radial-gradient(70% 60% at 8% 100%, rgba(153,135,49,.10) 0%, rgba(153,135,49,0) 60%);
}
.dark > * { position: relative; z-index: 1; }

/* Mehrere dunkle Bloecke am Stueck: Struktur und Verlauf liegen einmal ueber
   dem gemeinsamen Rahmen, die inneren Bloecke bleiben transparent. */
.dark-block { position: relative; background: var(--ink); color: var(--text-light); isolation: isolate; }
.dark-block::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: image-set(url("../img/struktur-braun.webp") type("image/webp"),
                              url("../img/struktur-braun.jpg") type("image/jpeg"));
  background-size: 200px 200px;
  background-repeat: repeat;
  opacity: .75;
}
.dark-block::after {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 60% at 78% 0%, rgba(241,236,227,.10) 0%, rgba(241,236,227,0) 58%),
    radial-gradient(70% 40% at 8% 100%, rgba(153,135,49,.10) 0%, rgba(153,135,49,0) 60%);
}
.dark-block > * { position: relative; z-index: 1; }
.dark-block > .dark,
.dark-block > .section {
  background: transparent;
  isolation: auto;
}
/* zwei Bloecke am Stueck brauchen zwischen sich weniger Luft */
.dark-block > .section + .section { padding-top: 0; }
.dark-block > .dark::before,
.dark-block > .dark::after { content: none; }

.light { position: relative; background: var(--paper); color: var(--brown); isolation: isolate; overflow: clip; }
/* Sektion, aus der das Signet unten herausragen darf */
.light.laesst-ueberstehen { overflow: visible; z-index: 1; }
.light > * { position: relative; z-index: 1; }
.light--cream { background: var(--cream); }

/* Marken-Element aus dem Brandkit (Logo-Prägung), dezent im Hintergrund -
   dieselbe Grafik, die auf der Startseite als Wasserzeichen dient. */
.arcs { position: relative; }
.arcs::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background-repeat: no-repeat;
  background-image: url("../img/logo-praegung.svg"), url("../img/logo-praegung.svg");
  background-position: left -6% top 4%, right -4% bottom 8%;
  background-size: clamp(180px, 24vw, 340px) auto, clamp(140px, 18vw, 260px) auto;
}
.arcs > * { position: relative; z-index: 1; }
@media (max-width: 700px) { .arcs::after { opacity: .4; background-position: right -12% top 2%, left -14% bottom 4%; } }

/* ------------------------------------------------------------------ Layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: var(--wrap-nar); }
.section { padding-block: var(--sec); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* -------------------------------------------------------------- Typografie */
.eyebrow {
  font-family: var(--tenor);
  font-size: clamp(.62rem, .25vw + .58rem, .72rem);
  letter-spacing: .38em;   /* Subline: erweiterte Laufweite 30–50 % */
  text-transform: uppercase;
  line-height: 1.6;
  margin: 0 0 1.6rem;
  color: var(--brown);
}
.dark .eyebrow,
.dark-block .eyebrow { color: var(--text-light-strong); opacity: .85; }

/* Eyebrow mit Linie, die aus dem Viewport heraus nach links läuft (Mockup) */
.eyebrow--rule { position: relative; }
.eyebrow--rule::before {
  content: "";
  position: absolute;
  right: calc(100% + 1.75rem);
  top: .65em;
  width: 60vw;
  height: 1px;
  background: var(--line-dark);
}
.light .eyebrow--rule::before { background: var(--line-light); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0 0 1.25rem;
  color: var(--brown);
}
.dark h1, .dark h2, .dark h3, .dark h4,
.dark-block h1, .dark-block h2, .dark-block h3, .dark-block h4 { color: var(--text-light-strong); }

h1 { font-size: var(--h1); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.24; }
h4 { font-size: 1.05rem; line-height: 1.3; }

/* Markenzeichen: kursives Wort + orangener Punkt in den Überschriften */
em, .it { font-style: italic; }
.dot { color: var(--orange); font-style: normal; }

p { margin: 0 0 1.35rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(.95rem, .5vw + .82rem, 1.05rem); line-height: 1.9; }
.justify { hyphens: auto; }
@media (min-width: 700px) { .justify { text-align: justify; } }
.muted { opacity: .8; }

/* ----------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: #FFF;
  --btn-bd: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn:hover { --btn-bg: var(--orange-dark); --btn-bd: var(--orange-dark); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--brown); --btn-bd: var(--line-light); }
.btn--ghost:hover { --btn-bg: var(--brown); --btn-fg: var(--cream); --btn-bd: var(--brown); }
.dark .btn--ghost,
.dark-block .btn--ghost { --btn-fg: var(--text-light-strong); --btn-bd: var(--line-dark); }
.dark .btn--ghost:hover,
.dark-block .btn--ghost:hover { --btn-bg: var(--cream); --btn-fg: var(--brown); --btn-bd: var(--cream); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.btn-row--center { justify-content: center; }
@media (max-width: 560px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

/* -------------------------------------------------------------------- Logo
   Original-SVGs aus dem Brandkit. */
.logo { display: inline-block; line-height: 0; text-decoration: none; }
.logo img { height: clamp(34px, 3.2vw, 46px); width: auto; }
.dark .logo img, .logo--hell img { }

/* Abstrahiertes Signet n|c */
.mark { display: inline-block; line-height: 0; }
.mark img { height: clamp(30px, 3vw, 40px); width: auto; }

/* Großes Wasserzeichen in hellen Sektionen */
.watermark {
  position: absolute;
  z-index: 0;
  width: clamp(200px, 28vw, 420px);
  aspect-ratio: 4 / 3;
  background: url("../img/logo-praegung.svg") center / contain no-repeat;
  opacity: .8;
  user-select: none;
  pointer-events: none;
}
@media (max-width: 700px) { .watermark { display: none; } }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 246, 244, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s ease, background .35s ease;
}
/* Nach dem Scrollen dunkel wie der Footer - der Header bleibt so ueber
   hellen wie dunklen Sektionen lesbar. */
/* Bewusst heller als die dunklen Sektionen (#241D20): laufen Hero oder eine
   dunkle Fläche unter den Header, wäre er sonst nicht davon zu unterscheiden.
   Der Schatten allein hilft auf dunklem Grund nicht. */
.site-header.is-stuck {
  background: rgba(56, 45, 48, .97);
  border-bottom-color: rgba(241, 236, 227, .34);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}
.site-header.is-stuck .nav a { color: var(--text-light-strong); }
.site-header.is-stuck .nav a[aria-current="page"] { border-bottom-color: var(--text-light-strong); }
.site-header.is-stuck .nav-toggle { color: var(--text-light-strong); }
.logo img + img { display: none; }
.site-header.is-stuck .logo img:first-child { display: none; }
.site-header.is-stuck .logo img + img { display: block; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 88px;
  padding-block: 1rem;
}
.nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.nav a {
  font-family: var(--tenor);
  /* .72rem ergaben 11.5 px - die Umlautpunkte des Ue haetten dort nur rund
     2 px Hoehe und verschmelzen beim Rastern mit dem Buchstaben. */
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brown);
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.nav a:hover { border-bottom-color: var(--orange); }
.nav a[aria-current="page"] { border-bottom-color: var(--brown); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--brown);
}
.nav-toggle span { display: block; width: 24px; height: 1px; background: currentColor; margin: 6px auto; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 88px 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem var(--gut) 2.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line-light);
    transform: translateY(-140%);
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
  }
  .nav.is-open { transform: translateY(0); }
  .site-header.is-stuck .nav { background: rgba(28, 20, 23, .98); border-bottom-color: rgba(241,236,227,.14); }
  .site-header.is-stuck .nav a { border-bottom-color: rgba(241, 236, 227, .14); }
  .nav a { width: 100%; padding-block: 1rem; border-bottom: 1px solid var(--line-light); }
  .nav a:last-child { border-bottom: 0; }
}

/* -------------------------------------------------------------------- Hero
   Der Hero sitzt als eigener dunkler Block in einer hellen Leinen-Fläche
   (siehe Bildschirmaufnahme der Canva-Vorschau), nicht randlos. */
.hero-shell {
  position: relative;
  z-index: 2;
  --hero-rand: clamp(1rem, 3.5vw, 3rem);
  padding: var(--hero-rand) var(--hero-rand) 0;   /* oben und seitlich gleich */
  isolation: isolate;
}
.hero-shell.light { overflow: visible; }   /* das eingesetzte Bild ragt bewusst heraus */
.hero-shell > * { position: relative; z-index: 1; }

.hero {
  position: relative;
  min-height: clamp(600px, 88vh, 880px);
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 12vh, 9rem) clamp(9rem, 18vh, 13rem);
  background: var(--ink-deep);
}
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media video,
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(27,20,23,.94) 0%, rgba(27,20,23,.80) 45%, rgba(27,20,23,.62) 100%),
    radial-gradient(110% 80% at 70% 10%, rgba(241,236,227,.10) 0%, rgba(241,236,227,0) 60%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .2; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='h'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23h)' opacity='.6'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 3; width: 100%; }
.hero, .hero h1, .hero h2 { color: var(--text-light-strong); }
.hero .eyebrow { color: var(--text-light-strong); opacity: .85; }
.hero .eyebrow--rule::before { background: var(--line-dark); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.hero h1 { margin-bottom: 0; }
/* Der Text setzt auf Hoehe der zweiten Headline-Zeile ein, damit die
   Ueberschrift oben frei steht - so wie im Mockup.
   2.75rem = Eyebrow-Zeile plus deren Abstand, dazu eine H1-Zeilenhoehe. */
.hero__text { color: var(--text-light); padding-top: calc(2.75rem + 1.08 * var(--h1)); }
.hero__cta { margin-top: 2.25rem; }

/* Bild, das in die nächste Sektion hineinragt */
.hero__inset {
  position: absolute;
  z-index: 4;
  left: 12%;                     /* wie im Mockup: nicht am Rand, sondern eingerueckt */
  bottom: -13%;                  /* rund ein Drittel ragt in die helle Flaeche */
  width: min(44%, 560px);
  aspect-ratio: 8 / 5;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.hero__inset img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* ------------------------------------------------ Hero der Unterseiten
   Gleicher Aufbau wie auf der Startseite, nur mit Standbild statt Video
   und etwas flacher, damit der Inhalt frueher beginnt. */
/* Unterseiten-Hero: gleicher Aufbau und gleiche Masse wie auf der
   Startseite, damit das eingesetzte Bild genauso uebersteht. Nur der
   Grund ist ein Standbild statt des Videos. */
.hero--seite {
  min-height: clamp(560px, 78vh, 800px);
  /* Der untere Innenabstand muss den Teil des eingesetzten Bildes tragen,
     der noch im Hero liegt - sonst schiebt sich das Bild in die Ueberschrift.
     Die Titel der Unterseiten sind laenger als auf der Startseite, deshalb
     hier deutlich mehr Platz. */
  padding-block: clamp(4.5rem, 11vh, 8rem) clamp(13rem, 26vh, 18rem);
}
/* Etwas schmaler als auf der Startseite - der Titel braucht die Hoehe */
.hero--seite .hero__inset { width: min(38%, 480px); }
.hero--seite { --h1-seite: clamp(2.1rem, 5vw, 3.6rem); }
.hero--seite h1 { font-size: var(--h1-seite); }
/* Wie auf der Startseite: der rechte Textblock beginnt auf Hoehe der
   zweiten Ueberschriftzeile, nicht buendig oben. Gleiche Rechnung wie
   dort, nur mit der kleineren Titelgroesse der Unterseiten. */
.hero--seite .hero__text { padding-top: calc(2.75rem + 1.08 * var(--h1-seite)); }
.hero--seite .lead { color: var(--text-light); margin: 0; }

/* Zwei eingesetzte Bilder nebeneinander - wie das einzelne auf der
   Startseite, nur breiter und geteilt. */
.hero__insets {
  position: absolute;
  z-index: 4;
  left: 12%;
  bottom: -13%;
  width: min(62%, 780px);
  display: flex;
  align-items: stretch;
  gap: clamp(.6rem, 1.2vw, 1.1rem);
}
.hero__insets .hero__inset {
  position: static;
  inset: auto;
  width: auto;
  flex: 1 1 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.hero__insets .hero__inset:first-child { flex-grow: 1.5; aspect-ratio: 3 / 2; }
.hero__insets .hero__inset:last-child  { aspect-ratio: 1 / 1; }

/* Nach einem Unterseiten-Hero braucht die Folgesektion oben mehr Luft,
   sonst laeuft das ueberstehende Bild in ihren Inhalt. */
.hero-shell + .section--tight { padding-top: clamp(7.5rem, 15vw, 11.5rem); }
/* Kontaktseite: noch flacher und ohne eingesetztes Bild, damit das Formular
   unmittelbar folgt. */
.hero--knapp { min-height: 0; padding-block: clamp(3.5rem, 8vh, 5.5rem) clamp(3.5rem, 8vh, 5.5rem); }
.hero--knapp .hero__text { padding-top: 0; }

@media (max-width: 860px) {
  /* .hero ist ein Flex-Container - als Flex-Item wuerde das Bild zusammen-
     schrumpfen. Deshalb hier auf normalen Fluss umstellen. */
  .hero { display: block; padding-bottom: clamp(3.5rem, 8vh, 5rem); }
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__text { padding-bottom: 0; }
  .hero__inset {
    position: relative;   /* nicht static: sonst malen Scrim und Koernung darueber und das Bild wird so dunkel wie der Hintergrund */
    z-index: 4;
    inset: auto;          /* Desktop-Versatz left/bottom zuruecksetzen */
    width: auto;
    margin: 2.5rem var(--gut) 0;
    aspect-ratio: 3 / 2;
    box-shadow: none;
  }
  .hero--seite { padding-bottom: clamp(3.5rem, 8vh, 5rem); }
  /* Die Desktop-Regel .hero--seite .hero__inset hat hoehere Spezifitaet als
     .hero__inset - ohne diese Zeile blieb das Bild auf dem Handy bei 38 %
     Breite stehen, also rund 130 px. */
  .hero--seite .hero__inset { width: auto; aspect-ratio: 3 / 2; }
  /* Der Versatz des Textblocks gilt nur fuer das zweispaltige Raster.
     Untereinander erzeugt er eine grosse Luecke unter der Ueberschrift. */
  .hero__text,
  .hero--seite .hero__text { padding-top: clamp(1rem, 4vw, 1.75rem); }
  .hero-shell + .section--tight { padding-top: clamp(3rem, 6vw, 5rem); }
  /* Schmales Fenster: beide Bilder im Fluss, das zweite schmaler */
  .hero__insets {
    position: relative;
    z-index: 4;
    inset: auto;
    width: auto;
    display: block;
    margin: 2.5rem var(--gut) 0;
  }
  .hero__insets .hero__inset { margin: 0; box-shadow: none; }
  .hero__insets .hero__inset:first-child { aspect-ratio: 3 / 2; }
  .hero__insets .hero__inset:last-child {
    width: 66%;
    margin: .75rem 0 0 auto;
    aspect-ratio: 4 / 3;
  }
}

/* ---------------------------------------------------- Bauhaus-Designelement
   Nur auf der Seite "Ueber uns": die Halbkreise aus dem Signet grossflaechig
   und sehr blass ueber die ganze Sektion verteilt, teils ueber die Kanten
   hinauslaufend - so wie in der Markenvorlage. Liegen hinter dem Inhalt
   und nehmen keine Klicks an. */
.bauhaus-flaeche { position: relative; isolation: isolate; }
.bauhaus-flaeche::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("../img/bauhaus-muster.svg"),
    url("../img/bauhaus-muster.svg"),
    url("../img/bauhaus-muster.svg"),
    url("../img/bauhaus-muster.svg"),
    url("../img/bauhaus-muster.svg");
  background-repeat: no-repeat;
  /* Aussen angeschnitten, innen frei - der Blick bleibt beim Inhalt */
  background-position:
    right -14% top -6%,
    left  -16% top 22%,
    right -10% top 48%,
    left  -12% bottom 14%,
    right  -8% bottom -8%;
  background-size:
    clamp(280px, 40vw, 620px) auto,
    clamp(240px, 34vw, 540px) auto,
    clamp(260px, 37vw, 580px) auto,
    clamp(230px, 32vw, 500px) auto,
    clamp(250px, 35vw, 560px) auto;
  mix-blend-mode: multiply;
}
.bauhaus-flaeche > * { position: relative; z-index: 1; }

@media (max-width: 700px) {
  /* Schmales Fenster: nur drei, kleiner und weiter aussen */
  .bauhaus-flaeche::before {
    background-image:
      url("../img/bauhaus-muster.svg"),
      url("../img/bauhaus-muster.svg"),
      url("../img/bauhaus-muster.svg");
    background-position: right -26% top 2%, left -28% top 38%, right -22% bottom 6%;
    background-size: 66vw auto, 60vw auto, 58vw auto;
  }
}

/* --------------------------------------------------------- Editorial Split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.split--offset > :last-child { padding-top: clamp(0rem, 10vw, 9rem); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--offset > :last-child { padding-top: 0; } }

.figure-frame { position: relative; overflow: hidden; }
.figure-frame img { width: 100%; height: 100%; object-fit: cover; }
.figure-frame--bw img { filter: grayscale(1); }

/* Bild, das rechts aus dem Raster herausläuft (Mockup) */
.bleed-right { margin-right: calc(-1 * max(var(--gut), (100vw - var(--wrap)) / 2 + var(--gut))); }
.bleed-left  { margin-left:  calc(-1 * max(var(--gut), (100vw - var(--wrap)) / 2 + var(--gut))); }
@media (max-width: 860px) { .bleed-right, .bleed-left { margin-inline: 0; } }

/* --------------------------------------------------------------- Slider */
.slider { position: relative; }
.slider__track {
  --slider-gap: 1.75rem;
  display: flex;
  align-items: stretch;
  gap: var(--slider-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: .5rem 1.5rem;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { flex: 0 0 min(86%, 340px); }
@media (min-width: 861px) {
  /* 3 Spalten: 3 x (33.3333% - 1.1667rem) + 2 x 1.75rem Abstand = 100 % */
  .slider__track > * { flex: 0 0 calc(33.3333% - 1.1667rem); }
}

.quote {
  scroll-snap-align: start;
  background: #FFF;
  border: 1px solid var(--line-light);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.quote__who {
  font-family: var(--tenor);
  font-size: .62rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: .6rem;
}
.quote__firm { font-family: var(--serif); font-style: italic; font-size: 1.28rem; line-height: 1.2; margin-bottom: 1rem; }
/* Die Rezensionen sind unterschiedlich lang. Der Text wird deshalb auf eine
   ruhige Höhe begrenzt und lässt sich pro Karte ganz aufklappen. */
.quote__body {
  font-size: .78rem;
  line-height: 1.85;
  hyphens: auto;
  margin: 0 0 1rem;
  position: relative;
  max-height: 16.5em;
  overflow: hidden;
}
@media (min-width: 700px) { .quote__body { text-align: justify; } }
.quote__body::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3.5em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #FFF 82%);
  pointer-events: none;
  transition: opacity .3s ease;
}
.quote__body p { margin: 0 0 .8rem; }
.quote__body p:last-child { margin-bottom: 0; }

.quote.is-offen .quote__body { max-height: none; }
.quote.is-offen .quote__body::after { opacity: 0; }

.quote__mehr {
  align-self: flex-start;
  margin: 0 0 1.25rem;
  padding: .35rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--tenor);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brown);
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.quote__mehr:hover { border-bottom-color: var(--orange); color: var(--orange); }
.quote__mehr:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.quote__mehr[hidden] { display: none; }

/* Auf schmalen Fenstern zuerst zeigen - die Reihenfolge im Quelltext
   bleibt fuer die Desktopansicht unveraendert. */
@media (max-width: 700px) { .quote--zuerst { order: -1; } }

.quote__stars { margin-top: auto; align-self: flex-end; color: var(--brown); letter-spacing: .18em; font-size: .8rem; }

/* Steuerung: Pfeile links/rechts, Punkte in der Mitte */
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: .5rem; }
.slider__pfeil {
  width: 42px; height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--brown);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.slider__pfeil:hover:not(:disabled) { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.slider__pfeil:disabled { opacity: .3; cursor: default; }
.slider__pfeil:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.slider__pfeil svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dark .slider__pfeil,
.dark-block .slider__pfeil { border-color: var(--line-dark); color: var(--text-light-strong); }

.slider__dots { display: flex; justify-content: center; gap: .55rem; margin-top: 0; }
.slider__dots button {
  width: 7px; height: 7px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--line-light);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.slider__dots button[aria-selected="true"] { background: var(--brown); transform: scale(1.25); }

/* ------------------------------------------------------ Nummerierte Liste */
.steps { display: flex; flex-direction: column; }
.steps__item { padding-block: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line-dark); }
.steps__item:first-child { border-top: 0; padding-top: 0; }
.light .steps__item { border-top-color: var(--line-light); }
.steps__num { font-family: var(--serif); font-size: 1.1rem; color: var(--orange); display: block; margin-bottom: .3rem; }
.steps__item h3 { font-style: italic; margin-bottom: .55rem; }
.steps__item p { font-size: .78rem; line-height: 1.8; margin: 0; }
/* versetzte Einrückung wie im Mockup */
.steps__item:nth-child(2) { padding-left: clamp(0rem, 6vw, 4.5rem); }
.steps__item:nth-child(3) { padding-left: 0; }

/* ------------------------------------------------------------ Bilder-Band */
.band {
  display: grid;
  margin-bottom: clamp(-6rem, -7vw, -2rem);   /* zieht die naechste Sektion heran */
  grid-template-columns: 68fr 32fr;   /* Verhaeltnis aus dem Mockup */
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  position: relative;
}
.band__a { aspect-ratio: 12 / 5; }
.band__b { aspect-ratio: 9 / 10; width: 100%; margin-top: clamp(1.5rem, 6vw, 5.5rem); }
.band img { filter: grayscale(1); width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  /* Einspaltig: band__b steht jetzt UNTER band__a und bildet das Ende des
     Bandes. Der negative Aussenabstand zoege die Folgesektion darueber -
     ihre Ueberschrift lag dann unter dem Bild. Deshalb hier kein Heranziehen. */
  .band { grid-template-columns: 1fr; margin-bottom: 0; }
  .band__a { aspect-ratio: 3 / 2; }          /* 12:5 waere hier ein Streifen */
  .band__b { aspect-ratio: 4 / 5; width: 72%; margin-top: -3rem; margin-left: auto; }
}

/* ------------------------------------------------ Versetzte Pfeiler-Spalten */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}
.pillars > *:nth-child(even) { padding-top: clamp(1.5rem, 4vw, 3.5rem); }
.pillar h3 { font-style: italic; margin-bottom: 1rem; }
@media (max-width: 560px) { .pillar h3 br, .card h3 br { display: none; } }
.pillar p { font-size: .76rem; line-height: 1.85; text-align: justify; hyphens: auto; margin: 0; }
@media (max-width: 1040px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .pillars { grid-template-columns: 1fr; } .pillars > *:nth-child(even) { padding-top: 0; } }

/* ---------------------------------------------------- Spalten mit Kopflinie
   Ruhiges Rasterlayout ohne Kaesten: jede Spalte traegt oben eine feine Linie. */
.rule-cols {
  display: grid;
  grid-template-columns: var(--tpl, repeat(var(--cols, 3), minmax(0, 1fr)));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.rule-cols > * { border-top: 1px solid var(--line-light); padding-top: clamp(1.5rem, 2.5vw, 2.25rem); }
.dark .rule-cols > *,
.dark-block .rule-cols > * { border-top-color: var(--line-dark); }

.rule-col__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.rule-col h2, .rule-col h3 {
  font-size: clamp(1.05rem, .55vw + .92rem, 1.3rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 1.1rem;
}
.rule-col p { font-size: .82rem; line-height: 1.85; margin: 0 0 1rem; }
.rule-col p:last-child { margin-bottom: 0; }

/* Spaltenaufteilungen als Klasse - nicht inline, sonst schlaegt der
   Inline-Wert die Media-Query und das Raster bricht auf Mobil nicht um. */
.rule-cols--kopf4 { --tpl: 1.6fr 1fr 1fr 1fr; }
.rule-cols--2 { --tpl: repeat(2, minmax(0, 1fr)); }
.rule-cols--3 { --tpl: repeat(3, minmax(0, 1fr)); }

/* kleine Ziffer rechts neben der Ueberschrift */
.rule-col__nr { font-family: var(--serif); font-size: .8rem; opacity: .45; flex: none; }
/* grosse, sehr helle Ziffer ueber der Ueberschrift */
.rule-col__nr--gross {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  line-height: 1;
  color: var(--brown);
  opacity: .25;
  margin-bottom: 1.25rem;
}
.rule-col__ergebnis { opacity: .85; }

/* Kopfspalte traegt Eyebrow und die grosse Ueberschrift */
.rule-col--kopf .eyebrow { letter-spacing: .26em; }
.rule-col--kopf h1, .rule-col--kopf h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 1.5rem;
}
.rule-col--kopf p { font-size: .88rem; }

@media (max-width: 1040px) { .rule-cols { --tpl: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .rule-cols { --tpl: 1fr; } }

/* -------------------------------------------------- Leistung: Frageblöcke
   Jede Leistung beantwortet Was / Warum / Wie, begleitet von einem Bild. */
.leistung {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  --marke-x: 26px;   /* Abstand Linie/Halbkreis zur Ziffer */
  --marke-b: 15px;   /* Breite des Halbkreises, Hoehe ist die Haelfte */
}
/* durchgehende Linie hinter den Ziffern */
.leistung::before {
  content: "";
  position: absolute;
  left: calc(var(--gut) - var(--marke-x));
  top: 1.6rem;
  bottom: 6rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-light) 6%, var(--line-light) 94%, transparent);
}
@media (max-width: 860px) { .leistung::before { display: none; } }
.leistung__block {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
/* Bewusst unterschiedliche Aufteilungen und Hoehenversaetze, damit die
   Seite nicht wie ein gleichmaessiges Raster wirkt. */
.leistung__block:nth-child(1) { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
.leistung__block:nth-child(2) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.leistung__block:nth-child(3) { grid-template-columns: minmax(0, 1.55fr) minmax(0, .9fr); }

/* 4/5 war hochkant und lief rund 210 px unter den Textblock hinaus -
   deutlich weiter als die beiden anderen Bloecke. 5/4 liegt naeher am
   Originalformat des Bildes (1200 x 675) und schneidet weniger weg. */
.leistung__block:nth-child(1) .leistung__bild { margin-top: clamp(1rem, 4vw, 3.5rem); aspect-ratio: 5 / 4; }
.leistung__block:nth-child(2) .leistung__bild { margin-top: clamp(2rem, 7vw, 6rem); aspect-ratio: 3 / 2; }
.leistung__block:nth-child(3) .leistung__bild { margin-top: 0; aspect-ratio: 1 / 1; }
.leistung__block:nth-child(3) > div:first-child { padding-top: clamp(1.5rem, 5vw, 4rem); }

/* Bilder laufen abwechselnd zum Seitenrand, wie auf der Startseite -
   bewusst nur zur Haelfte, damit sie nicht die Textspalte erdruecken. */
.leistung { --bild-bleed: calc(-0.5 * max(var(--gut), (100vw - var(--wrap)) / 2 + var(--gut))); }
.leistung__block:nth-child(1) .leistung__bild { margin-right: var(--bild-bleed); }
.leistung__block:nth-child(2) .leistung__bild { margin-right: var(--bild-bleed); }
.leistung__block:nth-child(3) .leistung__bild { margin-right: var(--bild-bleed); }

.leistung__bild { overflow: hidden; }
.leistung__bild img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.leistung__block > div:first-child { position: relative; padding-left: clamp(2.5rem, 5vw, 4.5rem); }
.leistung__nr {
  position: absolute;
  left: 0;
  top: .1rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1;
  color: var(--orange);
  display: block;
}
/* Marke auf der Verbindungslinie: der Halbkreis aus dem Logo-Signet
   (Bogen nach oben, Verhaeltnis 2:1, Signetfarbe #CF5527 = --orange).
   --marke-x steuert Linie und Halbkreis gemeinsam, damit beide zusammen
   nah an der Ziffer stehen. */
.leistung__nr::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--marke-x) - var(--marke-b) / 2);
  top: .62em;
  width: var(--marke-b);
  height: calc(var(--marke-b) / 2);
  border-radius: var(--marke-b) var(--marke-b) 0 0;
  background: var(--orange);
  /* Ruhezustand: blass und klein. Sobald der Block einlaeuft, leuchtet die
     Marke auf - so ist zu sehen, welcher Schritt gerade erreicht ist. */
  opacity: .25;
  transform: scale(.75);
  transform-origin: 50% 100%;
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1);
}
.leistung__block.is-in .leistung__nr::after {
  opacity: 1;
  transform: none;
  transition-delay: .18s;
}
/* Die Ziffer zieht mit */
.leistung__nr { transition: color .55s ease; }
.leistung__block:not(.is-in) .leistung__nr { color: rgba(207, 85, 39, .45); }
@media (max-width: 860px) {
  .leistung__block > div:first-child { padding-left: 0; }
  .leistung__nr { position: static; margin-bottom: .6rem; }
  .leistung__nr::after { display: none; }
}
.leistung__block h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); margin-bottom: 1.75rem; }

.fragen { display: grid; gap: 1.35rem; }
.frage { border-top: 1px solid var(--line-light); padding-top: 1.1rem; }
.frage dt {
  font-family: var(--tenor);
  font-size: .64rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: .5rem;
}
.frage dd { margin: 0; font-size: .82rem; line-height: 1.85; }

@media (max-width: 860px) {
  .leistung__block,
  .leistung__block:nth-child(1),
  .leistung__block:nth-child(2),
  .leistung__block:nth-child(3) { grid-template-columns: 1fr; }
  .leistung__block:nth-child(2) .leistung__bild { order: 0; }
  .leistung__block:nth-child(1) .leistung__bild,
  .leistung__block:nth-child(2) .leistung__bild,
  .leistung__block:nth-child(3) .leistung__bild {
    margin: 0 calc(-1 * var(--gut));
    aspect-ratio: 3 / 2;
  }
  .leistung__block:nth-child(3) > div:first-child { padding-top: 0; }
}

/* ------------------------------------------------- Ihr Ergebnis: Scroll-Ring
   Die Buehne bleibt stehen, waehrend die Strecke darunter durchgescrollt
   wird. Der Fortschritt fuellt den Ring in vier Etappen mit Halt an jedem
   Punkt. Umfang bei r=104: 653.45 - dieser Wert steuert den Bogen. */
.ergebnis { padding: 0; }
.ergebnis__strecke { position: relative; height: 300vh; }
.ergebnis__buehne {
  position: sticky;
  /* Der Seitenkopf klebt oben - die Buehne beginnt darunter, sonst liegt
     die erste Zeile dahinter. */
  --kopf: clamp(72px, 8vh, 96px);
  top: var(--kopf);
  /* dvh statt vh: auf iOS ist 100vh groesser als der sichtbare Bereich,
     der Inhalt rutschte dort unter die Browserleiste. */
  height: calc(100vh - var(--kopf));
  height: calc(100dvh - var(--kopf));
  display: grid;
  align-items: center;
  overflow: hidden;
}
.ergebnis__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.ergebnis__text h2 { max-width: 20ch; margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem); }

.ergebnis__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(.6rem, 1.4vw, 1rem); }
.ergebnis__punkt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .15rem clamp(.75rem, 1.6vw, 1.25rem);
  align-items: baseline;
  opacity: .3;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1);
}
.ergebnis__punkt.is-aktiv { opacity: 1; transform: none; }
.ergebnis__nr { font-family: var(--serif); font-size: .82rem; color: var(--orange); line-height: 1.2; }
.ergebnis__wort { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.65rem); line-height: 1.2; }
.ergebnis__satz {
  grid-column: 2;
  font-size: .78rem; line-height: 1.7; max-width: 42ch;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity .45s ease .1s, max-height .45s ease;
}
.ergebnis__punkt.is-aktiv .ergebnis__satz { opacity: .78; max-height: 5rem; }
/* Der Nutzen ist der Kern der Aussage - deshalb abgesetzt und in der
   Signetfarbe, wie die Ergebniszeilen im Fahrplan. */
.ergebnis__nutzen {
  grid-column: 2;
  font-size: .76rem;
  line-height: 1.6;
  max-width: 42ch;
  color: var(--brown);
  border-left: 2px solid var(--orange);
  padding-left: .7rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .45s ease .22s, max-height .45s ease .1s;
}
.ergebnis__nutzen em {
  font-style: normal;
  font-family: var(--tenor);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: .2rem;
}
.ergebnis__punkt.is-aktiv .ergebnis__nutzen { opacity: 1; max-height: 6rem; margin-top: .45rem; }

/* ---- Ring ---- */
.ergebnis__ring { position: relative; width: clamp(190px, 27vw, 320px); aspect-ratio: 1; }
.ergebnis__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ergebnis__spur, .ergebnis__bogen { fill: none; stroke-width: 6; }
.ergebnis__spur { stroke: var(--line-light); }
.ergebnis__bogen {
  stroke: url(#ergebnis-verlauf);
  stroke-linecap: round;
  stroke-dasharray: 653.45;
  stroke-dashoffset: 653.45;
  transition: stroke-dashoffset .28s cubic-bezier(.33,1,.68,1);
}
/* Laeufer: Lichtpunkt am Ende des Bogens */
.ergebnis__laeufer {
  fill: var(--orange);
  stroke: var(--paper);
  stroke-width: 3;
  transition: cx .28s cubic-bezier(.33,1,.68,1), cy .28s cubic-bezier(.33,1,.68,1), r .3s ease;
  filter: drop-shadow(0 0 6px rgba(207, 85, 39, .55));
}
.ergebnis__ring.is-rastet .ergebnis__laeufer { r: 11; }
/* Haltemarken */
.ergebnis__halt {
  fill: var(--paper); stroke: var(--line-light); stroke-width: 2;
  transition: fill .35s ease, stroke .35s ease;
}
.ergebnis__halt.is-erreicht { fill: var(--orange); stroke: var(--orange); }

/* ---- Ringmitte: Nummer, Wort, Prozent ---- */
.ergebnis__mitte {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center;
  gap: .15rem; text-align: center; padding: 22%;
  color: var(--brown);
}
.ergebnis__mitte-nr {
  font-family: var(--serif); font-size: .78rem; color: var(--orange);
  letter-spacing: .1em;
}
.ergebnis__mitte-wort {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.9vw, 1.4rem);
  line-height: 1.15;
  transition: opacity .25s ease, transform .25s ease;
}
.ergebnis__ring.is-wechselt .ergebnis__mitte-wort { opacity: 0; transform: translateY(4px); }
.ergebnis__mitte-wert {
  font-family: var(--serif); font-size: .8rem; opacity: .5;
  font-variant-numeric: tabular-nums; margin-top: .1rem;
}
.ergebnis__mobilsatz { display: none; }

@media (max-width: 860px) {
  /* Ring zentral, die Stufen darunter nur als Woerter - der Satz der
     aktiven Stufe steht unter dem Ring. So passt der Abschnitt auch auf
     kleine Fenster, ohne dass etwas unter den Rand rutscht. */
  .ergebnis__strecke { height: 240vh; }
  .ergebnis__buehne { align-items: center; }
  .ergebnis__raster { grid-template-columns: 1fr; justify-items: center; gap: clamp(1.25rem, 4vw, 2rem); }
  .ergebnis__text { display: contents; }
  .ergebnis__text .eyebrow { order: 1; text-align: center; }
  .ergebnis__text h2 {
    order: 2; text-align: center; max-width: 24ch; margin-bottom: 0;
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .ergebnis__ring { order: 3; width: clamp(180px, 52vw, 260px); }
  .ergebnis__liste {
    order: 4;
    grid-auto-flow: column;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(.6rem, 3vw, 1.2rem);
    width: min(88vw, 30rem);
    justify-content: center;
  }
  .ergebnis__punkt { grid-template-columns: 1fr; gap: 0; justify-items: center; text-align: center; }
  /* Die Saetze wandern unter den Ring - im Fluss, damit sie eigenen Platz
     beanspruchen und nichts ueberlagern. */
  .ergebnis__satz, .ergebnis__nutzen { display: none; }
  .ergebnis__mobilsatz {
    display: block;
    order: 5;
    width: min(88vw, 36ch);
    margin: 0;
    min-height: 4.6em;   /* feste Hoehe: der Text wechselt, das Raster nicht */
    font-size: .8rem; line-height: 1.6; text-align: center; opacity: .85;
    transition: opacity .25s ease;
  }
  /* Die vier Woerter passen nebeneinander nicht in schmale Fenster - dort
     bleibt die Nummernreihe, das Wort selbst steht im Ring. Nicht per
     display:none, damit Vorleseprogramme es weiter finden. */
  .ergebnis__wort {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ergebnis__punkt {
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: center;
    padding-bottom: .3rem;
    border-bottom: 2px solid transparent;
    transition: opacity .5s ease, border-color .4s ease;
  }
  .ergebnis__punkt.is-aktiv { border-bottom-color: var(--orange); }
  .ergebnis__nr { font-size: .74rem; }
  .ergebnis__mobilsatz b {
    display: block;
    font-family: var(--tenor);
    font-weight: 400;
    font-size: .6rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: .25rem;
  }
  .ergebnis__ring.is-wechselt .ergebnis__mobilsatz { opacity: 0; }
  .ergebnis__mitte-wort { font-size: clamp(.95rem, 4.4vw, 1.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  .ergebnis__strecke { height: auto; }
  .ergebnis__buehne { position: static; height: auto; padding-block: var(--sec); overflow: visible; }
  .ergebnis__punkt { opacity: 1; transform: none; transition: none; }
  .ergebnis__satz { opacity: .78; max-height: none; transition: none; }
  .ergebnis__nutzen { opacity: 1; max-height: none; margin-top: .45rem; transition: none; }
  .ergebnis__bogen { stroke-dashoffset: 0; transition: none; }
  .ergebnis__halt { fill: var(--orange); stroke: var(--orange); transition: none; }
  .ergebnis__laeufer { display: none; }
  @media (max-width: 860px) {
    .ergebnis__satz, .ergebnis__nutzen { display: block; }
    .ergebnis__mobilsatz { display: none; }
  }
}

/* ------------------------------------------------------------ Karten-Raster */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.card {
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, .55);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
}
.dark .card,
.dark-block .card { border-color: var(--line-dark); background: rgba(241, 236, 227, .04); }
.card__num { font-family: var(--serif); font-size: 1.05rem; color: var(--orange); display: block; margin-bottom: .6rem; }
.card h3 { font-style: italic; margin-bottom: .85rem; }
.card p { font-size: .8rem; line-height: 1.85; margin: 0; }
.card__result { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-light); font-size: .74rem; }
.dark .card__result,
.dark-block .card__result { border-top-color: var(--line-dark); }
.card__result strong { font-weight: 600; color: var(--orange); }

/* ------------------------------------------------------------ Gruenderinnen
   Bild laeuft zum Viewport-Rand, der Name ueberlappt die Bildkante. */
.founder {
  position: relative;
  display: grid;
  /* Ueberhang des Namens ueber die Bildkante - nie weiter als der Platz,
     der neben dem Wrap tatsaechlich frei ist, sonst laeuft der Name bei
     mittleren Breiten aus dem Fenster. */
  /* Kein Ueberhang mehr: der Name soll die Bildkante nicht ueberlaufen. */
  --name-ueberhang: 0px;
  grid-template-columns: 32fr 68fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-block: clamp(3rem, 8vw, 6rem);
}
.founder__img { aspect-ratio: 4 / 5; overflow: hidden; }
.founder__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; filter: grayscale(1); }

/* Bild bis an den Viewport-Rand ziehen */
/* Bild laeuft nur noch halb bis zum Rand - dadurch wirkt es ruhiger */
.founder--links .founder__img  { margin-left:  calc(-.5 * max(var(--gut), (100vw - var(--wrap)) / 2 + var(--gut))); }
.founder--rechts .founder__img { margin-right: calc(-.5 * max(var(--gut), (100vw - var(--wrap)) / 2 + var(--gut))); }
.founder--rechts { grid-template-columns: 68fr 32fr; }
.founder__body { max-width: 520px; }
.founder--links  .founder__body { margin-right: auto; }
.founder--rechts .founder__body { margin-left: auto; }
.founder--rechts .founder__img { order: 2; }
.founder--rechts .founder__body { order: 1; }

.founder__name {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.02;
  margin: 0 0 1.75rem;
  position: relative;
  z-index: 2;
  margin-left: calc(-1 * var(--name-ueberhang));   /* ragt ueber die Bildkante */
  text-align: right;
  max-width: 8ch;
}
.founder--rechts .founder__name {
  margin-left: 0;
  margin-right: calc(-1 * var(--name-ueberhang));
  text-align: left;
  margin-left: auto;
}
.founder__name span { display: block; }

.founder__role {
  font-family: var(--tenor);
  font-size: clamp(.72rem, .35vw + .64rem, .92rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.6;
  margin: 0 0 1.6rem;
}
.founder__text { font-size: .85rem; line-height: 1.95; }
@media (min-width: 700px) { .founder__text { text-align: justify; hyphens: auto; } }

.founder__more { margin-top: 1.5rem; }
.founder__more summary {
  font-family: var(--tenor);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding-block: .4rem;
}
.founder__more summary::-webkit-details-marker { display: none; }
.founder__more summary::before {
  content: "";
  width: 14px; height: 8px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
  transition: transform .3s ease;
}
.founder__more[open] summary::before { transform: rotate(135deg) translate(-2px, 2px); }
.founder__more p { font-size: .8rem; line-height: 1.9; margin: 1rem 0 0; }
.founder--rechts .founder__more { display: flex; justify-content: flex-end; }

@media (max-width: 860px) {
  .founder, .founder--rechts { grid-template-columns: 1fr; }
  .founder--rechts .founder__img { order: 0; }
  .founder--rechts .founder__body { order: 1; }
  .founder--links .founder__img, .founder--rechts .founder__img { margin-inline: calc(-1 * var(--gut)); }
  .founder__name { margin-inline: 0; text-align: left; max-width: none; }
  .founder--rechts .founder__name { text-align: left; margin-left: 0; }
  .founder--rechts .founder__more { justify-content: flex-start; }
}

/* ------------------------------------------------------- CTA-Bilder-Collage */
.collage { position: relative; padding-bottom: 22%; }
.collage__a { aspect-ratio: 3 / 2; width: 100%; }
.collage__b {
  position: absolute;
  right: -28%;
  bottom: 0;
  width: 75%;
  aspect-ratio: 3 / 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.collage img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  /* Ueberlappung nur noch andeuten - sonst verdeckt das zweite Bild das erste */
  .collage { padding-bottom: 0; }
  .collage__b {
    position: static;
    width: 72%;
    margin: -2.5rem 0 0 auto;
  }
}

/* ------------------------------------------------------------ Kontaktseite
   Formular und Kontaktdaten auf einer Hoehe, Formular zuerst. */
/* kompakte Kopfzeile, damit das Formular hoch auf der Seite steht */
.pagehead__kompakt {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  max-width: 20ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.kontakt-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.kontakt-raster__daten { padding-top: .25rem; }
@media (max-width: 860px) {
  .kontakt-raster { grid-template-columns: 1fr; }
  /* auf Mobil bleibt das Formular oben, die Kontaktdaten folgen darunter */
  .kontakt-raster__daten { padding-top: 0; }
  .kontakt-raster__daten .figure-frame { aspect-ratio: 3 / 2 !important; }
}

/* ---------------------------------------------------------------- Formular */
/* Kasten mit Leinenstruktur, in dem das Formular sitzt. Der Abschnitt
   traegt bereits Leinen - der Kasten hebt sich ueber Rahmen, einen
   helleren Grundton und den Schatten davon ab. */
.form-kasten {
  position: relative;
  isolation: isolate;
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  background-color: var(--cream);
  border: 1px solid var(--line-light);
  box-shadow: 0 24px 60px rgba(73, 58, 53, .12);
}
.form-kasten::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: image-set(url("../img/leinen.webp") type("image/webp"),
                              url("../img/leinen.jpg") type("image/jpeg"));
  background-size: 240px 240px;
  background-repeat: repeat;
  opacity: .8;
  mix-blend-mode: multiply;
}
.form-kasten .form { max-width: none; }

/* Gemaelde als Grund der Kontaktsektion - der Formularkasten liegt darauf.
   Darueber ein heller Schleier, damit Ueberschrift und Kasten sicher
   lesbar bleiben. */
.kontakt--gemaelde { position: relative; isolation: isolate; }
/* Ueberschrift ueber dem Formular in der hellen Schriftfarbe */
.kontakt--gemaelde > .wrap > h2 { color: var(--text-light-strong); }
.kontakt--gemaelde::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: image-set(url("../img/stimmung-fluss.webp") type("image/webp"),
                              url("../img/stimmung-fluss.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 700px) {
  .kontakt--gemaelde::after { background-attachment: scroll; }
}
}
@media (max-width: 560px) {
  .form-kasten { margin-inline: calc(-1 * var(--gut) / 2); padding: 1.5rem 1.25rem; }
}

.form { max-width: 560px; margin-inline: auto; }
.form--breit { max-width: none; margin-inline: 0; }
.form--breit .btn-row { justify-content: flex-start; }
.field { margin-bottom: 1.4rem; }
.field > label {
  display: block;
  font-size: .68rem;
  letter-spacing: .06em;
  margin-bottom: .5rem;
  color: var(--text-light);
}
.light .field > label { color: var(--brown); }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--text-light-strong);
  background: rgba(241, 236, 227, .03);
  border: 1px solid rgba(241, 236, 227, .3);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  transition: border-color .25s ease, background .25s ease;
}
/* Variante auf hellem Grund */
.light .field input,
.light .field textarea { color: var(--brown); background: rgba(255, 255, 255, .6); border-color: var(--line-light); }
.light .field input::placeholder, .light .field textarea::placeholder { color: rgba(73, 58, 53, .4); }
.light .field input:focus, .light .field textarea:focus { border-color: var(--orange); background: #FFF; }
.light .form__note { border-color: var(--line-light); border-left-color: var(--orange); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--orange); background: rgba(241, 236, 227, .07); }
.field input::placeholder, .field textarea::placeholder { color: rgba(241, 236, 227, .35); }
.field--invalid input, .field--invalid textarea { border-color: #E4785A; }
.field__error { display: none; font-size: .68rem; color: #E4785A; margin-top: .4rem; }
.field--invalid .field__error { display: block; }

.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .7rem; line-height: 1.7; margin-bottom: 1.75rem; }
.consent input { width: 16px; height: 16px; margin-top: .25rem; flex: none; accent-color: var(--orange); }
.consent a { color: var(--orange); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note {
  display: none;
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line-dark);
  border-left: 2px solid var(--orange);
  font-size: .74rem;
  line-height: 1.7;
}
.form__note.is-visible { display: block; }

/* ------------------------------------------------------------------ Footer */
.site-footer { padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line-dark); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem; }
.site-footer .mark img { height: clamp(28px, 3vw, 36px); }
.footer-nav { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); }
.footer-nav a {
  font-family: var(--tenor);
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-light);
  border-bottom: 1px solid transparent;
  padding-bottom: .2rem;
  transition: border-color .25s ease, color .25s ease;
}
.footer-nav a:hover { color: var(--text-light-strong); border-bottom-color: var(--orange); }
.site-footer__legal { width: 100%; font-size: .66rem; opacity: .55; margin: 0; }

/* --------------------------------------------------------------- Rechtstext */
.legal { max-width: 780px; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 3rem; }
.legal h3 { font-size: 1.05rem; margin-top: 2rem; font-style: italic; }
.legal h4 { font-size: .92rem; margin-top: 1.5rem; font-family: var(--sans); font-weight: 600; }
.legal p, .legal li { font-size: .82rem; line-height: 1.9; }
.legal ul { padding-left: 1.2rem; margin-bottom: 1.35rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--orange); text-underline-offset: 3px; }
.legal address { font-style: normal; line-height: 1.9; font-size: .82rem; }

.notice {
  border: 1px solid var(--orange);
  border-left-width: 3px;
  padding: 1.1rem 1.35rem;
  font-size: .78rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  background: rgba(207, 85, 39, .05);
}
.notice strong { color: var(--orange); }

/* Kopfzone mit begleitendem Bild */
.pagehead--bild { position: relative; }
.pagehead--bild .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.pagehead--bild .pagehead__bild {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  margin-right: calc(-1 * max(var(--gut), (100vw - var(--wrap)) / 2 + var(--gut)));
  margin-bottom: clamp(-4rem, -5vw, -2rem);
}
/* Zwei Bilder im Kopf: das grosse laeuft zum Rand, das kleine setzt sich
   davor - der Versatz uebernimmt der Rahmen, damit das grosse Bild seine
   bisherigen Masse behaelt. */
.pagehead--bild .pagehead__bilder {
  position: relative;
  margin-right: calc(-1 * max(var(--gut), (100vw - var(--wrap)) / 2 + var(--gut)));
  margin-bottom: clamp(-4rem, -5vw, -2rem);
}
.pagehead--bild .pagehead__bilder .pagehead__bild { margin-right: 0; margin-bottom: 0; }
/* Zwei Bilder, bewusst versetzt statt uebereinander: das grosse oben,
   das kleinere darunter nach links ausgerueckt. Keine Ueberlappung. */
.pagehead--bild .pagehead__bilder { display: grid; }
.pagehead--bild .pagehead__bilder .pagehead__bild { grid-column: 1; }
.pagehead__bild2 {
  grid-column: 1;
  justify-self: start;
  width: 52%;
  margin-top: clamp(.75rem, 1.5vw, 1.25rem);
  margin-left: clamp(-5rem, -6vw, -2rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.pagehead__bild2 img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.pagehead--bild .pagehead__bild img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
@media (max-width: 860px) {
  .pagehead--bild .wrap { grid-template-columns: 1fr; }
  .pagehead--bild .pagehead__bild { margin-inline: calc(-1 * var(--gut)); margin-bottom: 0; aspect-ratio: 3 / 2; }
  .pagehead--bild .pagehead__bilder { margin-inline: calc(-1 * var(--gut)); margin-bottom: 0; }
  .pagehead--bild .pagehead__bilder .pagehead__bild { margin-inline: 0; }
  .pagehead__bild2 {
    width: 66%;
    margin: .75rem 0 0 var(--gut);
    aspect-ratio: 4 / 3;
  }
}

/* ---------------------------------------------------------- Seiten-Kopfzone */
.pagehead { padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem); }
.pagehead h1 { max-width: 16ch; }
.pagehead .lead { max-width: 58ch; margin-top: 1.75rem; }

/* ------------------------------------------------------------ Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Bild und Text laufen leicht versetzt ein */
.reveal .leistung__bild,
.reveal .pagehead__bild,
.reveal .figure-frame {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease .12s, transform 1.2s cubic-bezier(.22,.61,.36,1) .12s;
}
.reveal.is-in .leistung__bild,
.reveal.is-in .pagehead__bild,
.reveal.is-in .figure-frame { opacity: 1; transform: none; }

/* Zeilen einer Leistung staffeln */
.reveal .frage { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in .frage { opacity: 1; transform: none; }
.reveal.is-in .frage:nth-child(1) { transition-delay: .10s; }
.reveal.is-in .frage:nth-child(2) { transition-delay: .22s; }
.reveal.is-in .frage:nth-child(3) { transition-delay: .34s; }

/* Bild im Bildausschnitt sanft mitziehen */
.leistung__bild img, .pagehead__bild img { transition: transform 1.4s cubic-bezier(.22,.61,.36,1); }
.leistung__block:hover .leistung__bild img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal .leistung__bild, .reveal .pagehead__bild, .reveal .figure-frame,
  .reveal .frage { opacity: 1; transform: none; transition: none; }
  .leistung__block:not(.is-in) .leistung__nr { color: var(--orange); }
  .leistung__block .leistung__nr::after { opacity: 1; transform: none; }
  .leistung__block:hover .leistung__bild img { transform: none; }
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--orange); color: #FFF; padding: .75rem 1.25rem; font-size: .8rem;
}
.skip:focus { left: .5rem; top: .5rem; }
