/* Schriftarten werden non-render-blocking in index.html geladen (preload → stylesheet),
   damit das @import den CSS-Parse nicht mehr blockiert. */

:root {
  /* ── Neue Farbpalette: rustikal-modern ─────────────────────────────────── */
  --color-bg-primary:    #F5F0E8;   /* warmes Creme/Leinen */
  --color-bg-secondary:  #EDE6D6;   /* leichter Beige-Ton */
  --color-bg-tertiary:   #E2D8C4;   /* Sandton */
  --color-bg-surface:    #FFFFFF;   /* Weiß für Karten */
  --color-bg-dark:       #2C1F14;   /* dunkles Walnussbraun */
  --color-bg-dark-2:     #3D2B1A;   /* etwas heller */

  --color-primary:       #8B4513;   /* Sattelbraun / Terrakotta-Braun */
  --color-primary-hover: #A0522D;   /* Sienna */
  --color-secondary:     #6B7C5A;   /* gedecktes Waldgrün */
  --color-secondary-hover: #7A8F68;
  --color-accent:        #C4854A;   /* warmes Terrakotta-Orange */
  --color-accent-light:  #E8C9A8;   /* helles Pfirsich/Creme */

  --color-text-primary:  #1E1208;   /* fast Schwarz, warm */
  --color-text-secondary:#4A3728;   /* warmes Dunkelbraun */
  --color-text-muted:    #8C7B6A;   /* gedecktes Beige-Grau */
  --color-text-on-dark:  #F5F0E8;   /* Creme auf dunklem BG */
  --color-text-inverse:  #FFFFFF;

  --color-border:        #C9B89A;   /* weiches Sandbraun */
  --color-border-subtle: #DDD3BC;   /* sehr dezent */

  --color-success:       #5A7A4A;   /* Waldgrün */
  --color-error:         #8B2500;   /* dunkles Terrakotta-Rot */
  --color-warning:       #A07828;
  --color-info:          #4A6878;

  /* ── Typografie ────────────────────────────────────────────────────────── */
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

  /* ── Schatten ──────────────────────────────────────────────────────────── */
  --shadow-sm:   0 1px 3px rgba(44, 31, 20, 0.08), 0 1px 2px rgba(44, 31, 20, 0.04);
  --shadow-md:   0 4px 12px rgba(44, 31, 20, 0.10), 0 2px 4px rgba(44, 31, 20, 0.06);
  --shadow-lg:   0 10px 30px rgba(44, 31, 20, 0.12), 0 4px 8px rgba(44, 31, 20, 0.08);
  --shadow-xl:   0 20px 60px rgba(44, 31, 20, 0.18), 0 8px 20px rgba(44, 31, 20, 0.10);

  /* ── Radien ────────────────────────────────────────────────────────────── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* ── Übergänge ─────────────────────────────────────────────────────────── */
  --transition-fast:   150ms ease;
  --transition-medium: 250ms ease;
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Global Reset ────────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* iOS/Android: verhindert, dass der Browser Schriftgrößen beim Drehen
     eigenmächtig „aufbläst“ (führte zu verzerrtem, desktop-artigem Layout). */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body, #root {
  height: 100%;
  font-family: var(--font-sans);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Kein horizontales Wegscrollen / „zoomed-out“-Effekt auf dem Handy, falls ein
   einzelnes Element mal breiter als der Viewport wird. `clip` statt `hidden`,
   damit position: sticky (Topbar/Sidebar) weiterhin funktioniert. */

html, body {
  overflow-x: clip;
  max-width: 100%;
}

/* ── iOS-Zoom-Fix ────────────────────────────────────────────────────────────
   Safari zoomt automatisch in ein Formularfeld, sobald dessen Schrift < 16px
   ist – und zoomt danach NICHT zurück. Das ließ die Seite auf dem iPhone
   „kaputt / nicht responsive“ wirken. Auf Touch-Breiten daher min. 16px. */

@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px;
  }
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

/* ── Smooth scrollbar ───────────────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

/* ── Focus visible (Accessibility) ─────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}.gallery-root {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: 100%;
  height: 480px;
}

.gallery-hero {
  grid-column: 1;
  grid-row: 1 / 3;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-grid {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.gallery-thumb {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-hero:hover .gallery-img,
.gallery-thumb:hover .gallery-img {
  transform: scale(1.04);
}

/* +N overflow badge */
.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 4, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.gallery-more-label {
  color: white;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.gallery-lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 2, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbFadeIn 0.2s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Stage fills the whole overlay and centers the image; its generous padding
   reserves space for the controls so the image never sits under them.
   Because the controls are anchored to the fixed overlay (below), their
   position is completely independent of the image's aspect ratio. */
.gallery-lb-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 5.25rem;
  box-sizing: border-box;
}

.gallery-lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: lbSlide 0.18s ease;
  cursor: default;
}

@keyframes lbSlide {
  from { opacity: 0.6; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1); }
}

/* All controls are positioned against the fixed, viewport-sized overlay, so
   they stay put regardless of the current image's dimensions. */
.gallery-lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  z-index: 2;
}

.gallery-lb-close:hover { background: rgba(255, 255, 255, 0.2); }

.gallery-lb-prev,
.gallery-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  z-index: 2;
}

.gallery-lb-prev { left: 1.25rem; }
.gallery-lb-next { right: 1.25rem; }

.gallery-lb-prev:hover,
.gallery-lb-next:hover { background: rgba(255, 255, 255, 0.22); }

.gallery-lb-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(20, 12, 4, 0.45);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  z-index: 2;
}

@media (max-width: 700px) {
  .gallery-root {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    gap: 6px;
  }

  /* Hero: volle Breite oben – über beide oberen Kacheln gestreckt */
  .gallery-hero {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 16 / 10;
  }

  /* Thumbnail-Grid: von der Desktop-Spalte 2 lösen → volle Breite darunter */
  .gallery-grid {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-thumb {
    aspect-ratio: 1;
  }

  .gallery-lb-stage { padding: 4rem 3.75rem; }
  .gallery-lb-prev { left: 0.6rem; }
  .gallery-lb-next { right: 0.6rem; }
}

@media (max-width: 480px) {
  /* On phones the arrows overlay the image edges (standard mobile pattern). */
  .gallery-lb-stage { padding: 3.5rem 0.5rem; }
  .gallery-lb-prev,
  .gallery-lb-next { width: 40px; height: 40px; }
  .gallery-lb-prev { left: 0.4rem; }
  .gallery-lb-next { right: 0.4rem; }
  .gallery-lb-close { top: 0.75rem; right: 0.75rem; }
}

.highlights-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 100px;
  color: var(--color-text-secondary);
  font-size: 0.825rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.highlight-item:hover {
  border-color: var(--color-border);
  background: var(--color-bg-secondary);
}

.highlight-icon {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.highlight-label {
  white-space: nowrap;
  font-weight: 500;
}

.highlight-fallback-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-block;
}
.cal-root {
  background: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  width: 100%;
  box-sizing: border-box;
  min-width: 280px;
}

/* In Sidebar-Card: kein extra Rahmen/Shadow */
.sidebar-card .cal-root {
  border: none;
  box-shadow: none;
  padding: 0;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-month-label {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-primary);
  text-transform: capitalize;
  letter-spacing: 0.01em;
}

.cal-nav {
  background: none;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.cal-nav:hover:not(:disabled) {
  background: var(--color-bg-secondary);
  color: var(--color-primary);
  border-color: var(--color-border);
}

.cal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── Grid ───────────────────────────────────────────────────────────────────── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-weekday {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Cells ──────────────────────────────────────────────────────────────────── */
.cal-cell {
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  position: relative;
}

/* ── Day States ─────────────────────────────────────────────────────────────── */
.cal-day {
  font-size: 0.8rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.cal-day--past {
  color: var(--color-text-muted);
  opacity: 0.35;
  cursor: not-allowed;
}

.cal-day--today {
  color: var(--color-primary);
  font-weight: 700;
  cursor: pointer;
  background: rgba(139, 69, 19, 0.08);
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.cal-day--occupied {
  color: var(--color-text-muted);
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(139, 69, 19, 0.08) 3px,
    rgba(139, 69, 19, 0.08) 6px
  );
  cursor: not-allowed;
  opacity: 0.6;
}

.cal-day--below-min {
  color: var(--color-text-muted);
  opacity: 0.4;
  cursor: not-allowed;
}

.cal-day--available {
  color: var(--color-text-secondary);
  cursor: pointer;
}

.cal-day--available:hover {
  background: var(--color-bg-secondary);
  color: var(--color-primary);
  transform: scale(1.08);
}

.cal-day--selected-start,
.cal-day--selected-end {
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

.cal-day--in-range {
  background: rgba(139, 69, 19, 0.1);
  color: var(--color-primary);
  border-radius: 0;
  cursor: pointer;
}

/* ── Skeleton loading ───────────────────────────────────────────────────────── */
.cal-day--skeleton {
  background: var(--color-bg-secondary);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* ── Day number + today dot ─────────────────────────────────────────────────── */
.cal-day-num {
  font-weight: 500;
  line-height: 1;
}

/* Zellen mit Preis: Inhalt oben ausrichten */
.cal-day--with-price {
  justify-content: flex-start;
  padding-top: 6px;
  gap: 1px;
}

.cal-day-price {
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1;
  letter-spacing: 0.01em;
}

/* Preis in selektierten / in-range Zellen heller */
.cal-day--selected-start .cal-day-price,
.cal-day--selected-end .cal-day-price {
  color: rgba(255, 255, 255, 0.75);
}

.cal-day--in-range .cal-day-price {
  color: var(--color-primary);
  opacity: 0.7;
}

.cal-today-dot {
  display: none;
}

/* ── Legend ─────────────────────────────────────────────────────────────────── */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-subtle);
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cal-legend-dot--available {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
}

.cal-legend-dot--occupied {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 2px,
    rgba(139, 69, 19, 0.15) 2px,
    rgba(139, 69, 19, 0.15) 4px
  );
  border: 1px solid var(--color-border);
}

.cal-legend-dot--today {
  background: rgba(139, 69, 19, 0.06);
  border: 1px solid rgba(139, 69, 19, 0.3);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cal-root {
    min-width: 0;   /* nie breiter als der Viewport werden */
  }

  /* Zellen dürfen mit dem Viewport mitschrumpfen, bleiben aber gut antippbar */
  .cal-cell {
    height: 44px;
    aspect-ratio: auto;
  }

  .cal-day {
    font-size: 0.9rem;
  }

  .cal-day-num {
    font-size: 0.95rem;
  }

  .cal-day-price {
    font-size: 0.58rem;
  }

  .cal-weekday {
    font-size: 0.62rem;
  }
}

@media (max-width: 360px) {
  .cal-root {
    padding: 0.5rem 0;
  }

  .cal-cell {
    height: 40px;
  }
}
.bform-root {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

/* ── Section Label ──────────────────────────────────────────────────────────── */
.bform-section-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
}

/* ── Date Fields ────────────────────────────────────────────────────────────── */
.bform-dates {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bform-date-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg-surface);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.bform-date-field:hover:not(:disabled) {
  border-color: var(--color-border);
  background: var(--color-bg-secondary);
}

.bform-date-field--active {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12);
  background: var(--color-bg-surface) !important;
}

.bform-date-field--set .bform-date-value {
  color: var(--color-text-primary);
  font-weight: 500;
}

.bform-date-field:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bform-date-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bform-date-value {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bform-chevron {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-medium);
  pointer-events: none;
}

.bform-chevron--open {
  transform: translateY(-50%) rotate(180deg);
}

.bform-date-arrow {
  flex-shrink: 0;
  opacity: 0.4;
}

/* ── Popover ────────────────────────────────────────────────────────────────── */
.bform-popover-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--transition-slow), opacity var(--transition-medium);
}

.bform-popover-wrap--open {
  max-height: 600px;
  opacity: 1;
}

.bform-popover {
  padding-top: 0.25rem;
  animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bform-popover-hint {
  font-size: 0.78rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

/* ── Extras (Personen / Haustiere) ──────────────────────────────────────────── */
.bform-extras {
  display: flex;
  gap: 0.75rem;
}

.bform-select-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bform-select-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.bform-select {
  background: var(--color-bg-surface);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  padding: 0.6rem 2rem 0.6rem 0.85rem;
  font-size: 0.875rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238C7B6A' stroke-width='1.8'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  transition: border-color var(--transition-fast);
  cursor: pointer;
}

.bform-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* ── Price Row ──────────────────────────────────────────────────────────────── */
.bform-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border-subtle);
}

.bform-price-nights {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.bform-price-total {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.bform-price-na {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.bform-price-loading {
  width: 100%;
}

.bform-price-shimmer {
  height: 1.2rem;
  background: linear-gradient(90deg, var(--color-bg-tertiary) 25%, var(--color-bg-secondary) 50%, var(--color-bg-tertiary) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── CTA Button ─────────────────────────────────────────────────────────────── */
.bform-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.25);
}

.bform-cta:hover:not(:disabled) {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.3);
}

.bform-cta:active:not(:disabled) {
  transform: translateY(0);
}

.bform-cta:disabled {
  background: var(--color-border);
  color: var(--color-text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.bform-hint-text {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: -0.25rem;
}

/* ── Conflict Error ─────────────────────────────────────────────────────────── */
.bform-conflict-error {
  font-size: 0.82rem;
  color: var(--color-error);
  background: rgba(139, 37, 0, 0.05);
  border: 1px solid rgba(139, 37, 0, 0.18);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  line-height: 1.4;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .bform-dates {
    flex-direction: column;
    gap: 0.6rem;
  }

  .bform-date-arrow {
    display: none;
  }

  .bform-date-field {
    width: 100%;
    padding: 0.85rem 1rem;   /* größere Tap-Fläche */
  }

  /* Datumsfeld-Wert nicht schrumpfen lassen (iOS 16px greift), Label bleibt klein */
  .bform-date-value {
    font-size: 0.95rem;
  }

  .bform-cta {
    padding: 1.05rem 1.5rem; /* min. ~48px Touch-Ziel */
  }

  .bform-select {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}
/* ── Overlay ─────────────────────────────────────────────────────────────────── */
.bm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 8, 0.68);
  /* Etwas geringerer Blur + Safari-Prefix. Der Blur wird nur EINMAL berechnet,
     weil das Sheet (siehe unten) auf einer eigenen Compositor-Ebene liegt und
     seine Öffnungs-Animation die Backdrop-Ebene nicht mehr invalidiert. */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  animation: bmOverlayIn 0.2s ease-out;
}

@keyframes bmOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Sheet ───────────────────────────────────────────────────────────────────── */
.bm-sheet {
  background: var(--color-bg-surface);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  position: relative;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: sheetIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Eigene GPU-Ebene → die Transform-Animation läuft flüssig und zwingt die
     Overlay-Backdrop-Blur nicht zum Neu-Rendern pro Frame. */
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes sheetIn {
  from { opacity: 0; transform: translateZ(0) scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: translateZ(0) scale(1) translateY(0); }
}

/* Bewegungsreduzierung respektieren (Accessibility + kein Ruckeln). */
@media (prefers-reduced-motion: reduce) {
  .bm-overlay,
  .bm-sheet {
    animation: none;
  }
}

/* ── Close Button ────────────────────────────────────────────────────────────── */
.bm-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.bm-close:hover {
  background: var(--color-error);
  color: white;
  border-color: var(--color-error);
}

/* ── Summary Strip ───────────────────────────────────────────────────────────── */
.bm-summary {
  background: var(--color-bg-dark);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bm-summary-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  flex-shrink: 0;
}

.bm-summary-item:first-child {
  padding-left: 0;
}

.bm-summary-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.bm-summary-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 232, 0.5);
  font-weight: 600;
}

.bm-summary-val {
  font-size: 0.825rem;
  color: var(--color-text-on-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.bm-summary-sep {
  width: 1px;
  height: 28px;
  background: rgba(245, 240, 232, 0.15);
  flex-shrink: 0;
}

.bm-summary-price {
  margin-left: auto;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent);
  padding: 0 0 0 1rem;
}

/* ── Body ────────────────────────────────────────────────────────────────────── */
.bm-body {
  padding: 1.75rem;
  max-height: 75vh;
  overflow-y: auto;
}

/* ── Form ────────────────────────────────────────────────────────────────────── */
.bm-form-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 1.25rem;
}

.bm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.bm-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bm-field--span2 {
  grid-column: 1 / -1;
}

.bm-field-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.bm-required {
  color: var(--color-error);
}

.bm-input,
.bm-select {
  background: var(--color-bg-primary);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.bm-input:focus,
.bm-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.bm-input--err {
  border-color: var(--color-error);
}

.bm-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238C7B6A' stroke-width='1.8'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-color: var(--color-bg-primary);
  padding-right: 2rem;
  cursor: pointer;
}

.bm-field-error {
  font-size: 0.7rem;
  color: var(--color-error);
}

/* ── Submit Button ───────────────────────────────────────────────────────────── */
.bm-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 10px rgba(139, 69, 19, 0.25);
}

.bm-submit:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.3);
}

/* ── Centered States ─────────────────────────────────────────────────────────── */
.bm-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  text-align: center;
}

.bm-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--color-border-subtle);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

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

.bm-result-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-result-icon--success {
  background: rgba(90, 122, 74, 0.12);
  border: 2px solid var(--color-success);
}

.bm-result-icon--error {
  background: rgba(139, 37, 0, 0.08);
  border: 2px solid var(--color-error);
}

.bm-result-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.bm-error-text {
  color: var(--color-error);
  font-size: 0.875rem;
  max-width: 400px;
  background: rgba(139, 37, 0, 0.05);
  border: 1px solid rgba(139, 37, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.bm-retry {
  background: var(--color-bg-secondary);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  padding: 0.6rem 1.5rem;
  transition: background var(--transition-fast);
}

.bm-retry:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

/* ── Success ─────────────────────────────────────────────────────────────────── */
.bm-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.bm-booking-card {
  width: 100%;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.bm-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 0.875rem;
  gap: 1rem;
}

.bm-kv:last-child {
  border-bottom: none;
}

.bm-k {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.bm-v {
  color: var(--color-text-primary);
  font-weight: 500;
  text-align: right;
}

.bm-booking-num {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.bm-price-val {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.bm-booking-ref {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* ── Payment ─────────────────────────────────────────────────────────────────── */
.bm-payment {
  width: 100%;
  text-align: left;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.bm-payment-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.bm-kv-list {
  display: flex;
  flex-direction: column;
}

.bm-iban {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--color-text-primary);
  word-break: break-all;
  text-align: right;
}

/* ── PayPal ─────────────────────────────────────────────────────────────────── */
.bm-paypal {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-subtle);
}

.bm-paypal-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.bm-paypal-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.bm-paypal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #0070BA;
  color: white;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast);
  text-align: center;
}

.bm-paypal-btn:hover { background: #005ea6; }

.bm-paypal-email {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
}

.bm-paypal-qr {
  max-width: 100px;
  margin: 0.5rem auto 0;
  display: block;
  border-radius: 6px;
}

/* ── Success Note ────────────────────────────────────────────────────────────── */
.bm-success-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  max-width: 440px;
  line-height: 1.5;
}

.bm-legal-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
  margin-top: -0.5rem;
}

.bm-legal-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bm-legal-link:hover {
  color: var(--color-primary-hover);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .bm-sheet {
    max-width: 100%;
    margin: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .bm-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .bm-summary {
    padding: 1rem;
    gap: 0.25rem;
  }

  .bm-summary-item {
    padding: 0 0.5rem;
  }

  .bm-summary-price {
    padding: 0 0 0 0.5rem;
  }

  .bm-body {
    padding: 1.25rem;
  }

  .bm-form-grid {
    grid-template-columns: 1fr;
  }

  .bm-field--span2 {
    grid-column: 1;
  }
}

/* ── Step Indicator ──────────────────────────────────────────────────────────── */
.bm-steps {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.85rem 1.75rem;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border-subtle);
}

.bm-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.bm-step--active {
  color: var(--color-primary);
  background: rgba(139, 69, 19, 0.08);
}

.bm-step--done {
  color: var(--color-success);
}

.bm-step--inactive {
  color: var(--color-text-muted);
}

.bm-step-line {
  flex: 1;
  height: 1px;
  background: var(--color-border-subtle);
  margin: 0 0.5rem;
}

/* ── Review / Price Breakdown ────────────────────────────────────────────────── */
.bm-review {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bm-breakdown {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bm-bd-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
  gap: 1rem;
  font-size: 0.875rem;
}

.bm-bd-row:last-child {
  border-bottom: none;
}

.bm-bd-label {
  display: flex;
  align-items: center;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.bm-bd-label-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bm-bd-sublabel {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.bm-bd-val {
  color: var(--color-text-primary);
  font-weight: 500;
  white-space: nowrap;
}

.bm-bd-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.25rem 0;
}

.bm-bd-total {
  padding-top: 0.75rem;
}

.bm-bd-total .bm-bd-label {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.bm-bd-total-val {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ── Review Contact Summary ──────────────────────────────────────────────────── */
.bm-review-contact {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.bm-review-contact-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.bm-review-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  margin-bottom: 0.65rem;
}

.bm-link-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.bm-link-btn:hover {
  color: var(--color-primary-hover);
}

.bm-legal-note {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: -0.5rem;
  line-height: 1.5;
}

/* ── PayPal Section ──────────────────────────────────────────────────────────── */
.bm-paypal-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bm-paypal-hint {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
}

.bm-paypal-err {
  margin: 0;
  font-size: 0.82rem;
}

.bm-paypal-buttons {
  min-height: 48px;
}

.bm-paypal-loading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.bm-paypal-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  margin: 0.25rem 0;
}

.bm-paypal-divider::before,
.bm-paypal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border-subtle);
}

/* ── Paid state ──────────────────────────────────────────────────────────────── */
.bm-paid-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin: -0.5rem 0 0;
}

.bm-status--confirmed {
  color: var(--color-success);
  font-weight: 600;
}

/* ── Spinner small ───────────────────────────────────────────────────────────── */
.bm-spinner--sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

/* ── Payment method choice ───────────────────────────────────────────────────── */
.bm-pay-choice,
.bm-paypal-step,
.bm-bank-confirm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bm-pay-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  width: 100%;
  padding: 1rem 1.15rem;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border-subtle);
  background: var(--color-bg-secondary);
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.bm-pay-option:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.12);
}

.bm-pay-option--paypal {
  border-color: #0070ba;
}

.bm-pay-option--paypal:hover {
  border-color: #003087;
  box-shadow: 0 4px 16px rgba(0, 112, 186, 0.18);
}

.bm-pay-option-main {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.bm-pay-option-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.bm-bank-confirm-text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0;
}

.bm-paypal-cancel-note {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  margin: 0;
  line-height: 1.5;
}


.location-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.location-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0;
}

.location-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  width: 100%;
  aspect-ratio: 4/3;
}

.location-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.location-address-text {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  margin: -0.35rem 0 0;
}

.location-facts {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.location-facts-title {
  display: block;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
}

.location-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.location-fact::before {
  content: '– ';
  color: var(--color-primary);
}
/* ── Page Root ──────────────────────────────────────────────────────────────── */
.page-root {
  min-height: 100vh;
  background: var(--color-bg-primary);
  display: flex;
  flex-direction: column;
}

/* ── Top Navigation Bar ─────────────────────────────────────────────────────── */
.page-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
}

.topbar-availability-btn {
  display: none; /* wird auf Mobile gezeigt */
  align-items: center;
  gap: 0.4rem;
  background: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.22);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.topbar-availability-btn:hover {
  background: var(--color-primary-hover);
}

.topbar-availability-btn:active {
  transform: translateY(1px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-lang-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.topbar-lang-btn:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.topbar-storno-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.topbar-storno-icon { flex-shrink: 0; }

.topbar-storno-btn:hover {
  background: var(--color-bg-secondary);
  border-color: #dc2626;
  color: #dc2626;
}

/* ── Main Content ────────────────────────────────────────────────────────────── */
.page-main {
  flex: 1;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  box-sizing: border-box;
}

/* ── Gallery Section ─────────────────────────────────────────────────────────── */
.section-gallery {
  margin: 1.5rem 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ── Content Grid ────────────────────────────────────────────────────────────── */
.page-content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

/* ── Left Column ─────────────────────────────────────────────────────────────── */
.content-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Property Header ─────────────────────────────────────────────────────────── */
.section-property-header {
  padding-bottom: 1.5rem;
}

.property-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.property-name {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.property-short-desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 560px;
}

.property-price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.property-price-from {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-transform: lowercase;
}

.property-price-value {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
}

.property-price-unit {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* ── Sections ────────────────────────────────────────────────────────────────── */
.section-highlights,
.section-booking,
.section-description {
  padding: 1.75rem 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.section-divider {
  border-top: 1px solid var(--color-border-subtle);
}

.description-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 620px;
}

/* ── Markdown-formatierter Beschreibungstext ─────────────────────────────────── */
.description-md > *:first-child { margin-top: 0; }
.description-md > *:last-child  { margin-bottom: 0; }

.description-md p {
  margin: 0 0 1rem;
}

.description-md h1,
.description-md h2,
.description-md h3,
.description-md h4,
.description-md h5,
.description-md h6 {
  font-family: var(--font-serif);
  color: var(--color-text-primary);
  line-height: 1.3;
  margin: 1.5rem 0 0.6rem;
}

.description-md h1 { font-size: 1.5rem; }
.description-md h2 { font-size: 1.25rem; }
.description-md h3 { font-size: 1.1rem; }
.description-md h4,
.description-md h5,
.description-md h6 { font-size: 1rem; }

.description-md ul,
.description-md ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.description-md li {
  margin-bottom: 0.35rem;
}

.description-md li::marker {
  color: var(--color-primary);
}

.description-md a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.description-md a:hover {
  color: var(--color-primary-hover);
}

.description-md strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.description-md blockquote {
  margin: 0 0 1rem;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 3px solid var(--color-border);
  color: var(--color-text-muted);
  font-style: italic;
}

.description-md code {
  font-family: monospace;
  font-size: 0.88em;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.05rem 0.35rem;
}

.description-md hr {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  margin: 1.5rem 0;
}

/* ── Right Sidebar ───────────────────────────────────────────────────────────── */
.content-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 76px; /* topbar + spacing */
}

.sidebar-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

/* ── Mobile Drawer ───────────────────────────────────────────────────────────── */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 18, 8, 0.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.mobile-drawer {
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  background: var(--color-bg-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.mobile-drawer-grab {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--color-border);
  margin: 0.6rem auto 0.1rem;
  flex-shrink: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--color-border-subtle);
  flex-shrink: 0;
}

.mobile-drawer-section + .mobile-drawer-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-subtle);
}

.mobile-drawer-section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0.9rem;
}

.mobile-drawer-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.mobile-drawer-close {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: background var(--transition-fast);
}

.mobile-drawer-close:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.mobile-drawer-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  flex: 1;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .page-content-grid {
    grid-template-columns: 1fr 320px;
    gap: 2rem;
  }

  .property-name {
    font-size: 2rem;
  }
}

@media (max-width: 800px) {
  .page-main {
    padding: 0 1.25rem 3rem;
  }

  .page-topbar {
    padding: 0 1.25rem;
  }

  .topbar-availability-btn {
    display: flex; /* auf Mobile sichtbar */
  }

  .topbar-name {
    display: none;
  }

  /* Keep the cancel-booking action reachable on mobile, but compact:
     show it as an icon-only button so it never gets pushed off the bar. */
  .topbar-storno-btn {
    display: flex;
    padding: 0.45rem;
    width: 34px;
    height: 34px;
    justify-content: center;
  }

  .topbar-storno-btn .topbar-btn-label {
    display: none;
  }

  .page-content-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .content-right {
    display: none; /* Auf Mobile kommt der Drawer */
  }

  .property-name {
    font-size: 1.75rem;
  }

  .section-gallery {
    margin: 1rem 0;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 480px) {
  .page-main {
    padding: 0 1rem 2.5rem;
  }

  .page-topbar {
    padding: 0 1rem;
  }

  .property-name {
    font-size: 1.5rem;
  }

  .section-property-header {
    padding-bottom: 1rem;
  }

  .section-highlights,
  .section-booking,
  .section-description {
    padding: 1.25rem 0;
  }
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.page-footer {
  background: var(--color-bg-dark);
  color: rgba(245, 240, 232, 0.6);
  padding: 1.5rem 2rem;
  margin-top: auto;
}

.page-footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-footer-copy {
  font-size: 0.8rem;
}

.page-footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-footer-link {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.page-footer-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.page-footer-link--btn {
  font-size: 0.8rem;
}

.page-footer-sep {
  color: rgba(245, 240, 232, 0.3);
  font-size: 0.75rem;
}

/* ── Impressum Dialog ───────────────────────────────────────────────────────── */
.impressum-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--shadow-xl);
  max-width: 560px;
  width: calc(100% - 2rem);
}

.impressum-dialog::backdrop {
  background: rgba(30, 18, 8, 0.55);
  backdrop-filter: blur(4px);
}

.impressum-inner {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.impressum-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.impressum-text {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.impressum-close {
  align-self: flex-start;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.impressum-close:hover {
  background: var(--color-primary-hover);
}

@media (max-width: 480px) {
  .page-footer {
    padding: 1.25rem 1rem;
  }
  .page-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
