/* Hausarztpraxis Lindenberg: Cookie-/Datenschutzeinstellungen */
.cookie-dialog[hidden],
.cookie-options[hidden],
#cookie-save[hidden] {
    display: none !important;
}

.cookie-dialog {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    background: rgba(8, 38, 40, 0.55);
}

.cookie-content {
    width: min(100%, 820px);
    max-height: min(88vh, 760px);
    overflow-y: auto;
    padding: clamp(20px, 2.4vw, 30px);
    background: #ffffff;
    color: #124b4e;
    border: 1px solid #dceae3;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(6, 36, 36, 0.2);
}

.cookie-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    color: #4c8a7d;
}

.cookie-content h2 {
    margin: 7px 0 10px;
    font-size: clamp(20px, 2.2vw, 25px);
    color: #10585d;
}

.cookie-content p {
    margin: 0 0 17px;
    font-size: 14px;
    line-height: 1.65;
    color: #4b6866;
}

.cookie-options {
    margin: 13px 0 20px;
    border: 1px solid #d9e9e2;
    border-radius: 12px;
    overflow: hidden;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 16px;
    background: #f7fbf9;
    color: #125457;
}

.cookie-option + .cookie-option {
    border-top: 1px solid #d9e9e2;
}

.cookie-option strong,
.cookie-option small {
    display: block;
}

.cookie-option small {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.5;
    color: #647c77;
}

.cookie-required {
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

/* Barrierefreier Ein-/Aus-Schalter für Google Maps. */
.cookie-switch {
    display: inline-flex;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 28px;
    cursor: pointer;
}

.cookie-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.cookie-switch-track {
    display: block;
    width: 48px;
    height: 28px;
    background: #a7bbb4;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.cookie-switch-track::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 4px;
    top: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch-track {
    background: #155d61;
}

.cookie-switch input:checked + .cookie-switch-track::before {
    transform: translateX(20px);
}

.cookie-switch input:focus-visible + .cookie-switch-track {
    outline: 3px solid #8ec2af;
    outline-offset: 3px;
}

.cookie-switch input:disabled + .cookie-switch-track {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-button {
    padding: 11px 18px;
    min-height: 43px;
    border: 1px solid #155d61;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-button:focus-visible,
.cookie-footer-link:focus-visible {
    outline: 3px solid #8ec2af;
    outline-offset: 3px;
}

.cookie-primary {
    background: #155d61;
    color: #ffffff;
}

.cookie-secondary {
    background: #ffffff;
    color: #155d61;
}

.cookie-button:hover {
    filter: brightness(.94);
}

.cookie-privacy {
    display: inline-block;
    margin-top: 16px;
    font-size: 12px;
    color: #155d61;
}

.cookie-footer-link {
    display: inline;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 560px) {
    .cookie-dialog {
        padding: 0;
        align-items: flex-end;
    }

    .cookie-content {
        border-radius: 18px 18px 0 0;
        max-height: 90vh;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-button {
        width: 100%;
    }
}

/* Primäre Zustimmung als gut sichtbarer Button. */
#cookie-accept {
    background: #155d61;
    color: #fff;
    font-weight: 800;
    border-color: #155d61;
}

#cookie-accept:hover {
    background: #104b4e;
}
