/* --- DESIGN SYSTEM & VARIABLEN --- */
:root {
    --bg-color: #050508;
    --surface-color: #0d0f14;
    --surface-accent: #161a23;
    --text-color: #c5cbd3;
    --text-muted: #6272a4;
    
    --neon-green: #00ff66;
    --neon-cyan: #00f0ff;
    --neon-pink: #ff007f;
    
    --font-mono: 'Share Tech Mono', Courier, monospace;
    --font-logo: 'Audiowide', Impact, sans-serif;
}

/* --- GLOBAL STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-pink);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    border-bottom: 1px dashed var(--surface-accent);
}

.section-title {
    font-size: 1.8rem;
    color: var(--neon-green);
    margin-bottom: 30px;
    text-transform: uppercase;
    display: inline-block;
    border-right: 3px solid var(--neon-green);
    padding-right: 10px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* --- HEADER & NAVIGATION (PURE CSS AUTOMATIC CLOSE) --- */
header {
    background-color: rgba(5, 5, 8, 0.95);
    border-bottom: 2px solid var(--neon-green);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.logo {
    font-family: var(--font-logo);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 2px;
}

.menu-toggle-wrapper {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* --- ABOUT & SERVICES (OPTIMIERTER HOVER) --- */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.card {
    display: block;
    background-color: var(--surface-color);
    border: 1px solid var(--surface-accent);
    padding: 25px;
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.15);
    background-color: var(--surface-accent);
    color: #fff;
    text-shadow: none;
}

.card h3 {
    color: var(--neon-cyan);
    margin-bottom: 15px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.card:hover h3 {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

/* --- HERO SECTION (PROFILBILD STATT ASCII) --- */
#hero {
    text-align: center;
    padding: 100px 0 60px 0;
    background: radial-gradient(circle at center, #11141d 0%, var(--bg-color) 70%);
}

.profile-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 30px auto;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-green);
    background-color: var(--surface-color);
    /* Erzeugt den typischen Cyber-Leuchteffekt um dein Bild */
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#hero:hover .profile-img {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.7);
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 20px auto;
}

.hero-details {
    color: var(--neon-pink);
    font-size: 1rem;
}

/* --- BLOG SECTION --- */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-item {
    background-color: var(--surface-color);
    border-left: 4px solid var(--neon-pink);
    padding: 20px;
    transition: background-color 0.2s ease;
}

.blog-item:hover {
    background-color: var(--surface-accent);
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--neon-green);
    margin-bottom: 5px;
}

.blog-item h3 {
    margin-bottom: 10px;
    color: #fff;
}

.blog-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--neon-pink);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.blog-more:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-pink);
}

/* --- FOOTER & SOCIAL MEDIA --- */
footer {
    background-color: var(--surface-color);
    padding: 40px 0;
    text-align: center;
    border-top: 2px solid var(--neon-pink);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.2s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.social-icons svg {
    width: 28px;
    height: 24px;
    fill: currentColor;
}

.footer-credits {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- RESPONSIVE DESIGN & PURE CSS CLOSE LOGIC --- */
@media (max-width: 768px) {
    .menu-toggle-wrapper {
        display: block;
        position: relative;
        z-index: 1010;
    }

    .menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 5px;
    }

    .menu-btn span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--neon-green);
        transition: transform 0.3s ease, opacity 0.3s ease;
        box-shadow: 0 0 4px var(--neon-green);
    }

    .open-trigger { display: flex; }
    .close-trigger { display: none; }

    #nav-header:target .open-trigger { display: none; }
    #nav-header:target .close-trigger { display: flex; }
    
    #nav-header:target .close-trigger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #nav-header:target .close-trigger span:nth-child(2) { opacity: 0; }
    #nav-header:target .close-trigger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(13, 15, 20, 0.98);
        border-bottom: 2px solid var(--neon-green);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        backdrop-filter: blur(10px);
    }

    nav ul {
        flex-direction: column;
        padding: 25px;
        gap: 20px;
        align-items: flex-start;
    }

    #nav-header:target nav {
        max-height: 300px;
    }

    section {
        padding: 50px 0;
    }
}

/* --- CRT & SCANLINE EFFEKTE --- */
@keyframes flicker {
    0% { opacity: 0.27861; }
    5% { opacity: 0.34769; }
    10% { opacity: 0.23604; }
    15% { opacity: 0.90626; }
    20% { opacity: 0.18128; }
    25% { opacity: 0.83891; }
    30% { opacity: 0.65583; }
    35% { opacity: 0.67807; }
    40% { opacity: 0.26559; }
    45% { opacity: 0.84693; }
    50% { opacity: 0.96019; }
    55% { opacity: 0.08594; }
    60% { opacity: 0.20313; }
    65% { opacity: 0.71988; }
    70% { opacity: 0.53455; }
    75% { opacity: 0.37288; }
    80% { opacity: 0.71428; }
    85% { opacity: 0.70419; }
    90% { opacity: 0.7003; }
    95% { opacity: 0.36108; }
    100% { opacity: 0.24387; }
}

@keyframes textShadow {
    0% { text-shadow: 0.4389924193300864px 0 1px rgba(0,30,255,0.5), -0.4389924193300864px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    5% { text-shadow: 2.7928974010788217px 0 1px rgba(0,30,255,0.5), -2.7928974010788217px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    10% { text-shadow: 0.02956275843481219px 0 1px rgba(0,30,255,0.5), -0.02956275843481219px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    15% { text-shadow: 0.40218538552878136px 0 1px rgba(0,30,255,0.5), -0.40218538552878136px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    20% { text-shadow: 3.4794037899852017px 0 1px rgba(0,30,255,0.5), -3.4794037899852017px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    25% { text-shadow: 1.6125630401149584px 0 1px rgba(0,30,255,0.5), -1.6125630401149584px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    30% { text-shadow: 0.7015590085143956px 0 1px rgba(0,30,255,0.5), -0.7015590085143956px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    35% { text-shadow: 3.896914047650351px 0 1px rgba(0,30,255,0.5), -3.896914047650351px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    40% { text-shadow: 3.870905614848819px 0 1px rgba(0,30,255,0.5), -3.870905614848819px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    45% { text-shadow: 2.231056963361899px 0 1px rgba(0,30,255,0.5), -2.231056963361899px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    50% { text-shadow: 0.08084290417898504px 0 1px rgba(0,30,255,0.5), -0.08084290417898504px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    55% { text-shadow: 2.3758461067427543px 0 1px rgba(0,30,255,0.5), -2.3758461067427543px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    60% { text-shadow: 2.202193051050636px 0 1px rgba(0,30,255,0.5), -2.202193051050636px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    65% { text-shadow: 2.8638780614874975px 0 1px rgba(0,30,255,0.5), -2.8638780614874975px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    70% { text-shadow: 0.48874025155497314px 0 1px rgba(0,30,255,0.5), -0.48874025155497314px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    75% { text-shadow: 1.8948491305757957px 0 1px rgba(0,30,255,0.5), -1.8948491305757957px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    80% { text-shadow: 0.0833037308038857px 0 1px rgba(0,30,255,0.5), -0.0833037308038857px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    85% { text-shadow: 0.09769827255241735px 0 1px rgba(0,30,255,0.5), -0.09769827255241735px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    90% { text-shadow: 3.443339761481782px 0 1px rgba(0,30,255,0.5), -3.443339761481782px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    95% { text-shadow: 2.1841838852799786px 0 1px rgba(0,30,255,0.5), -2.1841838852799786px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    100% { text-shadow: 2.6208764473832513px 0 1px rgba(0,30,255,0.5), -2.6208764473832513px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
}

.crt::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 9999;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

.crt::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.crt {
    animation: textShadow 1.6s infinite;
}