/* Seehaus Cookie Consent */

.cookie-consent[hidden] { display: none !important; }
.cookie-consent-reopen[hidden] { display: none !important; }
.cookie-consent__modal[hidden] { display: none !important; }

.cookie-consent {
    position: fixed;
    z-index: 10050;
    color: var(--cc-text, #2a2a2a);
    font-family: inherit;
}

/* ─────── Banner – Varianten ─────── */
.cookie-consent--bottom-bar .cookie-consent__banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
    animation: cc-slide-up 0.3s ease-out;
}

.cookie-consent--modal-center .cookie-consent__banner {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: cc-fade 0.25s ease-out;
}

.cookie-consent--modal-center .cookie-consent__banner-inner {
    background: #fff;
    max-width: 560px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: cc-rise 0.3s ease-out;
}

.cookie-consent--bottom-bar .cookie-consent__banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-consent__text { flex: 1; min-width: 250px; }

.cookie-consent__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: var(--cc-text, #2a2a2a);
}

.cookie-consent__body {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 0.5rem;
    color: #444;
}

.cookie-consent__links {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}
.cookie-consent__links a {
    color: var(--cc-primary, #7a6a3a);
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ─────── Buttons ─────── */
.cookie-consent__btn {
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--cc-primary, #7a6a3a);
    background: transparent;
    color: var(--cc-primary, #7a6a3a);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.cookie-consent__btn:hover {
    background: var(--cc-primary, #7a6a3a);
    color: var(--cc-btn-text, #fff);
}
.cookie-consent__btn--primary {
    background: var(--cc-primary, #7a6a3a);
    color: var(--cc-btn-text, #fff);
}
.cookie-consent__btn--primary:hover {
    background: #000;
    border-color: #000;
}
.cookie-consent__btn--ghost {
    border-color: #ccc;
    color: var(--cc-text, #2a2a2a);
}
.cookie-consent__btn--ghost:hover {
    background: #f0f0f0;
    color: var(--cc-text, #2a2a2a);
}

/* ─────── Settings-Dialog ─────── */
.cookie-consent__modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: cc-fade 0.25s ease-out;
}
.cookie-consent__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.cookie-consent__modal-dialog {
    position: relative;
    background: #fff;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: cc-rise 0.3s ease-out;
}
.cookie-consent__modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: transparent;
    border: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
}
.cookie-consent__modal-close:hover { color: #000; }

.cookie-consent__modal-title {
    font-size: 1.3rem;
    margin: 0 0 0.75rem;
    color: var(--cc-text, #2a2a2a);
}
.cookie-consent__modal-body {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
    color: #444;
}

.cookie-consent__categories {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.cookie-consent__category {
    padding: 1rem 0;
    border-top: 1px solid #eee;
}
.cookie-consent__category:last-child { border-bottom: 1px solid #eee; }

.cookie-consent__category-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.4rem;
}
.cookie-consent__category-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--cc-text, #2a2a2a);
}
.cookie-consent__category-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 0.5rem;
    color: #555;
}

.cookie-consent__badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: #eee;
    color: #666;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Toggle-Switch */
.cookie-consent__switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.cookie-consent__switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-consent__switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    transition: 0.2s;
    border-radius: 24px;
}
.cookie-consent__switch-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.2s;
    border-radius: 50%;
}
.cookie-consent__switch input:checked + .cookie-consent__switch-slider {
    background: var(--cc-primary, #7a6a3a);
}
.cookie-consent__switch input:checked + .cookie-consent__switch-slider::before {
    transform: translateX(18px);
}

.cookie-consent__cookies {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}
.cookie-consent__cookies summary {
    cursor: pointer;
    color: var(--cc-primary, #7a6a3a);
    user-select: none;
}
.cookie-consent__cookies-list {
    margin: 0.5rem 0 0;
    padding: 0.75rem;
    background: #f8f8f8;
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: pre-wrap;
    font-family: inherit;
    color: #444;
}

.cookie-consent__modal-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-consent__modal-links {
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    margin: 1rem 0 0;
}
.cookie-consent__modal-links a {
    color: var(--cc-primary, #7a6a3a);
    text-decoration: underline;
}

/* ─────── Floating-Button zum erneuten Öffnen ─────── */
.cookie-consent-reopen {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cc-primary, #7a6a3a);
    color: var(--cc-btn-text, #fff);
    border: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.15s;
}
.cookie-consent-reopen:hover {
    transform: scale(1.08);
    background: #000;
}

/* ─────── Keyframes ─────── */
@keyframes cc-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@keyframes cc-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes cc-rise {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─────── Mobile ─────── */
@media (max-width: 640px) {
    .cookie-consent--bottom-bar .cookie-consent__banner-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-consent__actions {
        flex-direction: column;
    }
    .cookie-consent__btn {
        width: 100%;
    }
    .cookie-consent__modal-dialog {
        padding: 1.5rem 1.25rem;
    }
    .cookie-consent__modal-actions {
        flex-direction: column;
    }
}
