/* Grundgerüst */
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #f4f7f6;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px; /* Platz für Mobile-Ränder */
    box-sizing: border-box;
}

/* Responsive Card */
.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 450px; /* Desktop-Breite */
}

/* Spezialbreite für Admin/Ersa Bereich */
.card-wide {
    max-width: 900px;
}

/* Buttons & Inputs */
.btn, input {
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 16px;
}

.btn {
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-blue { background: #007bff; color: white; }
.btn-green { background: #28a745; color: white; }
.btn-outline { border: 1px solid #ccc; color: #666; }

/* Responsive Tabelle */
.table-container {
    overflow-x: auto; /* Erlaubt horizontales Scrollen auf dem Handy */
    margin-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Verhindert das Quetschen der Spalten */
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

/* Media Queries für kleine Bildschirme */
@media (max-width: 480px) {
    .card {
        padding: 20px;
    }
    h1 { font-size: 22px; }
}

/* Status-Meldungen */
.msg { padding: 12px; border-radius: 6px; margin-bottom: 15px; font-size: 14px; }
.msg-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.msg-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.footer-link { display: inline-block; margin-top: 15px; color: #888; text-decoration: none; font-size: 13px; }