/* ══════════════════════════════════════════════════════════════════
   VfL1945 Cookie-Consent – Eigene DSGVO-Lösung
   ══════════════════════════════════════════════════════════════════ */

#cc-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9000;
    backdrop-filter: blur(3px);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0 0 env(safe-area-inset-bottom);
    opacity: 0; transition: opacity .3s ease;
}
#cc-overlay.cc-visible { opacity: 1; }
#cc-overlay.cc-hidden  { opacity: 0; pointer-events: none; }

#cc-banner {
    background: #0d1b2a;
    border: 1px solid rgba(101,255,0,.2);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    width: 100%; max-width: 1300px;
    padding: 20px 24px;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 -8px 40px rgba(0,0,0,.7);
}
#cc-overlay.cc-visible #cc-banner { transform: translateY(0); }

#cc-settings-panel {
    background: #0d1b2a;
    border: 1px solid rgba(101,255,0,.2);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    width: 100%; max-width: 1300px;
    padding: 20px 24px;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 -8px 40px rgba(0,0,0,.7);
    display: none;
}
#cc-settings-panel.cc-open { display: block; transform: translateY(0); }

.cc-head {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.cc-head-icon {
    width: 36px; height: 36px; background: rgba(101,255,0,.1);
    border: 1px solid rgba(101,255,0,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.cc-title { font-size: 15px; font-weight: 800; color: #fff; }
.cc-subtitle { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 1px; }

.cc-text {
    font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.6;
    margin-bottom: 16px;
}
.cc-text a { color: #65ff00; text-decoration: none; }
.cc-text a:hover { text-decoration: underline; }

.cc-actions {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.cc-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; font-size: 13px; font-weight: 700;
    border: none; cursor: pointer; transition: all .15s;
    white-space: nowrap; min-height: 40px;
    -webkit-tap-highlight-color: transparent;
}
.cc-btn-accept {
    background: #65ff00; color: #000; flex: 1;
}
.cc-btn-accept:hover { background: #80ff33; }
.cc-btn-reject {
    background: transparent; color: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.15);
}
.cc-btn-reject:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.cc-btn-settings {
    background: transparent; color: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.1); font-size: 12px;
}
.cc-btn-settings:hover { border-color: rgba(101,255,0,.4); color: #65ff00; }

/* Einstellungs-Panel */
.cc-category {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.cc-category:last-child { border-bottom: none; }
.cc-cat-info { flex: 1; min-width: 0; }
.cc-cat-title {
    font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 3px;
    display: flex; align-items: center; gap: 6px;
}
.cc-cat-badge {
    font-size: 9px; font-weight: 700; padding: 1px 6px;
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.5);
    text-transform: uppercase; letter-spacing: .5px;
}
.cc-cat-badge.required { background: rgba(101,255,0,.1); color: #65ff00; }
.cc-cat-desc { font-size: 11px; color: rgba(255,255,255,.5); line-height: 1.5; }

/* Toggle Switch */
.cc-toggle { position: relative; flex-shrink: 0; margin-top: 2px; }
.cc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-toggle-track {
    display: block; width: 44px; height: 24px;
    background: rgba(255,255,255,.15); border-radius: 12px;
    cursor: pointer; transition: background .2s;
    border: 1px solid rgba(255,255,255,.1);
}
.cc-toggle input:checked + .cc-toggle-track { background: #65ff00; }
.cc-toggle input:disabled + .cc-toggle-track { opacity: .5; cursor: not-allowed; }
.cc-toggle-track::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; background: #fff; border-radius: 50%;
    transition: transform .2s; pointer-events: none;
}
.cc-toggle input:checked + .cc-toggle-track::after { transform: translateX(20px); }

/* Floating Badge (Cookie-Einstellungen öffnen) */
#cc-badge {
    position: fixed; bottom: 16px; left: 16px;
    background: #0d1b2a; border: 1px solid rgba(101,255,0,.3);
    color: rgba(255,255,255,.6); font-size: 11px; font-weight: 700;
    padding: 6px 12px; cursor: pointer; z-index: 8999;
    display: none; align-items: center; gap: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
    transition: all .15s; -webkit-tap-highlight-color: transparent;
    bottom: calc(16px + env(safe-area-inset-bottom));
}
#cc-badge:hover { border-color: #65ff00; color: #65ff00; }
#cc-badge.cc-show { display: flex; }

@media (max-width: 640px) {
    #cc-banner, #cc-settings-panel { padding: 16px; }
    .cc-title { font-size: 14px; }
    .cc-text { font-size: 11px; margin-bottom: 12px; }
    .cc-btn { padding: 9px 14px; font-size: 12px; }
    .cc-btn-accept { min-width: 120px; }
    .cc-actions { gap: 6px; }
    #cc-badge { bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; font-size: 10px; }
}
