/* =========================================================================
   Liora – Stylesheet
   Markenfarben und Schriften laut Styleguide (Farben.jpg, Schriftarten/).
   Aufbau: 1 Tokens · 2 Reset · 3 Typografie · 4 Primitive · 5 Layout
   ========================================================================= */

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

:root {
  /* Marke */
  --c-offwhite: #f4f2f0;
  --c-sand: #d5c9b4;
  --c-taupe: #b4a59c;
  --c-caramel: #a77d50;
  --c-ink: #202321;

  /* Abgeleitet. Die beiden Textfarben sind gegen den DUNKELSTEN Hintergrund
     geprueft, auf dem sie vorkommen (--c-bg-sand #e7dfd2), nicht nur gegen
     Weiss - sonst faellt der Sandton-Abschnitt durch:
       muted       auf sand 5.5:1 · auf offwhite 6.5:1
       accent-dark auf sand 4.8:1 · auf offwhite 5.7:1
     Beide also >= 4.5:1 und damit WCAG 2.1 AA auch fuer kleine Schrift. */
  --c-bg: var(--c-offwhite);
  --c-bg-alt: #fbfaf9;
  --c-bg-sand: #e7dfd2;
  --c-text: var(--c-ink);
  --c-muted: #5c5650;
  --c-line: #ddd6cd;
  --c-accent: var(--c-caramel);
  --c-accent-dark: #7a5938; /* fuer Text/Links auf hellem Grund */

  /* Typografie */
  --f-head: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --f-body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Fluide Groessen: skalieren zwischen 360px und 1280px Viewport */
  --t-xs: 0.78rem;
  --t-sm: 0.875rem;
  --t-base: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --t-lg: clamp(1.125rem, 1.05rem + 0.33vw, 1.3125rem);
  --t-h3: clamp(1.25rem, 1.12rem + 0.55vw, 1.625rem);
  --t-h2: clamp(1.75rem, 1.42rem + 1.45vw, 2.75rem);
  --t-h1: clamp(2.25rem, 1.6rem + 2.9vw, 4.25rem);

  /* Raster */
  --w-max: 1200px;
  --w-text: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sp-section: clamp(4rem, 9vw, 8.5rem);

  --radius: 2px;
  --shadow: 0 1px 2px rgba(32, 35, 33, 0.04), 0 8px 28px rgba(32, 35, 33, 0.07);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Schriften selbst gehostet (kein Google-Fonts-Abruf -> keine Drittdaten).
   Variable Fonts: ein File deckt alle Schnitte von 100 bis 900 ab. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* --- 2 Reset ------------------------------------------------------------ */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Bewusst KEIN scroll-behavior: smooth. Die Seite ist rund 10.000 Pixel
     hoch; ein Sprung von ganz oben zum Kontakt wuerde mehrere Sekunden lang
     durch den gesamten Inhalt scrollen. Das ist langsam und loest bei
     empfindlichen Menschen Schwindel aus. Der Sprung erfolgt daher direkt. */

  /* Sprungziele landen nicht unter dem fixierten Header. */
  scroll-padding-top: 6rem;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* Bilder gegen das bequeme Wegspeichern schuetzen:
   -webkit-user-drag  verhindert das Ziehen eines Bildes auf den Schreibtisch
   -webkit-touch-callout  unterdrueckt auf iPhone/iPad das Langdruck-Menue mit
                          "Bild speichern" (greift nur zusammen mit user-select)
   user-select         verhindert, dass das Bild mitmarkiert und mitkopiert wird
   Das Rechtsklick-Menue sperrt main.js, die Galerie zusaetzlich eine
   durchsichtige Schicht (siehe .gallery__btn::after).
   Wirksam gegen Gelegenheitskopien - nicht gegen jemanden, der es darauf
   anlegt: Die Adresse jeder Bilddatei bleibt oeffentlich abrufbar. */
img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

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

button {
  cursor: pointer;
  background: none;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--c-accent-dark);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Nutzer mit reduzierter Bewegung bekommen keine Animationen. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- 3 Typografie ------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--f-head);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
}
h2 {
  font-size: var(--t-h2);
}
h3 {
  font-size: var(--t-h3);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--c-accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--c-ink);
}

/* Kleine Grossbuchstaben-Marke ueber den Abschnittsueberschriften. */
.eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--c-accent-dark);
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  max-width: var(--w-text);
  font-size: var(--t-lg);
  font-weight: 300;
  line-height: 1.6;
  color: var(--c-muted);
}

/* --- 4 Primitive -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px; /* komfortable Touch-Flaeche */
  padding: 0.85em 2em;
  border: 1px solid var(--c-ink);
  border-radius: var(--radius);
  background: var(--c-ink);
  color: var(--c-offwhite);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
}

.btn--ghost:hover {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-offwhite);
}

.btn--light {
  background: transparent;
  border-color: rgba(244, 242, 240, 0.65);
  color: var(--c-offwhite);
}

.btn--light:hover {
  background: var(--c-offwhite);
  border-color: var(--c-offwhite);
  color: var(--c-ink);
}

/* Fuer Screenreader sichtbar, visuell ausgeblendet. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Sprunglink: erscheint erst bei Tastaturfokus. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--c-ink);
  color: var(--c-offwhite);
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--c-offwhite);
}

/* --- 5 Layout ----------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--sand {
  background: var(--c-bg-sand);
}

.section--alt {
  background: var(--c-bg-alt);
}

.section__head {
  max-width: var(--w-text);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Sanftes Einblenden beim Scrollen.
   Wichtig: .reveal ist von sich aus SICHTBAR. Der versteckte Ausgangszustand
   greift erst, wenn das Skript die Klasse .js-reveal am <html> gesetzt hat.
   Dadurch bleibt die Seite vollstaendig lesbar, falls das JavaScript gar nicht
   laedt, von einem Blocker gestoppt wird oder einen Fehler wirft - sonst waere
   die Seite in diesem Fall einfach leer. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  .js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Beim Ausdruck zaehlt nur der Inhalt. */
@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header,
  .nav,
  .lightbox,
  .skip-link,
  .hero__actions,
  .site-footer__nav {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding-block: 1.5rem;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* --- 6 Kopfbereich und Navigation --------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 242, 240, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(244, 242, 240, 0.78);
    backdrop-filter: blur(14px);
  }
}

/* Wird per JS gesetzt, sobald die Seite gescrollt ist. */
.site-header.is-stuck {
  border-color: var(--c-line);
  box-shadow: 0 2px 20px rgba(32, 35, 33, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

@media (min-width: 900px) {
  .site-header__inner {
    min-height: 84px;
  }
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--c-ink);
}

/* Der Schriftzug enthält viel Innenweiß und darunter die feine Zeile
   "PHOTOGRAPHY". Unter etwa 44 px Höhe ist diese Zeile nicht mehr lesbar,
   deshalb fällt das Logo bewusst größer aus als eine reine Wortmarke. */
.brand__logo {
  height: 36px;
  width: auto;
}

@media (min-width: 900px) {
  .brand__logo {
    height: 48px;
  }
}

.brand--footer .brand__logo {
  height: 56px;
}

/* Textfassung der Wortmarke. Wird derzeit nicht verwendet, bleibt aber
   erhalten, falls statt der Bilddatei wieder Text stehen soll. */
.brand__name {
  font-family: var(--f-head);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand__sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  padding: 0;
}

.nav__list a {
  position: relative;
  color: var(--c-ink);
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__list a:hover::after,
.nav__list a.is-active::after {
  transform: scaleX(1);
}

.nav__cta {
  padding: 0.55em 1.3em;
  border: 1px solid var(--c-ink);
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav__cta::after {
  display: none;
}

.nav__cta:hover {
  background: var(--c-ink);
  color: var(--c-offwhite);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-right: -0.5rem;
  padding: 0;
  place-items: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--c-ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: relative;
}

.nav-toggle__bars::before {
  top: -7.5px;
}
.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 899px) {
  .nav-toggle {
    display: grid;
  }

  /* Impressum und Datenschutz tragen .nav--simple und haben bewusst KEIN
     Menuesymbol, weil dort nur zwei Links stehen. Sie duerfen deshalb nicht
     in das ausklappbare Mobilmenue fallen - sonst waeren die Links auf dem
     Smartphone unerreichbar. */
  .nav--simple {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    border: 0;
    background: none;
  }

  .nav--simple .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
  }

  .nav--simple .nav__list li + li {
    border-top: 0;
  }

  .nav--simple .nav__list a {
    padding: 0;
    font-size: var(--t-sm);
  }

  .nav--simple .nav__cta {
    margin-top: 0;
    padding: 0.55em 1.1em;
  }

  .nav:not(.nav--simple) {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    /* Ausgeblendet, aber nicht aus dem DOM: so bleibt die Animation moeglich.
       visibility verhindert, dass versteckte Links fokussierbar bleiben. */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }

  .nav__list li + li {
    border-top: 1px solid var(--c-line);
  }

  .nav__list a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1rem;
  }

  .nav__list a::after {
    display: none;
  }

  .nav__cta {
    margin-top: 1rem;
    text-align: center;
  }
}

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

.hero {
  display: grid;
  background: var(--c-bg-sand);
}

.hero__text {
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}

.hero__text-inner {
  width: 100%;
  max-width: 34rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero .lead {
  color: var(--c-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero__meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(32, 35, 33, 0.12);
  font-size: var(--t-sm);
  color: var(--c-muted);
}

/* Das <picture> braucht selbst die volle Hoehe, sonst laeuft height: 100%
   am Bild ins Leere: Das Foto nimmt seine natuerliche Hoehe an und ragte am
   Handy rund 100 px ueber den 4:5-Rahmen in die Ueberschrift hinein. */
.hero__media {
  overflow: hidden;
}

.hero__media picture {
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--c-sand);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: min(88svh, 820px);
  }

  /* Bild zuerst im Quellcode waere besser fuers Layout, aber der Text soll
     zuerst vorgelesen werden. Deshalb hier nur optisch tauschen. */
  .hero__media {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 899px) {
  .hero__media {
    order: -1;
    /* Hochformat beibehalten. Bei 4/3 wuerde das hochformatige Portrait so
       stark seitlich beschnitten, dass das Gesicht aus dem Bild faellt. */
    aspect-ratio: 4 / 5;
    max-height: 62svh;
  }

  .hero__media img {
    /* Etwas oberhalb der Mitte ausrichten: Gesichter sitzen im oberen Drittel. */
    object-position: 50% 35%;
  }
}

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

.cards {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card__title {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--t-h3);
}

.card__list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.card__list li {
  position: relative;
  padding-left: 1.6rem;
  color: #4a443f;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-sand);
  border: 1.5px solid var(--c-accent);
}

/* --- 9 Bildband mit Zitat ----------------------------------------------- */

.band {
  position: relative;
  display: grid;
}

.band > picture,
.band > picture img {
  grid-area: 1 / 1;
  width: 100%;
}

.band img {
  max-height: 70svh;
  object-fit: cover;
  background: var(--c-sand);
}

.band__quote {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  margin: 0;
  padding: var(--gutter);
  /* Verlauf statt Flaeche: sichert den Textkontrast, ohne das Foto zu toeten. */
  background: linear-gradient(
    to top,
    rgba(32, 35, 33, 0.72) 0%,
    rgba(32, 35, 33, 0.35) 45%,
    rgba(32, 35, 33, 0.1) 100%
  );
}

.band__quote p {
  max-width: 24ch;
  align-self: end;
  color: #fff;
  font-family: var(--f-head);
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.4rem);
  font-style: italic;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

/* --- 10 Ablauf ---------------------------------------------------------- */

.steps {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  padding: 0;
  list-style: none;
  counter-reset: schritt;
}

.step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--c-accent);
}

.step__num {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--f-head);
  font-size: 2.25rem;
  line-height: 1;
  /* Nicht --c-accent: das Karamell erreicht auf dem Sandton nur 2.8:1. */
  color: var(--c-accent-dark);
}

.step__title {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.step p {
  font-size: 0.95rem;
  color: #4a443f;
}

/* --- 11 Galerie --------------------------------------------------------- */

/* Mehrspaltiges Mauerwerk ohne JavaScript. Die Lesereihenfolge laeuft dabei
   spaltenweise - fuer eine reine Bildergalerie ist das unproblematisch. */
.gallery {
  columns: 1;
  column-gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

@media (min-width: 640px) {
  .gallery {
    columns: 2;
  }
}

@media (min-width: 1000px) {
  .gallery {
    columns: 3;
  }
}

.gallery__item {
  margin: 0 0 clamp(0.75rem, 1.5vw, 1.25rem);
  break-inside: avoid;
}

.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-sand);
}

/* Durchsichtige Schicht genau ueber dem Bild. Ein Rechtsklick landet auf ihr
   statt auf dem Bild, deshalb bietet der Browser "Bild speichern unter" gar
   nicht erst an. Der normale Klick geht weiter an die Schaltflaeche darunter,
   die Lupe funktioniert also unveraendert. Diese Sperre braucht kein
   JavaScript und greift auch, wenn jemand es abschaltet. */
.gallery__btn::after {
  content: '';
  position: absolute;
  inset: 0;
}

.gallery__btn img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.gallery__btn:hover img,
.gallery__btn:focus-visible img {
  transform: scale(1.035);
  filter: brightness(1.03);
}

/* --- 12 Zweispalter (Schule, Über mich) --------------------------------- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

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

  .split--reverse .split__media {
    order: -1;
  }
}

.split__text > * + * {
  margin-top: 1.1rem;
}

.split__text h2 {
  margin-bottom: 0.5rem;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--c-sand);
  box-shadow: var(--shadow);
}

.signature {
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--c-accent-dark);
}

/* --- Stimmen ------------------------------------------------------------ */

.quotes {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  align-items: start;
}

/* Versetzte Anordnung: Die mittlere Karte sitzt etwas tiefer. Das bricht die
   gleichförmige Reihe auf, damit die Zitate nicht wie ein Textblock wirken. */
@media (min-width: 900px) {
  .quotes > .quote:nth-child(2) {
    margin-top: 3rem;
  }
}

.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
  /* oben mehr Luft: dort liegt das Anführungszeichen */
  padding: 3.25rem clamp(1.5rem, 2.5vw, 2rem) clamp(1.5rem, 2.5vw, 2rem);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Großes Anführungszeichen als Signet. Rein dekorativ, deshalb im Markup
   aria-hidden - Screenreader lesen bereits das <blockquote> als Zitat. */
.quote__mark {
  position: absolute;
  top: 0.75rem;
  left: clamp(1.25rem, 2.2vw, 1.75rem);
  font-family: var(--f-head);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--c-sand);
  pointer-events: none;
  user-select: none;
}

.quote__text {
  position: relative;
  flex: 1;
  margin: 0;
}

.quote__text p {
  font-family: var(--f-head);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.65;
  color: #3c3833;
}

.quote__by {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line);
}

.quote__avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-bg-sand);
  color: var(--c-accent-dark);
  font-family: var(--f-head);
  font-size: 1.25rem;
  line-height: 1;
}

.quote__person {
  display: block;
}

.quote__name {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
}

.quote__rolle {
  display: block;
  margin-top: 0.1rem;
  font-size: var(--t-xs);
  line-height: 1.4;
  color: var(--c-muted);
}

/* --- 14 Kontakt und Formular -------------------------------------------- */

.section--dark {
  background: var(--c-ink);
  color: var(--c-offwhite);
}

.section--dark h2 {
  color: #fff;
}

.eyebrow--light {
  color: var(--c-sand);
}

.contact {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1.1fr;
  }
}

.contact__intro p {
  color: #cfcac4;
}

.contact__data {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1.75rem;
  margin-top: 2.5rem;
  font-size: 0.95rem;
}

.contact__data dt {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: var(--t-xs);
  color: var(--c-taupe);
  padding-top: 0.2em;
}

.contact__data dd {
  margin: 0;
  color: var(--c-offwhite);
}

.contact__data a {
  color: var(--c-offwhite);
}

.contact__data a:hover {
  color: var(--c-sand);
}

.contact__data address {
  font-style: normal;
  line-height: 1.6;
}

.form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(244, 242, 240, 0.16);
  border-radius: var(--radius);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: var(--t-sm);
  font-weight: 500;
  color: #e6e2de;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(244, 242, 240, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-offwhite);
  font-size: 1rem; /* unter 16px zoomt iOS beim Fokus ins Feld hinein */
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-sand);
  background: rgba(255, 255, 255, 0.1);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--c-sand);
  outline-offset: 1px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #e0a0a0;
}

.field--check {
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-top: 0.5rem;
}

.field--check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.3rem;
  accent-color: var(--c-accent);
}

.field--check label {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #d2cdc7;
}

.field--check a {
  color: var(--c-sand);
}

.field__error {
  font-size: var(--t-xs);
  color: #efb8b8;
}

.form__hint {
  font-size: var(--t-xs);
  color: #9a948e;
}

/* Honigtopf: aus dem Blickfeld geschoben statt display:none, weil manche Bots
   ausgeblendete Felder erkennen und dann ueberspringen. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.form__status.is-ok,
.form__status.is-error {
  display: block;
}

.form__status.is-ok {
  background: rgba(167, 125, 80, 0.2);
  border: 1px solid var(--c-accent);
  color: #f3e7d8;
}

.form__status.is-error {
  background: rgba(190, 90, 90, 0.16);
  border: 1px solid #c98080;
  color: #f6dede;
}

/* --- 15 Fußzeile -------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-line);
  font-size: var(--t-sm);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}

.brand--footer {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.site-footer__claim {
  color: var(--c-muted);
  line-height: 1.7;
}

.site-footer__nav {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  color: var(--c-text);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--c-accent-dark);
  text-decoration: underline;
}

.site-footer__area {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--c-line);
}

.site-footer__area-title {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: 0.9rem;
}

.site-footer__places-label {
  margin-bottom: 0.3rem;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-text);
}

.site-footer__places {
  max-width: 70ch;
  color: var(--c-muted);
  font-size: 0.82rem;
  line-height: 2;
}

.site-footer__places + .site-footer__places-label {
  margin-top: 1.25rem;
}

.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
  font-size: var(--t-xs);
  color: var(--c-muted);
}

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

.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  border: 0;
  background: rgba(20, 22, 21, 0.95);
}

.lightbox::backdrop {
  background: rgba(20, 22, 21, 0.9);
}

.lightbox__figure {
  --lb-rand: clamp(1rem, 4vw, 3.5rem);
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: var(--lb-rand);
}

/* Die Hoehe direkt am Fenster begrenzen: Das Bild steckt in einem <picture>
   ohne feste Hoehe, daran gemessen greift max-height: 100% nicht - Hochformate
   liefen sonst ueber den Bildschirm hinaus. dvh beruecksichtigt auf dem Handy
   die ein- und ausfahrende Adressleiste, vh ist die Rueckfallebene. */
.lightbox__figure img {
  max-width: calc(100vw - 2 * var(--lb-rand));
  max-height: calc(100vh - 2 * var(--lb-rand));
  max-height: calc(100dvh - 2 * var(--lb-rand));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(244, 242, 240, 0.1);
  color: var(--c-offwhite);
  font-size: 2rem;
  line-height: 1;
  transition: background 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(244, 242, 240, 0.24);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
}

.lightbox__nav--prev {
  left: 0.75rem;
}
.lightbox__nav--next {
  right: 0.75rem;
}

/* Beim geoeffneten Dialog soll die Seite dahinter nicht mitscrollen. */
body.has-lightbox {
  overflow: hidden;
}

/* --- 17 Platzhalter-Hinweise -------------------------------------------- */

/* Sichtbar gelb markiert, damit beim Korrekturlesen nichts uebersehen wird.
   Vor dem Livegang restlos entfernen - Suche nach "todo" im Quelltext. */
.todo {
  margin-block: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #b8860b;
  border-radius: var(--radius);
  background: #fdf6e3;
  color: #6b5312;
  font-size: 0.88rem;
  line-height: 1.6;
}

.todo strong {
  color: #4a3a0c;
}

/* --- 18 Fließtextseiten (Impressum, Datenschutz, 404) ------------------- */

.prose {
  max-width: 50rem;
}

.prose h1 {
  margin-bottom: 2.5rem;
}

.prose h2 {
  margin-top: 3rem;
  margin-bottom: 0.9rem;
  font-size: var(--t-h3);
}

.prose h2:first-of-type {
  margin-top: 2rem;
}

.prose p,
.prose ul {
  margin-bottom: 1.1rem;
}

.prose ul {
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose code {
  padding: 0.1em 0.4em;
  border-radius: var(--radius);
  background: var(--c-bg-sand);
  font-size: 0.9em;
}

/* Hinweis "Design und Entwicklung" im Impressum */
.credit {
  display: block;
  width: min(17rem, 100%);
  margin-bottom: 1.1rem;
}

.credit__logo {
  display: block;
  width: 100%;
  height: auto;
}

.prose__back {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-line);
}

/* Fehlerseite */
.error-page {
  display: grid;
  place-items: center;
  min-height: 70svh;
  text-align: center;
}

.error-page__code {
  font-family: var(--f-head);
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 1;
  color: var(--c-sand);
}

/* --- 19 Häufige Fragen -------------------------------------------------- */

/* Aufklappbar über <details>/<summary> – das kann der Browser von Haus aus.
   Kein JavaScript nötig, mit der Tastatur bedienbar, und der Text steht auch
   im zugeklappten Zustand im Quelltext. Suchmaschinen und KI-Systeme lesen
   ihn also mit. */
.faq {
  max-width: 52rem;
  border-top: 1px solid var(--c-line);
}

.faq__item {
  border-bottom: 1px solid var(--c-line);
}

.faq__item summary {
  position: relative;
  display: block; /* entfernt das Standard-Dreieck in den meisten Browsern */
  padding: 1.15rem 3rem 1.15rem 0;
  cursor: pointer;
  font-family: var(--f-head);
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--c-text);
  transition: color 0.2s var(--ease);
}

/* Die beiden Browser-eigenen Marker gezielt abschalten. */
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::marker {
  content: "";
}

.faq__item summary:hover {
  color: var(--c-accent-dark);
}

.faq__item summary:focus-visible {
  outline: 2px solid var(--c-accent-dark);
  outline-offset: 2px;
}

/* Plus-Zeichen, das sich beim Aufklappen zum Minus dreht. */
.faq__item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.5rem;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--c-accent-dark), var(--c-accent-dark)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--c-accent-dark), var(--c-accent-dark)) center / 1.5px 100% no-repeat;
  transition: transform 0.25s var(--ease);
}

.faq__item[open] summary::after {
  /* Der senkrechte Strich dreht sich in die Waagerechte: aus + wird − */
  transform: rotate(90deg);
  background:
    linear-gradient(var(--c-accent-dark), var(--c-accent-dark)) center / 100% 1.5px no-repeat;
}

.faq__answer {
  padding: 0 3rem 1.4rem 0;
}

.faq__answer p {
  color: #4a443f;
  font-size: 0.97rem;
}

/* --- 20 Statistikseite (interner Bereich) ------------------------------- */

.anmeldung {
  max-width: 24rem;
  margin-inline: auto;
}

.anmeldung h1 {
  margin-bottom: 2rem;
  font-size: var(--t-h2);
}

.anmeldung form {
  display: grid;
  gap: 1.1rem;
}

/* Die .field-Regeln sind für den dunklen Kontaktbereich gemacht: helle
   Schrift auf dunklem Grund. Hier ist der Hintergrund hell, deshalb werden
   Beschriftung und Feld zurückgedreht - sonst wäre nichts zu lesen. */
.anmeldung .field label {
  color: var(--c-text);
}

.anmeldung .field input {
  background: #fff;
  border-color: var(--c-line);
  color: var(--c-text);
}

.anmeldung .field input:focus {
  border-color: var(--c-accent-dark);
  background: #fff;
}

.anmeldung__fehler {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid #a33;
  border-radius: var(--radius);
  background: #fbeeee;
  color: #7a2020;
  font-size: 0.92rem;
}

/* Kennzahlen oben */
.kennzahlen {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  margin-block: 2.5rem 3.5rem;
}

.kennzahl {
  padding: 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.kennzahl__wert {
  display: block;
  font-family: var(--f-head);
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  line-height: 1;
  color: var(--c-accent-dark);
}

.kennzahl__name {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* Tabellen */
.statistik__titel {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: var(--t-h3);
}

.statistik {
  width: 100%;
  max-width: 44rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.statistik td {
  padding: 0.45rem 0.75rem 0.45rem 0;
  border-bottom: 1px solid var(--c-line);
  vertical-align: baseline;
}

.statistik td:first-child {
  white-space: nowrap;
  color: var(--c-muted);
}

.statistik__zahl {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

/* Der Balken besteht aus Strichen, nicht aus einer CSS-Breite: Die
   Inhaltsrichtlinie der Seite verbietet style-Attribute im HTML. */
.statistik__balken {
  width: 100%;
  padding-left: 0.75rem;
  /* Karamell statt Sand: als Grafikelement braucht der Balken mindestens
     3:1 gegen Weiss (WCAG 1.4.11). Sand erreicht nur 1,7:1. */
  color: var(--c-accent);
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  letter-spacing: -0.12em;
  overflow: hidden;
  white-space: nowrap;
}

.statistik__leer,
.statistik__hinweis {
  max-width: 44rem;
  color: var(--c-muted);
  font-size: var(--t-sm);
}

.statistik__hinweis {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
  line-height: 1.7;
}

@media (max-width: 599px) {
  /* Auf schmalen Schirmen ist für den Balken kein Platz. */
  .statistik__balken {
    display: none;
  }
}

/* Zählpixel: darf das Layout nicht beeinflussen. */
.zaehlpixel {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
