/* ========================================
   NAVIGATION - Mobile First
   ======================================== */

/* Hamburger Button - responsive to light/dark mode */
.button_container {
    position: fixed;
    top: 20px;
    right: 25px;
    height: 27px;
    width: 30px;
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.25s ease;
}

.button_container:hover {
    opacity: 0.7;
}

.button_container span {
    background:#fff;
    border: none;
    height: 3px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.35s ease;
    cursor: pointer;
}

.button_container span:nth-of-type(2) {
    top: 11px;
}

.button_container span:nth-of-type(3) {
    top: 22px;
}

/* Scrolled state - inverted colors */
.button_container.scrolled span {
    background: light-dark(#000, #fff);
}

/* Active state stays white in overlay */
.button_container.active .top,
.button_container.active .middle,
.button_container.active .bottom {
    background: #fff;
}

/* Active state (X) */
.button_container.active .top {
    transform: translateY(11px) translateX(0) rotate(45deg);
}

.button_container.active .middle {
    opacity: 0;
}

.button_container.active .bottom {
    transform: translateY(-11px) translateX(0) rotate(-45deg);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    overflow: auto;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 100px 0 0;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Overlay text colors - WHITE */
.overlay h3 {
    color: #fff;
}

.overlay a {
    color: #fff;
    transition: color 0.2s ease;
}

.overlay a:hover {
    color: #000;
}

/* Fade-in animation for boxes */
.overlay .col {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.overlay .col:nth-child(1) { animation-delay: 0.1s; }
.overlay .col:nth-child(2) { animation-delay: 0.2s; }
.overlay .col:nth-child(3) { animation-delay: 0.3s; }
.overlay .col:nth-child(4) { animation-delay: 0.4s; }
.overlay .col:nth-child(5) { animation-delay: 0.5s; }
.overlay .col:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.alpha-hidden {
    display: none;
}

.alpha-btn {
    margin: 2rem 0;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

/* Page Load Animation - removed container fade */

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fade-in for navigation boxes on page load */
.navi .col {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.navi .col:nth-child(1) { animation-delay: 0.1s; }
.navi .col:nth-child(2) { animation-delay: 0.2s; }
.navi .col:nth-child(3) { animation-delay: 0.3s; }
.navi .col:nth-child(4) { animation-delay: 0.4s; }
.navi .col:nth-child(5) { animation-delay: 0.5s; }
.navi .col:nth-child(6) { animation-delay: 0.6s; }
.navi .col:nth-child(7) { animation-delay: 0.7s; } /* Button */

/* Alpha list fade-in when toggled */
#alpha-list:not(.alpha-hidden) .col {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease forwards;
}

#alpha-list:not(.alpha-hidden) .col:nth-child(1) { animation-delay: 0.1s; }
#alpha-list:not(.alpha-hidden) .col:nth-child(2) { animation-delay: 0.2s; }
#alpha-list:not(.alpha-hidden) .col:nth-child(3) { animation-delay: 0.3s; }
#alpha-list:not(.alpha-hidden) .col:nth-child(4) { animation-delay: 0.4s; }

/* Prevent body scroll when overlay is active */
body.overlay-active {
    overflow: hidden;
}

/* mono new */

.overlay .navi .col:not(.center){
    background: black;
    border: 1px solid #999;
    box-shadow: 3px 3px 0 #999;
}


/* Hero H1 - GLITCH mit Scan-Line */
@keyframes glitchH1 {
    0%, 100% { 
        transform: translate(0);
        text-shadow: 0 0 0 transparent;
    }
    10% { 
        transform: translate(-3px, 2px);
        text-shadow: 2px 0 cyan, -2px 0 magenta;
    }
    20% { 
        transform: translate(2px, -2px);
        text-shadow: -2px 0 cyan, 2px 0 magenta;
    }
    30% { 
        transform: translate(-2px, -3px);
        text-shadow: 3px 0 cyan, -3px 0 magenta;
    }
    40% { 
        transform: translate(3px, 2px);
    }
    50% { 
        transform: translate(-2px, 2px);
        text-shadow: 2px 0 cyan, -2px 0 magenta;
    }
    60% {
        transform: translate(0);
    }
    70% { 
        transform: translate(2px, -2px);
    }
    80% {
        transform: translate(-2px, 0);
        text-shadow: 2px 0 cyan, -2px 0 magenta;
    }
    90% {
        transform: translate(1px, 1px);
    }
}

/* Scan-Line Unterbruch - läuft durch und verschwindet */
@keyframes scanLine {
    0% { 
        top: -100%;
        opacity: 1;
    }
    50% {
        top: 50%;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.start h1 {
    position: relative;
    animation: glitchH1 0.8s ease;
}

.start h1::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: light-dark(white, transparent);
    box-shadow: 0 0 8px light-dark(white, transparent);
    animation: scanLine 0.8s ease;
    pointer-events: none;
}