/* ============================================================
   cookie-consent.css
   Section Monsters – Cookie-Hinweis für die Landingpage
   ============================================================ */

/* ── Banner (unten, dezent) ────────────────────────────────── */
.scc-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: -140px;
    z-index: 9998;
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 15, 35, 0.18);
    padding: 20px 22px;
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease, bottom .35s ease;
    font-family: inherit;
}

.scc-banner--visible {
    bottom: 20px;
    opacity: 1;
}

.scc-banner-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.scc-banner-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: -4px;
}

.scc-banner-body {
    flex: 1;
    min-width: 0;
}

.scc-banner-title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.scc-banner-text {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.scc-link {
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #6366f1;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.scc-link:hover { color: #4f46e5; }

.scc-banner-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.scc-btn {
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, transform .1s ease;
}

.scc-btn-primary {
    background: #6366f1;
    color: #fff;
}

.scc-btn-primary:hover { background: #4f46e5; }
.scc-btn-primary:active { transform: scale(0.98); }

/* Sekundär = „Ablehnen" / „Auswahl speichern". Gleichwertig sichtbar zum
   Primär-Button (DSGVO: Ablehnen muss so leicht sein wie Akzeptieren). */
.scc-btn-secondary {
    background: #eceef3;
    color: #1f2430;
    border: 1px solid #d5d9e2;
}
.scc-btn-secondary:hover { background: #e0e3ea; }
.scc-btn-secondary:active { transform: scale(0.98); }
.scc-panel-footer .scc-btn { flex: 1; }

/* ── Overlay + Settings-Panel ───────────────────────────────── */
.scc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 35, 0.55);
    backdrop-filter: blur(3px);
    z-index: 9999;
    opacity: 0;
    transition: opacity .25s ease;
}

.scc-overlay--visible { opacity: 1; }

.scc-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.97);
    width: calc(100% - 40px);
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    z-index: 10000;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
}

.scc-panel--visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.scc-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 26px 16px;
    border-bottom: 1px solid #f1f1f4;
}

.scc-panel-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 4px;
}

.scc-panel-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.scc-panel-close {
    flex-shrink: 0;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
}

.scc-panel-close:hover { background: #e5e7eb; color: #111827; }

.scc-panel-body {
    padding: 20px 26px 6px;
}

.scc-panel-intro {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 18px;
}

/* ── Kategorie-Karten ─────────────────────────────────────── */
.scc-cat {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.scc-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scc-cat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.scc-cat-badge {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    background: #f3f4f6;
    border-radius: 99px;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.scc-cat-desc {
    font-size: 12.5px;
    line-height: 1.6;
    color: #6b7280;
    margin: 8px 0 0;
}

/* ── Toggle (rein informativ, necessary immer an & gesperrt) ─ */
.scc-toggle {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    cursor: not-allowed;
}

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

.scc-toggle-track {
    width: 40px;
    height: 22px;
    border-radius: 99px;
    background: #e5e7eb;
    display: block;
    position: relative;
    transition: background .15s ease;
}

.scc-toggle-dot {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform .15s ease;
}

.scc-toggle--on .scc-toggle-track { background: #a5b4fc; }
.scc-toggle--on .scc-toggle-dot { transform: translateX(18px); background: #6366f1; }
.scc-toggle--locked { opacity: 0.9; }

.scc-panel-footer {
    padding: 16px 26px 24px;
    display: flex;
    justify-content: flex-end;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 560px) {
    .scc-banner { left: 12px; right: 12px; padding: 16px; }
    .scc-banner-inner { flex-wrap: wrap; }
    .scc-banner-actions { width: 100%; }
    .scc-banner-actions .scc-btn { width: 100%; }
    .scc-panel { width: calc(100% - 24px); }
}