@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
    --main-bg: #0a0a0f;
    --text-color: #00ff41;
    --glow-color: rgba(0, 255, 65, 0.5);
    --border-color: rgba(0, 255, 65, 0.2);
    --red-alert: #ff0000;
}

body {
    background-color: var(--main-bg);
    color: var(--text-color);
    font-family: 'Source Code Pro', monospace;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden { display: none !important; }

/* --- Hauptcontainer & Layout --- */
.container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
    min-height: 0;
    width: 100%;
}

main {
    display: grid;
    grid-template-columns: 0.25fr 1fr 0.25fr;
    gap: 10px;
    flex-grow: 1;
    min-height: 0;
    height: 100%; 
}

.side-panel-container, .panel-main {
    height: 100%;
    min-height: 0;
}

.panel-main {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    padding: 5px;
    overflow: hidden;
}

.side-panel-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.panel {
    border: 1px solid var(--border-color);
    padding: 8px;
    background: rgba(0,0,0,0.2);
    height: calc((100% - 20px) / 3);
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.panel h2 { 
    font-size: 1.1em; 
    margin: 0 0 8px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}

.panel div { 
    white-space: pre-wrap; 
    font-size: 0.9em;
    overflow-y: auto;
    /* NEU: Scrollbalken ausblenden */
    scrollbar-width: none; /* Firefox */
}
.panel div::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

/* --- Wellenform-Container --- */
#waveform-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 0;
    flex-grow: 4;
}

#waveform-container .wave-wrapper:first-child {
    flex-grow: 0;
    flex-shrink: 0;
    height: 80px;
}

#waveform-container .wave-wrapper.live { flex-grow: 1; }

.wave-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 2px;
    display: flex;
    min-height: 0;
    width: 100%;
}

#waveform-overview, #waveform-live { width: 100%; height: 100%; }

#comparison-container {
    flex-grow: 2;
    display: flex;
    gap: 5px;
    min-height: 0;
}

.comparison-canvas { border-left: 1px solid var(--border-color); }
.comparison-canvas:first-child { border-left: none; }


/* --- Stile für neue Elemente --- */
#header-gibberish {
    color: var(--glow-color);
    font-size: 0.7em;
    margin-left: 20px;
    font-weight: normal;
}

#analysis-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 140;
    pointer-events: none;
}

#analysis-overlay #analysis-text {
    font-size: 8vw;
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 0 0 20px var(--glow-color);
    opacity: 0;
    animation: blink-in 1.5s ease-out forwards;
}

@keyframes blink-in {
    0% { opacity: 0; } 25% { opacity: 1; } 50% { opacity: 0; }
    75% { opacity: 1; } 100% { opacity: 0; }
}


/* --- Restliches CSS (unverändert) --- */
body::after { content: " "; display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 100; pointer-events: none; }
#start-screen { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; text-align: center; }
.start-content h1 { font-size: 2em; text-shadow: 0 0 10px var(--glow-color); animation: blink-status 2s infinite; }
#start-button { background: transparent; border: 2px solid var(--text-color); color: var(--text-color); padding: 15px 30px; font-size: 1.5em; cursor: pointer; margin-top: 30px; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
#start-button:hover { background: var(--text-color); color: var(--main-bg); box-shadow: 0 0 20px var(--glow-color); }
.blur { filter: blur(8px) brightness(0.6); }
header { border: 1px solid var(--border-color); padding: 5px 15px; margin-bottom: 10px; flex-shrink: 0; }
#status-text { text-align: center; padding: 8px; font-size: 1.3em; font-weight: 700; animation: blink-status 1.5s infinite; flex-shrink: 0; }
@keyframes blink-status { 50% { opacity: 0.5; } }
#identify-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index: 150; pointer-events: none; }
#identify-overlay #identify-text { font-size: 10vw; font-weight: bold; text-shadow: 0 0 30px var(--red-alert); transform: scale(0.5); opacity: 0; color: var(--red-alert) !important; }
#identify-text.animate { animation: final-zoom 2.5s ease-out forwards; }
@keyframes final-zoom { 0% { transform: scale(0.5); opacity: 0; letter-spacing: 20px; } 70% { transform: scale(1.1); opacity: 1; letter-spacing: 0px; } 100% { transform: scale(1); opacity: 1; text-shadow: 0 0 30px var(--red-alert); } }
#modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 200; opacity: 0; transform: scale(0.7); transition: opacity 0.3s ease, transform 0.3s ease; padding: 15px; }
#modal.show { opacity: 1; transform: scale(1); }
.modal-content { background: var(--main-bg); border: 2px solid var(--text-color); box-shadow: 0 0 35px var(--glow-color); display: flex; flex-wrap: wrap; justify-content: center; padding: 25px; width: 100%; max-width: 1000px; }
.modal-content img { width: 100%; max-width: 350px; height: auto; object-fit: cover; border: 1px solid var(--border-color); flex-shrink: 0; }
.modal-info { margin-left: 25px; flex-grow: 1; min-width: 300px; }
@media (max-width: 768px) { .modal-info { margin-left: 0; margin-top: 20px; text-align: center; } }
.identified-title { border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 15px; font-size: 1.8em; }
.modal-info p { margin: 8px 0; font-size: 1.2em; }
.threat-level { color: var(--red-alert); font-weight: 700; font-size: 1.5em; text-shadow: 0 0 10px var(--red-alert); margin-top: 20px; }