:root {
    --bg-color: #010204; /* Ultradunkles Matrix-Schwarz */
    --accent-cyan: #00f2fe;
    --text-bright: #ffffff;
    --border-subtle: rgba(0, 242, 254, 0.05);
    
    /* Gitter-Farben */
    --grid-color: rgba(0, 242, 254, 0.015);
    --grid-color-hover: rgba(0, 242, 254, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: 'SF Mono', SFMono-Regular, Consolas, 'Fira Code', 'Courier New', monospace;
    height: 100vh;
    height: 100dvh; /* Garantiert fehlerfreie dynamische Höhe auf Smartphones */
    overflow: hidden;
    position: relative;
}

/* --- RASTER-HINTERGRUND --- */
.matrix-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    transition: all 0.8s ease;
}

/* --- LICHTANIMATION --- */
.ambient-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.03) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    animation: orbitLight 25s infinite linear;
}

/* --- BENTO-GRID LAYOUT --- */
.bento-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    width: 100%;
    height: 100%;
    padding: 40px;
    z-index: 3;
}

.grid-item {
    display: flex;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-left { justify-content: flex-start; gap: 12px; }
.header-right { justify-content: flex-end; }

.core-content {
    grid-column: 1 / span 2;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.footer-center {
    grid-column: 1 / span 2;
    justify-content: center;
}

/* ------------------------------------------------------------- */
/*  STEUERUNG FÜR COMPUTER MIT MAUS (Hover-Effekt bleibt aktiv)   */
/* ------------------------------------------------------------- */
@media (pointer: fine) {
    .meta-text {
        font-size: 0.7rem;
        letter-spacing: 2px;
        color: rgba(0, 242, 254, 0.15);
        filter: blur(0.5px);
        transition: all 0.6s ease;
    }

    .pulse-indicator {
        width: 6px; height: 6px;
        background-color: rgba(0, 242, 254, 0.3);
        border-radius: 50%;
        animation: pulseDot 2s infinite alternate;
        transition: all 0.6s ease;
    }

    .hero-title {
        font-size: clamp(3.5rem, 10vw, 8rem);
        font-weight: 300;
        letter-spacing: 25px;
        text-indent: 25px;
        color: rgba(255, 255, 255, 0.08);
        filter: blur(2px);
        transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .hero-subtitle {
        font-size: 0.85rem; font-weight: 400; letter-spacing: 4px; text-transform: uppercase;
        margin-top: 30px; line-height: 1.8;
        color: rgba(0, 242, 254, 0.18);
        filter: blur(0.5px);
        transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .btn-modern {
        font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px;
        color: rgba(255, 255, 255, 0.15); text-decoration: none;
        padding: 14px 32px; border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 4px; filter: blur(0.5px);
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* COMPUTER HOVER TRIGGER */
    body:hover .matrix-grid-bg { background-image: linear-gradient(to right, var(--grid-color-hover) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-color-hover) 1px, transparent 1px); }
    body:hover .pulse-indicator { background-color: var(--accent-cyan); box-shadow: 0 0 12px var(--accent-cyan); }
    body:hover .meta-text { color: rgba(0, 242, 254, 0.5); filter: blur(0px); }
    body:hover .hero-title { color: var(--text-bright); filter: blur(0px); text-shadow: 0 0 40px rgba(0, 242, 254, 0.25); }
    body:hover .hero-subtitle { color: rgba(255, 255, 255, 0.85); filter: blur(0px); text-shadow: 0 0 15px rgba(0, 242, 254, 0.3); }
    body:hover .btn-modern { color: rgba(255, 255, 255, 0.4); border-color: var(--border-subtle); filter: blur(0px); }
    .btn-modern:hover { color: var(--text-bright) !important; border-color: var(--accent-cyan) !important; box-shadow: 0 0 25px rgba(0, 242, 254, 0.2); background: rgba(0, 242, 254, 0.03); }
}

/* ------------------------------------------------------------- */
/*  STEUERUNG FÜR SMARTPHONES / TOUCH (Mobil optimiert)          */
/* ------------------------------------------------------------- */
@media (pointer: coarse) {
    .bento-grid {
        padding: 24px; /* Etwas weniger Abstand zum Rand auf Mobilgeräten */
    }

    .meta-text {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
        color: rgba(0, 242, 254, 0.5);
    }

    .pulse-indicator {
        width: 6px; height: 6px;
        background-color: var(--accent-cyan);
        border-radius: 50%;
        box-shadow: 0 0 10px var(--accent-cyan);
        animation: pulseDot 2s infinite alternate;
    }

    .hero-title {
        font-size: 2.8rem; /* Verhindert hässliche Zeilenumbrüche auf kleinen Handys */
        font-weight: 300;
        letter-spacing: 10px;
        text-indent: 10px;
        color: var(--text-bright);
        text-shadow: 0 0 30px rgba(0, 242, 254, 0.25);
    }

    .hero-subtitle {
        font-size: 0.7rem; 
        font-weight: 400; 
        letter-spacing: 2px; 
        text-transform: uppercase;
        margin-top: 15px; 
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.85);
        text-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
    }

    .btn-modern {
        font-size: 0.7rem; 
        text-transform: uppercase; 
        letter-spacing: 2px;
        color: var(--text-bright); 
        text-decoration: none;
        padding: 12px 24px; 
        border: 1px solid var(--accent-cyan);
        border-radius: 4px; 
        background: rgba(0, 242, 254, 0.03);
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
        margin-bottom: 8px; /* Schiebt den Button sicher nach oben, weg von der Handy-Home-Leiste */
    }
}

/* --- KEYFRAMES --- */
@keyframes orbitLight {
    0% { transform: translate(-50%, -50%) translateX(-150px) translateY(-50px); }
    33% { transform: translate(-50%, -50%) translateX(150px) translateY(100px); }
    66% { transform: translate(-50%, -50%) translateX(50px) translateY(-150px); }
    100% { transform: translate(-50%, -50%) translateX(-150px) translateY(-50px); }
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 1; }
}
