/*
 * Eigene Ergänzungen zum Bootstrap-Theme (bootstrap-theme.css).
 * Hier stehen nur Anpassungen, die das Original nicht enthält: Cookie-Banner, gesperrte Medien,
 * Formularfehler und kleine Verbesserungen für Smartphone und Tablet.
 */

/* ---------------------------------------------------------------------------------------------
   Cookie-Banner (CookieConsent 3): Farben passend zur Website, volle Breite am unteren Rand
   --------------------------------------------------------------------------------------------- */
#cc-main {
    --cc-font-family: inherit;
    --cc-btn-primary-bg: #71a55a;
    --cc-btn-primary-border-color: #71a55a;
    --cc-btn-primary-hover-bg: #5d8c49;
    --cc-btn-primary-hover-border-color: #5d8c49;
    --cc-btn-secondary-hover-bg: #e8e2d6;
    --cc-toggle-on-bg: #71a55a;
    --cc-z-index: 2000;
}

#cc-main .cc-legal-links a,
#cc-main .pm__section-desc a {
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------------------------
   Gesperrte externe Medien (YouTube, Google Maps): lokaler Platzhalter ohne Vorschaubild
   --------------------------------------------------------------------------------------------- */
.consent-embed {
    position: relative;
    background: #f2efe9;
    border: 1px solid #d9d2c3;
}

.consent-embed.embed-responsive-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.consent-embed-map {
    min-height: 600px;
}

.consent-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 1.5rem;
    text-align: center;
}

.consent-embed-map .consent-placeholder {
    min-height: 600px;
}

.consent-embed-active {
    background: none;
    border: 0;
}

.consent-embed-active .consent-placeholder {
    display: none;
}

.consent-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.consent-embed-map .consent-iframe {
    height: 600px;
}

/* ---------------------------------------------------------------------------------------------
   Formulare: Fehlerdarstellung (Bootstrap 4 alpha kennt "is-invalid" noch nicht)
   --------------------------------------------------------------------------------------------- */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-control.is-invalid,
.is-invalid:not(.form-control) {
    border: 2px solid #d9534f;
    box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.2);
}

input[type="radio"].is-invalid,
input[type="checkbox"].is-invalid {
    outline: 2px solid #d9534f;
    outline-offset: 2px;
}

.form-error-message {
    margin-top: 0.35rem;
    color: #b52b27;
    font-size: 0.9rem;
    font-weight: bold;
}

.form-error-icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.25em;
    border-radius: 50%;
    background: #b52b27;
    color: #fff;
    font-size: 0.85em;
    line-height: 1.2em;
    text-align: center;
}

.form-error-summary:focus,
#booking-notice:focus,
#booking-success:focus {
    outline: 2px solid #b52b27;
}

.mandatory {
    color: #b52b27;
}

.booking-form fieldset {
    margin-bottom: 1.5rem;
    border: 0;
    padding: 0;
}

.booking-form .powermail_legend {
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #d9d2c3;
    font-size: 1.25rem;
}

.booking-altcha {
    max-width: 320px;
}

@media (max-width: 575px) {
    .booking-form .control-label {
        font-weight: bold;
    }

    .booking-form .btn {
        width: 100%;
    }
}

/* Karte (Google Maps) */
.map-embed {
    width: 100%;
    height: 600px;
    border: 0;
}

/* ---------------------------------------------------------------------------------------------
   Schnellanfrage im Buchungs-Tab: Platz für Hinweise auf kleinen Bildschirmen
   --------------------------------------------------------------------------------------------- */
.quick-inquiry .btn {
    white-space: nowrap;
}

/* Cookie-Einstellungen im Seitenfuß */
.footer-links [data-cc="show-preferencesModal"] {
    cursor: pointer;
}
