/* =============================================================================
   Preisanzeige in der Ergebnisliste (ferienwohnungen.php)
   -----------------------------------------------------------------------------
   Eigene Datei statt gemeinsamer mit den Objektseiten: Dieselben Klassennamen
   tragen dort andere Größen und Farben, weil der Preis in der Liste neben
   sechzehn anderen steht und auf der Objektseite allein. Beide Stylesheets
   werden nie zusammen geladen.
   ========================================================================== */

/* Ladezustand während des Nachladens. Die Höhe entspricht ungefähr dem fertigen
   Preisblock, damit die Karte beim Einsetzen nicht springt. Der Spinner ist
   Bootstraps .spinner-border – im Projekt-CSS bereits vorhanden, samt Rücksicht
   auf prefers-reduced-motion. */
.ebLaedt {
    min-height: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-size: .78rem;
    color: #8a8a8a;
    text-align: center;
}

.ebLaedt .ebSpinner {
    /* Bootstrap 5.3 steuert Größe und Stärke über diese Variablen */
    --bs-spinner-width: 1.5rem;
    --bs-spinner-height: 1.5rem;
    --bs-spinner-border-width: .16em;
    /* Absicherung, falls eine ältere Bootstrap-Fassung ohne Variablen läuft */
    width: 1.5rem;
    height: 1.5rem;
    color: var(--theme-primary-color, #99855c);
}

.ebLaedtText { animation: ebPulsieren 1.2s ease-in-out infinite; }

@keyframes ebPulsieren { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .ebLaedtText { animation: none; opacity: .8; }
}

/* -----------------------------------------------------------------------------
   Die Preisangabe
   -------------------------------------------------------------------------- */

.ebPreis { line-height: 1.35; }
.ebPreisGesamt { font-size: 1.4rem; font-weight: 700; }

/* Streichpreis über dem Endpreis, wie in der Buchungsmaske. Der Rabatthinweis
   darunter erklärt, worauf er sich bezieht. */
.ebGrundpreis { font-size: .85rem; color: #9a9a9a; line-height: 1.2; }
.ebGrundpreis s { text-decoration-thickness: 1px; }

.ebPreisBasis { font-size: .75rem; color: #8a8a8a; }

.ebRabatt {
    display: inline-block;
    margin-top: .3rem;
    padding: .1rem .4rem;
    font-size: .72rem;
    color: #2e6930;
    background: #eaf3ea;
    border-radius: 3px;
    line-height: 1.35;
}

.ebPreis .ebRabatt + * { margin-top: .5rem; }

/* -----------------------------------------------------------------------------
   Kurtaxen-Aufklapper

   Der Pflichthinweis ist zugleich der Aufklapp-Titel: ohne Klick lesbar, spart
   aber eine eigene Zeile.
   -------------------------------------------------------------------------- */

.ebKurtaxe { font-size: .78rem; color: #495057; margin-top: .5rem; }

.ebKurtaxeInfo { text-align: left; margin-top: .5rem; }

.ebKurtaxeInfo > summary {
    font-size: .78rem;
    color: #495057;
    cursor: pointer;
    list-style: none;
    padding: .1rem 0;
    text-align: center;
}

.ebKurtaxeInfo > summary::-webkit-details-marker { display: none; }
.ebKurtaxeInfo > summary::before { content: "\25BE\00a0"; color: #9a9a9a; }
.ebKurtaxeInfo[open] > summary::before { content: "\25B4\00a0"; }
.ebKurtaxeInfo > summary:hover { color: #000; }
.ebStaffelTitel { margin-top: .5rem; font-size: .74rem; font-weight: 600; color: #495057; }
.ebKurtaxeInfo ul { margin: .2rem 0 .3rem 1rem; padding: 0; font-size: .74rem; color: #495057; }
.ebKurtaxeInfo p { margin: .3rem 0 0; font-size: .72rem; color: #8a8a8a; }
.ebSaisonHinweis { font-style: italic; }

/* Tooltip für die Leistungsbeschreibung. Reines CSS, damit es auch nach dem
   Nachladen der Ergebnisliste ohne Neuinitialisierung funktioniert. Öffnet auf
   Hover, Tastatur-Fokus und Antippen (tabindex macht das Element fokussierbar)
   – ein reiner Hover-Tooltip wäre auf dem Smartphone nicht erreichbar. */
.ebTipZeile { margin: .5rem 0 0 !important; }

.ebTip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    cursor: help;
    outline: none;
    color: #6c757d;
}

.ebTip:hover, .ebTip:focus { color: #212529; }

.ebTipIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: .56rem;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    font-family: Georgia, serif;
}

.ebTipText {
    display: none;
    position: absolute;
    bottom: calc(100% + 7px);
    right: 0;
    width: 260px;
    max-width: 76vw;
    z-index: 1080;
    background: #2f2f2f;
    color: #f2f2f2;
    text-align: left;
    padding: .65rem .75rem;
    border-radius: 5px;
    font-size: .72rem;
    line-height: 1.45;
    font-weight: 400;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

.ebTipText::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 14px;
    border: 6px solid transparent;
    border-top-color: #2f2f2f;
}

.ebTip:hover .ebTipText,
.ebTip:focus .ebTipText,
.ebTip:focus-within .ebTipText { display: block; }
