

        /* --- GLOBAL & LAYOUT --- */
    body { background-color: #f8f9fa; }
    .container { padding: 0px 15px 0px 15px; max-width: 900px; margin: 0 auto;}

       
        /* --- DASHBOARD HEADER --- */
        .dash-header { 
    background: var(--primary-bl);
    color: var(--white);
    padding: 25px 20px;
    margin: 10px 0 20px 0;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 64, 128, 0.2);
}        


        .dash-greeting { font-size: 1.8rem; font-weight: 700; margin: 0; line-height: 1.2; }
        .dash-date { opacity: 0.8; font-size: 0.9rem; margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }

        /* --- KALENDER STYLE (Verbessert) --- */
        .cal-wrapper { padding: 10px 15px; margin-top: 20px; }
        
        .cal-date-header {
            position: sticky; top: 0; z-index: 10;
            background: #eef2f6; color: #004080;
            padding: 8px 12px; margin: 15px 0 10px 0;
            border-radius: 6px; font-weight: bold; font-size: 0.9rem;
            text-transform: uppercase; letter-spacing: 0.5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        .cal-card {
            background: white; border-radius: 10px;
            padding: 15px; margin-bottom: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.03);
            display: flex; align-items: flex-start;
            border-left: 5px solid #ccc; /* Fallback Farbe */
            transition: transform 0.1s;
        }
        .cal-card:active { transform: scale(0.98); }
        
        .cal-time { font-weight: bold; font-size: 1.1rem; color: #333; min-width: 60px; }
        .cal-info { flex-grow: 1; padding-left: 10px; }
        .cal-cat { font-size: 0.7rem; text-transform: uppercase; color: #888; margin-bottom: 2px; }
        .cal-title { font-weight: 600; font-size: 1rem; color: #222; margin-bottom: 3px; }
        .cal-loc { font-size: 0.85rem; color: #666; display: flex; align-items: center; gap: 4px; }

        /* --- GREMIEN STYLE (Neu) --- */
        .group-section-title {
            font-size: 0.85rem; font-weight: bold; color: #999; 
            text-transform: uppercase; margin: 25px 0 10px 5px; letter-spacing: 1px;
        }
        
        .group-btn {
            background: white; width: 100%; text-align: left;
            padding: 15px; border: none; border-bottom: 1px solid #eee;
            font-size: 1rem; color: #333; font-weight: 500;
            display: flex; justify-content: space-between; align-items: center;
        }
        .group-btn:first-child { border-top-left-radius: 10px; border-top-right-radius: 10px; }
        .group-btn:last-of-type { border-bottom: none; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
        .group-container { background: white; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); overflow: hidden; margin-bottom: 15px; }
        
        .member-list { display: none; background: #fcfcfc; border-top: 1px solid #eee; }
        .member-item {
            padding: 12px 15px; border-bottom: 1px solid #f0f0f0;
            display: flex; justify-content: space-between; align-items: center;
        }
        .member-role { font-size: 0.75rem; background: #e3f2fd; color: #004080; padding: 2px 8px; border-radius: 8px; }

        /* --- NAVIGATION --- */
        .nav {
            position: fixed; bottom: 0; left: 0; width: 100%;
           /* --- background: white; ---*/ 
	    border-top: 1px solid #eee;
            display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 SPALTEN */
            padding-bottom: env(safe-area-inset-bottom);
            box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 100;
        }
        .nav-item { padding: 10px 0; text-align: center; color: #999; cursor: pointer; }
        .nav-item.active { color: #004080; }
        .nav-icon { font-size: 1.4rem; display: block; margin-bottom: 2px; }
        .nav-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; }

        /* --- LOGIN --- */
        #login-view { min-height: 100vh; background: white; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
        .login-input { font-size: 1.2rem; text-align: center; letter-spacing: 2px; padding: 12px; border: 1px solid #ddd; border-radius: 8px; width: 100%; max-width: 250px; margin: 15px 0; }
        
        /* Spinner */
        .spinner { border: 3px solid #f3f3f3; border-top: 3px solid #004080; border-radius: 50%; width: 24px; height: 24px; animation: spin 1s linear infinite; margin: 20px auto; }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        
        .hidden { display: none !important; }
 
