/* ==========================================================================
   seiten.css · Seitenstile der Ansichten 01 bis 05, 1:1 aus den <style>-Blöcken
   des freigegebenen Entwurfs (docs/kundengalerie/entwurf/0X-*.html) übernommen.
   Die Klassen-Namensräume überschneiden sich nicht (anmeldung-*, start-*, bereich*,
   strecke-*, kapitel*, lb-*, rund, fotobox-*), daher in einer Datei.
   ========================================================================== */

/* ---------- aus 01-anmeldung.html ---------- */
.anmeldung-seite {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.anmeldung-bild {
  position: relative;
  height: 42vh;
  min-height: 260px;
}

.anmeldung-bild > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.anmeldung-bild::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--scrim-stark) 0%, var(--scrim-leicht) 45%);
}

.anmeldung-marke {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: var(--rand);
  color: var(--farbe-hintergrund);
  line-height: 1.1;
}

.anmeldung-marke .marke__galerie {
  color: var(--farbe-hintergrund);
}

.anmeldung-haupt {
  flex: 1;
  position: relative;
  z-index: 2;
  padding: 0 var(--rand) 40px;
  margin-top: -56px;
}

.anmeldung-karte {
  max-width: 440px;
  margin-inline: auto;
  padding: 28px 22px 26px;
  background: var(--farbe-hintergrund);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-2);
}

.anmeldung-karte h1 {
  font-size: 2.75rem;
}

.anmeldung-karte .einleitung {
  margin-top: 12px;
  margin-bottom: 28px;
}

.anmeldung-karte .knopf {
  margin-top: 28px;
}

.feld .fehler {
  margin-block: 2px 4px;
}

.anmeldung-hilfe {
  margin-top: 22px;
  padding-top: 18px;
  box-shadow: 0 -1px 0 var(--farbe-linie);
  font-size: 0.875rem;
}

.anmeldung-hilfe p + p {
  margin-top: 6px;
}

@media (min-width: 768px) {
  .anmeldung-seite {
    display: grid;
    grid-template-areas: "stapel";
    align-items: center;
  }

  .anmeldung-bild,
  .anmeldung-haupt {
    grid-area: stapel;
  }

  .anmeldung-bild {
    height: 100%;
    min-height: 100dvh;
  }

  .anmeldung-bild::after {
    background:
      linear-gradient(to bottom, var(--scrim-mittel) 0%, var(--scrim-leicht) 30%),
      linear-gradient(to left, var(--scrim-mittel) 0%, var(--scrim-leicht) 60%);
  }

  .anmeldung-marke {
    top: 32px;
  }

  .anmeldung-haupt {
    margin-top: 0;
    padding-block: 120px 64px;
  }

  .anmeldung-karte {
    padding: 40px 40px 34px;
  }

  .anmeldung-karte h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .anmeldung-haupt {
    display: flex;
    justify-content: flex-end;
    padding-right: 8vw;
  }

  .anmeldung-karte {
    margin-inline: 0;
  }
}

/* ---------- aus 02-galerie-start.html ----------
   Hero (Peter, 10.11.2026): Das Titelbild läuft über die ganze Inhaltsbreite, bündig mit den
   Bereichen darunter (beide sind .innen), der Text liegt auf dem Bild. Ab 1024 px steht der
   ganze Text auf dem Bild; schmaler nur Datum und Namen, Begrüßung und Knopf folgen direkt unter
   dem Bild, sonst wäre das Foto am Handy zu zwei Dritteln zugedeckt.
   Angeschnitten wird nur in der Höhe. Den Ausschnitt setzt Peter im Galerie-Editor
   (_pkg_titel_fokus → --fokus: 0 % zeigt den oberen Rand, 100 % den unteren). */
.start-held {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 24px;
  container-type: inline-size;
}

.start-held__bild {
  position: relative;
  grid-area: 1 / 1;
  align-self: stretch;
  overflow: hidden;
  border-radius: var(--radius-karte);
  background: var(--farbe-flaeche-hell);
  box-shadow: var(--schatten-2);
  /* Höhe aus der Inhaltsbreite und dem Seitenverhältnis des Fotos (--a), gedeckelt auf den
     Bildschirm. Bewusst ohne aspect-ratio: zusammen mit einer Mindesthöhe würde der Kasten sonst
     breiter als die Spalte. */
  height: clamp(360px, calc((100vw - 2 * var(--rand)) / var(--a, 0.8)), calc(100svh - 140px));
  height: clamp(360px, calc(100cqw / var(--a, 0.8)), calc(100svh - 140px));
}

/* Absolut, damit das Foto die Höhe des Heros nie selbst bestimmt (sonst wächst die Grid-Zeile
   auf die natürliche Bildhöhe, bei Hochformat fast 1800 px). */
.start-held__bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--fokus, 35%);
}

.start-held:not(.start-held--mit-bild) .start-held__bild {
  display: none;
}

.start-held--mit-bild .start-held__bild::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--scrim-stark) 0%, var(--scrim-mittel) 30%, rgba(20, 38, 31, 0) 60%);
  pointer-events: none;
}

.start-held__kopf {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  align-self: end;
}

.start-held--mit-bild .start-held__kopf {
  padding: 0 20px 22px;
  color: var(--farbe-hintergrund);
  text-shadow: 0 1px 16px rgba(20, 38, 31, 0.45);
}

.start-held__datum {
  display: block;
  font-size: 1.5rem;
  color: var(--farbe-akzent);
}

.start-held--mit-bild .start-held__datum {
  color: var(--farbe-akzent-auf-bild);
}

/* Namen des Paars (Peter, 10.11.2026: Anton war zu massiv für eine Hochzeit, gewählt Variante B
   der Tafel test/15): Cormorant Garamond kursiv, leicht, in normaler Schreibweise. */
.start-held__namen {
  margin-top: 4px;
  font-family: var(--schrift-akzent);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  font-size: clamp(3.4rem, 14vw, 8.5rem);
}

.start-held__text {
  grid-area: 2 / 1;
  margin-top: 24px;
}

.start-held .knopf {
  text-shadow: none;
}

.start-aktion {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.start-aktion__meta {
  font-size: 0.875rem;
  color: var(--farbe-text-leise);
  font-variant-numeric: tabular-nums;
}

/* Zitat unter den Namen (seit 0.1.12, statt Begrüßungstext): Schrift der Namen, eine Stufe ruhiger,
   die Quelle klein darunter. Am Computer liegt es mit auf dem Titelbild. */
.start-zitat {
  margin: 0;
  max-width: 40rem;
}

.start-zitat__text {
  margin: 0;
}

.start-zitat__text p {
  font-family: var(--schrift-akzent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.125rem);
  line-height: 1.25;
  text-wrap: balance;
  hyphens: manual;
}

.start-zitat__quelle {
  margin-top: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--farbe-text-leise);
}

@media (min-width: 768px) {
  .start-held--mit-bild .start-held__kopf {
    padding: 0 32px 30px;
  }
}

@media (min-width: 1024px) {
  .start-held {
    grid-template-rows: minmax(0, 1fr) auto auto;
    min-height: clamp(480px, calc(100svh - 150px), 880px);
    padding-top: 32px;
  }

  .start-held__bild {
    grid-area: 1 / 1 / 4 / 2;
    height: auto;
  }

  .start-held--mit-bild .start-held__bild::after {
    background:
      linear-gradient(to right, var(--scrim-mittel) 0%, rgba(20, 38, 31, 0.22) 45%, rgba(20, 38, 31, 0) 72%),
      linear-gradient(to top, var(--scrim-stark) 0%, rgba(20, 38, 31, 0.40) 32%, rgba(20, 38, 31, 0) 66%);
  }

  .start-held__kopf {
    grid-area: 2 / 1;
  }

  .start-held--mit-bild .start-held__kopf {
    padding: 0 56px;
  }

  .start-held__text {
    grid-area: 3 / 1;
    margin-top: 0;
  }

  .start-held--mit-bild .start-held__text {
    position: relative;
    z-index: 1;
    padding: 18px 56px 48px;
    color: var(--farbe-hintergrund);
    text-shadow: 0 1px 16px rgba(20, 38, 31, 0.45);
  }

  .start-held__namen {
    font-size: clamp(5.75rem, 8.6vw, 8.75rem);
  }

  .start-held--mit-bild .einleitung {
    max-width: 38em;
  }

  .start-held--mit-bild .start-zitat__quelle,
  .start-held--mit-bild .start-aktion__meta {
    max-width: 44em;
    color: rgba(247, 243, 237, 0.82);
  }
}

/* Bereiche: bewusst ungleich, ein Hauptbereich, zwei Nebenbereiche */
.bereiche {
  margin-top: var(--abstand-abschnitt);
}

.bereiche h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.bereiche__liste {
  display: grid;
  gap: var(--abstand-raster);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bereich {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-karte);
  background: var(--farbe-weiss);
  box-shadow: var(--schatten-1);
  text-decoration: none;
  transition: box-shadow var(--dauer-wechsel) ease, transform var(--dauer-druck) var(--ease-out);
}

.bereich:active {
  transform: scale(0.985);
}

@media (hover: hover) and (pointer: fine) {
  .bereich:hover {
    box-shadow: var(--schatten-2);
  }
}

.bereich__bild {
  overflow: hidden;
  border-radius: var(--radius-bild);
  aspect-ratio: 1 / 1;
}

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

.bereich__name {
  display: block;
  font-family: var(--schrift-display);
  text-transform: uppercase;
  font-size: 1.75rem;
  line-height: 1;
}

.bereich__info {
  display: block;
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--farbe-text-leise);
}

.bereich__pfeil {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  color: var(--farbe-akzent);
}

/* Platz für den Pfeil freihalten (Peter, 10.11.2026: lag auf „Tages,“). Pfeil 22 px breit,
   18 px vom Kartenrand; die Karte hat 10 px Innenabstand, also 30 px plus 10 px Luft. */
.bereich__text {
  padding-right: 40px;
}

/* Hauptbereich auf Mobil groß, mit Bild oben */
.bereich--haupt {
  grid-template-columns: minmax(0, 1fr);
  padding: 10px 10px 20px;
}

.bereich--haupt .bereich__bild {
  aspect-ratio: 3 / 2;
}

.bereich--haupt .bereich__text {
  padding-inline: 10px 40px;
}

.bereich--haupt .bereich__name {
  font-size: 2.25rem;
}

.bereich--haupt .bereich__pfeil {
  top: auto;
  bottom: 26px;
  transform: none;
}

@media (min-width: 768px) {
  .bereiche__liste {
    grid-template-columns: 3fr 2fr;
    grid-template-rows: auto auto;
  }

  .bereiche__liste > :first-child {
    grid-row: 1 / span 2;
  }

  .bereich--haupt {
    height: 100%;
    grid-template-rows: 1fr auto;
  }

  .bereich--haupt .bereich__bild {
    aspect-ratio: auto;
    min-height: 280px;
  }

  .bereich:not(.bereich--haupt) {
    grid-template-columns: 140px minmax(0, 1fr);
    height: 100%;
  }
}

.alles-ansehen {
  margin-top: 28px;
}

/* ---------- aus 03-fotostrecke.html ---------- */
.strecke-kopf {
  padding-top: 40px;
}

.strecke-kopf__paar {
  display: block;
  font-size: 1.375rem;
  color: var(--farbe-text-leise);
}

.strecke-kopf h1 {
  margin-top: 6px;
  font-size: clamp(3rem, 13vw, 7rem);
}

.strecke-kopf .einleitung {
  margin-top: 16px;
}

.kapitel {
  margin-top: var(--abstand-abschnitt);
}

.kapitel__kopf {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kapitel__kopf h2 {
  font-size: clamp(2.5rem, 10vw, 5rem);
}

.kapitel__kopf::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--farbe-akzent);
}

.kapitel > .doppelseite:first-of-type {
  margin-top: 40px;
}

.strecke-ende {
  margin-top: var(--abstand-abschnitt);
  text-align: center;
}

.strecke-ende p {
  font-size: 1.5rem;
}

.strecke-ende .knopf {
  margin-top: 20px;
}

/* ---------- aus 04-lightbox.html ---------- */
body.buehne {
  background: var(--farbe-buehne);
  color: var(--farbe-hintergrund);
}

.lb {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
}

.lb-oben,
.lb-unten {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--rand);
}

.lb-titel {
  min-width: 0;
  line-height: 1.2;
}

.lb-titel h1 {
  font-family: var(--schrift-akzent);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
}

.lb-zaehler {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.lb-werkzeug {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rund {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 0;
  border-radius: var(--radius-knopf);
  background: var(--creme-zart);
  color: var(--farbe-hintergrund);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--dauer-druck) var(--ease-out),
    background-color var(--dauer-druck) ease;
}

.rund svg {
  width: 22px;
  height: 22px;
}

.rund:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .rund:hover {
    background: var(--farbe-hintergrund);
    color: var(--farbe-buehne);
  }
}

.lb-laden__text {
  display: none;
}

.lb-mitte {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding-inline: var(--rand);
}

.lb-bild {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-bild);
  opacity: 1;
  transition: opacity 180ms ease;
}

/* Schwarzweiß in der Großansicht und Diashow (seit 0.1.14, Peter 11.11.2026): derselbe weiße Rand wie
   in der Fotostrecke, mit feiner Kante und weichem Schatten wie ein Abzug. Das Foto bleibt ganz
   (object-fit: contain im Innenraum), die Klasse setzt galerie.js beim Blättern um. */
.lb-bild--sw {
  padding: clamp(10px, 2.2vmin, 26px);
  background: var(--farbe-weiss);
  box-shadow: inset 0 0 0 1px rgba(64, 52, 40, 0.16), 0 10px 28px -14px rgba(64, 52, 40, 0.35);
}

.lb-bild.ist-weg {
  opacity: 0;
}

.laeuft .lb-bild {
  transition-duration: 420ms;
}

.lb-pfeil {
  display: none;
}

.lb-unten {
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 20px;
}

.lb-steuerung {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.lb-diashow {
  background: var(--farbe-hintergrund);
  color: var(--farbe-text);
  min-width: 190px;
}

.lb-diashow .icon-pause,
.laeuft .lb-diashow .icon-play {
  display: none;
}

.laeuft .lb-diashow .icon-pause {
  display: block;
}

.lb-wischen {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--farbe-hintergrund);
  opacity: 0.85;
}

.lb-wischen svg {
  width: 18px;
  height: 18px;
}

.lb-bewegung {
  width: 100%;
  max-width: 34em;
  text-align: center;
  font-size: 0.875rem;
}

.lb-bewegung[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .lb-laden__text {
    display: inline;
  }

  .lb-laden.rund {
    width: auto;
    padding-inline: 18px 20px;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
  }

  .lb-mitte {
    padding-inline: 96px;
  }

  .lb-pfeil {
    display: inline-flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
  }

  .lb-pfeil:active {
    transform: translateY(-50%) scale(0.94);
  }

  .lb-pfeil--zurueck {
    left: 24px;
  }

  .lb-pfeil--weiter {
    right: 24px;
  }

  .lb-unten .lb-nur-mobil {
    display: none;
  }

  .lb-wischen {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lb-bild,
  .laeuft .lb-bild {
    transition: none;
  }
}

/* ---------- aus 05-fotobox.html ---------- */
.fotobox-kopf {
  padding-top: 40px;
  margin-bottom: 40px;
}

.fotobox-kopf__paar {
  display: block;
  font-size: 1.375rem;
  color: var(--farbe-text-leise);
}

.fotobox-kopf h1 {
  margin-top: 6px;
  font-size: clamp(3rem, 13vw, 7rem);
}

.fotobox-kopf .einleitung {
  margin-top: 16px;
}

.fotobox-anzahl {
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--farbe-text-leise);
  font-variant-numeric: tabular-nums;
}

/* Erklärkasten „Warum sieht das hier anders aus …“ entfernt (Peter, 10.11.2026: überflüssig),
   damit auch die zweite Spalte des Kopfs. */
@media (min-width: 1024px) {
  .fotobox-kopf {
    margin-bottom: 56px;
  }
}

/* Anmeldung: Fußzeile liegt ab Tablet unten im Bild, damit die Seite genau einen Bildschirm hoch bleibt und nicht scrollt. */
@media (min-width: 768px) {
  .anmeldung-seite {
    min-height: 100dvh;
    grid-template-rows: minmax(100dvh, auto);
  }

  .anmeldung-haupt {
    padding-block: 96px 88px;
  }

  /* Bild füllt die Fläche, bestimmt aber nicht die Höhe (sonst wird die Seite so hoch wie das Foto). */
  .anmeldung-bild > img {
    position: absolute;
    inset: 0;
  }

  .fuss--anmeldung {
    grid-area: stapel;
    align-self: end;
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-block: 0 24px;
    box-shadow: none;
    color: var(--farbe-hintergrund);
    text-shadow: 0 1px 8px rgb(0 0 0 / 0.45);
  }

  .fuss--anmeldung a {
    color: inherit;
  }
}


/* Anmeldung: leicht bewegte Ballons als stumme Schleife über dem Foto, gleicher Ausschnitt wie das Foto. */
.anmeldung-video {
  display: none;
}

@media (min-width: 768px) {
  .anmeldung-video {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
  }

  .anmeldung-video.ist-bereit {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anmeldung-video {
    display: none;
  }
}


/* Anmeldung: Logo (Signatur, weiß) statt Schriftmarke oben links. */
.anmeldung-logo img {
  display: block;
  width: 150px;
  height: auto;
  filter: drop-shadow(0 1px 6px rgb(0 0 0 / 0.35));
}

@media (min-width: 768px) {
  .anmeldung-logo img {
    width: 200px;
  }
}
