/* ==========================================
   DSGVO Cookie Consent Styling - Ant Colony
   ========================================== */

/* Container für ersten Banner-Level (Unten angebracht) */
.cc-banner-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.cc-banner {
    pointer-events: auto;
    width: 100%;
    max-width: 960px;
    background: rgba(25, 20, 15, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color, rgba(245, 166, 35, 0.25));
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 166, 35, 0.1);
    border-radius: 20px;
    padding: clamp(16px, 4vw, 24px);
    color: var(--text-main, #fcf8f2);
    animation: ccSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.cc-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cc-banner-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color, #f5a623);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-banner-text {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-muted, #b8b0a1);
    margin-bottom: 20px;
}

.cc-banner-text a {
    color: var(--accent-color, #f5a623);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.cc-banner-text a:focus-visible {
    opacity: 0.8;
}

@media (hover: hover) {
    .cc-banner-text a:hover {
        opacity: 0.8;
    }
}

/* Button-Gruppe auf 1. Ebene - KEINE DARK PATTERNS! Equal styling */
.cc-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Identische Gestaltung für Akzeptieren & Ablehnen */
.cc-btn-equal {
    flex: 1 1 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: rgba(245, 166, 35, 0.12);
    color: var(--text-main, #fcf8f2);
    border: 1px solid var(--border-color, rgba(245, 166, 35, 0.35));
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 46px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cc-btn-equal:active {
    transform: scale(0.98);
    background: rgba(245, 166, 35, 0.3);
}

@media (hover: hover) {
    .cc-btn-equal:hover {
        background: rgba(245, 166, 35, 0.25);
        border-color: var(--accent-color, #f5a623);
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(245, 166, 35, 0.25);
        transform: translateY(-1px);
        outline: none;
    }
}

.cc-btn-equal:focus-visible {
    outline: 2px solid var(--accent-color, #f5a623);
    outline-offset: 2px;
}

.cc-btn-settings {
    flex: 1 1 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted, #b8b0a1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 46px;
}

.cc-btn-settings:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.15);
}

@media (hover: hover) {
    .cc-btn-settings:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-main, #fcf8f2);
        border-color: rgba(255, 255, 255, 0.3);
        outline: none;
    }
}

.cc-btn-settings:focus-visible {
    outline: 2px solid var(--accent-color, #f5a623);
    outline-offset: 2px;
}

/* ==========================================
   EINSTELLUNGEN MODAL (2. LEVEL)
   ========================================== */

.cc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(12, 9, 6, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    animation: ccFadeIn 0.25s ease forwards;
}

@keyframes ccFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cc-modal {
    background: var(--panel-bg, rgba(30, 24, 18, 0.94));
    border: 1px solid var(--border-color, rgba(245, 166, 35, 0.3));
    border-radius: 20px;
    width: 100%;
    max-width: 640px;
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top)));
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.cc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(245, 166, 35, 0.15);
    flex-shrink: 0;
}

.cc-modal-header h2 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main, #fcf8f2);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.cc-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #b8b0a1);
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    min-width: 40px;
    min-height: 40px;
}

.cc-close-btn:active {
    background: rgba(245, 166, 35, 0.15);
    color: var(--accent-color, #f5a623);
}

@media (hover: hover) {
    .cc-close-btn:hover {
        background: rgba(245, 166, 35, 0.15);
        color: var(--accent-color, #f5a623);
        outline: none;
    }
}

.cc-close-btn:focus-visible {
    outline: 2px solid var(--accent-color, #f5a623);
    outline-offset: 2px;
}

.cc-modal-body {
    padding: 18px 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 auto;
    min-height: 0;
    overscroll-behavior: contain;
}

.cc-category-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color 0.2s;
}

@media (hover: hover) {
    .cc-category-card:hover {
        border-color: rgba(245, 166, 35, 0.2);
    }
}

.cc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cc-category-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main, #fcf8f2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-category-desc {
    font-size: 0.88rem;
    color: var(--text-muted, #b8b0a1);
    line-height: 1.45;
    margin-bottom: 10px;
}

.cc-category-purpose {
    font-size: 0.82rem;
    color: rgba(252, 248, 242, 0.7);
    background: rgba(245, 166, 35, 0.06);
    border-left: 3px solid var(--accent-color, #f5a623);
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 10px;
}

.cc-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.cc-service-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-muted, #b8b0a1);
}

.cc-badge-locked {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
    border-radius: 20px;
}

/* Accessible Toggle Switch (Identisch zu main.css) */
.cc-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 30px;
    min-height: 30px;
    flex-shrink: 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Erweitert den Touch-Zielbereich auf mobilen Bildschirmen */
.cc-switch::after {
    content: "";
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: -8px;
    right: -8px;
}

.cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    pointer-events: none;
}

.cc-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted, #b8b0a1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-switch input:checked + .cc-slider {
    background-color: rgba(245, 166, 35, 0.25);
    border-color: var(--accent-color, #f5a623);
    box-shadow: inset 0 0 8px rgba(245, 166, 35, 0.2), 0 0 10px rgba(245, 166, 35, 0.2);
}

.cc-switch input:checked + .cc-slider:before {
    transform: translateX(22px);
    background-color: var(--accent-color, #f5a623);
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.7), 0 2px 5px rgba(0, 0, 0, 0.4);
}

.cc-switch input:focus-visible + .cc-slider {
    outline: 2px solid var(--accent-color, #f5a623);
    outline-offset: 2px;
}

.cc-switch:active .cc-slider:before {
    transform: scale(0.92) translateX(0);
}

.cc-switch input:checked:active + .cc-slider:before {
    transform: scale(0.92) translateX(22px);
}

.cc-modal-footer {
    padding: 14px 22px 18px 22px;
    border-top: 1px solid rgba(245, 166, 35, 0.15);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.cc-btn-save {
    flex: 1 1 160px;
    padding: 12px 18px;
    background: var(--accent-color, #f5a623);
    color: #120e0a;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cc-btn-save:active {
    transform: scale(0.98);
    background: #e09418;
}

@media (hover: hover) {
    .cc-btn-save:hover {
        background: #ffb84d;
        box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
        transform: translateY(-1px);
        outline: none;
    }
}

.cc-btn-save:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ==========================================
   DAUERHAFTER FLOATING TRIGGER BUTTON
   ========================================== */

.cc-trigger-btn {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    z-index: 9990;
    background: rgba(30, 24, 18, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent-color, #f5a623);
    border: 1px solid var(--border-color, rgba(245, 166, 35, 0.35));
    border-radius: 50px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    touch-action: manipulation;
    min-height: 44px;
}

.cc-trigger-btn:active {
    transform: scale(0.98);
}

@media (hover: hover) {
    .cc-trigger-btn:hover {
        background: var(--accent-color, #f5a623);
        color: #120e0a;
        box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
        transform: translateY(-2px) scale(1.02);
        outline: none;
    }
}

.cc-trigger-btn:focus-visible {
    outline: 2px solid var(--accent-color, #f5a623);
    outline-offset: 2px;
}

.cc-trigger-btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   EXTERNE MEDIEN PLACEHOLDER
   ========================================== */

.cc-embed-placeholder {
    width: 100%;
    min-height: 260px;
    background: rgba(20, 16, 12, 0.9);
    border: 1px dashed var(--border-color, rgba(245, 166, 35, 0.4));
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    gap: 12px;
    color: var(--text-main, #fcf8f2);
}

.cc-embed-placeholder p {
    font-size: 0.9rem;
    color: var(--text-muted, #b8b0a1);
    max-width: 420px;
}

.cc-embed-placeholder button {
    padding: 10px 18px;
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid var(--border-color, rgba(245, 166, 35, 0.4));
    color: var(--accent-color, #f5a623);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

@media (hover: hover) {
    .cc-embed-placeholder button:hover {
        background: var(--accent-color, #f5a623);
        color: #120e0a;
    }
}

/* Responsive Rules */
@media (max-width: 600px) {
    .cc-banner-overlay {
        padding: 10px;
    }
    .cc-banner {
        padding: 18px;
        border-radius: 16px;
    }
    .cc-banner-actions {
        flex-direction: column;
    }
    .cc-btn-equal, .cc-btn-settings {
        width: 100%;
        flex: none;
    }
    .cc-trigger-btn {
        bottom: 15px;
        left: 15px;
        padding: 8px 12px;
    }
    .cc-trigger-text {
        display: none;
    }
}
