
/* --- GASTROLOGIX CORE LAYOUT --- */
:root {
    --sidebar-width: 260px;
    --primary-bg: #131C12;
    --accent: #C8C8AD;
    --header-height: 60px;
    --bg-light: #f7fafc;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-light);
    display: flex; /* Erzwingt das Nebeneinander von Sidebar und Content */
    min-height: 100vh;
}

/* SIDEBAR FIXIERUNG */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-bg);
    color: white;
    height: 100vh;
    position: fixed; /* Klebt links am Rand */
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 25px 20px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

.nav-group { flex-grow: 1; padding: 0 15px; }

.nav-label {
    font-size: 0.65rem;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 25px 0 10px 12px;
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #cbd5e0;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.nav-item i { width: 25px; margin-right: 10px; }

.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active { background: #3182ce; }

/* CONTENT BEREICH VERSCHIEBUNG */
.main-content {
    margin-left: var(--sidebar-width); /* Schiebt den Inhalt nach rechts neben die Sidebar */
    flex-grow: 1;
    padding: 40px;
    width: calc(100% - var(--sidebar-width));
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* MOBILER HEADER */
.mobile-header {
    display: none; /* Standardmäßig aus auf Desktop */
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid #edf2f7;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    z-index: 900;
}

@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; width: 100%; padding-top: 80px; }
    .mobile-header { display: flex; }
}