/* =========================================================
   FAHRSCHULE SCHUMACHER
   COOKIE / CONSENT
   INTEGRIERTES WEBSITE-DESIGN
   ========================================================= */


/* =========================================================
   COOKIE-BANNER
   ========================================================= */

.cookie-banner {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;

    z-index: 999999;

    display: none;

    color: #f3f1ec;

    background:
        linear-gradient(
            135deg,
            #111111 0%,
            #181818 50%,
            #101010 100%
        );

    border-top:
        3px solid #D71920;

    box-shadow:
        0 -12px 40px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   SICHTBAR
   ========================================================= */

.cookie-banner.visible {
    display: block !important;
}


/* =========================================================
   INNERER BEREICH
   ========================================================= */

.cookie-banner-inner {

    width:
        min(
            1200px,
            calc(100% - 50px)
        );

    margin:
        0 auto;

    padding:
        28px 0 30px;

    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    column-gap:
        50px;

    row-gap:
        25px;

    align-items:
        center;
}


/* =========================================================
   TEXT
   ========================================================= */

.cookie-banner-text {
    min-width: 0;
}


.cookie-eyebrow {

    margin:
        0 0 7px;

    color:
        #EF3B43;

    font-family:
        "Barlow Condensed",
        Arial,
        sans-serif;

    font-size:
        15px;

    font-weight:
        700;

    letter-spacing:
        3px;

    text-transform:
        uppercase;
}


.cookie-banner h2 {

    margin:
        0 0 10px;

    color:
        #ffffff;

    font-family:
        "Barlow Condensed",
        Arial,
        sans-serif;

    font-size:
        34px;

    font-weight:
        700;

    line-height:
        1;
}


.cookie-banner-text > p:not(.cookie-eyebrow) {

    margin:
        0;

    max-width:
        800px;

    color:
        #d4d4d4;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size:
        14px;

    font-weight:
        400;

    line-height:
        1.6;
}


/* =========================================================
   DATENSCHUTZ-LINK
   ========================================================= */

.cookie-privacy-link {

    display:
        inline-block;

    margin-top:
        9px;

    color:
        #ffffff;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size:
        13px;

    font-weight:
        600;

    text-decoration:
        underline;

    text-decoration-thickness:
        1px;

    text-underline-offset:
        3px;

    transition:
        color 0.2s ease;
}


.cookie-privacy-link:hover {
    color:
        #EF3B43;
}


/* =========================================================
   BUTTON-BEREICH
   ========================================================= */

.cookie-banner-actions {

    display:
        flex;

    flex-wrap:
        wrap;

    justify-content:
        flex-end;

    align-items:
        center;

    gap:
        9px;
}


/* =========================================================
   BUTTON BASIS
   ========================================================= */

.cookie-button {

    min-height:
        46px;

    padding:
        11px 18px;

    border:
        1px solid transparent;

    border-radius:
        5px;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size:
        13px;

    font-weight:
        700;

    line-height:
        1;

    cursor:
        pointer;

    white-space:
        nowrap;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.cookie-button:hover {
    transform:
        translateY(-1px);
}


/* =========================================================
   NUR NOTWENDIGE
   ========================================================= */

.cookie-button-secondary {

    color:
        #ffffff;

    background:
        transparent;

    border-color:
        rgba(255, 255, 255, 0.25);
}


.cookie-button-secondary:hover {

    color:
        #ffffff;

    border-color:
        #D71920;

    background:
        rgba(215, 25, 32, 0.08);
}


/* =========================================================
   EINSTELLUNGEN
   ========================================================= */

.cookie-button-settings {

    color:
        #ffffff;

    background:
        transparent;

    border-color:
        rgba(255, 255, 255, 0.25);
}


.cookie-button-settings:hover {

    color:
        #ffffff;

    border-color:
        #D71920;

    background:
        rgba(215, 25, 32, 0.08);
}


/* =========================================================
   PRIMÄRER BUTTON
   ========================================================= */

.cookie-button-primary {

    color:
        #ffffff;

    background:
        #D71920;

    border-color:
        #D71920;
}


.cookie-button-primary:hover {

    color:
        #ffffff;

    background:
        #EF3B43;

    border-color:
        #EF3B43;
}


/* =========================================================
   EINSTELLUNGEN
   ========================================================= */

.cookie-settings {

    grid-column:
        1 / -1;

    display:
        none;

    padding:
        25px 0 0;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.12);
}


.cookie-settings.visible {
    display:
        block;
}


/* =========================================================
   EINSTELLUNGS-ZEILEN
   ========================================================= */

.cookie-setting-row {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        30px;

    padding:
        13px 0;
}


.cookie-setting-row + .cookie-setting-row {

    border-top:
        1px solid
        rgba(255, 255, 255, 0.07);
}


.cookie-setting-row strong {

    display:
        block;

    margin-bottom:
        3px;

    color:
        #ffffff;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size:
        14px;

    font-weight:
        700;
}


.cookie-setting-row span:not(.cookie-slider):not(.cookie-always-on) {

    display:
        block;

    color:
        #999999;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size:
        12px;

    line-height:
        1.5;
}


/* =========================================================
   IMMER AKTIV
   ========================================================= */

.cookie-always-on {

    flex:
        0 0 auto;

    color:
        #EF3B43;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size:
        12px;

    font-weight:
        700;
}


/* =========================================================
   TOGGLE
   ========================================================= */

.cookie-switch {

    position:
        relative;

    display:
        block;

    width:
        50px;

    height:
        28px;

    flex:
        0 0 50px;
}


.cookie-switch input {

    position:
        absolute;

    width:
        1px;

    height:
        1px;

    opacity:
        0;

    pointer-events:
        none;
}


.cookie-slider {

    position:
        absolute;

    inset:
        0;

    border-radius:
        999px;

    background:
        #4a4a4a;

    cursor:
        pointer;

    transition:
        background 0.2s ease;
}


.cookie-slider::before {

    content:
        "";

    position:
        absolute;

    width:
        22px;

    height:
        22px;

    left:
        3px;

    top:
        3px;

    border-radius:
        50%;

    background:
        #ffffff;

    transition:
        transform 0.2s ease;
}


.cookie-switch input:checked + .cookie-slider {

    background:
        #D71920;
}


.cookie-switch input:checked + .cookie-slider::before {

    transform:
        translateX(22px);
}


/* =========================================================
   SPEICHERN BUTTON
   ========================================================= */

.cookie-settings > .cookie-button {

    margin-top:
        15px;
}


/* =========================================================
   GOOGLE MAPS
   ========================================================= */

.consent-map-placeholder {

    position:
        relative;

    width:
        100%;

    min-height:
        420px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    overflow:
        hidden;

    background:
        linear-gradient(
            135deg,
            #171717,
            #292929
        );

    border-radius:
        10px;
}


.consent-map-content {

    width:
        min(
            500px,
            calc(100% - 40px)
        );

    padding:
        28px;

    text-align:
        center;

    color:
        #ffffff;

    background:
        rgba(15, 15, 15, 0.92);

    border:
        1px solid
        rgba(215, 25, 32, 0.7);

    border-radius:
        10px;
}


.consent-map-content strong {

    display:
        block;

    margin-bottom:
        8px;

    font-family:
        "Barlow Condensed",
        Arial,
        sans-serif;

    font-size:
        28px;

    font-weight:
        700;
}


.consent-map-content p {

    margin:
        0 0 18px;

    color:
        #cccccc;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size:
        14px;

    line-height:
        1.5;
}


.consent-map-button {

    min-height:
        44px;

    padding:
        10px 18px;

    color:
        #ffffff;

    background:
        #D71920;

    border:
        1px solid
        #D71920;

    border-radius:
        5px;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size:
        13px;

    font-weight:
        700;

    cursor:
        pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.consent-map-button:hover {

    background:
        #EF3B43;

    border-color:
        #EF3B43;
}


.consent-map-placeholder iframe {

    display:
        block;

    width:
        100%;

    min-height:
        420px;

    border:
        0;
}


.consent-map-loaded {
    display:
        block;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .cookie-banner-inner {

        width:
            min(
                100%,
                calc(100% - 40px)
            );

        grid-template-columns:
            1fr;

        gap:
            22px;

        padding:
            25px 0 27px;
    }


    .cookie-banner-actions {

        justify-content:
            flex-start;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .cookie-banner-inner {

        width:
            calc(100% - 30px);

        padding:
            22px 0 24px;
    }


    .cookie-banner h2 {

        font-size:
            29px;
    }


    .cookie-banner-text > p:not(.cookie-eyebrow) {

        font-size:
            13px;
    }


    .cookie-banner-actions {

        display:
            grid;

        grid-template-columns:
            1fr;

        width:
            100%;

        gap:
            8px;
    }


    .cookie-button {

        width:
            100%;
    }


    .cookie-setting-row {

        align-items:
            center;
    }


    .consent-map-placeholder,
    .consent-map-placeholder iframe {

        min-height:
            350px;
    }

}


/* =========================================================
   SEHR KLEINE HANDYS
   ========================================================= */

@media (max-width: 380px) {

    .cookie-banner-inner {

        width:
            calc(100% - 24px);

        padding:
            19px 0 21px;
    }


    .cookie-banner h2 {

        font-size:
            26px;
    }


    .cookie-eyebrow {

        font-size:
            13px;
    }

}