/* ==========================================================================
   Imaginaerium Festival — Stylesheet
   Reines HTML/CSS, kein Framework, kein Build-Schritt.
   ========================================================================== */

:root {
  --color-bg: #10142b;
  --color-bg-alt: #161a37;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-surface-border: rgba(255, 255, 255, 0.18);
  --color-text: #f2f1f8;
  --color-text-muted: #c3c3d6;
  --color-accent: #c9a86a;
  --color-accent-hover: #e0c088;
  --color-link: #dcd2ff;
  --font-display: "Scheherazade New", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1100px;
  --container-narrow: 760px;
  --radius: 10px;
}

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

/* Grundfarbe an html (wie das Inline-<style> im Layout), NICHT an body:
   body würde sonst seine Fläche über die Bild-Ebene html::before malen.
   #1c1d27 = Farbton der (abgedunkelten) Bildränder: Safari füllt
   Statusleiste und Leistenbereich am iPhone einfarbig mit dieser Farbe
   (dort kann eine Webseite kein Bild zeichnen, safe-area = 0) — so gibt es
   keine sichtbare Kante zum Bild. #11132a = Dunkelblau des Bildes nach
   der Abdunklung (Bildmitte #242c4c unter dem Verlauf, s. html::before);
   auf Touch-Geräten läuft das Bild oben/unten weich in diese Farbe aus. */
html { scroll-behavior: smooth; background-color: #11132a; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  position: relative;
}

/* Leichtgewichtiger CSS-only Sternenhimmel statt particles.js (~90 KB JS gespart) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 10%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 30% 55%, #fff 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 75%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 90% 60%, #fff 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 85%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 15% 90%, #fff 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 35%, #fff 100%, transparent 100%);
  background-repeat: repeat;
  background-size: 600px 600px;
  opacity: 0.5;
  animation: twinkle 6s ease-in-out infinite alternate;
}

/* Zweite, feinere Sternenschicht: kleinere Punkte, eigener Zeittakt, damit
   nicht der gesamte Himmel synchron pulsiert, sondern einzelne Sterne
   funkeln. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(0.75px 0.75px at 5% 40%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 25% 15%, #fff 100%, transparent 100%),
    radial-gradient(0.75px 0.75px at 40% 80%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 55% 30%, #fff 100%, transparent 100%),
    radial-gradient(0.75px 0.75px at 65% 65%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 78% 50%, #fff 100%, transparent 100%),
    radial-gradient(0.75px 0.75px at 88% 85%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 95% 25%, #fff 100%, transparent 100%),
    radial-gradient(0.75px 0.75px at 20% 95%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 48% 5%, #fff 100%, transparent 100%);
  background-repeat: repeat;
  background-size: 420px 420px;
  opacity: 0.3;
  animation: twinkle 3.4s ease-in-out infinite alternate;
  animation-delay: -1.7s;
}

@keyframes twinkle {
  from { opacity: 0.3; }
  to { opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* Hintergrundbild als feste Ebene in Bildschirmgröße statt
   background-attachment: fixed — das ignoriert iOS, dort wurde das Bild
   bisher auf die ganze Seitenlänge gestreckt (stark vergrößert, unscharf)
   und sprang beim Wechsel zwischen unterschiedlich langen Seiten (z. B.
   DE/EN). 100lvh: Höhe bei eingeklappter Adressleiste, damit das Bild beim
   Scrollen nicht nachskaliert. Desktop zeigt den oberen Rahmen, das Handy
   (hochkant wie das Bild) oben und unten die Ornament-Ecken. */
html::before {
  content: "";
  position: fixed;
  /* Um die Safe Areas (Dynamic Island, Home-Leiste) größer, damit auch dort
     Bild statt Grundfarbe zu sehen ist — Werte liefert das Gerät selbst. */
  /* Je 10px Überstand oben/unten: bg.webp hat oben/unten einen ~7px
     fast schwarzen Rand, der sonst als dunkle Linie an der Kante zur
     Safari-Leiste zu sehen ist. */
  top: calc(-10px - env(safe-area-inset-top, 0px));
  left: 0;
  width: 100%;
  height: calc(100vh + 20px + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px));
  height: calc(100lvh + 20px + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px));
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(8, 10, 24, 0.72), rgba(8, 10, 24, 0.82)),
    url("../img/bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}
@media (orientation: portrait) {
  html::before {
    background-position: center center;
    background-image:
      linear-gradient(rgba(8, 10, 24, 0.62), rgba(8, 10, 24, 0.74)),
      url("../img/bg.webp");
  }
}
/* Handy/Tablet: Safari zeichnet Statusleiste und Leistenbereich selbst,
   einfarbig in #11132a (theme-color/html). Das Bild läuft oben und unten
   weich in genau dieses Blau aus, statt hart an der Leiste zu enden
   (Nutzerwunsch). Desktop hat keine Leisten und bleibt unverändert. */
@media (hover: none) and (pointer: coarse) {
  html::before {
    background-image:
      /* Volles Blau erst ab dem sichtbaren Rand (Ebene ragt 10px über). */
      linear-gradient(to bottom,
        #11132a 0,
        #11132a 12px,
        rgba(17, 19, 42, 0) 120px,
        rgba(17, 19, 42, 0) calc(100% - 150px),
        #11132a calc(100% - 12px),
        #11132a 100%),
      linear-gradient(rgba(8, 10, 24, 0.62), rgba(8, 10, 24, 0.74)),
      url("../img/bg.webp");
  }
}

/* Seitenwechsel (z. B. DE/EN): Browser hält die alte Seite stehen, bis
   die neue fertig gezeichnet ist (Chrome, Safari ab 18.2) — kein weißes
   Aufblitzen. Bewusst OHNE Überblenden: beim Crossfade schien das
   Hintergrundbild der neuen Seite kurz über den Menü-Knopf der alten. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

main { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.4rem, 2vw + 1rem, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--color-link); }
a:hover, a:focus-visible { color: var(--color-accent-hover); }

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container--narrow { max-width: var(--container-narrow); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-accent);
  color: #10142b;
  padding: 0.6em 1em;
  border-radius: var(--radius);
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* --- Header / Navigation --------------------------------------------- */

.site-header {
  position: relative;
  z-index: 20;
  /* Eigene Ebene über dem Hintergrund: Safari berechnet sonst beim Laden
     den Unschärfe-Effekt des Menü-Kastens (backdrop-filter) neu, sobald die
     Bild-Ebene fertig ist — das Bild „flackerte“ kurz vor dem Menü-Knopf. */
  isolation: isolate;
  transform: translateZ(0);
  padding: 1rem 1.25rem;
  /* viewport-fit=cover: unter Statusleiste/Dynamic Island wegrücken. */
  padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  padding-left: calc(1.25rem + env(safe-area-inset-left, 0px));
  padding-right: calc(1.25rem + env(safe-area-inset-right, 0px));
  /* Raster statt absolut positioniertem Sprachschalter: Menü in der Mitte,
     Sprachschalter rechts in eigener Spalte — vorher lag „DE / EN“ über
     dem Menü, sobald es breit war (Desktop) oder aufgeklappt (Handy).
     Links bleibt genauso viel Platz frei wie rechts für den Schalter,
     damit das Menü genau in der Seitenmitte steht. */
  --lang-switch-width: 5rem;
  display: grid;
  grid-template-columns: minmax(var(--lang-switch-width), 1fr) auto minmax(var(--lang-switch-width), 1fr);
  column-gap: 0.75rem;
  align-items: start;
}

.lang-switch {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  /* Feste Breite = freigehaltener Platz links (--lang-switch-width). */
  width: var(--lang-switch-width);
  justify-content: center;
  z-index: 1;
  /* Auf Höhe des Menü-Inhalts (Innenabstand der Menü-Box). */
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  /* Ohne backdrop-filter: Safari zeichnete den Unschärfe-Effekt auf dem
     iPhone verzögert — der Hintergrund erschien vor dem Menü-Knopf.
     Stattdessen etwas deckenderer Hintergrund. */
  background: rgba(16, 19, 41, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.2rem;
}

.nav {
  grid-column: 2;
  grid-row: 1;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  /* Ohne backdrop-filter, wie beim Sprachschalter (s. dort). */
  background: rgba(16, 19, 41, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  /* Filigraner (Nutzerwunsch 2026-10-08): wenig Innenabstand, kleinere,
     leichtere Schrift — bricht die Leiste um, wirkt sie sonst klobig. */
  padding: 0.3rem 0.4rem;
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-switch__link {
  display: inline-block;
  min-width: 2.2em;
  text-align: center;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text-muted);
}

.lang-switch__link:hover,
.lang-switch__link:focus-visible {
  color: var(--color-text);
}

.lang-switch__link.is-active {
  background: var(--color-accent);
  color: #1a1330;
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-surface-border);
  border-radius: 6px;
  color: var(--color-text);
  font-size: 1rem;
  padding: 0.4em 0.7em;
  cursor: pointer;
}

.nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.1rem;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav__list a {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.35em 0.75em;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.nav__list a:hover,
.nav__list a:focus-visible,
.nav__list a[aria-current="page"] {
  background: rgba(201, 168, 106, 0.18);
  color: var(--color-accent-hover);
}

@media (max-width: 640px) {
  .site-header { column-gap: 0.5rem; }
  /* Aufgeklappt braucht die Liste Platz: das Menü nimmt dann die ganze
     Breite ein, der Sprachschalter bleibt rechts in der Knopf-Zeile
     (darüber gelegt, die Liste beginnt erst darunter). */
  .nav.is-open { grid-column: 1 / -1; width: auto; }
  .site-header:has(.nav.is-open) .lang-switch { margin-right: 0.5rem; }
  .nav__toggle { display: inline-flex; align-items: center; gap: 0.4em; }
  .nav__list {
    flex-direction: column;
    justify-content: flex-start;
    display: none;
  }
  .nav__list.is-open { display: flex; margin-top: 0.4rem; }
  /* Aufgeklappt am Handy: größere Tippflächen. */
  .nav__list a { font-size: 1rem; padding: 0.65em 0.9em; }
}

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

.hero {
  text-align: center;
  padding: 3.5rem 1.25rem 2rem;
}

.hero__logo {
  width: 380px;
  height: 380px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fbf9f4 0%, #fbf9f4 78%, #f1ead9 100%);
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(201, 168, 106, 0.55),
    0 0 80px 20px rgba(201, 168, 106, 0.4),
    0 0 170px 55px rgba(201, 168, 106, 0.25),
    0 0 280px 100px rgba(201, 168, 106, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.55);
}

@media (max-width: 560px) {
  .hero__logo { width: 240px; height: 240px; }
}

.hero__dates {
  display: inline-block;
  background: var(--color-accent);
  color: #1a1330;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  padding: 0.45em 1.2em;
  border-radius: 999px;
  margin: 0 0 1.25rem;
  box-shadow: 0 8px 24px rgba(201, 168, 106, 0.3);
}

.hero__actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.hero__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

/* --- Verfügbarkeits-Banner ("Nur noch X Plätze/Karten verfügbar!") ------ */

.urgency-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: rgba(255, 107, 94, 0.14);
  border: 1px solid rgba(255, 107, 94, 0.5);
  color: #ff6b5e;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  margin: 0;
}

.urgency-banner__count {
  font-variant-numeric: tabular-nums;
}

.urgency-banner[hidden] {
  display: none;
}

/* --- Early-Bird-Banner ("Jetzt Early Bird ... sichern!") — bewusst positiv/einladend statt alarmierend rot */

.early-bird-banner {
  display: inline-flex;
  align-items: center;
  background: rgba(201, 168, 106, 0.16);
  border: 1px solid rgba(201, 168, 106, 0.55);
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  margin: 0;
}

.early-bird-banner[hidden] {
  display: none;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1px solid var(--color-accent);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: #1a1330;
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--color-accent-hover);
  color: #1a1330;
  transform: translateY(-1px);
}

.btn--lg {
  font-size: 1.15em;
  padding: 1em 2.2em;
}

.btn--secondary {
  background: transparent;
  color: var(--color-accent);
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  background: rgba(201, 168, 106, 0.15);
  color: var(--color-accent-hover);
}

/* --- Sections / cards ---------------------------------------------------- */

.section { padding: 2.5rem 1.25rem; }
.section--tight { padding: 1.5rem 1.25rem; }

.section__heading { text-align: center; margin-bottom: 1.75rem; }

/* Leermeldung für noch unbefüllte Ausgaben (lang/de/pages.php bzw.
   lang/en/pages.php, je Sektion ein eigener Text). grid-column: 1/-1 spannt
   in .grid/.schedule/.locations-grid
   (display:grid) über die ganze Zeile statt nur die erste Spalte — ohne das
   stünde der Text trotz text-align:center nicht mittig auf der Seite. In
   nicht-Grid-Kontexten (z. B. pages/trainer.blade.php) wirkungslos, aber
   unschädlich. */
.section-empty { grid-column: 1 / -1; text-align: center; color: var(--color-text-muted); padding: 1.5rem 0; }

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.card--link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card--link:hover, .card--link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--color-accent);
}

.card__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.pricing {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.pricing dt { color: var(--color-text-muted); margin-bottom: 0.25em; }
.pricing dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-accent);
}

/* --- Trainer bios --------------------------------------------------------- */

.trainer {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 1.75rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-surface-border);
}
.trainer:last-child { border-bottom: none; }

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

@media (max-width: 560px) {
  .trainer { grid-template-columns: 1fr; text-align: center; }
  .trainer__photo { max-width: 260px; margin-inline: auto; }
}

/* --- Workshop schedule ------------------------------------------------- */

.schedule {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.schedule__day h3 {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-surface-border);
  padding-bottom: 0.4em;
}

.schedule__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25em 1em;
  padding: 0.9em 0;
  border-bottom: 1px dashed var(--color-surface-border);
}
.schedule__item:last-child { border-bottom: none; }

.schedule__time {
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.schedule__level {
  display: inline-block;
  margin-top: 0.4em;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-surface-border);
  border-radius: 999px;
  padding: 0.15em 0.7em;
}

.workshop-detail {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-surface-border);
}
.workshop-detail:last-child { border-bottom: none; }
.workshop-detail__trainer { color: var(--color-accent); font-weight: 700; margin-bottom: 0.2em; }
.workshop-detail__title { margin-bottom: 0.5em; }

.workshop-detail__photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1em;
}

/* --- Locations ----------------------------------------------------------- */

.locations-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.location-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}

.location-card__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1em;
}

.location-card h2 {
  margin-top: 0;
  margin-bottom: 0.75em;
}

.location-card__address {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5em;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1em;
}

.location-card__address-icon { flex-shrink: 0; }
.location-card .map-link-group { justify-content: center; }

.location-card__description {
  margin-bottom: 1.25em;
}
.location-card__description:last-of-type { margin-bottom: 1.5em; }

/* --- Map link (leichtgewichtig statt eingebettetem iframe) -------------- */

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius);
  padding: 0.65em 1em;
  text-decoration: none;
  color: var(--color-text);
  max-width: 100%;
}
.map-link:hover, .map-link:focus-visible { border-color: var(--color-accent); }
.map-link__kicker { color: var(--color-accent); font-weight: 700; font-size: 0.85rem; margin: 1.5em 0 0.5em; }
.map-link__icon { font-size: 1.1rem; }
.map-link__label { font-weight: 700; font-size: 0.9rem; display: block; }
.map-link__sub { color: var(--color-text-muted); font-size: 0.78rem; }

/* Google-/Apple-Maps-Link nebeneinander, etwas kompakter als der Basis-Stil */
.map-link-group { display: inline-flex; flex-wrap: wrap; gap: 0.5em; margin: 0.5em 0 1em; }
.map-link-group__venue { font-weight: 700; margin: 1em 0 0.3em; }
.map-link-group__address { color: var(--color-text-muted); font-size: 0.9rem; margin: 0 0 0.5em; }
.map-link--sm { padding: 0.4em 0.75em; gap: 0.4em; }
.map-link--sm .map-link__icon { font-size: 0.95rem; }
.map-link--sm .map-link__label { font-size: 0.8rem; font-weight: 600; }
.show-date { margin-top: 1.5em; }

/* --- Forms --------------------------------------------------------------- */

.form { max-width: var(--container-narrow); margin-inline: auto; }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4em;
}
.field__hint {
  display: block;
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 0.2em;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea {
  width: 100%;
  font: inherit;
  color: #16182f;
  background: #fbfaf7;
  border: 1px solid var(--color-surface-border);
  border-radius: 6px;
  padding: 0.7em 0.8em;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.field-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.field legend {
  font-weight: 700;
  margin-bottom: 0.4em;
  padding: 0;
}
.field fieldset .checkbox-field { margin-bottom: 0.6rem; }

.workshop-day-heading {
  font-weight: 700;
  margin: 1.2rem 0 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--color-surface-border);
}
.workshop-day-heading:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.consent-group {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-surface-border);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  margin-bottom: 1rem;
}
.checkbox-field input {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  margin-top: 0.2em;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  font-weight: 700;
}
.form-status--success { color: #8fd19e; }
.form-status--error { color: #e5988f; }

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  text-align: center;
}
.contact-info a { color: var(--color-text); text-decoration: none; font-weight: 600; }
.contact-info a:hover { color: var(--color-accent-hover); }

/* --- Legal / long-form text pages (AGB, Impressum, Datenschutz) -------- */

.legal {
  max-width: var(--container-narrow);
  margin-inline: auto;
  text-align: left;
  font-size: 1.02rem;
}
.legal h1 { text-align: center; margin-bottom: 0.25em; }
.legal .legal__subtitle { text-align: center; color: var(--color-text-muted); margin-bottom: 2rem; }
.legal h2 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-accent);
  margin-top: 2em;
}
.legal h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin-top: 1.4em;
}
.legal p { margin-bottom: 1em; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2em; }
.legal .legal__meta {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-surface-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem 3rem;
  padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--color-text-muted);
}
.site-footer__links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.site-footer__links a { color: var(--color-text-muted); text-decoration: none; font-weight: 600; }
.site-footer__links a:hover { color: var(--color-accent-hover); }

/* --- Back to top ----------------------------------------------------------- */

.back-to-top {
  position: fixed;
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--color-surface-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.15s ease, border-color 0.15s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--color-accent);
  border-color: var(--color-accent);
  outline: none;
}

/* --- Utility -------------------------------------------------------------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Einleitung über der Galerie (pages/rueckblick.blade.php) */
.rueckblick-intro { margin: 0 auto; text-align: center; }

/* Fotogalerie + Großansicht (pages/rueckblick.blade.php, assets/js/gallery.js) */
.gallery {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery__item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-surface-border);
  background: var(--color-surface);
}
.gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.04); }
.gallery__item:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
@media (max-width: 520px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__item img { transition: none; }
}

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
}
.lightbox::backdrop { background: rgba(8, 10, 22, 0.94); }
.lightbox__figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: max(3.5rem, env(safe-area-inset-top)) 1rem max(1.5rem, env(safe-area-inset-bottom));
}
.lightbox__image {
  max-width: 100%;
  max-height: calc(100% - 2rem);
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__counter { color: var(--color-text-muted); font-size: 0.9rem; }
.lightbox__btn {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--color-surface-border);
  background: rgba(16, 19, 41, 0.72);
  color: var(--color-text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__btn:hover,
.lightbox__btn:focus-visible { border-color: var(--color-accent); color: var(--color-accent); }
.lightbox__btn--close { top: max(0.75rem, env(safe-area-inset-top)); right: 0.75rem; }
.lightbox__btn--prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 520px) {
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: max(0.75rem, env(safe-area-inset-bottom)); transform: none; }
}

/* Admin-Vorschau der versteckten Galerie (nur eingeloggte Admins) */
.preview-note {
  max-width: var(--container-narrow);
  margin: 0 auto 1.5rem;
  padding: 0.75em 1em;
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-accent);
  text-align: center;
  font-size: 0.92rem;
}
.gallery__item--hidden { position: relative; }
.gallery__item--hidden img { opacity: 0.45; }
.gallery__item--hidden::after {
  content: "Versteckt";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  background: rgba(16, 19, 41, 0.85);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
}
