:root {
    --primary-color: #607D8B; /* BlueGrey */
    --primary-dark: #455A64;
    --bg-color: #ECEFF1;      /* BlueGrey.shade50 */
    --text-color: #333;
    --sidebar-width: 250px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden; /* Verhindert horizontales Scrollen während Animation */
}

/* === SIDEBAR (Startposition: links außerhalb) === */
#sidebar {
    position: fixed;
    top: 0;
    left: calc(var(--sidebar-width) * -1); /* -250px */
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--primary-color);
    color: white;
    transition: left 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Cooler "Bounce" Effekt */
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

/* Wenn Klasse 'loaded' aktiv ist, fährt Sidebar rein */
body.loaded #sidebar {
    left: 0;
}

/* Menü Styling */
.menu-header {
    padding: 40px 20px 20px;
    font-size: 1.2rem;
    opacity: 0.7;
    font-weight: bold;
}

#sidebar a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: background 0.2s;
}

#sidebar a:hover, #sidebar a.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
    font-weight: 500;
}

#sidebar hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 10px 0;
}

.material-symbols-outlined {
    margin-right: 15px;
}

.demo-link .material-symbols-outlined {
    color: #FFB74D; /* Orange Akzent */
}

/* === MAIN CONTENT (Startposition: Zentriert) === */
#content-area {
    margin-left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Zentriert das Logo vertikal am Anfang */
    justify-content: center; 
    transition: all 0.8s ease-in-out;
}

/* Wenn 'loaded', schiebt sich Inhalt nach rechts und Logo nach oben */
body.loaded #content-area {
    margin-left: var(--sidebar-width);
    justify-content: flex-start; /* Logo rutscht nach oben */
    padding-top: 50px;
}

/* === LOGO BEREICH === */
.brand-header {
    text-align: center;
    transition: all 0.8s ease;
}

.logo-icon {
    font-size: 80px !important;
    color: var(--primary-color);
}

h1 { margin: 10px 0 5px; color: var(--primary-color); }
.subtitle { color: #78909c; margin-top: 0; }

/* === TEXT BEREICH (Start: Unsichtbar) === */
#text-container {
    max-width: 800px;
    width: 90%;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s; /* 0.5s Verzögerung */
    padding-bottom: 250px !important;
}

/* Wenn 'loaded', fadet Text ein */
body.loaded #text-container {
    opacity: 1;
    transform: translateY(0);
}

/* Content Styling */
.content-section {
    line-height: 1.6;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    body.loaded #content-area { margin-left: 0; } /* Auf Handy nicht schieben */
    body.loaded #sidebar { width: 100%; height: auto; bottom: 0; top: auto; left: 0; border-radius: 20px 20px 0 0;}
    /* Auf Handy machen wir eher ein Bottom-Sheet Menü oder lassen es Overlay */
}
	/* Styling für technische Berechtigungen */
.code-box {
    background-color: #e0e0e0;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #333;
    margin: 10px 0;
    border-left: 4px solid var(--primary-color);
}

h4 {
    margin-top: 20px;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #ccc;
}