/* Eigener Cookie-Banner (Krypto_Consent) – Farben aus dem Design-System, mit Ersatzwerten für Seiten ohne kb-ui.css */
.kbc-wrap,
.kbc-blocked,
.kbc-floating {
    --kbc-text: var(--kb-text, #303640);
    --kbc-muted: var(--kb-muted, #6b7280);
    --kbc-bg: var(--kb-bg, #fff);
    --kbc-soft: var(--kb-bg-soft, #f5f6f8);
    --kbc-border: var(--kb-border, #e6e8eb);
    --kbc-accent: var(--kb-accent, #0aa6f5);
    --kbc-accent-dark: var(--kb-accent-dark, #0284c7);
    --kbc-radius: var(--kb-radius, 12px);
    font-family: inherit;
    color: var(--kbc-text);
    box-sizing: border-box;
}

.kbc-wrap *,
.kbc-blocked * {
    box-sizing: border-box;
}

.kbc-wrap {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17, 24, 39, .45);
    font-size: 15px;
    line-height: 1.5;
}

.kbc-wrap--bar {
    align-items: flex-end;
    padding: 0;
}

.kbc-dialog {
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 24px;
    background: var(--kbc-bg);
    border-radius: var(--kbc-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.kbc-wrap--bar .kbc-dialog {
    max-width: none;
    max-height: 85vh;
    border-radius: var(--kbc-radius) var(--kbc-radius) 0 0;
}

.kbc-wrap--bar .kbc-view {
    max-width: 1100px;
    margin: 0 auto;
}

.kbc-wrap p {
    margin: 0 0 12px;
}

.kbc-title {
    font-size: 1.25em;
    font-weight: 700;
}

.kbc-text--small {
    font-size: .88em;
    color: var(--kbc-muted);
}

.kbc-cats-short {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.kbc-cats-short li {
    margin: 0;
    padding: 2px 10px;
    font-size: .82em;
    background: var(--kbc-soft);
    border-radius: 999px;
}

.kbc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 12px;
}

.kbc-btn {
    flex: 1 1 160px;
    min-height: 44px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid var(--kbc-accent);
    border-radius: 8px;
    cursor: pointer;
}

.kbc-btn--primary {
    color: #fff;
    background: var(--kbc-accent-dark);
    border-color: var(--kbc-accent-dark);
}

.kbc-btn--primary:hover,
.kbc-btn--primary:focus-visible {
    background: #036aa1;
}

.kbc-btn--link {
    flex: 0 1 auto;
    color: var(--kbc-accent-dark);
    background: transparent;
    border-color: transparent;
    text-decoration: underline;
}

.kbc-btn:focus-visible,
.kbc-wrap a:focus-visible,
.kbc-wrap summary:focus-visible,
.kbc-switch input:focus-visible + .kbc-switch-ui,
.kbc-floating:focus-visible {
    outline: 3px solid var(--kbc-accent);
    outline-offset: 2px;
}

.kbc-links {
    font-size: .82em;
    text-align: center;
}

.kbc-wrap a {
    color: var(--kbc-accent-dark);
}

.kbc-cats {
    margin: 0 0 12px;
}

.kbc-cat {
    padding: 12px 0;
    border-top: 1px solid var(--kbc-border);
}

.kbc-cat-head {
    margin-bottom: 6px;
}

.kbc-cat-name {
    font-weight: 600;
}

.kbc-count {
    font-weight: 400;
    color: var(--kbc-muted);
}

/* Schalter */
.kbc-switch {
    position: relative;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.kbc-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.kbc-switch-ui {
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 22px;
    background: #c4c9d0;
    border-radius: 999px;
    transition: background .15s;
}

.kbc-switch-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform .15s;
}

.kbc-switch input:checked + .kbc-switch-ui {
    background: var(--kbc-accent-dark);
}

.kbc-switch input:checked + .kbc-switch-ui::after {
    transform: translateX(18px);
}

.kbc-switch input:disabled + .kbc-switch-ui {
    opacity: .55;
}

.kbc-switch--sm .kbc-switch-ui {
    width: 32px;
    height: 18px;
}

.kbc-switch--sm .kbc-switch-ui::after {
    width: 12px;
    height: 12px;
}

.kbc-switch--sm input:checked + .kbc-switch-ui::after {
    transform: translateX(14px);
}

.kbc-details summary {
    font-size: .88em;
    color: var(--kbc-accent-dark);
    cursor: pointer;
}

.kbc-svc {
    margin: 10px 0 0;
    padding: 10px 12px;
    background: var(--kbc-soft);
    border-radius: 8px;
}

.kbc-table {
    width: 100%;
    margin: 8px 0 0;
    font-size: .82em;
    border-collapse: collapse;
}

.kbc-table th,
.kbc-table td {
    padding: 3px 6px 3px 0;
    text-align: left;
    vertical-align: top;
    border: 0;
    overflow-wrap: anywhere;
}

.kbc-table th {
    width: 38%;
    font-weight: 600;
}

/* Schwebender Knopf zum Widerrufen */
.kbc-floating {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 2147482000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--kbc-accent-dark);
    background: var(--kbc-bg);
    border: 1px solid var(--kbc-border);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    cursor: pointer;
}

.kbc-floating svg {
    width: 22px;
    height: 22px;
}

/* Content-Blocker */
.kbc-blocked {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    margin: 0 0 1em;
    padding: 20px;
    text-align: center;
    background: var(--kbc-soft);
    border: 1px solid var(--kbc-border);
    border-radius: var(--kbc-radius);
}

.kbc-blocked-inner {
    max-width: 520px;
    font-size: .9em;
}

.kbc-blocked p {
    margin: 0 0 10px;
}

.kbc-blocked-title {
    font-weight: 700;
}

.kbc-blocked .kbc-btn {
    flex: 0 0 auto;
}

.kbc-always {
    font-size: .9em;
    color: var(--kbc-muted);
    cursor: pointer;
}

.kbc-blocked template {
    display: none;
}

/* Liste der Dienste in der Datenschutzerklärung ([kb_datenschutz]) */
.kb-privacy-svc {
    width: 100%;
    margin: 0 0 1.2em;
    font-size: .92em;
    border-collapse: collapse;
}

.kb-privacy-svc caption {
    padding: 0 0 4px;
    font-weight: 700;
    text-align: left;
}

.kb-privacy-svc th,
.kb-privacy-svc td {
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
    border: 1px solid var(--kb-border, #e6e8eb);
    overflow-wrap: anywhere;
}

.kb-privacy-svc th {
    width: 30%;
    background: var(--kb-bg-soft, #f5f6f8);
}

html.kbc-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .kbc-wrap {
        align-items: flex-end;
        padding: 0;
    }

    .kbc-dialog {
        max-height: 88vh;
        padding: 18px 16px;
        border-radius: var(--kbc-radius) var(--kbc-radius) 0 0;
    }

    .kbc-btn {
        flex-basis: 100%;
    }
}

@media print {
    .kbc-wrap,
    .kbc-floating {
        display: none !important;
    }
}
