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

:root {
    --primary-color: #F6B93B;
    --primary-dark: #E89F3C;
    --primary-light: #FDD365;
    --secondary-color: #FFA500;
    --text-dark: #2C3E50;
    --text-medium: #555;
    --text-light: #777;
    --background: #FAFAFA;
    --white: #FFFFFF;
    --border: #E0E0E0;
    --success: #27AE60;
    --error: #E74C3C;
    --warning: #F39C12;
    --info: #3498DB;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    line-height: 1.6;
    color: var(--text-dark);
}

/* Header mit Logo */
header {
    background: var(--white);
    color: var(--text-dark);
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 50px;
    width: auto;
}

header h1 {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

header p {
    font-size: 0.95em;
    color: var(--text-medium);
    margin: 5px 0 0 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    min-height: 100vh;
}

/* Navigation Links */
.admin-link {
    text-align: right;
    padding: 15px 30px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.admin-link a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
}

.admin-link a:hover {
    color: var(--secondary-color);
    background: rgba(246, 185, 59, 0.1);
}

.back-link {
    padding: 20px 30px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.back-link a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link a:hover {
    color: var(--secondary-color);
}

/* Formulare */
form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--background);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.form-section h3 {
    color: var(--text-dark);
    margin: 20px 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
    background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(246, 185, 59, 0.1);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: var(--background);
    cursor: not-allowed;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.85em;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

button {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 2px 4px rgba(246, 185, 59, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(246, 185, 59, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--background);
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85em;
    border-radius: 4px;
}

.btn-view {
    background: var(--info);
    color: white;
}

.btn-view:hover {
    background: #2980B9;
}

.btn-delete {
    background: var(--error);
    color: white;
}

.btn-delete:hover {
    background: #C0392B;
}

/* Nachrichten */
.message {
    margin: 20px 30px;
    padding: 16px 20px;
    border-radius: 6px;
    display: none;
    border-left: 4px solid;
    font-weight: 500;
}

.message.success {
    background: #D4EDDA;
    color: #155724;
    border-color: var(--success);
}

.message.error {
    background: #F8D7DA;
    color: #721C24;
    border-color: var(--error);
}

.message.info {
    background: #D1ECF1;
    color: #0C5460;
    border-color: var(--info);
}

.message.warning {
    background: #FFF3CD;
    color: #856404;
    border-color: var(--warning);
}

/* Info-Boxen */
.info-box {
    background: #FFF9E6;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.info-box h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

/* Kapazitätsanzeige */
.capacity-display {
    padding: 30px;
    background: var(--background);
    border-bottom: 2px solid var(--border);
}

.capacity-display h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1.3em;
}

.capacity-table {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.capacity-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: var(--primary-color);
    color: var(--text-dark);
    font-weight: 600;
    padding: 15px;
    font-size: 0.95em;
}

.capacity-header > div {
    text-align: center;
}

.capacity-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
}

.capacity-row:last-child {
    border-bottom: none;
}

.capacity-row:hover {
    background: var(--background);
}

.capacity-date {
    font-weight: 500;
    color: var(--text-dark);
}

.capacity-value {
    text-align: center;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
}

.capacity-value.available {
    background: #D4EDDA;
    color: #155724;
}

.capacity-value.low {
    background: #FFF3CD;
    color: #856404;
}

.capacity-value.full {
    background: #F8D7DA;
    color: #721C24;
}

.capacity-info {
    padding: 15px 20px;
    background: #FFF9E6;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    margin-top: 15px;
}

.capacity-info p {
    margin: 0;
    color: var(--primary-dark);
    font-weight: 500;
}

.capacity-info #available-spots {
    font-weight: 700;
    font-size: 1.1em;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--primary-color);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95em;
}

tr:hover {
    background: var(--background);
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Status-Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
}

.status-neu {
    background: #FFF3CD;
    color: #856404;
}

.status-bestaetigt {
    background: #D4EDDA;
    color: #155724;
}

.status-abgeschlossen {
    background: #D1ECF1;
    color: #0C5460;
}

.status-storniert {
    background: #F8D7DA;
    color: #721C24;
}

/* Admin-Container */
.admin-container {
    padding: 30px;
}

/* Statistik-Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-dark);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(246, 185, 59, 0.3);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card h3 {
    font-size: 36px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.stat-card p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--background);
    padding: 20px;
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9em;
    border-top: 2px solid var(--border);
}

footer p {
    margin: 5px 0;
}

footer strong {
    color: var(--primary-dark);
}

/* Login-Seite */
.container.login-container {
    max-width: 500px;
    margin: 100px auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .capacity-header,
    .capacity-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        font-size: 0.85em;
    }
    
    table {
        font-size: 0.85em;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        margin: 0;
    }
}

/* Hover-Effekte */
a {
    transition: all 0.3s;
}

/* Zugangscode-Anzeige */
.access-code {
    background: #FFF9E6;
    border: 2px dashed var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    border-radius: 8px;
    color: var(--primary-dark);
}

/* Checklisten-Styling */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.checklist-item:hover {
    background: var(--background);
}

.checklist-checkbox {
    font-size: 24px;
    cursor: pointer;
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message {
    animation: fadeIn 0.3s ease-out;
}

/* Print-Styles */
@media print {
    .admin-link,
    .back-link,
    .form-actions,
    .action-buttons,
    button {
        display: none !important;
    }
    
    .container {
        box-shadow: none;
    }
    
    body {
        background: white;
    }
}
