/* SEKTOR 9 Modul: seo-consent-ga4 · Cyber-HUD Cookie-Consent Styles */

.s9-consent-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    padding: 12px;
    pointer-events: none;
}

@media (min-width: 640px) {
    .s9-consent-wrap {
        padding: 20px;
    }
}

.s9-consent-wrap[hidden] {
    display: none !important;
}

.s9-consent-card {
    pointer-events: auto;
    max-width: 780px;
    margin: 0 auto;
    background-color: #0b0e14;
    border: 1px solid rgba(6, 182, 212, 0.42);
    border-radius: 6px;
    box-shadow:
        0 0 32px rgba(6, 182, 212, 0.2),
        0 14px 44px rgba(0, 0, 0, 0.88);
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
    color: #e2e8f0;
    animation: s9ConsentSlideUp 0.22s ease-out;
}

@keyframes s9ConsentSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.s9-consent-topline {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #22d3ee 0%, #a855f7 50%, #22d3ee 100%);
}

.s9-consent-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 640px) {
    .s9-consent-body {
        padding: 20px;
    }
}

.s9-consent-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.s9-consent-head-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.s9-consent-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.s9-consent-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: #22d3ee;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.85);
    flex-shrink: 0;
}

.s9-consent-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

@media (min-width: 640px) {
    .s9-consent-title {
        font-size: 15px;
    }
}

.s9-consent-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #cbd5e1;
}

.s9-consent-close {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #334155;
    border-radius: 4px;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.s9-consent-close:hover {
    border-color: #22d3ee;
    color: #ffffff;
}

.s9-consent-close[hidden] {
    display: none !important;
}

.s9-consent-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(168, 85, 247, 0.22);
}

.s9-consent-details[hidden] {
    display: none !important;
}

.s9-consent-cat {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border-radius: 5px;
    background-color: #121622;
    border: 1px solid #1e293b;
}

.s9-consent-cat-accent {
    border-color: rgba(168, 85, 247, 0.3);
}

.s9-consent-cat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.s9-consent-cat-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.s9-consent-cat-title {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.s9-consent-cat-desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #94a3b8;
}

.s9-consent-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid transparent;
}

.s9-consent-badge-emerald {
    background-color: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.42);
    color: #6ee7b7;
}

.s9-consent-badge-cyan {
    background-color: rgba(6, 182, 212, 0.16);
    border-color: rgba(34, 211, 238, 0.52);
    color: #67e8f9;
}

.s9-consent-badge-muted {
    background-color: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

/* Toggle-Switch */
.s9-consent-switch-wrap {
    flex-shrink: 0;
    padding-top: 2px;
}

.s9-consent-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    cursor: pointer;
}

.s9-consent-switch-locked {
    cursor: not-allowed;
    opacity: 0.78;
}

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

.s9-consent-slider {
    position: absolute;
    inset: 0;
    background-color: #334155;
    border: 1px solid #475569;
    border-radius: 9999px;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.s9-consent-slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.18s ease;
}

.s9-consent-switch input:checked + .s9-consent-slider {
    background-color: #06b6d4;
    border-color: #67e8f9;
}

.s9-consent-switch-locked input:checked + .s9-consent-slider {
    background-color: #059669;
    border-color: #34d399;
}

.s9-consent-switch input:checked + .s9-consent-slider::before {
    transform: translateX(20px);
}

.s9-consent-switch input:focus-visible + .s9-consent-slider {
    outline: 2px solid #22d3ee;
    outline-offset: 2px;
}

/* Fußzeile & gleichberechtigte Buttons */
.s9-consent-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

@media (min-width: 640px) {
    .s9-consent-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.s9-consent-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #94a3b8;
}

.s9-consent-links a {
    color: #94a3b8;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.s9-consent-links a:hover {
    color: #67e8f9;
}

.s9-consent-sep {
    color: #475569;
}

.s9-consent-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 640px) {
    .s9-consent-actions {
        flex-direction: row;
        align-items: center;
    }
}

.s9-consent-btn {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
    text-align: center;
    white-space: nowrap;
}

.s9-consent-btn[hidden] {
    display: none !important;
}

.s9-consent-btn-ghost {
    background-color: transparent;
    border-color: #334155;
    color: #cbd5e1;
    font-weight: 500;
}

.s9-consent-btn-ghost:hover {
    border-color: #a855f7;
    color: #e9d5ff;
}

.s9-consent-btn-purple {
    background-color: rgba(147, 51, 234, 0.28);
    border-color: rgba(192, 132, 252, 0.72);
    color: #f3e8ff;
}

.s9-consent-btn-purple:hover {
    background-color: rgba(147, 51, 234, 0.44);
}

/* Gleichwertige Hauptbuttons (DSGVO-konform, kein Dark Pattern) */
.s9-consent-btn-equal-neutral {
    background-color: #1e293b;
    border-color: rgba(34, 211, 238, 0.48);
    color: #ffffff;
}

.s9-consent-btn-equal-neutral:hover {
    background-color: #334155;
    border-color: #67e8f9;
}

.s9-consent-btn-equal-cyan {
    background-color: rgba(8, 145, 178, 0.34);
    border-color: rgba(34, 211, 238, 0.82);
    color: #ecfeff;
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.2);
}

.s9-consent-btn-equal-cyan:hover {
    background-color: rgba(6, 182, 212, 0.46);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.34);
}

/* Footer-Link Button */
.s9-cookie-footer-trigger {
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.s9-cookie-footer-trigger:hover {
    color: #67e8f9;
}
