:root {
    --tbcc-stille: #F4F0E7;
    --tbcc-tiefe: #3A3D2C;
    --tbcc-wendung: #EBAD54;
    --tbcc-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --tbcc-sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

.tbcc-root * {
    box-sizing: border-box;
}

.tbcc-hidden {
    display: none !important;
}

.tbcc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    padding: 1rem;
    pointer-events: none;
}

.tbcc-banner__inner {
    pointer-events: auto;
    max-width: 72rem;
    margin: 0 auto;
    background: rgba(244, 240, 231, 0.96);
    border: 1px solid rgba(58, 61, 44, 0.12);
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(58, 61, 44, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .tbcc-banner__inner {
        grid-template-columns: 1fr auto;
        align-items: end;
        padding: 1.75rem 2rem;
    }
}

.tbcc-banner__title,
.tbcc-modal__title {
    margin: 0 0 0.75rem;
    font-family: var(--tbcc-serif);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--tbcc-tiefe);
}

.tbcc-banner__text,
.tbcc-modal__intro,
.tbcc-category__desc {
    margin: 0;
    font-family: var(--tbcc-sans);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(58, 61, 44, 0.85);
}

.tbcc-banner__legal {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: rgba(58, 61, 44, 0.7);
}

.tbcc-banner__legal a {
    color: var(--tbcc-tiefe);
    text-decoration: underline;
}

.tbcc-banner__actions,
.tbcc-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.tbcc-btn {
    appearance: none;
    border-radius: 0.375rem;
    padding: 0.7rem 1.1rem;
    font-family: var(--tbcc-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tbcc-btn--primary {
    background: var(--tbcc-tiefe);
    color: var(--tbcc-stille);
    border: 1px solid var(--tbcc-tiefe);
}

.tbcc-btn--primary:hover {
    background: rgba(58, 61, 44, 0.9);
}

.tbcc-btn--outline {
    background: transparent;
    color: var(--tbcc-tiefe);
    border: 1px solid rgba(58, 61, 44, 0.35);
}

.tbcc-btn--outline:hover {
    background: rgba(58, 61, 44, 0.05);
}

.tbcc-btn--ghost {
    background: transparent;
    color: var(--tbcc-tiefe);
    border: 1px solid transparent;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.tbcc-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tbcc-modal[hidden] {
    display: none !important;
}

.tbcc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(58, 61, 44, 0.45);
    backdrop-filter: blur(4px);
}

.tbcc-modal__panel {
    position: relative;
    width: min(100%, 40rem);
    max-height: min(90vh, 44rem);
    overflow: auto;
    background: var(--tbcc-stille);
    border: 1px solid rgba(58, 61, 44, 0.12);
    border-radius: 0.5rem;
    box-shadow: 0 24px 80px rgba(58, 61, 44, 0.22);
    padding: 2rem 1.5rem 1.5rem;
}

.tbcc-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tbcc-modal__close span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.25rem;
    height: 1px;
    background: var(--tbcc-tiefe);
}

.tbcc-modal__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.tbcc-modal__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.tbcc-categories {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.tbcc-category {
    padding: 1rem 0;
    border-top: 1px solid rgba(58, 61, 44, 0.1);
}

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

.tbcc-category__label {
    margin: 0;
    font-family: var(--tbcc-serif);
    font-size: 1.25rem;
    color: var(--tbcc-tiefe);
}

.tbcc-category__badge {
    font-family: var(--tbcc-sans);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(58, 61, 44, 0.65);
}

.tbcc-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.tbcc-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tbcc-switch__ui {
    width: 2.75rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(58, 61, 44, 0.2);
    transition: background-color 0.2s ease;
    position: relative;
}

.tbcc-switch__ui::after {
    content: "";
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--tbcc-stille);
    transition: transform 0.2s ease;
}

.tbcc-switch input:checked + .tbcc-switch__ui {
    background: var(--tbcc-tiefe);
}

.tbcc-switch input:checked + .tbcc-switch__ui::after {
    transform: translateX(1.2rem);
}

.tbcc-switch input:focus-visible + .tbcc-switch__ui {
    outline: 2px solid var(--tbcc-tiefe);
    outline-offset: 2px;
}

button.tbcc-open-settings {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

@media (max-width: 767px) {
    .tbcc-banner__actions,
    .tbcc-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tbcc-btn {
        width: 100%;
        text-align: center;
    }
}
