/* ===== 1. BASIS SETUP ===== */
body {
    margin: 0;
    background: black;
    color: #00FF41;
    font-family: 'Share Tech Mono', monospace; /* Falls geladen, sonst monospace */
    overflow-x: hidden;
    overflow-y: hidden; /* Standardmäßig gesperrt für den Boot-Vorgang */
}

/* ===== 2. BOOT SCREEN & MATRIX ===== */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 9999;
    transition: opacity 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

#flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00ffcc;
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
    transition: opacity 0.1s;
}

.terminal {
    position: relative;
    z-index: 10001;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

#terminal-output {
    font-size: 1.5rem;
    line-height: 2rem;
    text-shadow: 0 0 10px #00FF41;
}

#enter {
    margin-top: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    animation: blink 1s infinite;
}

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

.hidden { display: none; }

/* ===== 3. MAIN CONTENT (AFTER BOOT) ===== */
#main {
    padding: 40px;
}

.frame {
    display: flex;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap; /* Wichtig für Responsivität */
}

.panel {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    border: 1px solid #00e5ff;
    position: relative;
    background: rgba(0, 229, 255, 0.03);
    box-shadow: 0 0 10px #00e5ff55, inset 0 0 20px #00e5ff22;
    text-align: center;
}

/* Neon Corners */
.panel::before, .panel::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #00e5ff;
}
.panel::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.panel::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.box {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #00e5ff55;
    background: rgba(0, 229, 255, 0.05);
    text-align: left; /* Text in Boxen wieder linksbündig */
}

/* Videos */
.profile-video, .profile2-video {
    width: 150px;
    height: auto;
    display: block;
    margin: 20px auto;
    border: 2px solid #00e5ff;
    box-shadow: 0 0 10px #00e5ff;
}

/* Skills & Bars */
.skill { margin-bottom: 10px; }
.bar { background: #111; height: 10px; border-radius: 5px; margin-top: 5px; }
.bar div { height: 100%; background: #00FF41; box-shadow: 0 0 10px #00FF41; }

/* ===== 4. MOBILE OPTIMIERUNG ===== */
@media (max-width: 768px) {
    .frame { flex-direction: column; }
    .panel { width: 100%; min-width: unset; }
    #terminal-output { font-size: 1.1rem; }
    #main { padding: 15px; }
}