/* Buchen-Popup im Header (buchen.js, partials/buchen-popup.njk). Marke wie /gutscheine.
   Eigene Variablen, weil das Popup außerhalb von .gs liegt. Präfix bp-. */
.bp {
  --bp-schwarz: #0e0e0f;
  --bp-kohle: #17181a;
  --bp-gold: #e0aa3e;
  --bp-hell: #f0efef;
  --bp-leise: #b9b6b1;
  --bp-linie: rgba(255, 255, 255, 0.14);
  width: min(760px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 0;
  border: 0;
  border-top: 6px solid var(--bp-gold);
  border-radius: 6px;
  background: var(--bp-schwarz);
  color: #f4f1ec;
  font: 400 15px/1.5 "Montserrat", system-ui, sans-serif;
}
.bp::backdrop {
  background: rgba(0, 0, 0, 0.75);
}
html:has(#buchen-dialog[open]) {
  overflow: hidden;
}
.bp [hidden] {
  display: none !important;
}

/* Kopf */
.bp__kopf {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bp-schwarz);
  border-bottom: 1px solid var(--bp-linie);
}
.bp__titel {
  margin: 0 auto 0 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--bp-gold);
}
.bp__zurueck {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: none;
  color: #fff;
  font: 700 13px/1 "Montserrat", sans-serif;
  cursor: pointer;
}
.bp__zurueck:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}
/* In der Kalender-Ansicht steht der Titel zwischen "Alle Touren" und × */
.bp__zurueck:not([hidden]) + .bp__titel {
  margin-left: auto;
}
.bp__zu {
  width: 40px;
  height: 40px;
  flex: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.bp__zu:hover {
  border-color: #fff;
}
.bp button:focus-visible,
.bp a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Ansicht 1: Karten */
.bp__ansicht {
  padding: 18px 20px 20px;
}
.bp__touren {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bp-karte {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
  border: 1px solid var(--bp-linie);
  border-radius: 6px;
  background: var(--bp-kohle);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.bp-karte:hover,
.bp-karte:focus-visible {
  border-color: var(--bp-gold);
  transform: translateY(-2px);
}
.bp-karte__bild {
  position: relative;
  min-height: 150px;
}
.bp-karte__bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bp-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bp-gold);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bp-karte__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
}
.bp-karte__name {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}
.bp-karte__fakten {
  color: var(--bp-leise);
  font-size: 12px;
  font-weight: 600;
}
.bp-karte__fuss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}
.bp-karte__preis {
  color: var(--bp-leise);
  font-size: 12px;
}
.bp-karte__preis b {
  margin-right: 2px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}
.bp-karte__cta {
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--bp-gold);
  color: #000;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Ansicht 2: Kalender */
.bp__tour {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 12px;
}
.bp__tourname {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}
.bp__tourname:focus {
  outline: none;
}
.bp__tourfakten {
  color: var(--bp-leise);
  font-size: 13px;
  font-weight: 600;
}
.bp__hinweis {
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--bp-hell);
  color: #222;
  font-size: 14px;
  font-weight: 600;
}
.bp__hinweis a {
  color: #b85636;
  font-weight: 800;
}
/* Ladezustand: ruhiger Platzhalter in Kalenderhöhe statt leerem Kasten (Text von regiondo.js) */
.bp__hinweis:not(.gs-dialog__hinweis--warnung) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  text-align: center;
  background: var(--bp-kohle);
  color: var(--bp-leise);
  border: 1px solid var(--bp-linie);
}
.bp__hinweis[hidden] {
  display: none;
}
/* Regiondo lädt nicht: andere Wege (seite.js → hrcAlternativen) */
.bp__hinweis.gs-dialog__hinweis--warnung {
  border-left: 4px solid var(--bp-gold);
}
.bp__widget {
  padding: 16px 20px;
  border-radius: 6px;
  background: #fff;
  color: #222;
  text-align: left;
}
.bp__widget:empty {
  padding: 0;
}

/* Handy: vollflächig, Kopf bleibt oben, drei Karten sollen ohne langes Scrollen sichtbar sein */
@media (max-width: 560px) {
  .bp {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .bp__kopf {
    padding: 10px 14px;
  }
  .bp__ansicht {
    padding: 14px 12px 18px;
  }
  .bp-karte {
    grid-template-columns: 96px 1fr;
  }
  .bp-karte__bild {
    min-height: 0;
  }
  /* Auf dem schmalen Foto zweizeilig: als bündiges Etikett statt runder Pille */
  .bp-pill {
    top: 6px;
    right: 6px;
    left: 6px;
    padding: 3px 4px;
    border-radius: 3px;
    font-size: 9px;
    line-height: 1.25;
    text-align: center;
  }
  .bp-karte__text {
    padding: 10px 12px;
  }
  .bp-karte__name {
    font-size: 16px;
  }
  .bp-karte__fakten {
    line-height: 1.35;
  }
  .bp-karte__fuss {
    padding-top: 6px;
  }
  .bp-karte__preis b {
    font-size: 18px;
  }
  .bp-karte__cta {
    padding: 8px 10px;
    font-size: 11px;
  }
  .bp__widget {
    padding: 12px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-karte {
    transition: none;
  }
  .bp-karte:hover,
  .bp-karte:focus-visible {
    transform: none;
  }
}
