@media (max-width: 900px) {
    .container {
        flex-direction: column !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
    }
    .wrapper_left,
    .wrapper {
        min-width: 0 !important;
        width: 100% !important;
    }
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 0;
        max-width: 100%;
    }
    .wrapper_left,
    .wrapper {
        min-width: 0;
        width: 100%;
    }
}
.info_button {
    text-align: center;
    margin: 0px auto;
}
.info_button a {
    display: inline-block;
    padding: 10px 22px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 0px auto;
    text-align: center;
}
.info_button a:hover {
    background: #357abd;
}
.wrapper_left {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
:root {
    --primary-color: #4a90e2;
    --success-bg: #e8f5e9;
    --success-text: #2e7d32;
    --error-bg: #ffebee;
    --error-text: #c62828;
    --border-color: #ddd;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-image: url('bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Falls das Bild den Text schwer lesbar macht, nutzen wir diesen Wrapper: */
.wrapper {
    background: rgba(255, 255, 255, 0.9); /* Weiß mit 90% Deckkraft */
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.container {
    display: flex;
    flex-direction: row;
    gap: 24px;
    width: 100%;
    max-width: 1000px;
    justify-content: center;
    align-items: flex-start;
}

.wrapper_left {
    flex: 1 1 0;
    margin-right: 0;
    min-width: 300px;
}

.wrapper {
    flex: 1 1 0;
    min-width: 300px;
}

.wrapper {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

h1 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-submit:hover {
    background-color: #357abd;
}

.alert {
    padding: 12px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

.success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #c8e6c9;
}

.error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #ffcdd2;
}

/* Responsivität */
@media (max-width: 480px) {
    .wrapper {
        padding: 20px;
    }
}

/* Spezielles Layout für die Admin-Ansicht */
.admin-body {
    align-items: flex-start; /* Richtet den Inhalt oben aus statt mittig */
    padding-top: 40px;
    background-color: #f0f2f5;
}

.admin-wide-container {
    width: 95%;          /* Nutzt fast die volle Breite auf kleinen Schirmen */
    min-width: 70%;      /* Garantiert mindestens 70% Breite auf großen Schirmen */
    max-width: 1400px;   /* Verhindert extremes Auseinanderziehen auf Ultra-Wide Monitoren */
}

/* Header-Bereich in der Admin-Ansicht */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.admin-header h1 {
    margin: 0;
    text-align: left;
}

.stats-badge {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Tabellen-Styling Optimierung */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background-color: #f8f9fa;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-align: left;
}

td {
    padding: 15px 12px;
    border-bottom: 1px solid #edf0f2;
}

tr:nth-child(even) {
    background-color: #fcfcfc; /* Zebra-Look für bessere Lesbarkeit */
}

.text-center {
    text-align: center;
}

/* Mobil-Optimierung: Tabelle bleibt scrollbar, Container bleibt breit */
@media (max-width: 768px) {
    .admin-wide-container {
        width: 100%;
        padding: 0 10px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}