/* Grundlegendes Styling für die Registrierungsanwendung */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    background: white;
    padding: 20px 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.header h1 {
    color: #333;
    font-size: 24px;
}

.user-info {
    color: #666;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Boxen */
.welcome-box,
.login-box,
.form-box,
.stats-box,
.info-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.login-box {
    max-width: 450px;
    margin: 50px auto;
}

.welcome-box {
    text-align: center;
    max-width: 600px;
    margin: 50px auto;
}

.welcome-box h1 {
    color: #333;
    margin-bottom: 15px;
}

.welcome-box p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Formulare */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    margin: 10px;
}

/* Action Buttons */
.action-buttons {
    margin: 30px 0;
}

.action-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Info Section */
.info-section {
    margin-top: 30px;
    text-align: left;
}

.info-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    padding: 10px;
    background: #f8f9fa;
    margin-bottom: 8px;
    border-radius: 5px;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
}

.info-box p {
    margin: 5px 0;
}

/* Tabellen */
.data-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.data-table thead {
    background: #667eea;
    color: white;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
}

.data-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.data-table tbody tr:hover {
    background: #e9ecef;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 5px 10px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Code */
code {
    background: #f4f4f4;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #e83e8c;
}

.code-highlight {
    background: #fff3cd;
    color: #856404;
    font-weight: 600;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: end;
}

.filter-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.count-info {
    color: #666;
    font-size: 14px;
}

/* Recent Section */
.recent-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
}

.recent-section h2 {
    color: #333;
    margin-bottom: 20px;
}

/* Links */
.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .action-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 5px;
    }
}
