/* --- FARBPALETTE & VARIABLEN --- */
:root {
    --primary: #54BAA8;        
    --primary-hover: #4e968a;
    --primary-light: #f0f9f8;
    --secondary: #2a9d8f;      
    --bg-color: #f4f7f6;       
    --text-main: #333333;      
    --text-muted: #666666;     
    --card-bg: #ffffff;        
    --border-color: #dddddd;
}

/* --- GRUNDLAYOUT --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background-color: var(--primary);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

/* Der Wrapper braucht 100% Breite, um die Zentrierung darunter zu ermöglichen */
.main-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0; /* Padding wird in den Containern geregelt */
    width: 100%;
}

/* --- DASHBOARD CONTAINER (Der Fix für die Zentrierung) --- */
.dashboard-container {
    max-width: 1200px; 
    width: 100%;
    margin: 40px auto; /* 40px oben/unten, auto zentriert es */
    padding: 0 20px; 
    box-sizing: border-box;
}

.dashboard-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
    flex-wrap: wrap; 
    gap: 15px;
    width: 100%;
}

.dashboard-title {
    color: #888; 
    text-transform: uppercase; 
    font-size: 1.1em; 
    letter-spacing: 1px; 
    margin: 0;
}

.dashboard-links {
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap;
}

/* --- GRID & KACHELN --- */
.dashboard-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 25px;
    width: 100%;
}

.dash-card {
    background: var(--card-bg); 
    border-radius: 12px; 
    padding: 30px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-top: 6px solid var(--primary); 
    height: 100%; 
    box-sizing: border-box; 
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.dash-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.dash-card-title {
    color: var(--secondary);
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.dash-card-desc {
    color: var(--text-muted);
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 30px;
    min-height: 45px;
    flex-grow: 1; /* Schiebt die Fortschrittsanzeige nach unten */
}

/* --- FORTSCHRITTS-ELEMENTE --- */
.dash-progress-box {
    background: #f9fdfc; 
    padding: 15px 20px; 
    border-radius: 8px; 
    border: 1px solid #e9f5f3;
}

.dash-progress-track {
    background: #e0e0e0; 
    border-radius: 10px; 
    height: 8px; 
    width: 100%; 
    overflow: hidden;
    margin-top: 10px;
}

.dash-progress-fill {
    background: var(--primary); 
    height: 100%; 
}

/* --- LINKS --- */
.dash-link {
    text-decoration: none; 
    color: var(--primary); 
    font-size: 0.9em; 
    font-weight: bold; 
    padding: 8px 15px; 
    border: 1px solid var(--primary); 
    border-radius: 6px; 
    transition: background 0.2s;
}

.dash-link:hover { background-color: var(--primary-light); }
