/* 1. GRUNDEINSTELLUNGEN & VARIABLES */
body {
    font-family: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.8;
    color: #444;
    margin: 0;
    padding: 0;
    /* Gleicher Hintergrund wie week4.html */
    background: linear-gradient(to bottom, rgb(80, 202, 255), #1051a5); 
    min-height: 100vh;
    overflow-x: hidden;
}



#toc {
    display: flex;
    flex-direction: column;
}

#toc a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    padding: 12px 25px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    display: block;
}

#toc a:hover {
    background-color: #f4f6f8;
    color: #3498db;
    border-left-color: #ddd; 
}

#toc a.active {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left-color: #1565c0;
    font-weight: 600;
}

/* 3. MAIN LAYOUT (Header & Content) */
.main-wrapper {
    transition: margin-left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header {
    background-color: #1a252f;
    color: #ecf0f1;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.page-title {
    text-align: center;
    padding: 4rem 1rem 6rem 1rem;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    margin-bottom: -4rem;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.page-title h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.page-title h5 {
    margin-top: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

/* 4. DASHBOARD CONTENT (Grid Layout) */
.content-container {
    padding: 0 40px 60px 40px;
    width: 100%;
    box-sizing: border-box;
    /* Container für Grid */
    max-width: 1200px;
    margin: 0 auto;
}

#dashboard-grid {
    display: grid;
    /* Responsive Grid: Automatische Spalten, mind. 300px breit */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 0;
}

/* Dashboard Cards (Ersatz für die alten divs) */
.dashboard-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Hover-Effekt Linie oben */
.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #3498db;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.dashboard-card p {
    color: #666;
    margin-bottom: 25px;
}

/* Links innerhalb der Karten */
.card-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: auto; /* Drückt Links nach unten */
}

.card-links a {
    background-color: #f0f2f5;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.card-links a:hover {
    background-color: #3498db;
    color: white;
}

/* 5. FOOTER */
footer {
    background-color: #1a252f;
    color: #95a5a6;
    text-align: center;
    padding: 4rem 0;
    margin-top: auto;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

footer a {
    color: #fff;
    opacity: 0.7;
    text-decoration: none;
    margin: 0 15px;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 6. MOBILE RESPONSIVE */
@media (max-width: 900px) {
    .main-wrapper {
        margin-left: 0;
    }

    /* Auf Mobile: Wenn Menü offen (Klasse fehlt), Overlay */
    body:not(.menu-closed) aside.sidebar {
        box-shadow: 0 0 50px rgba(0,0,0,0.5);
    }
    
    .content-container {
        padding: 20px;
    }

    .page-title {
        padding: 3rem 1rem 5rem 1rem;
        margin-bottom: -2rem;
    }
}