:root {
  /* Airbnb-artiges Design-System: großzügige Rundungen, weiche mehrstufige
     Schatten, warme neutrale Grautöne — statt Airbnbs Korallrot hier ein
     helles, freundliches Blau als Akzentfarbe. */
  --color-bg: #ffffff;
  --color-surface: #f4f6f8;
  --color-border: #dbe2e8;
  --color-text: #20242b;
  --color-text-muted: #64707c;
  /* Akzent für Text, Links und Knöpfe mit weißer Schrift: Kontrast 5,1:1 (WCAG AA).
     Das hellere Markenblau nur für Flächen ohne Text (Punkte, Balken, Karten-Pins). */
  --color-accent: #0070c4;
  --color-accent-dark: #005a9e;
  --color-accent-bright: #1e9dff;
  --color-accent-light: #eaf6ff;
  --color-success: #2f7a4d;
  --color-success-bg: #eaf5ee;
  --color-warning: #b6790a;
  --color-warning-bg: #fdf3e0;
  --color-danger: #b3261e;
  --color-danger-bg: #fbeae9;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 8px rgba(20, 18, 15, 0.06), 0 1px 2px rgba(20, 18, 15, 0.04);
  --shadow-md: 0 12px 32px rgba(20, 18, 15, 0.1);
  --max-width: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Systemschrift bis zur finalen Hausschrift — bewusst ohne Google Fonts (DSGVO) */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body.lightbox-open {
  overflow: hidden;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  /* Bewusst mehr Einzug als der Header (siehe .listing-gallery,
     1.25rem) — nur die Galerie soll so nah an den Rand gehen, der
     restliche Content bekommt mehr Luft. */
  padding: 0 1.75rem;
}

.section {
  padding: 2rem 0;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Gästemappe: mehrere Themen-Karten hintereinander in einem einzigen
   .section — Abstand zwischen ihnen, da .card selbst keinen eigenen
   margin-bottom hat. */
#guest-folder-content .card {
  margin-bottom: 1.25rem;
}

#guest-folder-content .card:last-child {
  margin-bottom: 0;
}

/* Airbnb-artiges Listing-Layout: breite Hero-Galerie zuerst, Titel knapp
   darunter, dann zwei Spalten (Beschreibung/Ausstattung links, sticky
   Buchungs-Karte rechts). Auf Mobil steht der Titel stattdessen in der
   unteren Preisleiste (.mobile-book-bar-title) — hier ausgeblendet, um
   Platz unter dem fast seitenfüllenden Header zu sparen. */
.listing-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 0 1rem;
}

.listing-header h1 {
  margin: 0;
}

/* Preis auf Höhe des Titels statt oben in der Buchungs-Karte (siehe
   apartment-info.js — dieselbe #apartment-price-ID, nur andere Stelle im
   Markup). */
.listing-header-price {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 859px) {
  .listing-header {
    display: none;
  }
}

/* Bricht bewusst aus der Content-Breite (--max-width: 1120px vom
   umgebenden .container) aus — sonst wäre die Galerie trotz eigenem
   max-width nie breiter als ihr Elternelement. calc(50% - 50vw) statt
   100vw+left:50%, das vermeidet den Scrollbar-Ruckler bei Seiten mit
   vertikalem Scrollbalken. Bewusst nicht randlos: gleicher Abstand zum
   Rand wie nach oben (1.25rem), kein hartes Edge-to-edge. */
.listing-gallery {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  padding: 1.25rem;
}

.listing-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.listing-block h2 {
  font-size: 1.15rem;
}

.listing-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.75rem 0;
}

.amenities-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem 1.5rem;
}

.amenities-grid li {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.amenities-grid .amenity-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--color-accent);
}

.amenities-grid .amenity-icon svg {
  width: 18px;
  height: 18px;
}

.amenities-card {
  padding: 1.25rem 1.5rem;
}

/* "zzgl. X € Endreinigung" deutlich zurückhaltender als der eigentliche
   Preis — sonst wirkt die ganze Zeile gleich schwer/wichtig. em-basiert,
   damit dieselbe Klasse im großen Desktop-Preis (#apartment-price) und in
   der kleineren mobilen Preisleiste (#mobile-book-price) passt. */
.price-fee {
  font-size: 0.85em;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Kompakte "Fakten"-Zeile (Personenzahl, Endreinigungspreis) unter der
   Beschreibung — wird nur eingeblendet, wenn der Admin diese Werte gepflegt hat. */
.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.25rem 0;
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fact-item strong {
  font-size: 1.05rem;
}

.fact-item span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.imprint-card {
  margin-top: 1rem;
}

.imprint-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.imprint-card p {
  margin: 0;
  white-space: pre-line;
  color: var(--color-text-muted);
}

.booking-card-hint {
  font-size: 0.8rem;
  margin: 0.75rem 0 0;
}

/* Eigenes weißes Panel statt der blau-grauen Karten-Fläche darunter — sonst
   verlieren die hell-roten Belegt-Tage (siehe calendar.css) fast den
   Kontrast, da beide Töne zu nah beieinanderliegen. */
#calendar {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1rem;
}

/* Handy: Kalender randlos in der Buchungskarte (wie die Lagekarte) — die Karte
   bleibt so breit wie die Karten darüber, nur der weiße Kalender reicht oben,
   links und rechts bis an ihren Rand. */
@media (max-width: 640px) {
  .booking-card {
    overflow: hidden;
  }

  #calendar {
    margin: -1.5rem -1.5rem 1rem;
    border-radius: 0;
    padding: 1rem 1.5rem;
  }
}

/* Berechneter Gesamtpreis für den gewählten Zeitraum, zweistufig: große Zahl
   für den Gesamtpreis, klein/gedämpft für die Endreinigung darunter — das ist
   für den Gast die wichtigste Zahl auf der ganzen Karte, sollte also nicht im
   Fließtext untergehen (siehe updatePriceEstimate() in app.js). */
.price-summary {
  margin: 0.75rem 0 0;
}

.price-summary-total {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

.price-summary-total strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
}

.price-summary-fee {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Fallback für den Mindestaufenthalts-Hinweis (kein Preis, nur ein Satz) —
   dieselbe Stelle im Markup (#season-price-estimate), daher hier statt in
   .price-summary-total, das eine feste zweizeilige Struktur erwartet. */
.price-summary-notice {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-warning);
}

/* Formular klappt erst auf, sobald im Kalender ein vollständiger Zeitraum
   gewählt ist (app.js togglet is-expanded). Grid-Trick statt max-height, damit
   die Höhe nicht geraten werden muss und der Inhalt sauber rein-/rauswächst. */
.booking-request-reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.booking-request-reveal.is-expanded {
  grid-template-rows: 1fr;
}

.booking-request-reveal-inner {
  overflow: hidden;
}

@media (min-width: 860px) {
  .listing-layout {
    grid-template-columns: 1.6fr 1fr;
  }

  .listing-sidebar {
    position: sticky;
    top: 1.5rem;
  }
}

/* Sticky Preis-/CTA-Leiste am unteren Bildschirmrand, wie bei Airbnb mobil —
   auf Desktop unsichtbar, da dort die Buchungs-Karte ohnehin sticky sichtbar ist. */
.mobile-book-bar {
  display: none;
}

@media (max-width: 859px) {
  .mobile-book-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    /* Seitlicher Einzug bewusst wie .listing-gallery (1.25rem), nicht wie
       der breitere .container-Einzug — die Leiste soll optisch mit dem
       Header-Bereich fluchten. */
    padding: 0.8rem 1.25rem calc(0.8rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(20, 18, 15, 0.08);
  }

  .mobile-book-bar-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
  }

  .mobile-book-bar-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-book-bar-subtitle {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-book-bar strong {
    font-size: 0.95rem;
    font-weight: 700;
  }

  .mobile-book-dates {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-book-bar .btn {
    flex: 0 0 auto;
  }

  body {
    padding-bottom: 5.5rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7em 1.4em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-surface);
}

.btn-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--color-danger);
  color: #fff;
}

.btn-sm {
  padding: 0.4em 0.9em;
  font-size: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Einheitliches Aussehen für alle Texteingaben, nicht nur innerhalb von
   .field — betrifft z. B. auch die per JS erzeugten Tabellenzeilen im Admin
   (Preisstufen, Saisonzeiten, Rabattcodes), die vorher ohne eigene Klasse mit
   reinem Browser-Standardstil dastanden. Checkbox/Radio/File bewusst nicht
   erfasst, die bleiben nativ.
   KOMPONENTE "Eingabefeld": <div class="field"><label>…</label><input …></div>.
   Gilt für ALLE Textfelder — auch ohne type-Attribut (input:not([type])),
   damit Gast-Seite, Admin, Assistent und Anmeldung identisch aussehen. */
input:not([type]),
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="url"],
input[type="search"],
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65em 0.8em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
}

input:not([type]):focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="date"]:focus-within,
input[type="datetime-local"]:focus,
input[type="datetime-local"]:focus-within,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  /* Inset statt outline+offset: einige Formulare (z. B. das Buchungsformular)
     stecken in einem overflow:hidden-Container für die Aufklapp-Animation
     (.booking-request-reveal-inner) — ein nach außen ragender Fokusring wurde
     dort am Rand abgeschnitten. box-shadow inset bleibt immer innerhalb der
     Feldgrenzen. */
  outline: none;
  box-shadow: inset 0 0 0 2px var(--color-accent);
}

.field-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

/* Fehler erscheinen als schmale Zeile direkt unter dem jeweiligen Feld statt
   als globaler Popup-Hinweis über dem Formular — booking-form.js setzt/leert
   .has-error pro Feld. */
.field-error {
  display: none;
  font-size: 0.8rem;
  color: var(--color-danger);
}

.field.has-error .field-error {
  display: block;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--color-danger);
}

/* Personenzahl-Stepper: +/- Buttons um ein zentrales Zahlenfeld statt freier
   Texteingabe — app.js begrenzt den Bereich (Standard 1–4, oder das
   Admin-Limit, falls gesetzt). */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stepper-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.stepper-btn:hover:not(:disabled) {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}

.stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Zeigt "1 Gast"/"2 Gäste" statt einer nackten Zahl (siehe app.js
   guestCountText()) — das eigentliche Zahlenfeld ist type="hidden". */
.stepper-value {
  min-width: 5.5rem;
  padding: 0 0.75rem;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.95rem;
}

/* Zwei Felder nebeneinander (Check-in/Check-out) — dasselbe Grid-Muster wie
   im Admin-Panel (admin.css), hier zusätzlich fürs Gast-Formular gebraucht. */
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem 1rem;
}

.field-grid .field {
  margin-bottom: 0;
}

.booking-date-fields {
  margin-top: 1rem;
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.25em 0.6em;
  border-radius: 999px;
}

.badge svg {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.badge-requested {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge-confirmed {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge-cancelled {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

/* Passwortfeld mit Auge (js/ui/password-field.js) */
.password-field {
  position: relative;
  display: flex;
}

.password-field input {
  flex: 1;
  width: 100%;
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text-muted);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.password-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Allgemeine Tönungen (js/ui/dom.js badge()); die Buchungs-Varianten oben bleiben. */
.badge-success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.badge-info {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}

.badge-neutral {
  background: var(--color-surface);
  color: var(--color-text-muted);
}

/* Kurze Bestätigung (js/ui/toast.js) */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  max-width: calc(100vw - 2rem);
  background: var(--color-text);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
}

.notice {
  border-radius: var(--radius-md);
  padding: 0.9em 1.1em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.notice-success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.notice-error {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.notice-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.muted {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

footer.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

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

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

.skip-link:focus {
  top: 0.5rem;
}

/* Sehr unauffälliger Hinweis-Streifen ganz oben, dass diese Seite mit
   "febuka" läuft — dünn, gedeckte Farben, kein Gewicht neben
   Titel/Galerie. Ziel-URL folgt, sobald die Hauptseite existiert. */
.powered-by-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  text-decoration: none;
}

.powered-by-banner svg {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
  opacity: 0.75;
}

.powered-by-banner:hover {
  color: var(--color-accent);
}

/* Nur sichtbar, wenn eine echte Admin-Session erkannt wird (siehe app.js) —
   Gäste haben nie eine Session und sehen diese Leiste daher nie. */
.admin-return-link {
  display: block;
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  padding: 0.5em 1em;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.admin-return-link:hover {
  background: var(--color-accent-dark);
}

.admin-return-link[hidden] {
  display: none;
}

.btn-link {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: underline;
  color: var(--color-accent);
  cursor: pointer;
}

/* Gleicher Grid-Trick wie .booking-request-reveal — generisch für einzelne
   Formularfelder, die erst nach Klick auf einen Text-Button erscheinen sollen. */
.field-reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.field-reveal.is-expanded {
  grid-template-rows: 1fr;
}

.field-reveal-inner {
  overflow: hidden;
}

.location-map {
  margin: 0.75rem 0;
}

/* Gast-Seite: Karte randlos bis an den Kartenrand unten/links/rechts. */
.location-map-card {
  overflow: hidden;
}

.location-map-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.location-map-head p {
  margin: 0;
}

.location-map-head a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.location-map .static-map {
  border-radius: var(--radius-md);
}

.location-map-card .location-map {
  margin: 1rem -1.5rem -1.5rem;
}

.location-map-card .static-map {
  border-radius: 0;
}

/* Kartenvorschau (js/map-embed.js): OpenFreeMap im Febuka-Blau (Stil in js/map-gl.js).
   Nicht verschiebbar — wer mehr sehen will, nutzt "Größere Karte". Die hellblaue
   Fläche bleibt stehen, solange die Karte lädt oder ohne WebGL. */
.static-map {
  position: relative;
  overflow: hidden;
  background: var(--color-accent-light);
}

.static-map > .static-map-canvas {
  /* gewinnt gegen .maplibregl-map { position: relative } */
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.static-map-area {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent-bright) 22%, transparent);
  border: 2px solid var(--color-accent-bright);
}

.static-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-accent-bright);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
}

.static-map-attribution {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  color: var(--color-text-muted, #5b6573);
  background: rgb(255 255 255 / 0.8);
  border-top-left-radius: 0.4rem;
  text-decoration: none;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
}

.legal-nav a {
  color: var(--color-text-muted);
}

.legal-content {
  max-width: 720px;
}

.guestbook-form {
  max-width: 480px;
  margin: 1.25rem 0 2rem;
}

.guestbook-teaser {
  text-align: center;
}

.guestbook-teaser h2 {
  margin-top: 0;
}

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guestbook-entry {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.guestbook-entry-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.guestbook-entry-header strong {
  font-size: 0.95rem;
}

.guestbook-entry-header time {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.guestbook-entry p {
  margin: 0;
  white-space: pre-line;
}

/* Coming-Soon/Passwort-Seite (coming-soon.html) — zentrierte Karte, unabhängig
   vom sonstigen Listing-Layout. */
.gate-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gate-card {
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.gate-card h1 {
  margin-top: 0;
}

.gate-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

/* „Gerade nicht online“ (nicht-verfuegbar.html): Strandfoto als Hintergrund,
   Karte halbtransparent darüber, damit der Text gut lesbar bleibt */
.offline-page {
  background: #c9d6e2 url("../assets/images/strand-steine.webp") center 65% / cover no-repeat;
}

.offline-card {
  max-width: 460px;
  padding: 2rem 1.75rem;
  background: rgb(255 255 255 / 0.9);
  border-color: rgb(255 255 255 / 0.6);
  box-shadow: 0 18px 50px rgb(16 32 48 / 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.offline-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.offline-icon svg {
  width: 32px;
  height: 32px;
}

.offline-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.offline-card p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.offline-product .btn {
  text-decoration: none;
}

.offline-product {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.offline-product p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.offline-product .offline-product-kicker {
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--color-text);
}

.gate-card form {
  text-align: left;
  margin-top: 1rem;
}

/* Kontakt-Sektion ganz unten auf der Wohnungsseite — Foto, Name und
   Mailto-Link, alles aus apartment_info gefüllt (siehe apartment-info.js). */
.host-contact-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  /* Hervorgehoben im hellen Akzentblau statt im Grau der übrigen Karten */
  background: var(--color-accent-light);
  border-color: transparent;
}

/* img setzt sonst display:block und überstimmt hidden (leere Lücke links) */
.host-contact-photo[hidden] {
  display: none;
}

.host-contact-photo {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex: 0 0 auto;
}

.host-contact-info h2 {
  font-size: 1.1rem;
  margin: 0 0 0.2rem;
}

.host-contact-name {
  margin: 0 0 0.75rem;
}

/* Platzhalter, solange kein Foto hochgeladen ist */
.host-contact-avatar {
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--color-accent-dark);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.host-contact-avatar[hidden] {
  display: none;
}

.host-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Bilder in der Gästemappe */
.guest-folder-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.guest-folder-images figure {
  margin: 0;
}

.guest-folder-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.guest-folder-images figcaption {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Begrüßung oben in der Gästemappe */

/* ── Komponente: Schrittanzeige (Anmelden → Einrichten) ──────────────────── */
.journey {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin: 0 0 1.5rem;
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  max-width: 6.5rem;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.journey-step + .journey-step::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.journey-step.is-done + .journey-step::before,
.journey-step.is-current::before {
  background: var(--color-accent);
}

.journey-dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  font-weight: 700;
  font-size: 0.8rem;
}

.journey-step.is-done .journey-dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.journey-step.is-current .journey-dot {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.journey-step.is-current .journey-label {
  color: var(--color-text);
  font-weight: 600;
}

/* ── Komponente: Passwort-Regeln ─────────────────────────────────────────── */
.password-rules {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.password-rules li::before {
  content: "○";
  display: inline-block;
  width: 1.2em;
}

.password-rules li.is-met {
  color: var(--color-success);
}

.password-rules li.is-met::before {
  content: "✓";
}

/* Gästemappe: Kopf mit Titelfoto der Wohnung */
.guest-folder-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 1.25rem 1.5rem 2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-accent-light);
  color: var(--color-text);
}

.guest-folder-hero.has-image {
  min-height: 320px;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 14, 20, 0.65), rgba(10, 14, 20, 0.05) 60%), var(--hero-image) center / cover;
}

/* Zurück als Knopf auf dem Titelbild (zum Angebot bzw. für Admins zum Admin-Bereich) */
.guest-folder-hero-back {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.guest-folder-hero-back:hover {
  background: #fff;
}

.guest-folder-hero h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin: 0.15rem 0 0.25rem;
  letter-spacing: -0.02em;
}

.guest-folder-hero-kicker {
  margin: 0;
  font-weight: 600;
  opacity: 0.9;
}

.guest-folder-hero-text p:last-child {
  margin: 0;
  opacity: 0.9;
}

/* Begrüßung größer */
/* Begrüßung ohne Kasten: freier, großer Text direkt unter dem Titelbild. */
.guest-folder-welcome {
  padding: 0.5rem 0 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  line-height: 1.65;
}

.guest-folder-welcome strong {
  display: inline-block;
  font-size: 1.6rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

/* Wartungsseite (js/maintenance.js) */
.maintenance-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.maintenance-card {
  max-width: 30rem;
  text-align: center;
}

.maintenance-icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}

.maintenance-card h1 {
  margin: 0 0 0.75rem;
}

.maintenance-message,
.maintenance-until {
  color: var(--color-text-muted);
}

.maintenance-until:empty {
  display: none;
}

.maintenance-operator-bar {
  padding: 0.5rem 1rem;
  background: #fdf3e0;
  color: #8a5a00;
  font-size: 0.85rem;
  text-align: center;
}
