/*
 * Eigene Anpassungen der Website (alles, was nicht in den Bibliotheks-CSS-Dateien steht).
 * Bibliotheken: main.css (enthält Bootstrap 4 alpha, Font Awesome u. a.), jquery.*.css, flexslider.css, cookieconsent.css
 */

/* ---------- Parallax-Hintergründe (vorher Inline-Styles) ---------- */
.parallax-bg-1 {
    background: url("../img/index/paralax-1.jpg") no-repeat 50% 50% / cover fixed;
}

.parallax-bg-2 {
    background: url("../img/index/paralax-2.jpg") no-repeat 50% 50% / cover fixed;
}

/* iOS ignoriert "fixed" bei Hintergrundbildern: dort normal scrollen lassen */
@media (max-width: 991px) {
    .parallax-bg-1,
    .parallax-bg-2 {
        background-attachment: scroll;
    }
}

/* ---------- Tabellen ---------- */
.table-width-90 {
    width: 90%;
}

@media (max-width: 767px) {
    .table-width-90 {
        width: 100%;
    }

    .contenttable {
        font-size: 90%;
    }
}

/* ---------- Eingebettete Inhalte (YouTube, Google Maps, Deskline) ----------
   Vor der Zustimmung steht hier nur ein lokaler Platzhalter; der iframe wird erst nach Zustimmung eingefügt. */
.consent-embed {
    position: relative;
    width: 100%;
}

.consent-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Karten und Belegungskalender: Höhe kommt von .map-embed, .anfahrt bzw. .belegungsplan */
.map-embed {
    height: 600px;
}

/* YouTube im 16:9-Rahmen (.embed-responsive): füllt den Rahmen */
.consent-embed-youtube.video-embed-item {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

/* YouTube mit fester Höhe */
.consent-embed-youtube.embed-fixed-height {
    height: 600px;
}

.consent-embed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 200px;
    padding: 16px;
    overflow: auto;
    text-align: center;
    color: #fff;
    background: #333;
}

.consent-embed-placeholder p {
    max-width: 640px;
    margin-bottom: 10px;
}

.consent-embed-placeholder a,
.consent-embed-placeholder .btn-link {
    color: #fff;
    text-decoration: underline;
}

.consent-embed-placeholder .btn-link {
    padding: 0;
    border: 0;
    vertical-align: baseline;
    background: none;
    cursor: pointer;
}

.consent-embed-note {
    font-size: 85%;
}

/* Deskline-Buchungsmodul (Skript, kein iframe): Platzhalter braucht keine feste Höhe */
.consent-embed-script .consent-embed-placeholder {
    min-height: 0;
}

/* ---------- Footer: Button "Cookie-Einstellungen" sieht aus wie die übrigen Links ---------- */
.cookie-settings-link {
    display: block;
    padding-left: 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* ---------- Formulare ---------- */
.form-control {
    color: #555 !important;
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    box-shadow: inset 0 0 5px 0 #e4e3e3;
    padding: 5px;
    font-size: 14px;
}

select.form-control,
input.form-control {
    height: 35px;
}

textarea.form-control {
    height: auto !important;
}

.btn-primary {
    color: #5e5e5e;
    background-color: #f0f0f0;
    border-color: #c8c8c8;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background-color: #eb282e;
    border-color: #bc000b;
}

.contact-form .powermail_fieldwrap {
    margin-bottom: 25px;
}

.contact-form .mandatory {
    color: #c33b3b;
}

.contact-form .powermail_submit .btn,
.contact-form .btn-submit {
    padding: 15px 80px;
}

.contact-form .field-error {
    display: block;
    margin-top: 4px;
    color: #b02a2a;
    font-size: 85%;
}

.contact-form .field-error::before {
    content: "\26A0\00a0";
}

.contact-form .form-control.is-invalid {
    border: 2px solid #c33b3b !important;
    box-shadow: none !important;
}

.contact-form .alert {
    margin-bottom: 25px;
}

.contact-form .error-summary:focus {
    outline: 2px solid #c33b3b;
}

.contact-form .error-summary ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

/* Honeypot: für Besucher unsichtbar, per Tastatur und Screenreader nicht erreichbar */
.form-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

altcha-widget {
    display: block;
    max-width: 320px;
}

@media (max-width: 575px) {
    .contact-form .powermail_submit .btn,
    .contact-form .btn-submit {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ---------- Cookie-Banner (CookieConsent, vollbreit am unteren Rand) ---------- */
#cc-main {
    --cc-bg: #333;
    --cc-primary-color: #fff;
    --cc-secondary-color: #ddd;
    --cc-btn-primary-bg: #71a55a;
    --cc-btn-primary-color: #fff;
    --cc-btn-primary-border-color: #71a55a;
    --cc-btn-primary-hover-bg: #5f8f4a;
    --cc-btn-primary-hover-color: #fff;
    --cc-btn-primary-hover-border-color: #5f8f4a;
    --cc-btn-secondary-bg: #555;
    --cc-btn-secondary-color: #fff;
    --cc-btn-secondary-border-color: #777;
    --cc-btn-secondary-hover-bg: #6a6a6a;
    --cc-btn-secondary-hover-color: #fff;
    --cc-btn-secondary-hover-border-color: #888;
    --cc-separator-border-color: #555;
    --cc-footer-bg: #2a2a2a;
    --cc-footer-color: #ddd;
    --cc-footer-border-color: #444;
    --cc-toggle-on-bg: #71a55a;
    --cc-toggle-off-bg: #777;
    --cc-link-color: #fff;
    --cc-cookie-category-block-bg: #3d3d3d;
    --cc-cookie-category-block-border: #555;
    --cc-cookie-category-block-hover-bg: #474747;
    --cc-cookie-category-block-hover-border: #666;
    --cc-cookie-category-expanded-block-bg: #3d3d3d;
    --cc-cookie-category-expanded-block-hover-bg: #474747;
    --cc-overlay-bg: rgba(0, 0, 0, .6);
    --cc-modal-border-radius: 0;
    --cc-btn-border-radius: 0;
    --cc-font-family: inherit;
}

#cc-main .cm--bar {
    max-width: 100%;
}

#cc-main .cm__desc a,
#cc-main .pm__section-desc a {
    text-decoration: underline;
}

#cc-main .cm__legal-links {
    margin-top: 8px;
    font-size: .9em;
}

/* Auf Smartphones kompakter, damit der Banner nicht den halben Bildschirm verdeckt */
@media (max-width: 575px) {
    #cc-main .cm__title {
        font-size: 1rem;
    }

    #cc-main .cm__desc {
        font-size: .8125rem;
        line-height: 1.4;
    }

    #cc-main .cm__btn {
        padding: .55em 1em;
        font-size: .85rem;
    }

    #cc-main .cm__texts {
        padding-bottom: .5rem;
    }
}
