/* style.css */

/* --- GRUNDEINSTELLUNGEN --- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding: 10px;
    font-size: 16px;
    line-height: 1.5;

    /* Zentrierung & Hintergrund */
    display: flex;
    flex-direction: column;
    align-items: center; 
    
    /* Hintergrundbild */
    background-image: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url('background.jpg');
    background-color: #f0f2f5; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
}

/* --- ÜBERSCHRIFTEN --- */
h1, h2, h3 {
    color: #2c3e50;
    margin-top: 0;
    text-align: center;
    width: 100%;
}

a {
    color: #e67e22; /* Links jetzt auch passend orange */
    text-decoration: none;
    font-weight: 500;
}

/* --- KARTEN-DESIGN --- */
.card, form {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 800px;
    text-align: left; 
}

/* --- FORMULARE --- */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="month"],
select,
textarea,
input[type="file"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0 20px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
}

/* --- CHECKBOX WRAPPER --- */
.checkbox-wrapper {
    margin-bottom: 15px; 
    padding: 10px; 
    background: #f8f9fa; 
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* --- HAUPT-BUTTONS (FORMULARE) - JETZT ORANGE --- */
button {
    width: 100%;
    background-color: #e67e22; /* Kräftiges Orange */
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

button:hover {
    background-color: #d35400; /* Dunkleres Orange beim Hover */
}

/* --- NAVIGATION / ADMIN MENÜ LEISTE --- */
.menu-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    width: 100%;
    max-width: 800px;
}

/* --- UNIVERSAL BUTTON KLASSE (für Links & Tabelle) - JETZT ORANGE --- */
.btn-action, a.button-link {
    display: inline-block;
    background-color: #e67e22; /* Kräftiges Orange */
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    
    min-width: 120px; 
}

/* Mobile Optimierung für das Menü oben */
.menu-bar .btn-action {
    flex: 1;
}

.btn-action:hover, a.button-link:hover {
    background-color: #d35400; /* Dunkleres Orange */
}

/* --- TABELLEN --- */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%; 
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #555;
}

tr:hover { background-color: #f5f5f5; }

/* Status Farben für Datumsanzeige */
.red { background-color: #ffdddd !important; color: #a00; }
.orange { background-color: #fff3cd !important; color: #856404; }
.green { background-color: #d4edda !important; color: #155724; }

/* --- BILDER & THUMBNAILS --- */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #ddd;
    margin-top: 5px;
}

/* --- HILFSKLASSEN --- */
.alert {
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    text-align: center;
    width: 100%;
    max-width: 800px;
}
/* --- NEUE STATUS FARBEN (Aussagekräftiger) --- */
.status-critical { 
    background-color: #dc3545 !important; /* Signalrot */
    color: white !important; 
    font-weight: bold;
}

.status-warning { 
    background-color: #ffc107 !important; /* Warn-Gelb */
    color: #212529 !important; /* Dunkle Schrift für Lesbarkeit */
    font-weight: bold; 
}

.status-ok { 
    background-color: #d4edda !important; /* Sanftes Grün */
    color: #155724 !important; 
}