/* NWBC Cookie Consent – eigenständiges Banner */

.nwbc-cc-banner,
.nwbc-cc-modal,
.nwbc-cc-tab {
    box-sizing: border-box;
    color: var(--color-text, #3c4451);
    font-family: 'Open Sans', sans-serif;
}

.nwbc-cc-banner *,
.nwbc-cc-modal *,
.nwbc-cc-tab * {
    box-sizing: border-box;
}

/* Bottom banner */
.nwbc-cc-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: var(--color-white, #fff);
    border-top: 1px solid var(--color-border, #d7dfe4);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.nwbc-cc-banner.is-visible {
    transform: translateY(0);
}

.nwbc-cc-banner__text {
    flex: 1 1 420px;
    font-size: 14px;
    line-height: 1.5;
}

.nwbc-cc-banner__text strong {
    display: block;
    margin-bottom: 4px;
    color: var(--color-primary, #1a366f);
    font-size: 15px;
}

.nwbc-cc-banner__text a {
    color: var(--color-primary, #1a366f);
    text-decoration: underline;
}

.nwbc-cc-banner__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

/* Buttons */
.nwbc-cc-btn {
    display: inline-block;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.nwbc-cc-btn-primary {
    padding: 14px 10px;
    color: var(--color-white, #fff);
    background: var(--color-primary, #1a366f);
    border-color: var(--color-primary, #1a366f);
}

.nwbc-cc-btn-primary:hover {
    background: var(--color-slate, #566174);
    border-color: var(--color-slate, #566174);
}

.nwbc-cc-btn-secondary {
    color: var(--color-primary, #1a366f);
    background: var(--color-white, #fff);
    border-color: var(--color-border, #d7dfe4);
    padding: 0 10px;
}

.nwbc-cc-btn-secondary:hover {
    background: var(--color-bg-light, #e6edf2);
}

.nwbc-cc-btn-link {
    padding: 10px 4px;
    color: var(--color-primary, #1a366f);
    text-decoration: underline;
    background: none;
    border: none;
}

/* Preferences modal */
.nwbc-cc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(45, 51, 61, 0.55);
}

.nwbc-cc-modal-overlay.is-visible {
    display: flex;
}

.nwbc-cc-modal {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    padding: 28px;
    overflow-y: auto;
    background: var(--color-white, #fff);
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.nwbc-cc-modal h2 {
    margin: 0 0 8px;
    color: var(--color-primary, #1a366f);
    font-size: 18px;
}

.nwbc-cc-modal p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
}

.nwbc-cc-modal a {
    color: var(--color-primary, #1a366f);
}

.nwbc-cc-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--color-border, #d7dfe4);
}

.nwbc-cc-category:first-of-type {
    border-top: none;
}

.nwbc-cc-category__info strong {
    display: block;
    margin-bottom: 4px;
    color: var(--color-text, #3c4451);
    font-size: 14px;
}

.nwbc-cc-category__info span {
    display: block;
    color: var(--color-gray, #777);
    font-size: 13px;
    line-height: 1.4;
}

/* Toggle switch */
.nwbc-cc-switch {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
}

.nwbc-cc-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.nwbc-cc-switch__track {
    position: absolute;
    inset: 0;
    background: var(--color-border, #d7dfe4);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nwbc-cc-switch__track::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--color-white, #fff);
    border-radius: 50%;
    content: '';
    transition: transform 0.2s ease;
}

.nwbc-cc-switch input:checked + .nwbc-cc-switch__track {
    background: var(--color-primary, #1a366f);
}

.nwbc-cc-switch input:checked + .nwbc-cc-switch__track::before {
    transform: translateX(18px);
}

.nwbc-cc-switch input:disabled + .nwbc-cc-switch__track {
    background: var(--color-gray, #777);
    cursor: not-allowed;
    opacity: 0.5;
}

.nwbc-cc-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

/* Cookie settings button */
.nwbc-cc-tab {
    --nwbc-cc-tab-bg: #fff;
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: var(--color-primary, #1a366f);
    font-size: 0;
    line-height: 0;
    vertical-align: middle;
    background: var(--nwbc-cc-tab-bg);
    background-clip: padding-box;
    border: 1px solid rgba(26, 54, 111, 0.16);
    border-radius: 50%;
    box-shadow:
        0 8px 24px rgba(26, 54, 111, 0.16),
        0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    isolation: isolate;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.nwbc-cc-tab.is-visible {
    display: inline-flex;
}

.nwbc-cc-tab .nwbc-cc-cookie-icon {
    position: static;
    display: block;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    overflow: visible;
    transform: none;
    pointer-events: none;
}

.nwbc-cc-cookie-icon .nwbc-cc-cookie-cutout {
    fill: var(--nwbc-cc-tab-bg);
    transition: fill 0.2s ease;
}

.nwbc-cc-tab:hover {
    --nwbc-cc-tab-bg: var(--color-primary, #1a366f);
    color: var(--color-white, #fff);
    border-color: var(--color-primary, #1a366f);
    box-shadow:
        0 10px 28px rgba(26, 54, 111, 0.24),
        0 3px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.nwbc-cc-tab:focus-visible {
    outline: 3px solid rgba(26, 54, 111, 0.25);
    outline-offset: 3px;
}

.nwbc-cc-tab:active {
    transform: translateY(0) scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
    .nwbc-cc-tab {
        transition: none;
    }
}

@media (max-width: 640px) {
    .nwbc-cc-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .nwbc-cc-banner__actions {
        flex-direction: column;
    }

    .nwbc-cc-banner__actions .nwbc-cc-btn {
        width: 100%;
        text-align: center;
    }

    .nwbc-cc-modal {
        padding: 20px;
    }

    .nwbc-cc-tab {
        bottom: 18px;
        left: 18px;
        width: 46px;
        min-width: 46px;
        max-width: 46px;
        height: 46px;
        min-height: 46px;
        max-height: 46px;
    }
}
