/* Chalet Murmeli – gemeinsames Stylesheet für alle Sprachversionen
   Design-Richtung: edel, schlicht – ruhige Neutraltöne, ein dezenter Akzent, viel Weissraum. */

:root {
  --color-bg: #f2ecdd;
  --color-bg-alt: #eae2d0;
  --color-surface: #ffffff;
  --color-text: #23221f;
  --color-text-muted: #726d63;
  --color-accent: #4b5a45;
  --color-accent-dark: #384330;
  --color-border: #e1dccf;

  --color-footer-bg: #1d1c19;
  --color-footer-text: #d9d5c9;
  --color-footer-text-muted: #9c968a;

  --font-heading: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1100px;
  --measure: 620px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Navigation */

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

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
}

/* Logo-Signet (Murmeli im Bogen) neben dem Schriftzug */
.nav-brand-mark {
  display: block;
  height: 38px;
  width: auto;
  transition: transform 0.25s ease;
}

.nav-brand:hover .nav-brand-mark {
  transform: translateY(-1px) scale(1.03);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1.1rem;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-links a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.lang-switch {
  display: flex;
  gap: 10px;
  margin-left: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--color-border);
}

.lang-switch a {
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 2px 0;
  color: var(--color-text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.lang-switch a[aria-current="true"] {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

@media (max-width: 780px) {
  .nav-brand {
    font-size: 1.15rem;
    gap: 9px;
  }
  .nav-brand-mark {
    height: 30px;
  }
  .nav-toggle {
    display: inline-block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    display: none;
  }
  .nav-links.is-open {
    display: flex;
  }
  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
}

/* Hero */

.hero {
  padding: 96px 0 80px;
  text-align: center;
}

.hero .container > * {
  animation: fadeInUp 0.9s ease both;
}

.hero .container > *:nth-child(2) {
  animation-delay: 0.1s;
}

.hero .container > *:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 18px;
}

.hero p {
  max-width: var(--measure);
  margin: 0 auto 32px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.hero-photo {
  margin-top: 40px;
}

/* Sections */

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--color-border);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

section:last-of-type {
  border-bottom: none;
}

/* Sanftes Einblenden beim Scrollen (per JS aktiviert, siehe main.js) */
section.reveal-init {
  opacity: 0;
  transform: translateY(18px);
}

section.reveal-init.is-visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.section-intro {
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: var(--measure);
}

/* Reine Text-Abschnitte (ohne Bild/Galerie/Tabelle/Formular) zentrieren,
   damit sie in der breiten Spalte nicht "linkslastig" wirken. */
section:not(.hero) > .container:not(:has(
  .gallery-grid,
  .price-table, .contact-grid, .map-embed
)) {
  text-align: center;
}

section:not(.hero) > .container:not(:has(
  .gallery-grid,
  .price-table, .contact-grid, .map-embed
)) .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.placeholder-note {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

/* Bild-Platzhalter (bis echte Fotos vorliegen) */

.photo-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}

.hero .photo-placeholder {
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

/* Echte Fotos (gleiche Bildfläche wie die Platzhalter)

   Welcher Teil eines Fotos zu sehen ist, wählen die Vermieter im Bearbeiten-Modus
   ("Ausschnitt wählen"). Gespeichert wird das als --ce-x/--ce-y (Ausschnitt) und
   --ce-zoom (Vergrösserung) am Foto bzw. an seinem Rahmen – siehe build.photo_tag. */

.photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--ce-x, 50%) var(--ce-y, 50%);
  border: 1px solid var(--color-border);
  transition: transform 0.5s ease;
}

.hero .photo,
.hero .photo-frame {
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  overflow: hidden;
}

.gallery-grid > .photo:hover {
  transform: scale(1.04);
}

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ausstattung */

.amenities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: var(--measure);
}

.amenities-grid li {
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.amenities-grid li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.amenities-grid li strong {
  display: block;
  color: var(--color-text);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Restaurant-Empfehlungen */

.restaurant-list {
  display: grid;
}

.restaurant {
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}

.restaurant:first-child {
  padding-top: 0;
}

.restaurant:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.restaurant h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}

.restaurant-location {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.restaurant p {
  color: var(--color-text-muted);
  max-width: var(--measure);
  margin: 8px auto 14px;
}

.restaurant-link,
.text-link {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: border-color 0.25s ease;
}

.restaurant-link:hover,
.text-link:hover {
  border-bottom-color: var(--color-accent);
}

.text-link + .text-link {
  margin-left: 20px;
}

/* Link-Zeile eines Abschnitts (wird im Bearbeiten-Modus gepflegt, siehe build.link_block) */

.ce-linkzeile {
  margin: 16px 0 0;
}

.ce-linkzeile:empty {
  display: none;
}

/* Preise */

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

/* Saisonspalte (zuerst) mit fester Breite, damit die Zeitraum-Spalte auch dann
   sichtbar daneben steht, wenn noch keine Daten eingetragen sind. */
.price-table th:first-child,
.price-table td:first-child {
  width: 42%;
}

/* Preisspalte (zuletzt) nur so breit wie nötig – die Saison- und Zeitraum-Spalten
   bekommen dadurch den Platz für mehrzeilige Angaben. */
.price-table th:last-child,
.price-table td:last-child {
  width: 1%;
  padding-right: 0;
  white-space: nowrap;
}

/* Hinweise unter der Preistabelle (Zusatzkosten, Storno …): volle Spaltenbreite,
   damit der Text nicht alle paar Wörter umbricht. */
.price-notes {
  max-width: none;
}

.price-table th {
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Karte (Lage) */

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--color-border);
}

/* Verfügbarkeitskalender */

.availability {
  margin-bottom: 48px;
}

.availability h3 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 18px;
}

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

.calendar-month h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.9rem;
  text-transform: capitalize;
  margin: 0 0 12px;
  color: var(--color-text-muted);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}

.calendar-weekday {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  padding-bottom: 6px;
}

.calendar-day {
  font-size: 0.82rem;
  padding: 7px 0;
}

.calendar-day.is-empty {
  visibility: hidden;
}

.calendar-day.is-past {
  color: var(--color-border);
}

.calendar-day.is-free {
  color: var(--color-text);
}

.calendar-day.is-booked {
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  text-decoration: line-through;
  text-decoration-color: var(--color-border);
}

.calendar-legend {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.calendar-legend .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}

.calendar-legend .dot-free {
  background: var(--color-accent);
}

.calendar-legend .dot-booked {
  background: var(--color-border);
  margin-left: 16px;
}

/* Kontaktformular */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

@media (max-width: 780px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info dt {
  font-weight: 400;
  margin-top: 18px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  margin: 3px 0 0;
}

form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--color-text-muted);
}

input,
textarea {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  color: var(--color-text);
}

.form-choice-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--color-text-muted);
}

.form-hint {
  text-transform: none;
  letter-spacing: normal;
}

.form-hint::before {
  content: "(";
}

.form-hint::after {
  content: ")";
}

.form-choice-options {
  display: flex;
  gap: 28px;
}

.form-choice label.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text);
  cursor: pointer;
}

.form-choice input[type="radio"] {
  width: auto;
  padding: 0;
  margin: 0;
  accent-color: var(--color-accent);
}

input:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

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

button,
.btn {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  justify-self: start;
  margin-top: 4px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

button:hover,
.btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Footer */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text-muted);
  padding: 40px 0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.site-footer a {
  color: var(--color-footer-text);
}

/* Vollständiges Logo über der Fusszeile */
.footer-logo {
  display: block;
  width: 230px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 22px;
  opacity: 0.92;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ==================================================================
   Gestaltung durch die Vermieter (Bearbeiten-Modus)
   Diese Klassen setzt build.py aus "<abschnitt>.stil" in den Inhaltsdateien.
   Die Auswahl ist bewusst klein gehalten, damit das Design stimmig bleibt
   (Tabellen: build.STYLE_CLASSES / IMAGE_SIZES / GALLERY_SIZES / GALLERY_MODES).
   ================================================================== */

/* Ausrichtung – überschreibt bewusst die automatische Zentrierung weiter oben */
section.ce-links > .container { text-align: left !important; }
section.ce-zentriert > .container { text-align: center !important; }
section.ce-rechts > .container { text-align: right !important; }

section.ce-links > .container .section-intro { margin-left: 0; margin-right: 0; }
section.ce-zentriert > .container .section-intro { margin-left: auto; margin-right: auto; }
section.ce-rechts > .container .section-intro { margin-left: auto; margin-right: 0; }

/* Bilder sind Blockelemente – text-align wirkt dort nicht, darum über die Ränder */
section.ce-links > .container > .photo,
section.ce-links > .container > .photo-frame,
section.ce-links > .container > .photo-placeholder { margin-left: 0; margin-right: auto; }
section.ce-zentriert > .container > .photo,
section.ce-zentriert > .container > .photo-frame,
section.ce-zentriert > .container > .photo-placeholder { margin-left: auto; margin-right: auto; }
section.ce-rechts > .container > .photo,
section.ce-rechts > .container > .photo-frame,
section.ce-rechts > .container > .photo-placeholder { margin-left: auto; margin-right: 0; }

/* Textgrösse (Absätze und Aufzählungen, Überschriften bleiben unverändert) */
section.ce-text-s > .container p, section.ce-text-s > .container li { font-size: 0.92rem; }
section.ce-text-l > .container p, section.ce-text-l > .container li { font-size: 1.1rem; }
section.ce-text-xl > .container p, section.ce-text-xl > .container li { font-size: 1.25rem; }

/* Schrift – nur die zwei Schriften, die das Design ohnehin verwendet */
section.ce-schrift-serif > .container { font-family: var(--font-heading); }
section.ce-schrift-sans > .container,
section.ce-schrift-sans > .container h1,
section.ce-schrift-sans > .container h2,
section.ce-schrift-sans > .container h3 { font-family: var(--font-body); }

/* Grösse eines einzelnen Bildes */
.photo.ce-bild-s, .photo-frame.ce-bild-s, .photo-placeholder.ce-bild-s { max-width: 320px; margin-left: auto; margin-right: auto; }
.photo.ce-bild-m, .photo-frame.ce-bild-m, .photo-placeholder.ce-bild-m { max-width: 620px; margin-left: auto; margin-right: auto; }
.photo.ce-bild-voll, .photo-frame.ce-bild-voll, .photo-placeholder.ce-bild-voll { max-width: none; aspect-ratio: 16 / 7; }

/* Zusätzliche Bilder, die in jedem Abschnitt eingefügt werden können.
   Ohne Fotos ist der Block leer und damit unsichtbar. */
.ce-bilder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  overflow: hidden;
  margin-top: 28px;
}

.ce-bilder:empty { display: none; }

.ce-bilder > .photo:hover { transform: scale(1.04); }

/* Bilder pro Reihe (Galerien und Bild-Blöcke) */
.gallery-grid.ce-gal-4, .ce-bilder.ce-gal-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid.ce-gal-2, .ce-bilder.ce-gal-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.ce-gal-1, .ce-bilder.ce-gal-1 { grid-template-columns: 1fr; }

/* Darstellungsart: untereinander gross statt im Raster */
.gallery-grid.ce-gal-einzeln, .ce-bilder.ce-gal-einzeln {
  grid-template-columns: 1fr;
  gap: 28px;
}

.gallery-grid.ce-gal-einzeln .photo, .ce-bilder.ce-gal-einzeln .photo,
.gallery-grid.ce-gal-einzeln .photo-frame, .ce-bilder.ce-gal-einzeln .photo-frame { aspect-ratio: 16 / 9; }

/* Darstellungsart: zum Durchklicken (Lightbox, siehe assets/js/main.js) */
.ce-gal-klick .photo { cursor: zoom-in; }

@media (max-width: 700px) {
  .gallery-grid.ce-gal-4, .ce-bilder.ce-gal-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.ce-gal-2, .ce-bilder.ce-gal-2,
  .gallery-grid.ce-gal-1, .ce-bilder.ce-gal-1 { grid-template-columns: 1fr; }
}

/* Ausschnitt eines Fotos: ganzes Bild zeigen statt auf die Bildfläche zuschneiden */
.photo.ce-foto-ganz { object-fit: contain; background: var(--color-bg-alt); }

/* Vergrösserte Fotos stecken in einem Rahmen, der den Ausschnitt beschneidet.
   Der Rahmen übernimmt die Bildfläche (Seitenverhältnis, Grösse, Rand) des Fotos. */
.photo-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.photo-frame > .photo {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  max-width: none;
  margin: 0;
  border: none;
  transform: scale(var(--ce-zoom, 1));
  transform-origin: var(--ce-x, 50%) var(--ce-y, 50%);
}

.gallery-grid > .photo-frame:hover > .photo,
.ce-bilder > .photo-frame:hover > .photo { transform: scale(calc(var(--ce-zoom, 1) * 1.04)); }

/* Selbst angelegte Abschnitte und Aufzaehlungs-Bloecke */
.ce-liste {
  margin: 0 auto 8px;
  padding-left: 1.1em;
  max-width: var(--measure);
  text-align: left;
}

section.ce-zentriert .ce-liste { padding-left: 0; list-style-position: inside; text-align: center; }
section.ce-rechts .ce-liste { padding-left: 0; list-style-position: inside; text-align: right; }

/* Bloecke, die die Vermieter selbst in einen Abschnitt einfuegen
   (Untertitel, Absatz, Aufzaehlung, Eintrag, Bilder - siehe build.render_blocks) */

.ce-bloecke:empty { display: none; }

.ce-untertitel {
  font-size: 1.15rem;
  margin: 32px 0 10px;
}

.ce-bloecke > .section-intro:last-child { margin-bottom: 0; }

/* Die Link-Zeile eines Eintrags sitzt dort, wo frueher der feste Restaurant-Link stand */
.restaurant .ce-linkzeile {
  margin: 0;
  max-width: none;
}

/* Ort eines Eintrags: ohne Angabe unsichtbar, beim Bearbeiten trotzdem anklickbar */
.restaurant-location:has(> [data-edit-id]:empty) { display: none; }
body.ce-on .restaurant-location:has(> [data-edit-id]:empty) { display: inline; }

/* Grossansicht (Lightbox) */
.ce-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(20, 20, 18, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ce-lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: none;
}

.ce-lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-footer-text);
  font-size: 2rem;
  line-height: 1;
  padding: 14px 20px;
  cursor: pointer;
}

.ce-lightbox button:hover { color: #fff; }
.ce-lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.ce-lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.ce-lb-close { top: 6px; right: 10px; font-size: 1.7rem; }

.ce-lb-count {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--color-footer-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* Animationen für Personen deaktivieren, die reduzierte Bewegung bevorzugen */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Datumswahl im Anfrageformular (eigener Kalender statt Browser-Datumsfeld,
   damit belegte Tage gar nicht anklickbar sind - siehe assets/js/calendar.js) */

/* Freie Tage sind jetzt Knoepfe: Die Knopf-Gestaltung der Seite zuruecksetzen. */
button.calendar-day,
.dp-nav,
.dp-loeschen {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  margin: 0;
  border-radius: var(--radius);
  box-shadow: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

button.calendar-day {
  padding: 7px 0;
}

button.calendar-day:hover,
button.calendar-day:focus-visible {
  background: var(--color-accent);
  color: var(--color-bg);
  transform: none;
  box-shadow: none;
}

.calendar-day.is-booked,
.calendar-day.is-past {
  cursor: default;
}

.datumsfeld {
  cursor: pointer;
}

.form-row > div {
  position: relative;
}

.datepicker {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: 280px;
  max-width: calc(100vw - 48px);
  padding: 14px 16px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.dp-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dp-titel {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: capitalize;
}

.dp-nav {
  padding: 2px 10px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-text-muted);
}

.dp-nav:hover:not(:disabled) {
  color: var(--color-text);
  background: var(--color-bg-alt);
  transform: none;
  box-shadow: none;
}

.dp-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.dp-fuss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.dp-loeschen {
  padding: 2px 0;
  font-size: 0.72rem;
  text-decoration: underline;
  color: var(--color-text-muted);
}

.dp-loeschen:hover {
  color: var(--color-text);
  background: none;
  transform: none;
  box-shadow: none;
}

@media (max-width: 480px) {
  .datepicker {
    width: 100%;
  }
}

.dp-hinweis {
  margin: 10px 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}
