/* 
   EduLock.at Master-Stylesheet 2025 - REPARATUR-VERSION
   Stellt das ursprüngliche Design der Altersklassen und Titel wieder her.
*/

/* 1. GRUNDSTELLUNGEN (Wie von dir vorgegeben) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin-left: 240px; 
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 1. GRUNDSTELLUNGEN */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin-left: 240px; 
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- AB HIER EINFÜGEN: BUTTONS & HERO DESIGN --- */

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary {
    display: inline-block;
    background: #00d2ff;
    color: white !important;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,210,255,0.4);
    transition: transform 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #00b8e6;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #1a2a6c !important;
    padding: 18px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid #1a2a6c;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #1a2a6c;
    color: white !important;
}

/* Badge Design für die Startseite ("Neu: KI-gestützte Bildung") */
.badge {
    display: inline-block;
    background: #e6f7ff;
    color: #00d2ff;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Highlights für Texte */
.highlight {
    color: #00d2ff;
}

/* Hier geht es dann weiter mit deiner Sidebar... */


/* 2. NAVIGATION (Deine Sidebar) */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #eee;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a2a6c;
    text-decoration: none;
}

.logo span { color: #00d2ff; }

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #1a2a6c;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00d2ff;
    padding-left: 5px;
}

.btn-side {
    background: #1a2a6c;
    color: white !important;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
    display: block;
}

/* 3. FIX FÜR ÜBERLAGERUNG BEI FUNKTION & TITELN */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 60px; /* Mehr Platz nach oben */
    margin-bottom: 40px;
    color: #1a2a6c;
    font-weight: 800;
    clear: both; /* Verhindert Überlagerungen */
}

/* 4. ALTERSKLASSEN (Zurück zum alten Design) */
.age-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.age-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.3s;
}

.age-box:hover { transform: translateY(-5px); }

.age-box span {
    display: block;
    color: #00d2ff;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Das Detail-Feld direkt darunter */
.age-detail {
    margin-top: 20px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 5. DASHBOARD ERGÄNZUNGEN (Bleiben erhalten, aber sauber getrennt) */
.dashboard-header {
    background: #1a2a6c;
    padding: 50px 0;
    border-radius: 0 0 30px 30px;
    color: white;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    color: #1a2a6c;
    text-align: center;
}

.stat-card.danger { background: #ff4b2b; color: white; }

.app-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 10px;
}

.map-placeholder {
    width: 100%;
    height: 150px;
    background: #eee;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-dot {
    width: 12px; height: 12px;
    background: #00d2ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d2ff;
}

/* 6. FOOTER */
footer {
    background: #1a2a6c;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body { margin-left: 0; }
    .sidebar { position: relative; width: 100%; height: auto; border-right: none; }
}
