* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.0;
    color: #333;
    background: #744685;
    min-height: 100vh;
    /*display: flex;*/
    /*flex-direction: column;*/
}

h3 {
    color: #744685;
    margin-bottom: 1rem;
}
h2 {
    margin-bottom: 1rem;
}

h5 {
    margin-bottom: 1rem;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h1 {
    color: #744685;
    font-size: 1.8rem;
}

.main-header nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-header nav a:hover {
    color: #744685;
}

.logout-btn {
    background: #f44336;
    color: white !important;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
}

.logout-btn:hover {
    background: #d32f2f !important;
}

/* Main Content */
main {
    flex: 1;
}

/* Card */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 600px;
    margin: 2rem auto;
}

.card h3 {
    color: #744685;
    margin-bottom: 1.5rem;
    text-align: center;
}

.card h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 0.5rem;
}

.form-group label {
    display: block;
    margin: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group input[type="password"],
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

textarea.form-control {
    font-family: inherit;
}

.form-group input:focus,
.form-control:focus {
    outline: none;
    border-color: #744685;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

#gks_member, #fgks_member{
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #4B733F;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
}

.btn:hover {
    background: #DFBD63;
}

.btn-secondary {
    background: #744685;
}

.btn-secondary:hover {
    background: #4B733F;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Table */
.table-responsive {
    overflow-x: auto;
    /*margin-top: 2rem;*/
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

table thead {
    background: #744685;
    color: white;
}

table th,
table td {
    padding: 0.3rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table tbody tr:hover {
    background: #f5f5f5;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Dashboard */
.dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #DFBD63;
    color: black;
    /*padding: 0.5rem;*/
    border-radius: 10px;
    text-align: center;
}

.stat-card.success {
    background: #28a745;
    color: white;
}

.stat-card.info {
    background: #17a2b8;
    color: white;
}

.stat-card.secondary {
    background: #6c757d;
    color: white;
}

.stat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: inherit;
}

.stat-card p {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Event Specific Stats */
.event-stats-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.event-stats-header h3 {
    margin-bottom: 0.5rem;
}

.event-stats-header .location-text {
    color: #666;
    font-weight: 600;
}

.event-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card.small {
    /*padding: 1rem;*/
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
}

.stat-card.small h4 {
    margin: 0;
    font-size: 1.8rem;
}

.stat-card.small p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.stat-card.small.family {
    border-color: #000;
}

.stat-card.small.family h4 {
    color: #000;
}

.stat-card.small.angemeldet {
    border-color: #28a745;
}

.stat-card.small.angemeldet h4 {
    color: #28a745;
}

.stat-card.small.adults {
    border-color: #007bff;
}

.stat-card.small.adults h4 {
    color: #007bff;
}

.stat-card.small.kids {
    border-color: #17a2b8;
}

.stat-card.small.kids h4 {
    color: #17a2b8;
}

.stat-card.small.function {
    border-color: #6610f2;
}

.stat-card.small.function h4 {
    color: #6610f2;
}

/* Dashboard Control Panel */
.control-panel {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.control-panel-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-section {
    flex: 1;
    min-width: 300px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-small {
    width: auto !important;
}

.btn-purple {
    background: #744685;
}

.btn-indigo {
    background: #667eea;
}

.btn-success {
    background: #28a745;
}

.btn-danger {
    background: #dc3545;
}

.btn-info {
    background: #17a2b8;
}

.btn-warning {
    background: #ffa500;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-0 {
    margin-top: 0;
}

.w-100 {
    width: 100%;
}

.flex-1 {
    flex: 1;
}

.d-flex {
    display: flex;
}

.gap-05 {
    gap: 0.5rem;
}

.gap-1 {
    gap: 1rem;
}

.align-center {
    align-items: center;
}

.font-small {
    font-size: 0.8rem;
}

.p-05-1 {
    padding: 0.5rem 1rem;
}

textarea.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

textarea.form-control:focus {
    outline: none;
    border-color: #744685;
}

.max-w-200 {
    max-width: 200px;
}

.pre-line {
    white-space: pre-line;
}

.font-09 {
    font-size: 0.9em;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-weight: 600;
    padding-top: 3px;
}

.status-waiting {
    background-color: #17a2b8;
}

.status-cancelled {
    background-color: #dc3545;
}

.status-registered {
    background-color: #28a745;
}

.text-muted {
    color: #999;
}

.email-status {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}

.email-verified {
    background: #d4edda;
    color: #155724;
}

.email-pending {
    background: #fff3cd;
    color: #856404;
}

.action-links {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    font-weight: 600;
}

.action-link {
    text-decoration: none;
    white-space: nowrap;
}

.link-blue {
    color: #0d6efd;
}

.link-red {
    color: #dc3545;
}

.link-green {
    color: #28a745;
}

.link-indigo {
    color: #667eea;
}

.separator {
    margin: 0.5rem 0;
    border: 0;
    border-top: 1px solid #eee;
}

.m-0 {
    margin: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

/* Footer */
.main-footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 0;
    margin-top: 2rem;
    text-align: center;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-header nav {
        margin-top: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    table th,
    table td {
        padding: 0.2rm;
        font-size: 0.9rem;
    }
}
