/* style.css */
:root {
    /* THWS Corporate Colors */
    --primary: #e85500; /* THWS Orange */
    --primary-dark: #cc4a00; /* Dunkleres Orange für Hover-Effekte */
    --bg-color: #f8f9fa; /* Sehr helles Grau für guten Kontrast */
    --card-bg: #ffffff;
    --text-color: #333333;
    
    /* WAI Semantic Colors (für das Dashboard) */
    --critical: #dc3545;
    --moderate: #ffc107;
    --good: #17a2b8;
    --excellent: #28a745;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: var(--bg-color); 
    color: var(--text-color);
    padding: 20px; 
    margin: 0; 
}

/* Layout Container */
.container { max-width: 700px; margin: 0 auto; }
.admin-container { max-width: 1200px; margin: 0 auto; }

.card { 
    background: var(--card-bg); 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    margin-bottom: 20px; 
    border-top: 5px solid var(--primary); /* THWS Akzentlinie */
}

h1, h2, h3 { color: var(--primary); margin-top: 0; }

/* Formulare & Inputs für Mobile optimiert */
label { font-weight: 600; display: block; margin-bottom: 8px; margin-top: 25px; font-size: 0.95em;}
select, input[type="number"] { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ced4da; 
    border-radius: 4px; 
    font-size: 16px; 
    box-sizing: border-box; 
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
select:focus, input[type="number"]:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(232, 85, 0, 0.25);
}

.checkbox-group label { font-weight: normal; display: block; margin-top: 10px; font-size: 1em; padding: 5px 0;}
input[type="checkbox"] { transform: scale(1.3); margin-right: 12px; accent-color: var(--primary); }

button { 
    background: var(--primary); 
    color: white; 
    border: none; 
    font-weight: bold; 
    font-size: 1.1em;
    cursor: pointer; 
    margin-top: 35px; 
    padding: 15px;
    width: 100%;
    border-radius: 4px;
    transition: background 0.3s ease;
}
button:hover { background: var(--primary-dark); }

/* Warteraum */
.loader { 
    text-align: center; 
    background: white; 
    padding: 40px; 
    border-radius: 8px; 
    max-width: 400px; 
    margin: 20vh auto; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    border-top: 5px solid var(--primary);
}

/* Admin Dashboard Flex-Layout */
.header { 
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; 
    background: #ffffff; color: var(--text-color); padding: 20px 30px; border-radius: 8px; gap: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary);
}
.header h1 { margin: 0; color: var(--text-color); font-size: 1.5em; }

.btn { 
    padding: 10px 15px; text-decoration: none; border-radius: 4px; color: white; 
    font-weight: bold; display: inline-block; text-align: center; border: none;
    transition: opacity 0.3s ease;
}
.btn:hover { opacity: 0.8; }
.btn-green { background: var(--excellent); }
.btn-red { background: var(--critical); }
.btn-yellow { background: var(--moderate); color: black; }

.dashboard, .charts { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.box, .chart-container { 
    background: white; padding: 25px; border-radius: 8px; 
    flex: 1 1 300px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}
.box { text-align: center; border-bottom: 4px solid var(--primary); }
.number { font-size: 3.5em; font-weight: bold; color: var(--primary); }

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .header { flex-direction: column; text-align: center; }
    .header div { width: 100%; display: flex; flex-direction: column; gap: 10px; }
    .btn { width: 100%; margin: 0; box-sizing: border-box;}
}