/* SIAM Urai – Cookie Consent */

#map.cc-map--blocked {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    min-height: 280px;
    background: rgba(248, 241, 231, 0.9);
    color: rgba(47, 29, 20, 0.75);
    font-size: 0.9375rem;
    line-height: 1.5;
}
#cc-banner,
#cc-modal {
    font-family: 'Nunito Sans', system-ui, sans-serif;
}

#cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    padding: 1rem;
    pointer-events: none;
}

#cc-banner.cc-banner--visible {
    pointer-events: auto;
}

#cc-banner .cc-banner__inner {
    max-width: 1240px;
    margin: 0 auto;
    background: #FFF9F1;
    border: 1px solid rgba(47, 29, 20, 0.1);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(47, 29, 20, 0.18);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

#cc-banner.cc-banner--visible .cc-banner__inner {
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 768px) {
    #cc-banner .cc-banner__inner {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        padding: 1.25rem 1.75rem;
    }
}

#cc-banner .cc-banner__text {
    flex: 1;
    min-width: 0;
}

#cc-banner .cc-banner__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #2F1D14;
    margin: 0 0 0.35rem;
}

#cc-banner .cc-banner__desc {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(47, 29, 20, 0.72);
    margin: 0;
}

#cc-banner .cc-banner__desc a {
    color: #7B1E24;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#cc-banner .cc-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.625rem 1.125rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.cc-btn--primary {
    background: #C89B3C;
    color: #2F1D14;
}

.cc-btn--primary:hover {
    background: #b58a33;
}

.cc-btn--secondary {
    background: transparent;
    color: #2F1D14;
    border: 1px solid rgba(47, 29, 20, 0.2);
}

.cc-btn--secondary:hover {
    background: rgba(47, 29, 20, 0.05);
}

.cc-btn--ghost {
    background: transparent;
    color: #7B1E24;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Modal */
#cc-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

#cc-modal.cc-modal--open {
    opacity: 1;
    visibility: visible;
}

#cc-modal .cc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(47, 29, 20, 0.45);
}

#cc-modal .cc-modal__panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: min(90vh, 640px);
    overflow: auto;
    background: #FFF9F1;
    border-radius: 24px;
    border: 1px solid rgba(47, 29, 20, 0.08);
    box-shadow: 0 24px 64px rgba(47, 29, 20, 0.22);
    padding: 1.75rem;
}

#cc-modal .cc-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

#cc-modal .cc-modal__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #2F1D14;
    margin: 0;
}

#cc-modal .cc-modal__close {
    background: none;
    border: none;
    color: #2F1D14;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.6;
}

#cc-modal .cc-modal__close:hover {
    opacity: 1;
}

.cc-category {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(47, 29, 20, 0.08);
}

.cc-category:last-of-type {
    border-bottom: none;
}

.cc-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.cc-category__name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #2F1D14;
}

.cc-category__desc {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(47, 29, 20, 0.65);
    margin: 0;
    padding-right: 3rem;
}

.cc-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cc-toggle__slider {
    position: absolute;
    inset: 0;
    background: rgba(47, 29, 20, 0.15);
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s;
}

.cc-toggle__slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #FFF9F1;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(47, 29, 20, 0.2);
}

.cc-toggle input:checked + .cc-toggle__slider {
    background: #7B1E24;
}

.cc-toggle input:checked + .cc-toggle__slider::before {
    transform: translateX(20px);
}

.cc-toggle input:disabled + .cc-toggle__slider {
    opacity: 0.55;
    cursor: not-allowed;
}

.cc-toggle--locked .cc-toggle__slider::after {
    content: 'Immer aktiv';
    position: absolute;
    right: -4.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.625rem;
    color: rgba(47, 29, 20, 0.45);
    white-space: nowrap;
}

#cc-modal .cc-modal__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(47, 29, 20, 0.08);
}

/* Map placeholder (Kontakt) */
#map.cc-map--blocked {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E8D7C0;
    color: rgba(47, 29, 20, 0.65);
    font-size: 0.875rem;
    text-align: center;
    padding: 1.5rem;
}

/* Footer link */
.cc-settings-link {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: none;
}

.cc-settings-link:hover {
    color: #FFF9F1;
}

/* Mobile sticky bar offset */
body.cc-banner-open .lg\\:hidden.fixed.bottom-4 {
    bottom: 7.5rem;
}

@media (min-width: 1024px) {
    body.cc-banner-open .lg\\:hidden.fixed.bottom-4 {
        bottom: 1rem;
    }
}
