/* --- TERMINAL SPECIFIC (S01b) --- */

#sec-terminal {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    height: 100%;
}

/* Progress Bar ganz oben */
#prog-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 200;
    background: rgba(0, 255, 65, 0.1);
}

#prog-fill {
    height: 100%;
    width: 0%; /* Wird per JS gesteuert */
    background: linear-gradient(90deg, #003a0c, #00ff41);
    transition: width 0.2s;
}

/* Der Scroll-Bereich für die Zeilen */
#scroller {
    flex: 1;
    width: 100%;
    max-width: 850px; /* Begrenzt die Breite, damit es nicht bis zum Rand geht */
    margin: 0 auto;   /* Zentriert den gesamten Block in der Mitte des Bildschirms */
    padding: 25vh 5vw; /* Abstand nach oben/unten (25vh) und leichter Seitenabstand (5vw) */
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

#scroller::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

#terminal-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Einzelne Zeile */
.L {
    display: block;
    white-space: pre-wrap;
    font-size: clamp(14px, 1.6vw, 18px);
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.L.revealed {
    opacity: 1;
}

/* Farben innerhalb des Terminals */
.L.g { color: #00ff41; text-shadow: 0 0 7px rgba(0, 255, 65, 0.6); } /* Grün leuchtend */
.L.d { color: #004a0e; } /* Dunkelgrün (System-Info) */
.L.x { color: #e8c547; text-shadow: 0 0 7px rgba(232, 197, 71, 0.5); } /* Gold (Highlights) */
.L.w { color: rgba(240, 237, 232, 0.8); } /* Weißlich (Inhalt) */

/* Cursor für den Typewriter-Effekt innerhalb der Zeilen */
.tw-cur {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: #00ff41;
    vertical-align: middle;
    margin-left: 2px;
    animation: blink-cur 0.9s step-end infinite;
}

@keyframes blink-cur { 
    50% { opacity: 0; } 
}