/**
 * Bookings - Oeffentliche Standort-Infoseite
 * (Hero-Banner, Bildergalerie, Dokumente, Oeffnungszeiten)
 */

/* Hero-Banner mit Standort-Bild (Hintergrund setzt bookings-public-location.js) */
.hero-banner {
    position: relative;
    /* Seit 27.10.2026 hoeher und direkt unter der Kopfzeile (Tim): das
       Polster oben im Hauptbereich (.pp-main, 2.5rem) stand als grauer
       Streifen ueber dem Bild */
    min-height: clamp(260px, 30vw, 440px);
    margin-top: -2.5rem;
    background-color: #343a40;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.hero-banner .hero-title {
    position: relative;
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.hero-banner .hero-title h1 { color: #fff; }
.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 55%);
}
.hero-banner .hero-title { z-index: 1; }
/* Steht darueber der Hinweis "App installieren" (angemeldete Konten), nicht
   darunterschieben */
.pp-main > .pwa-install:has(.pwa-install-banner:not(.d-none)) ~ .hero-banner { margin-top: 0; }

.hero-placeholder {
    min-height: 140px;
    background: linear-gradient(135deg, var(--pp-accent, #10b981), var(--pp-accent-dark, #047857));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 3rem;
}

.feature-badge {
    background: #ffc107;
    color: #212529;
}

/* Karten-Abstaende der Inhaltsspalten */
.col-lg-8 > .card,
.col-lg-4 > .card { margin-bottom: 1.5rem; }

/* Bildergalerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}
.gallery-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f1f3f5;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Dokumente */
.document-list .document-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eef0f2;
}
.document-list .document-item:last-child { border-bottom: none; }
.document-list .document-item:hover { background: #f8f9fa; }

/* Oeffnungszeiten */
.opening-hours-table { width: 100%; }
.opening-hours-table td { padding: 0.2rem 0; }
.opening-hours-table td:last-child { text-align: right; }
.opening-hours-table .closed { color: #adb5bd; }

/* Karte */
#map { height: 300px; border-radius: 8px; }

/* Galerie-Slider */
.gallery-slider-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f3f5;
}
.gallery-slider-main img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}
.gallery-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
}
.gallery-slider-nav:hover { background: rgba(0, 0, 0, 0.7); }
.gallery-slider-prev { left: 10px; }
.gallery-slider-next { right: 10px; }
.gallery-slider-counter {
    position: absolute;
    right: 12px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 12px;
}
.gallery-slider-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-slider-thumb {
    flex: 0 0 auto;
    width: 84px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: none;
    opacity: 0.65;
}
.gallery-slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-slider-thumb.active,
.gallery-slider-thumb:hover { opacity: 1; border-color: var(--pp-accent, #0d6efd); }

/* Weicher Bildwechsel: neues Bild blendet als Overlay langsam ueber das alte */
.gallery-slider-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}
/* Gleiten: neues Bild schiebt sich herein, altes weicht langsamer aus */
.gallery-slider-overlay,
#gallerySliderImage {
    transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}
.gallery-slider-overlay.is-visible { opacity: 1; box-shadow: 0 0 24px rgba(0, 0, 0, 0.35); }
.gallery-slider-overlay.no-transition,
#gallerySliderImage.no-transition { transition: none; }
/* Pfeile/Zaehler bleiben ueber dem Overlay */
.gallery-slider-nav, .gallery-slider-counter { z-index: 2; }
/* Anhalten/Fortsetzen des automatischen Wechsels (seit 01.11.2026) */
.gallery-slider-play {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 2;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.gallery-slider-play:hover { background: rgba(0, 0, 0, 0.75); }

/* BITV: Leaflet-Kartenattribution - der Standard-Linkton (#0078A8)
   erreicht nur ~3.6:1; dunkleres Blau fuer 4.5:1+ */
.leaflet-control-attribution,
.leaflet-control-attribution a {
    color: #1d4ed8;
}

/* Bildnachweis (seit 28.10.2026): Titelbild unten rechts, Galerie unter dem
   Bild, Vollbild unter dem Bild - Namensnennung bei fremden Fotos (CC BY-SA) */
.hero-banner .banner-credit {
    position: absolute;
    right: .5rem;
    bottom: .35rem;
    z-index: 1;
    max-width: min(60%, 32rem);
    padding: .1rem .4rem;
    border-radius: .25rem;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: .75rem;
    line-height: 1.3;
    text-align: right;
}
.gallery-slider-caption {
    margin: .5rem 0 0;
    font-size: .875rem;
    color: #495057;
}
.gallery-modal-caption {
    margin: 0;
    padding: .5rem 1rem;
    font-size: .875rem;
    color: #dee2e6;
    text-align: left;
}
