/* =========================================================================
   mFotobox – Stylesheet
   Farbwelt: die beiden Auslöser der Box, dunkelgrün und dunkelblau.
   Aufbau: 1. Grundlagen  2. Bausteine  3. Kopf/Fuß  4. Abschnitte  5. Druck
   ========================================================================= */

/* --- 1. Grundlagen ------------------------------------------------------ */

:root {
  /* Flächen */
  --ink: #070c0e;
  --ink-2: #0c1417;
  --panel-green: #081915;
  --panel-blue: #081522;

  /* Schrift */
  --text: #f1f5f4;
  --text-soft: #cbd6d5;
  --muted: #93a5a5;

  /* Die Knopffarben – tief für Flächen, hell für Text und Linien */
  --green-deep: #0d4c3d;
  --green: #17a67f;
  --green-bright: #4ee2b2;
  --blue-deep: #123a72;
  --blue: #2f7fe0;
  --blue-bright: #82bbff;

  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(255, 255, 255, 0.18);

  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --wrap: 71rem;
  --wrap-narrow: 46rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 1rem;
  --radius-lg: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--green-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--blue-bright); }

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

ul { margin: 0; padding: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--green-bright);
}

:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* --- 2. Bausteine ------------------------------------------------------- */

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -5rem;
  z-index: 20;
  padding: 0.75rem 1.2rem;
  border-radius: 0 0 0.75rem 0.75rem;
  background: var(--green-bright);
  color: #05201a;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease-in;
}

.skip-link:focus {
  top: 0;
  color: #05201a;
}

/* Verlaufstext für einzelne Wörter in Überschriften */
.grad {
  background: linear-gradient(96deg, var(--green-bright), var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 34em;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease,
    background-color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  transform: translateY(-2px);
}

.button--primary {
  background: var(--green);
  border-color: var(--green);
  color: #04211a;
  box-shadow: 0 0.6rem 1.6rem rgba(23, 166, 127, 0.28);
}

.button--primary:hover {
  background: var(--green-bright);
  border-color: var(--green-bright);
  color: #04211a;
}

/* Farbiges Feld hinter den Icons */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.85rem;
  background: rgba(23, 166, 127, 0.14);
  border: 1px solid rgba(78, 226, 178, 0.22);
  color: var(--green-bright);
  flex: none;
}

.chip--blue {
  background: rgba(47, 127, 224, 0.16);
  border-color: rgba(130, 187, 255, 0.24);
  color: var(--blue-bright);
}

.empty-note {
  padding: 1.4rem;
  border: 1px dashed var(--line-bright);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- 3. Kopf und Fuß ---------------------------------------------------- */

.site-header {
  background: rgba(7, 12, 14, 0.85);
  border-bottom: 1px solid var(--line);
}

/* Erst ab Tablet-Breite mitscrollen. Auf schmalen Geräten würde die
   zweizeilige Navigation sonst dauerhaft zu viel Platz wegnehmen. */
@media (min-width: 55rem) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(150%) blur(14px);
  }
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 0.9rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.wordmark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wordmark__name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wordmark__prefix { color: var(--green-bright); }

.wordmark__city {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

/* Auf schmalen Geräten steht die Navigation in einer waagerecht
   verschiebbaren Zeile statt in zwei Reihen. */
@media (max-width: 54.999rem) {
  .site-nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar { display: none; }

  .site-nav ul { flex-wrap: nowrap; }

  .site-nav a { white-space: nowrap; }
}

.site-footer {
  position: relative;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding-block: 2.5rem 3rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer__contact strong {
  color: var(--text);
  font-weight: 700;
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  list-style: none;
}

/* --- 4. Abschnitte ------------------------------------------------------ */

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  scroll-margin-top: 5rem;
}

.section--green { background: var(--panel-green); }
.section--blue { background: var(--panel-blue); }

.section__intro {
  text-wrap: balance;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
}

.section h2 { margin-bottom: 1.5rem; }

/* Kopfbereich mit farbigem Lichtschein */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3rem, 7vw, 5rem);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -25%;
  height: 150%;
  z-index: -1;
  background:
    radial-gradient(45% 55% at 18% 22%, rgba(23, 166, 127, 0.34), transparent 68%),
    radial-gradient(45% 55% at 78% 34%, rgba(47, 127, 224, 0.32), transparent 70%);
  pointer-events: none;
}

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

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

.hero__figure,
.section__split-figure {
  position: relative;
  margin: 0;
  padding: 0.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-bright);
  background: linear-gradient(150deg, rgba(23, 166, 127, 0.22), rgba(47, 127, 224, 0.22));
}

.hero__figure img,
.section__split-figure img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 0.5rem);
}

.hero__figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.section__split-figure img { aspect-ratio: 1 / 1; object-fit: cover; }

@media (min-width: 55rem) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
}

/* Zweispaltiger Textabschnitt */

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

.section__split-text p { color: var(--text-soft); }

@media (min-width: 55rem) {
  .section__split { grid-template-columns: 1.1fr 0.9fr; }
  .section__split-figure { order: -1; }
}

/* Anlässe */

.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.occasions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
}

.occasions li {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  font-weight: 600;
  background: rgba(23, 166, 127, 0.13);
  border: 1px solid rgba(78, 226, 178, 0.24);
  color: var(--green-bright);
}

/* Das Schlusswort der Aufzählung ist gefüllt statt nur getönt. */
.occasions .occasions__open {
  background: none;
  border-style: dashed;
  border-color: rgba(130, 187, 255, 0.55);
  color: var(--blue-bright);
}

/* Ausstattung */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem;
  list-style: none;
}

.fact {
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.fact:hover {
  transform: translateY(-3px);
  border-color: rgba(78, 226, 178, 0.4);
}

.fact:nth-child(even):hover { border-color: rgba(130, 187, 255, 0.4); }

.fact .chip { margin-bottom: 1.1rem; }

.fact__title { margin-bottom: 0.5rem; }

.fact__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Optionale Module */

/* Flexbox statt Raster: die Karten der letzten Zeile füllen die Breite aus,
   statt eine halb leere Rasterzeile zu hinterlassen. */
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
}

.option {
  position: relative;
  flex: 1 1 14rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.9rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid rgba(130, 187, 255, 0.18);
  background: linear-gradient(165deg, rgba(47, 127, 224, 0.16), rgba(47, 127, 224, 0.04));
}

.option__title { margin-bottom: 0.5rem; }

.option__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* Galerie */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.1rem;
  list-style: none;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery li:nth-child(odd) img:hover { border-color: rgba(78, 226, 178, 0.5); }
.gallery li:nth-child(even) img:hover { border-color: rgba(130, 187, 255, 0.5); }
.gallery img:hover { transform: scale(1.015); }

/* Lightbox

   Die Bilder der Galerie hängen in Links, die das Skript abfängt. Bewusst
   ohne transform: die Regel für reduzierte Bewegung weiter oben setzt
   transform: none !important und würde eine damit zentrierte Lightbox aus
   dem Bild schieben. */

.gallery a {
  display: block;
  border-radius: var(--radius);
}

dialog.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  outline: none;
}

dialog.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

dialog.lightbox::backdrop {
  background: rgba(4, 8, 10, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  touch-action: none;
}

.lightbox.is-loading .lightbox__img {
  visibility: hidden;
}

.lightbox__spinner {
  display: none;
  position: fixed;
  top: calc(50% - 1.25rem);
  left: calc(50% - 1.25rem);
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--line-bright);
  border-top-color: var(--green-bright);
  border-radius: 50%;
  animation: lightbox-spin 0.8s linear infinite;
}

.lightbox.is-loading .lightbox__spinner {
  display: block;
}

@keyframes lightbox-spin {
  to { rotate: 360deg; }
}

.lightbox button {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0 0.75rem;
  color: var(--text);
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  transition: opacity 0.2s ease;
}

.lightbox button:hover {
  opacity: 0.6;
}

.lightbox button[hidden] {
  display: none;
}

/* Der Schließen-Knopf liegt in derselben Ecke wie der Blätter-Pfeil
   nach rechts. Ohne z-index läge der Pfeil obenauf und würde die
   Berührung schlucken – auf dem Telefon wäre das X dann nutzlos. */
.lightbox__close {
  top: 0;
  right: 0;
  z-index: 1;
  width: 3.5rem;
  height: 3.5rem;
  font-size: 2.5rem;
}

/* Die Pfeile reichen über die volle Höhe – auf dem Telefon eine
   großzügige Fläche zum Blättern. */
.lightbox__prev,
.lightbox__next {
  top: 0;
  bottom: 0;
  font-size: 2.5rem;
}

.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }

@media (min-width: 40rem) {
  .lightbox__prev,
  .lightbox__next {
    font-size: 3.5rem;
    padding: 0 1.25rem;
  }
}

.lightbox__caption {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* Die Bildunterschrift liegt über dem unteren Ende der Blätter-Pfeile.
     Sie ist reine Beschriftung und darf die Berührung nicht abfangen. */
  pointer-events: none;
  margin: 0;
  padding: 0.7rem var(--gutter);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-soft);
  background: rgba(4, 8, 10, 0.8);
}

.lightbox__caption[hidden] {
  display: none;
}

/* FAQ */

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding-inline: 1.4rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq__item[open] {
  border-color: rgba(78, 226, 178, 0.32);
  background: rgba(23, 166, 127, 0.08);
}

.faq__item summary {
  position: relative;
  padding: 1.2rem 2.9rem 1.2rem 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary:hover { color: var(--green-bright); }

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(23, 166, 127, 0.16);
  color: var(--green-bright);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.faq__item[open] summary::after { content: "\2212"; }

.faq__answer {
  padding-bottom: 1.4rem;
  max-width: 60ch;
  color: var(--text-soft);
}

.faq__more {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Kontakt */

.section--contact { background: var(--panel-blue); }

.contact-panel {
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-bright);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(23, 166, 127, 0.22), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, rgba(47, 127, 224, 0.24), transparent 60%),
    rgba(255, 255, 255, 0.03);
}

.contact-list {
  margin-top: 2.25rem;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.1rem 1.1rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(7, 12, 14, 0.45);
}

.contact-list li > * { min-width: 0; }

.contact-list .chip { grid-row: span 2; }

.contact-list__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a,
.contact-list li > span:last-child {
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list li > span:last-child {
  color: var(--text-soft);
  font-weight: 400;
}

/* Rechtstexte */

.legal { padding-top: clamp(2.5rem, 6vw, 4rem); }

.legal .prose { color: var(--text-soft); }

.legal .prose h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.legal .prose h2 {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 1.55rem;
}

.legal .prose h3 {
  margin-top: 2rem;
  color: var(--green-bright);
}

.legal .prose ul {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
  list-style: disc;
}

.legal .prose li { margin-bottom: 0.3em; }

/* --- 5. Druck ----------------------------------------------------------- */

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .hero__actions, .skip-link { display: none; }
  a, .legal .prose, .legal .prose h3 { color: #000; }
}
