/* Angela's Veranstaltungen - Responsive Styles */

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6b35;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #ddd;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

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

/* Header */
.header {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.description {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 15px;
}

.admin-header {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* Cards */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.login-card {
    max-width: 400px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

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

.btn-primary:hover {
    background: #0052a3;
}

.btn-secondary {
    background: var(--text-light);
    color: var(--white);
}

.btn-secondary:hover {
    background: #555;
}

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

.btn-success:hover {
    background: #218838;
}

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

.btn-danger:hover {
    background: #c82333;
}

/* Forms */
.form-note {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

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

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

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

/* Event Cards */
.event-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.event-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-description {
    margin: 15px 0;
    color: var(--text-dark);
}

.event-stats {
    background: var(--white);
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 0.9rem;
}

.event-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    color: var(--primary-color);
}

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

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-dark);
}

/* Messages */
.error-message {
    color: var(--danger-color);
    background: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    display: none;
}

.success-message {
    color: var(--success-color);
    background: #d4edda;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    display: none;
}

.error-message.show,
.success-message.show {
    display: block;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.back-link {
    text-align: center;
    margin-top: 15px;
}

.admin-link {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: right;
    margin-bottom: 20px;
}

.admin-link a {
    color: #003d7a;
    font-weight: 600;
    font-size: 1rem;
}

/* Info Box */
.info-box {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Registrations Table */
.registrations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

.registrations-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.registrations-list {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.registration-item {
    background: var(--white);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.registration-info {
    flex: 1;
}

.no-events,
.no-registrations {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-meta {
        flex-direction: column;
        gap: 5px;
    }

    .event-actions {
        flex-direction: column;
    }

    .event-actions .btn {
        width: 100%;
    }

    .admin-header {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }

    .registrations-table {
        font-size: 0.9rem;
    }

    .registrations-table th,
    .registrations-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Event Status Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.badge-full {
    background: var(--danger-color);
    color: var(--white);
}

.badge-warning {
    background: var(--warning-color);
    color: var(--text-dark);
}

/* Full Event Styling */
.event-full {
    opacity: 0.8;
    border-left-color: var(--text-light);
}

.event-full h3 {
    color: var(--text-light);
}

/* Disabled Button */
.btn-disabled {
    background: var(--text-light);
    color: var(--white);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-disabled:hover {
    background: var(--text-light);
}

/* DGhK Member Badge */
.badge-member {
    background: var(--success-color);
    color: var(--white);
    font-size: 0.75rem;
    margin-left: 8px;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    transform: scale(1.2);
}

/* Footer Styles */
.footer {
    background: var(--white);
    margin-top: 40px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    color: #003d7a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Impressum and Privacy Policy Styles */
.impressum-section,
.privacy-section {
    margin-bottom: 30px;
}

.impressum-section h3,
.privacy-section h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    margin-top: 15px;
}

.impressum-section h4,
.privacy-section h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    margin-top: 10px;
    font-size: 1rem;
}

.impressum-section p,
.privacy-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.impressum-section ul,
.privacy-section ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.impressum-section li,
.privacy-section li {
    margin-bottom: 5px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
