/* ALLGEMEINES STYLING */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* CONTAINER - Desktop vergrößert auf 1200px, Mobil bleibt es bei 900px/100% */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Für Formular-Karten auf Eingabeseiten begrenzen wir die Breite wieder, 
   damit sie dort nicht zu massig wirken */
.form-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

/* HEADER - KOMPAKT & ANTHRAZIT */
header {
    background-color: #455a64; 
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    border-bottom: 3px solid #2e7d32;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-content h1 {
    color: #ffffff !important;
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

/* NAVIGATION (Balken mit anthrazitem Hintergrund) */
nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background-color: #455a64 !important; 
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* BUTTONS GLOBAL */
nav form input[type="submit"], 
.nav-btn,
.btn-update, 
.btn-portal, 
.btn-submit-green {
    padding: 8px 15px;
    cursor: pointer;
    background-color: #2e7d32 !important;
    border: none;
    color: white !important;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: inline-block;
}

/* SPEZIAL-BUTTONS (Löschen & Hilfe) */
.btn-delete {
    background-color: #d32f2f !important;
}

.btn-help {
    background-color: #757575 !important;
}

/* FORMULAR-FELDER */
.styled-input, .styled-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-top: 5px;
    background: #fafafa;
    box-sizing: border-box;
}

/* TABELLEN STYLING */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #455a64;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

tr:hover {
    background-color: #f9fdf9;
}

/* PAGINATION */
.pagination a {
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    border-radius: 4px;
    background: #455a64;
    color: white;
}

/* MOBILE ANPASSUNGEN */
@media (max-width: 900px) {
    .container {
        max-width: 100%;
    }
    nav {
        flex-direction: column;
    }
    nav form, nav form input {
        width: 100%;
    }
}

/* ==========================================================================
   EINHEITLICHE STARTSEITE-SCHALTFLÄCHE (250px breit, kompakt)
   ========================================================================== */
.btn-startseite {
    width: 250px !important; 
    padding: 8px 20px !important; 
    font-size: 1.1rem !important;
    cursor: pointer;
    background-color: #2e7d32 !important;
    color: white !important;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    box-sizing: border-box !important;
}

@media screen and (max-width: 600px) {
    .btn-startseite {
        width: 100% !important;
    }
}