/**
 * src/css/base.css
 * ZUSTÄNDIGKEIT: Globales Skelett (Shell), Sidebar-Layout und UI-DNA.
 * REPARATUR: Modal-Stile hinzugefügt, um das "x" unter der Sidebar zu verstecken.
 * STATUS: Die "Single Source of Truth" für das App-Gerüst.
 */

:root {
    --primary-bg: #e0f2f1;
    --white: #ffffff;
    --accent-yellow: #fdd835;
    --accent-green: #2ecc71;
    --text-dark: #2c3e50;
    --text-muted: #999999;
    --sidebar-width: 260px;
    --border-color: #f0f0f0;
    --radius-lg: 25px;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- 1. GLOBALER RESET --- */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- 2. TECHNISCHER SCHUTZ (FOUC) --- */
#auth-container, 
#app-container, 
#pledge-overlay { 
    display: none !important; 
}

#video-overlay {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 100000; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#loader-content { 
    display: none; 
    text-align: center; 
}

/* --- 3. APP-SKELETT (SHELL) --- */
#app-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex; 
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    height: 100%;
    background-color: var(--white);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding-top: 40px;
    z-index: 1000;
}

.main-content {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-box {
    width: 100%;
    max-width: 1400px; 
    margin: 0 auto 50px auto;
    background-color: transparent;
    padding: 0;
    border-radius: 0; 
    box-shadow: none; 
    min-height: auto; 
    height: auto; 
    position: relative;
    display: flex;
    flex-direction: column;
}

/* --- 4. GEMEINSAME KOMPONENTEN (Die DNA) --- */

.dossier-card {
    background: var(--white);
    width: 100%;
    max-width: 1000px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 40px;
}

.dossier-ring-container {
    --size: 600px;
    width: var(--size);
    height: var(--size);
    min-width: var(--size);
    min-height: var(--size);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 35px 80px rgba(255, 215, 0, 0.4);
    z-index: 10;
}

.dossier-ring-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../../ring.png') no-repeat center;
    background-size: 100% 100%;
    z-index: 2;
    pointer-events: none;
}

.dossier-ring-container img {
    width: 86.7%;
    height: 86.7%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
}

/* --- 5. MODALS & OVERLAYS (Löst das Problem mit dem 'x') --- */
.modal-overlay {
    display: none; /* Versteckt das Modal und den Button standardmäßig */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #ccc;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-dark);
}

/* --- 6. DEBUG CONSOLE --- */
#debug-console { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    max-height: 120px; 
    background: rgba(0,0,0,0.9); 
    color: #00ff00; 
    font-family: monospace; 
    font-size: 11px; 
    padding: 8px; 
    overflow-y: auto; 
    z-index: 99999; 
    display: none;
    border-top: 2px solid var(--accent-green);
}

/* --- 7. BURGER-FIX (DESKTOP) --- */
@media (min-width: 769px) {
    #burger-menu, .burger-btn {
        display: none !important;
    }
}