/* =============================================
   pentest-info.de · site.css
   Optimiert für Tailwind CDN & Dark Mode
============================================= */

/* ── 1. Globale Basics & Scrollbar ── */
:root { 
    scrollbar-width: thin; 
    scrollbar-color: #475569 transparent; 
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
    background: #334155; 
    border-radius: 10px; 
}

.dark ::-webkit-scrollbar-thumb { 
    background: #475569; 
}

/* ── 2. Noise Overlay (Hacker-Vibe) ── */
body::after {
    content: ''; 
    position: fixed; 
    inset: 0; 
    pointer-events: none; 
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.02; 
    mix-blend-mode: overlay;
}

/* ── 3. Reveal Animationen (Scroll-Effekte) ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ── 4. Terminal Cursor & Animation ── */
.terminal-cursor {
    display: inline-block;
    width: 6px;
    height: 14px;
    background-color: #c8f53c;
    margin-left: 4px;
    animation: terminal-blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes terminal-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ── 5. Stat-Kacheln & Karten (Zusatz-Feinschliff) ── */
.card-base {
    transition: all 0.3s ease;
}

/* ── 6. Interaktive Checkliste ── */
.check-item.checked .check-box {
    background-color: #c8f53c;
    border-color: #c8f53c;
}

.check-item.checked .check-box::after {
    content: '✓';
    font-size: 10px;
    color: #000;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-item.checked .check-label {
    opacity: 0.5;
    text-decoration: line-through;
}

/* ── 7. Compliance Badge Farben (Spezifische Hintergründe) ── */
.badge-nis2 { border-color: rgba(200,245,60,0.3); background-color: rgba(200,245,60,0.05); color: #9ab82a; }
.badge-tisax { border-color: rgba(245,158,11,0.3); background-color: rgba(245,158,11,0.05); color: #d97706; }
.badge-dora { border-color: rgba(59,130,246,0.3); background-color: rgba(59,130,246,0.05); color: #2563eb; }

/* ── 8. Tab-Navigation Service-Bereich ── */
.disz-tab {
    position: relative;
    transition: all 0.2s ease;
}

.disz-tab.active {
    color: #111827; /* Slate 900 */
}

.dark .disz-tab.active {
    color: #f8fafc; /* Slate 50 */
}

/* ── 9. CVSS Rechner Options-Buttons ── */
.cvss-opt.selected {
    border-color: #c8f53c;
    background-color: rgba(200,245,60,0.1);
    color: #c8f53c;
}