/* =============================================================================
   Classic Yacht Survey
   Eine Datei, thematisch gegliedert. Reihenfolge:
   Tokens · Grundlagen · Schriften · Bausteine · Kopf · Hero · Abschnitte ·
   Karten · Paare · Merkmale · Raster · Kontakt · Rechtstexte · Fuß · Lightbox
   ============================================================================= */

/* ------------------------------------------------------------------ Tokens */

:root {
  /* Farben. Die Bordeaux-Note ist die Marke – sie trägt Text und Überschriften. */
  --farbe-primaer:      #880038;
  --farbe-primaer-hell: #a8204f;
  /* Für den Riegel unter der Fußzeile – dieselbe Farbe, nur tiefer. */
  --farbe-primaer-dunkel: #560021;
  /* Akzent für Striche und gefüllte Umriss-Knöpfe: bewusst dieselbe
     Hausfarbe, kein zweiter Ton. */
  --farbe-akzent:       #880038;
  --farbe-grund:        #e1e1e1;
  --farbe-flaeche:      #ffffff;
  --farbe-footer:       #e9f8f9;
  --farbe-dunkel:       #181823;
  --farbe-linie:        rgba(136, 0, 56, 0.18);

  --schrift-display: "DM Serif Display", "Playfair Display", Georgia, "Times New Roman", serif;
  --schrift-text:    "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --breite-inhalt: 1200px;
  --breite-schmal: 750px;

  --luft-xs: 0.5rem;
  --luft-s:  1rem;
  --luft-m:  2rem;
  --luft-l:  3.5rem;
  --luft-xl: 6rem;

  --radius-knopf: 30px;
  --radius-bild:  4px;

  --schatten: 0 12px 32px rgba(24, 24, 35, 0.14);
}

/* -------------------------------------------------------------- Grundlagen */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Verhindert, dass ein Element während des Einblendens die Seite in die
     Breite zieht. Bewusst "clip" und nicht "hidden": hidden würde einen
     eigenen Scrollbereich aufspannen und die mitlaufende Kopfleiste stoppen.
     Die Angabe muss an beiden Stellen stehen – html allein reicht in
     Chromium nicht, gemessen mit 8 px Rest. */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  overflow-x: clip;   /* siehe Kommentar bei html */
  background: var(--farbe-grund);
  color: var(--farbe-primaer);
  font-family: var(--schrift-text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--schrift-display);
  font-weight: 400;
  line-height: 1.1;      /* prägt die ganze Seite – bitte nicht "glätten" */
  margin: 0 0 var(--luft-s);
  color: var(--farbe-primaer);
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.875rem); }
h2 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.875rem); }
h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }

p { margin: 0 0 var(--luft-s); }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--farbe-primaer);
  outline-offset: 3px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.sprungmarke {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--farbe-primaer);
  color: #fff;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}
.sprungmarke:focus {
  left: 0;
}

/* Sichtbar nur für Vorleseprogramme und Suchmaschinen. */
.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------- Schriften */

@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/DMSerifDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- Bausteine */

.bahn {
  width: min(100% - 2 * var(--luft-m), var(--breite-inhalt));
  margin-inline: auto;
}

.bahn.schmal {
  width: min(100% - 2 * var(--luft-m), var(--breite-schmal));
}

.mitte { text-align: center; }

.knopf {
  display: inline-block;
  padding: 17px 34px;
  border: 0;
  border-radius: var(--radius-knopf);
  background: var(--farbe-flaeche);
  color: var(--farbe-dunkel);
  font-family: var(--schrift-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.knopf:hover {
  transform: translateY(-2px);
  box-shadow: var(--schatten);
}

.knopf--dunkel {
  background: var(--farbe-primaer);
  color: #fff;
}

/* Umriss-Knopf wie im Bestand: 2px Rahmen, beim Überfahren gefüllt. */
.knopf--umriss {
  background: transparent;
  color: var(--farbe-dunkel);
  border: 2px solid var(--farbe-dunkel);
  border-radius: 5px;
}
.knopf--umriss:hover,
.knopf--umriss:focus-visible {
  background: var(--farbe-akzent);
  border-color: var(--farbe-akzent);
  color: #fff;
}

.stark { font-weight: 700; }

.einleitung {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.hinweis {
  padding: var(--luft-s) var(--luft-m);
  border-radius: var(--radius-bild);
  margin-bottom: var(--luft-m);
}
.hinweis--gut    { background: var(--farbe-footer); border-left: 4px solid var(--farbe-primaer); }
.hinweis--fehler { background: #fbe9ef; border-left: 4px solid var(--farbe-primaer); }

/* --------------------------------------------------------------------- Kopf */

/* Läuft beim Scrollen mit und steht auf dem Ton der Fußzeile – dadurch bleibt
   die Navigation auf jedem Untergrund lesbar, auch über dem Hero-Bild. */
.kopf {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--farbe-footer);
  box-shadow: 0 1px 0 rgba(136, 0, 56, 0.08);
}

.kopf__innen {
  width: min(100% - 2 * var(--luft-m), var(--breite-inhalt));
  margin-inline: auto;
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--luft-m);
}

.kopf__logo img {
  width: 226px;
  max-width: 46vw;
  height: auto;
}

.kopf__nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.75rem);
}

.kopf__nav a {
  color: var(--farbe-primaer);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color 0.18s ease;
}

.kopf__nav a:hover,
.kopf__nav a[aria-current="page"] {
  border-bottom-color: currentColor;
}

.kopf__schalter {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  color: var(--farbe-primaer);
  cursor: pointer;
}
.kopf__schalter span {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------- Hero */

.hero {
  position: relative;
  min-height: 590px;
  padding: 130px var(--luft-m) 160px;
  background-image: var(--hero-bild);
  background-size: cover;
  background-position: 53% 87%;
  border-radius: 0 0 0 150px;   /* Erkennungsmerkmal: nur unten links */
  overflow: hidden;
  isolation: isolate;
}

/* Leichter Schleier, damit die weiße Schrift auf jedem Bildausschnitt trägt. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(24, 24, 35, 0.45) 0%, rgba(24, 24, 35, 0.12) 55%, rgba(24, 24, 35, 0) 100%);
}

.hero__innen {
  width: min(100% - 2 * var(--luft-m), var(--breite-inhalt));
  margin-inline: auto;
}

/* Überschrift und Vorspann stehen im Original je auf einer Zeile –
   deshalb hier großzügig Platz lassen und nur den Vorspann begrenzen. */
.hero__text { max-width: 78ch; }

.hero__titel {
  color: #fff;
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 2.625rem);
  margin-bottom: var(--luft-s);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero__text {
  color: #fff;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.6;
  margin-bottom: 40px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}

/* ---------------------------------------------------------------- Logo-Band */

.logo-band {
  display: flex;
  justify-content: center;
  padding: var(--luft-l) var(--luft-m);
}
.logo-band img { width: 226px; }
.logo-band--gross img { width: 300px; max-width: 70vw; }

/* --------------------------------------------------------------- Abschnitte */

.abschnitt {
  padding-block: var(--luft-l);
}
/* Erster Abschnitt einer Seite ohne Titelband braucht oben etwas mehr Luft. */
.abschnitt--oben { padding-top: var(--luft-m); }
.abschnitt--buch  { padding-block: var(--luft-m) var(--luft-l); }
.abschnitt--buch > .bahn > h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.375rem); }
.abschnitt--aufruf { padding-block: var(--luft-m) var(--luft-l); }

.abschnitt__kopf {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto var(--luft-l);
}
.abschnitt__kopf p { margin-bottom: 0; }

.seitenkopf {
  padding: var(--luft-l) 0 var(--luft-m);
}
.seitenkopf__kennung {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--luft-xs);
}
.seitenkopf__titel {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------- Karten */

.karten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--luft-m);
}

.karte__link {
  display: block;
  text-decoration: none;
  text-align: center;
}

.karte__bild {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-bild);
  margin-bottom: var(--luft-s);
  transition: transform 0.3s ease;
}
.karte__link:hover .karte__bild { transform: scale(1.02); }

.karte__titel { margin-bottom: 0.25rem; }
.karte__text  { font-size: 0.9375rem; margin-bottom: 0; }

/* -------------------------------------------------------------------- Paare */

.paar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--luft-l);
  margin-block: var(--luft-m);
}

.paar--luft { margin-block: var(--luft-l); }

.paar--gedreht .paar__bild { order: 2; }

.paar__bild img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-bild);
}

/* Das Buchbild trägt im Bestand eine deutlichere Rundung und ist verlinkt. */
.paar__bild--gerahmt img {
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.paar__bild--gerahmt a:hover img {
  transform: translateY(-3px);
  box-shadow: var(--schatten);
}

.paar__text p:last-child { margin-bottom: 0; }
.paar__text h2 a,
.paar__text h3 a { text-decoration: none; }
.paar__text h2 a:hover { text-decoration: underline; }

.weiterlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.weiterlink__pfeil { transition: transform 0.2s ease; }
.weiterlink:hover .weiterlink__pfeil { transform: translateX(4px); }

.hakenliste li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.hakenliste svg { flex: 0 0 auto; margin-top: 0.2rem; }

/* ------------------------------------------------------------------ Personen */

/* Wie im Bestand: Name als schlichte 24-px-Zeile über dem Bild, darunter der
   Text. Die Bilder haben eine feste Höhe und behalten ihr Seitenverhältnis –
   dadurch sind sie unterschiedlich breit, genau wie im Original. */
.personen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--luft-l);
}

.person__name {
  font-size: 1.5rem;
  margin-bottom: var(--luft-s);
}

.person__bild {
  height: 420px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: var(--luft-m);
}

/* Auf "Über uns" sind die drei Spalten schmaler beschriftet als auf der
   Startseite – auch das kommt aus dem Bestand. */
.merkmale--klein .merkmal__titel { font-size: 1.5rem; }

/* ----------------------------------------------------------------- Merkmale */

.merkmale {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--luft-l);
}

/* Reihenfolge wie im Bestand: Sinnbild mittig, darunter der türkise Strich
   linksbündig, dann die Überschrift. */
.merkmal__icon {
  display: block;
  text-align: center;
  color: #333;
  margin-bottom: var(--luft-s);
}
.merkmal__icon svg { display: inline-block; }

.merkmal__strich {
  display: block;
  width: 50px;
  height: 0;
  border-top: 2px solid var(--farbe-akzent);
  margin-bottom: var(--luft-s);
}
.merkmal__titel { margin-bottom: 0.5rem; }
.merkmal__text { margin-bottom: 0; font-size: 0.9375rem; }

/* ------------------------------------------------------------------- Raster */

.raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.raster__link {
  display: block;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  border-radius: 2px;
}

.raster__link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.raster__link:hover img { transform: scale(1.04); }

.raster__titel {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 0.85rem 0.7rem;
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.35;
  background: linear-gradient(to top, rgba(24, 24, 35, 0.85), rgba(24, 24, 35, 0));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.raster__link:hover .raster__titel,
.raster__link:focus-visible .raster__titel { opacity: 1; }

/* ------------------------------------------------------------ Doppelspalte */

/* Fließtext der Leistungsseiten: zwei Spalten, zeilenweise gefüllt.
   Ein einzeln bleibender letzter Absatz läuft über die volle Breite. */
.doppelspalte {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--luft-m);
  row-gap: 0;
}
.doppelspalte > p:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* ------------------------------------------------------------------ Nachbarn */

.nachbarn {
  border-top: 1px solid var(--farbe-linie);
  padding-block: var(--luft-m);
}
.nachbarn__titel {
  font-family: var(--schrift-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--luft-s);
}
.nachbarn ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.nachbarn a { text-decoration: none; border-bottom: 1px solid var(--farbe-linie); }
.nachbarn a:hover { border-bottom-color: currentColor; }

/* ------------------------------------------------------------------ Kontakt */

.kontakt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--luft-xl);
  align-items: start;
}

.kontakt__label {
  font-family: var(--schrift-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--luft-m);
  margin-bottom: 0.25rem;
}

.feld { margin-bottom: var(--luft-s); }

.feld label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.feld input[type="text"],
.feld input[type="email"],
.feld textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: inherit;
  background: var(--farbe-flaeche);
  border: 1px solid var(--farbe-linie);
  border-radius: var(--radius-bild);
}

.feld input:focus,
.feld textarea:focus { border-color: var(--farbe-primaer); }

.feld textarea { resize: vertical; min-height: 9rem; }

.feld--kasten {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
}
.feld--kasten label {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}
.feld--kasten input { margin-top: 0.25rem; }
.feld--kasten .feld__fehler { grid-column: 1 / -1; }

.feld__fehler {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.pflicht { opacity: 0.7; }

/* Für Menschen unsichtbar, für einfache Maschinen verlockend. */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------------------------------------------------------------- Rechtstexte */

.rechtstext h2 {
  font-size: 1.5rem;
  margin-top: var(--luft-m);
}
.rechtstext h3 {
  font-family: var(--schrift-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: var(--luft-s);
  margin-bottom: 0.3rem;
}
.rechtstext ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: var(--luft-s);
}
.rechtstext li { margin-bottom: 0.3rem; }

.fehlerlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: var(--luft-m);
}
.fehlerlinks a { font-weight: 700; }


/* ---------------------------------------------------------- Einblenden --- */

/*
 * Elemente treten beim Scrollen ins Bild – von unten, von links oder von
 * rechts, je nachdem wo sie im Layout sitzen.
 *
 * Alles hier hängt an der Klasse "bewegung" am html-Element. Die setzt
 * vorbereitung.js nur, wenn JavaScript läuft, der Browser IntersectionObserver
 * kennt und im Betriebssystem keine reduzierte Bewegung eingestellt ist.
 * Fehlt eine dieser Bedingungen, greift keine einzige dieser Regeln und die
 * Seite steht sofort vollständig da.
 *
 * Die Ausgangszustände stehen bewusst in :where(). Damit zählen sie bei der
 * Gewichtung nicht mit, und die eine Zeile weiter unten, die alles wieder
 * sichtbar macht, gewinnt zuverlässig – egal wie verschachtelt der Treffer ist.
 */

.bewegung :where(
  .abschnitt__kopf,
  .karte,
  .merkmal,
  .paar__bild,
  .paar__text,
  .person,
  .doppelspalte > p,
  .raster__feld,
  .kontakt__daten,
  .kontakt__formular,
  .logo-band,
  .rechtstext > *,
  .nachbarn
) {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

/* Seitlich: was links im Layout steht, kommt von links – und umgekehrt. */
.bewegung :where(
  .paar__bild,
  .paar--gedreht .paar__text,
  .person:first-child,
  .doppelspalte > p:nth-child(odd),
  .kontakt__daten
) {
  transform: translateX(-40px);
}

.bewegung :where(
  .paar__text,
  .paar--gedreht .paar__bild,
  .person:last-child,
  .doppelspalte > p:nth-child(even),
  .kontakt__formular
) {
  transform: translateX(40px);
}

.bewegung .ist-sichtbar {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Gestaffelt, damit Reihen nacheinander erscheinen statt auf einen Schlag. */
.bewegung :where(.karte:nth-child(2), .merkmal:nth-child(2), .person:last-child) { transition-delay: 0.12s; }
.bewegung :where(.karte:nth-child(3), .merkmal:nth-child(3))                     { transition-delay: 0.24s; }
.bewegung :where(.raster__feld:nth-child(3n+2))                                  { transition-delay: 0.09s; }
.bewegung :where(.raster__feld:nth-child(3n))                                    { transition-delay: 0.18s; }
.bewegung :where(.doppelspalte > p:nth-child(even))                              { transition-delay: 0.1s; }
.bewegung :where(.rechtstext > *:nth-child(n+2))                                 { transition-delay: 0.05s; }

/* Der Hero bewegt sich schon beim Laden, nicht erst beim Scrollen. */
.bewegung :where(.hero__titel, .hero__text, .hero .knopf) {
  animation: auftauchen 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.bewegung .hero__text  { animation-delay: 0.14s; }
.bewegung .hero .knopf { animation-delay: 0.28s; }

@keyframes auftauchen {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* Doppelt abgesichert: sollte die Klasse doch einmal gesetzt sein, während
   das System reduzierte Bewegung verlangt, gewinnt diese Regel. */
@media (prefers-reduced-motion: reduce) {
  .bewegung *,
  .bewegung *::before,
  .bewegung *::after {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------------------------- Fuß */

/* Ein durchgefärbtes Band in der Hausfarbe, darunter ein dunklerer Riegel für
   Copyright und Rechtstexte. Alles darin ist weiß – deshalb steht die Farbe
   einmal oben und wird nach unten vererbt. */

.fuss {
  margin-top: var(--luft-l);
  background: var(--farbe-primaer);
  color: #fff;
}

.fuss a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.fuss a:hover { border-bottom-color: #fff; }

.fuss__innen {
  width: min(100% - 2 * var(--luft-m), var(--breite-inhalt));
  margin-inline: auto;
  padding: var(--luft-l) 0 var(--luft-m);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--luft-l) var(--luft-m);
  align-items: start;
}

/* ------------------------------------------------------------------- Marke */

.fuss__logo {
  width: 240px;
  max-width: 100%;
  height: auto;
  margin-bottom: var(--luft-s);
}

.fuss__rolle {
  font-family: var(--schrift-display);
  font-size: 1.375rem;
  line-height: 1.2;
  margin: 0 0 0.15rem;
}

.fuss__namen {
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  margin: 0 0 var(--luft-s);
  opacity: 0.92;
}

.fuss__kontakt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 var(--luft-s);
  font-size: 1.0625rem;
}
.fuss__kontakt .fuss__icon { padding-top: 0; opacity: 0.8; }

/* Die öffentliche Bestellung ist das Pfund, mit dem hier gewuchert wird –
   also nicht als Fließtext verstecken, sondern als abgesetzter Vermerk. */
.fuss__bestellung {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 34ch;
  margin: 0;
  padding-top: var(--luft-s);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.8125rem;
  line-height: 1.5;
  opacity: 0.9;
}
.fuss__siegel { flex: none; line-height: 0; padding-top: 0.1rem; opacity: 0.85; }

/* ------------------------------------------------------------------- Büros */

.fuss__titel {
  /* Ohne das erbt die h2 die Hausfarbe – Bordeaux auf Bordeaux. */
  color: inherit;
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.fuss__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.fuss__zeile {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.45;
}
/* line-height 0 nimmt dem Inline-SVG den Zeilenabstand, sonst sitzt es tief. */
.fuss__icon { flex: none; line-height: 0; padding-top: 0.15rem; opacity: 0.7; }
.fuss__person { font-weight: 500; }

/* --------------------------------------------------------------- Mitglied */

.fuss__mitglied {
  width: min(100% - 2 * var(--luft-m), var(--breite-inhalt));
  margin-inline: auto;
  padding: var(--luft-m) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--luft-s);
  flex-wrap: wrap;
}

.fuss__mitglied-text {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.fuss__mitglied-logo {
  border-bottom: 0;
  line-height: 0;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}
.fuss__mitglied-logo:hover { opacity: 1; border-bottom: 0; }
.fuss__mitglied-logo img { width: 150px; height: auto; }

/* ------------------------------------------------------------------ Riegel */

.fuss__schluss {
  background: var(--farbe-primaer-dunkel);
}

.fuss__schluss-innen {
  width: min(100% - 2 * var(--luft-m), var(--breite-inhalt));
  margin-inline: auto;
  padding: var(--luft-s) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--luft-s);
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.fuss__copyright { margin: 0; opacity: 0.8; }

.fuss__rechtliches { display: flex; gap: var(--luft-s); }
.fuss__rechtliches a { border-bottom: 0; opacity: 0.8; }
.fuss__rechtliches a:hover { opacity: 1; border-bottom: 1px solid #fff; }

/* ---------------------------------------------------------------- Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: var(--luft-m);
  background: rgba(24, 24, 35, 0.94);
}
.lightbox[hidden] { display: none; }

.lightbox__bild {
  max-width: min(1200px, 92vw);
  max-height: 82vh;
  width: auto;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox__titel {
  color: #fff;
  text-align: center;
  font-size: 0.9375rem;
  margin-top: var(--luft-s);
  max-width: 60ch;
}

.lightbox__knopf {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__knopf:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__knopf--zurueck { left: var(--luft-s); }
.lightbox__knopf--vor     { right: var(--luft-s); }
.lightbox__knopf--zu {
  top: var(--luft-s);
  right: var(--luft-s);
  transform: none;
}

/* ------------------------------------------------------------ Breakpoints */

@media (max-width: 921px) {
  :root { --luft-l: 2.5rem; --luft-xl: 3.5rem; }

  .kopf__schalter { display: block; }

  .kopf__nav {
    position: absolute;
    inset: 100% var(--luft-m) auto;
    background: var(--farbe-footer);
    border-radius: 0 0 var(--radius-bild) var(--radius-bild);
    box-shadow: var(--schatten);
    padding: var(--luft-s);
    display: none;
  }
  .kopf__nav.ist-offen { display: block; }
  .kopf__nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .kopf__nav a {
    display: block;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--farbe-linie);
  }
  .kopf__nav li:last-child a { border-bottom: 0; }

  .hero {
    min-height: 460px;
    padding: 90px var(--luft-m) 110px;
    border-radius: 0 0 0 90px;
  }


  .karten { grid-template-columns: repeat(2, 1fr); }
  .personen { grid-template-columns: 1fr; gap: var(--luft-m); }
  .person__bild { height: auto; width: 100%; aspect-ratio: 4 / 5; }
  .merkmale { grid-template-columns: 1fr; gap: var(--luft-m); }

  /* Untereinander gestapelt ergibt eine seitliche Bewegung ohnehin keinen
     Sinn – und sie stünde 40 px außerhalb des Bildschirms, was sich beim
     Wischen als Ausbrechen nach links und rechts bemerkbar macht.
     Auf schmalen Geräten also nur noch von unten. */
  .bewegung :where(
    .paar__bild,
    .paar__text,
    .paar--gedreht .paar__bild,
    .paar--gedreht .paar__text,
    .person:first-child,
    .person:last-child,
    .doppelspalte > p:nth-child(odd),
    .doppelspalte > p:nth-child(even),
    .kontakt__daten,
    .kontakt__formular
  ) {
    transform: translateY(24px);
  }

  .paar,
  .kontakt,
  .doppelspalte { grid-template-columns: 1fr; gap: var(--luft-m); }
  .doppelspalte { row-gap: 0; }
  .paar--gedreht .paar__bild { order: 0; }

  /* Die Marke bekommt die volle Breite, die beiden Büros teilen sich die
     Zeile darunter. */
  .fuss__innen { grid-template-columns: 1fr 1fr; }
  .fuss__marke { grid-column: 1 / -1; }
  .fuss__bestellung { max-width: none; }
}

@media (max-width: 544px) {
  :root { --luft-m: 1.25rem; }

  .hero {
    min-height: 400px;
    padding: 70px var(--luft-m) 80px;
    border-radius: 0 0 0 60px;
  }

  .karten { grid-template-columns: 1fr; }
  .raster { grid-template-columns: repeat(2, 1fr); }
  .fuss__innen { grid-template-columns: 1fr; gap: var(--luft-m); }
  .fuss__schluss-innen { justify-content: flex-start; }

  .knopf { padding: 15px 26px; }

  /* Auf schmalen Geräten sind Bildunterschriften dauerhaft sichtbar –
     ohne Mauszeiger gibt es kein Hover. */
  .raster__titel { opacity: 1; font-size: 0.75rem; }
}

@media print {
  .kopf, .lightbox, .knopf, .nachbarn { display: none; }
  body { background: #fff; color: #000; }
}
