/* Cookie-Einwilligung. Farben: Hintergrund #031928 (Marke), Akzent #FF6600.
   Kontraste: Weiß auf #031928 ≈ 17:1, #FF6600 auf #031928 ≈ 6:1, #031928 auf #FF6600 ≈ 6:1. */

.consent[hidden],
.consent [hidden] {
    display: none !important;
}

.consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2147483000; /* über reCAPTCHA-Badge und Kontakt-Button */
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #031928;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.consent__inner {
    padding: 20px;
}

.consent__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.consent__text {
    margin: 0 0 16px;
}

.consent__link {
    color: #FF6600;
    text-decoration: underline;
}

.consent__link:hover,
.consent__link:focus {
    color: #ffffff;
}

.consent__details {
    margin: 0 0 16px;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.consent__cat {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.consent__cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin: 0;
    cursor: pointer;
}

.consent__cat-name {
    font-weight: 700;
}

.consent__always {
    font-size: 14px;
    color: #c9d8e2;
}

.consent__cat-desc {
    margin: 4px 0 0;
    font-size: 14px;
    color: #c9d8e2;
}

/* Schalter */
.consent__switch {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 28px;
    margin: 0;
    border-radius: 14px;
    background: #5b6b77;
    cursor: pointer;
    transition: background .2s;
}

.consent__switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform .2s;
}

.consent__switch:checked {
    background: #FF6600;
}

.consent__switch:checked::after {
    transform: translateX(20px);
}

.consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* "Ablehnen" und "Akzeptieren" gleich groß und gleich prominent */
.consent__btn {
    flex: 1 1 140px;
    min-height: 44px;
    padding: 10px 16px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    background: #ffffff;
    color: #031928;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.consent__btn--accept,
.consent__btn--save {
    border-color: #FF6600;
    background: #FF6600;
}

.consent__btn:hover {
    filter: brightness(.92);
}

.consent__settings {
    flex: 1 0 100%;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: none;
    color: #ffffff;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.consent button:focus-visible,
.consent a:focus-visible,
.consent__switch:focus-visible {
    outline: 3px solid #FF6600;
    outline-offset: 2px;
}

.consent__switch:focus-visible {
    outline-color: #ffffff;
}

/* Telefon: randlos am unteren Rand, kompakter Text */
@media (max-width: 767.98px) {
    .consent {
        left: 0;
        right: 0;
        bottom: 0;
        max-width: none;
        max-height: 80vh;
        border-radius: 8px 8px 0 0;
        border-top: 1px solid rgba(255, 255, 255, .25);
        font-size: 14px;
        line-height: 1.4;
    }
    .consent__inner {
        padding: 14px 16px 10px;
    }
    .consent__title {
        margin-bottom: 4px;
        font-size: 16px;
    }
    .consent__text {
        margin-bottom: 12px;
    }
    .consent__settings {
        min-height: 40px;
        padding: 4px 0;
    }
}

@media (min-width: 768px) {
    .consent {
        left: 24px;
        right: auto;
        bottom: 24px;
        border: 1px solid rgba(255, 255, 255, .25);
    }
}

@media (prefers-reduced-motion: reduce) {
    .consent__switch,
    .consent__switch::after {
        transition: none;
    }
}

/* Link im Footer zum erneuten Öffnen */
.consent-open-link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
