/* assets/style.css */

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --bg-light: #F9FAFB;
    --card-bg: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    overflow-x: hidden; /* Verhindert horizontalen Scroll auf Body-Ebene */
}

/* Karten-Design */
.pm-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

/* Sidebar-Design */
.sidebar {
    width: 240px;
    height: 100vh;
    background: #FFFFFF;
    border-right: 1px solid #E5E7EB;
    position: fixed;
    top: 0;
    left: 0;
}

/* FIX: Verhindert, dass der Inhalt die Seite breiter macht als den Bildschirm */
.main-content { 
    min-width: 0; 
    max-width: 100%; 
    overflow-x: hidden; 
}

/* Button-Standard */
.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* --- FRAPPE GANTT ANPASSUNGEN --- */
.gantt .grid-header { fill: #ffffff; }
.gantt .grid-row { fill: #ffffff; }
.gantt .grid-row:nth-child(even) { fill: #f9fafb; }
.gantt .tick { stroke: #e5e7eb; }
.gantt .upper-text { font-family: inherit; font-size: 13px; font-weight: 600; fill: #374151; } /* Monat dicker & dunkler */
.gantt .lower-text { font-family: inherit; font-size: 12px; fill: #6b7280; }
.gantt .popup-wrapper { font-family: inherit; }

/* Kräftige Balken-Farben für perfekten Kontrast mit der weißen Schrift */
.gantt-prio-high .bar { fill: #EF4444 !important; }        /* Rot */
.gantt-prio-high .bar-progress { fill: #B91C1C !important; }

.gantt-prio-medium .bar { fill: #F59E0B !important; }      /* Orange */
.gantt-prio-medium .bar-progress { fill: #D97706 !important; }

.gantt-prio-low .bar { fill: #3B82F6 !important; }         /* Blau */
.gantt-prio-low .bar-progress { fill: #1D4ED8 !important; }

.gantt .bar-label { font-weight: 500; font-size: 13px; fill: #ffffff !important; }