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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.btn {
    background-color: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: #27ae60;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Edit Button Styles */
.btn-edit {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.btn-edit:hover {
    background-color: #e67e22;
}

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

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: none;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

input[type="text"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

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

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Table Styles */
.table-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 20px;
	max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.table-container thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

th {
    background-color: #3498db !important;
    color: white !important;
    padding: 15px 10px;
    text-align: left;
    font-weight: bold;
    white-space: normal; /* Statt nowrap */
    min-width: 80px;
    max-width: 200px;
    word-wrap: break-word; /* Lange Wörter umbrechen */
    overflow-wrap: break-word; /* Moderne Alternative */
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    white-space: normal; /* Statt nowrap */
    min-width: 80px;
    max-width: 200px;
    word-wrap: break-word; /* Lange Wörter umbrechen */
    overflow-wrap: break-word; /* Moderne Alternative */
}

tr:hover {
    background-color: #f8f9fa;
}

/* Actions Column - bleibt rechts fixiert */
.actions-column {
    width: 70px;
    text-align: center;
    position: sticky;
    right: 0;
    background-color: white;
    box-shadow: -2px 0 4px rgba(0,0,0,0.1);
    z-index: 5;
}

.table-container thead th.actions-column {
    background-color: #3498db !important;
    color: white !important;
    box-shadow: -2px 0 4px rgba(0,0,0,0.1);
    z-index: 15;
}

.sport-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 150px;
}

.sport-tag {
    background-color: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    white-space: nowrap;
}

.status-ja {
    color: #27ae60;
    font-weight: bold;
}

.status-nein {
    color: #e74c3c;
    font-weight: bold;
}

.error {
    color: #e74c3c;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success {
    color: #155724;
    background-color: #d4edda;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

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

    h1 {
        font-size: 2em;
    }

    .table-container table {
        min-width: 800px;
    }
    
    .table-container th,
    .table-container td {
        padding: 6px 4px;
        font-size: 13px;
        min-width: 70px;
    }
    
    .btn-edit {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .actions-column {
        width: 60px;
    }
    
    .sport-tags {
        max-width: 120px;
    }
    
    .sport-tag {
        font-size: 9px;
        padding: 1px 4px;
    }

    .modal-content {
        width: 98%;
        margin: 2% auto;
        max-height: 95vh;
    }

    .checkbox-group,
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    .table-container table {
        min-width: 700px;
    }
    
    .table-container th,
    .table-container td {
        padding: 4px 2px;
        font-size: 12px;
        min-width: 60px;
    }
    
    .actions-column {
        width: 50px;
    }
    
    .btn-edit {
        padding: 3px 6px;
        font-size: 9px;
    }
}