:root {
    --primary-color: #0056b3;
    --primary-hover: #004085;
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #dddddd;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    padding: 10px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
    gap: 10px;
}

.header h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.user-bar {
    font-size: 0.9rem;
}

.logout-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
}

/* Responsive Grid für Handy & Desktop */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
    .main-content {
        flex-direction: row;
    }
    .form-section, .search-section {
        flex: 1;
    }
}

.form-section h2, .search-section h2 {
    font-size: 1.2rem;
    color: #444;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #555;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fafafa;
}

.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button input {
    flex: 1;
}

button, .btn-primary, .btn-register-link {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

button:hover, .btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-sec {
    background-color: #6c757d;
    width: auto;
    padding: 8px 14px;
    font-size: 0.85rem;
}

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

.status-message {
    padding: 12px;
    background-color: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Tabelle responsive scrollbar auf Handys */
.table-responsive {
    overflow-x: auto;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}

.results-table th, .results-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: left;
}

.results-table th {
    background-color: #f8f9fa;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    margin: 40px auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Login Card */
.login-box {
    max-width: 400px;
    margin: 50px auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.login-box h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.registration-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.btn-register-link {
    background-color: #28a745;
}

.btn-register-link:hover {
    background-color: #218838;
}
