/* ==== Test-User Styles ==== */
.test-user-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.days-remaining {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.test-welcome-banner {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #3b82f6;
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
}

.banner-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.banner-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
}

.banner-text h3 {
    color: #1e40af;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.banner-text p {
    color: #3b82f6;
    font-size: 1rem;
}

.banner-actions {
    flex-shrink: 0;
}

.btn-upgrade {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.3);
}

.btn-upgrade:hover {
    background: linear-gradient(135deg, #15803d, #166534);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(22, 163, 74, 0.4);
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .test-user-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

/* ==== Basis Styles und Variablen ==== */
:root {
    --primary-red: #c00d0e;
    --primary-blue: #1a365d;
    --secondary-blue: #2563eb;
    --success-green: #16a34a;
    --warning-orange: #f59e0b;
    --danger-red: #dc2626;
    --gray-light: #f8f9fa;
    --gray-medium: #6b7280;
    --gray-dark: #374151;
    --field-green: #0b6623;
    --white: #ffffff;
    --black: #000000;
    --scouting-gray: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 20px;
    color: #111827;
}

/* ==== Basis Layout ==== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

h2 {
    color: #c00d0e;
    margin-bottom: 24px;
    font-weight: 700;
}

h3 {
    margin-top: 28px;
    margin-bottom: 16px;
    color: #1f2937;
    font-weight: 600;
}

/* ==== Top Bar ==== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

/* ==== Buttons ==== */
.btn,
.toggle-btn,
.collapsible,
.btn-back {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    background: #c00d0e;
    color: #fff;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
}

.btn:hover,
.toggle-btn:hover,
.collapsible:hover,
.btn-back:hover {
    background: #a30b0b;
    transform: translateY(-2px);
}

.btn.danger {
    background: #dc2626;
}
.btn.danger:hover {
    background: #b91c1c;
}

/* ==== Tabs Navigation ==== */
.nav-tabs {
    display: flex;
    gap: 12px;
    margin: 25px 0 30px 0;
    flex-wrap: wrap;
}
.spieler-icon.schattenkader {
    background: #7c3aed; /* Lila Farbe für Schattenkader */
    border: 2px dashed #ffffff;
}

.tab-btn {
    background: #f3f4f6;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.25s ease;
    font-size: 14px;
    color: #374151;
    text-decoration: none !important;
}

.tab-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.tab-btn.active {
    background: #c00d0e;
    color: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    border-bottom: none;
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* ==== Form Card ==== */
.form-card {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    margin-bottom: 32px;
    margin-top: 16px;
    transition: transform 0.2s ease;
}
.form-card:hover {
    transform: translateY(-2px);
}

.form-card label {
    display: block;
    margin-top: 14px;
    font-weight: 500;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    border-color: #c00d0e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(192,13,14,0.2);
}

.form-card textarea {
    min-height: 100px;
}

.form-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
}

/* ==== Collapsible ==== */
.collapsible {
    width: 100%;
    text-align: left;
    background: #f3f4f6;
    color: #111827;
    border-radius: 10px;
    margin-bottom: 12px;
}
.collapsible.active {
    background: #c00d0e;
    color: #fff;
}
.collapsible::after {
    content: "▼";
    float: right;
    transition: transform 0.25s ease;
}
.collapsible.active::after {
    transform: rotate(-180deg);
}
.collapsible-content {
    display: none;
    overflow: hidden;
    margin-top: 12px;
}
.collapsible-content.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ==== Tabelle ==== */
.spieler-tabelle {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 28px 0 35px 0;
    font-size: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.spieler-tabelle th,
.spieler-tabelle td {
    padding: 14px 16px;
    text-align: left;
}

.spieler-tabelle th {
    background: #c00d0e;
    color: #151517;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2;
}

.spieler-tabelle td {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.spieler-tabelle tr:nth-child(even) td {
    background: #f9fafb;
}

.spieler-tabelle tr:hover td {
    background: #fef2f2;
    cursor: pointer;
}

/* ==== Spieler Einsatz Cards ==== */
.einsatz-card {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}
.einsatz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
.einsatz-card h4 {
    font-weight: 600;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.einsatz-card h4 span {
    font-size: 14px;
}

/* ==== Einsatz-Details ==== */
.einsatz-details {
    display: none;
    margin-top: 12px;
    padding: 14px;
    border-radius: 10px;
    background: #f9fafb;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease;
}

.einsatz-details table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.einsatz-details th,
.einsatz-details td {
    padding: 10px 12px;
    text-align: left;
}

.einsatz-details th {
    background: #e5e7eb;
    font-weight: 600;
    color: #374151;
}

.einsatz-details td {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.einsatz-details tr:nth-child(even) td {
    background: #f9fafb;
}

.einsatz-details tr:hover td {
    background: #fef2f2;
}

/* ==== Filter Buttons ==== */
.filter-buttons {
    display: flex;
    gap: 12px;
    margin: 20px 0 28px 0;
    flex-wrap: wrap;
}
.filter-buttons .btn {
    background: #f3f4f6;
    color: #111827;
}
.filter-buttons .btn:hover {
    background: #e5e7eb;
}
.filter-buttons .btn.active {
    background: #c00d0e;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ==== Team Cards ==== */
.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.team-card {
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #c00d0e;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}
.team-card:hover {
    background: #c00d0e;
    color: #fff;
    transform: translateY(-4px);
}

/* ==== Logo ==== */
.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ==== Filter Bar ==== */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
    align-items: center;
}

.filter-bar input,
.filter-bar select {
    flex: 1;
    min-width: 160px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #c00d0e;
    box-shadow: 0 0 0 3px rgba(192,13,14,0.15);
    outline: none;
}

/* ==== Status Badges ==== */
.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.status-kein_kontakt { background: #9ca3af; color: #fff; }
.status-kontaktaufnahme { background: #3b82f6; color: #fff; }
.status-probetraining { background: #fef08a; color: #111; }
.status-zusage { background: #16a34a; color: #fff; }
.status-im_verein { background: #15803d; color: #fff; }
.status-absage { background: #dc2626; color: #fff; }
.status-uninteressant { background: #e5e7eb; color: #111; }
.status-blick { background: #ede9fe; color: #111; }
.status-selbst_angefragt { background: #bae6fd; color: #111; }

/* ==== Zurück-Button ==== */
.btn-back {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background: #c00d0e;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn-back:hover {
    background: #a30b0b;
    transform: translateY(-2px);
}

/* ==== Eingabefelder & Dropdowns in Tabellen ==== */
.spieler-tabelle input[type="number"],
.spieler-tabelle select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.spieler-tabelle input[type="number"]:focus,
.spieler-tabelle select:focus {
    border-color: #c00d0e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(192,13,14,0.15);
}

.spieler-tabelle select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 30px;
    cursor: pointer;
}

.spieler-tabelle input[type="number"] {
    max-width: 80px;
    text-align: center;
}

/* ==== Positions-Badges ==== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.badge-tw { background: #2563eb; }
.badge-iv, .badge-lv, .badge-rv, .badge-lav, .badge-rav { background: #16a34a; }
.badge-zdm, .badge-zm, .badge-zom, .badge-rm, .badge-lm { background: #f59e0b; }
.badge-rf, .badge-lf, .badge-hs, .badge-st { background: #dc2626; }
.badge-default { background: #6b7280; }

/* ==== Team Header ==== */
.team-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-header .logo {
    height: 40px;
    width: auto;
}

/* ==== Feedback Detail-Zeilen ==== */
.spieler-row {
    cursor: pointer;
}

.detail-row {
    display: table-row;
}

.feedback-box {
    padding: 0 12px;
    background: #f9fafb;
    border-left: 4px solid #c00d0e;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.detail-row.show-feedback .feedback-box {
    max-height: 500px;
    padding: 12px;
}

/* ==== Animation ==== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==== Modal Overlay ==== */
.modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10000 !important;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay {
    position: fixed !important;
    z-index: 9999 !important;
}

/* ==== Modal Header ==== */
.modal h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 700;
    color: #c00d0e;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal h3 button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease;
}
.modal h3 button:hover {
    color: #c00d0e;
}

/* ==== Modal Inputs ==== */
.modal form label {
    font-weight: 500;
    margin-top: 14px;
    display: block;
    color: #374151;
}

.modal form input,
.modal form textarea,
.modal form select {
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.modal form input:focus,
.modal form textarea:focus,
.modal form select:focus {
    border-color: #c00d0e;
    box-shadow: 0 0 0 3px rgba(192,13,14,0.15);
    outline: none;
}

.modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.fc .fc-popover {
    z-index: 9997 !important;
}

.fc .fc-toolbar {
    position: relative;
    z-index: 1;
}

body.modal-open {
    overflow: hidden;
}

/* Aufstellung Styles */
.aufstellung-entry {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.position-badge {
    background: #c00d0e;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.remove-btn {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-left: auto;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #b91c1c;
}

/* ==== Taktikboard Container ==== */
.taktikboard-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* Responsive Design für Mobile */
@media (min-width: 1024px) {
    .taktikboard-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Spieler-Liste */
.spieler-liste {
    flex: 1;
    max-width: 100%;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .spieler-liste {
        max-width: 400px;
    }
}

/* Alerts / Meldungen */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    position: relative;
    border-left: 5px solid;
    animation: fadeIn 0.5s ease-in-out;
}

.alert-success {
    background-color: #d1fae5;
    border-color: var(--success-green);
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    border-color: var(--danger-red);
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: var(--warning-orange);
    color: #92400e;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--gray-light);
    border-radius: 8px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.scouting-table {
    background-color: #f8f9fa;
}

.scouting-table .spieler-draggable {
    opacity: 0.7;
    background-color: #f1f5f9;
}

.scouting-table .spieler-draggable:hover {
    background-color: #e2e8f0;
}

.spieler-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.spieler-tabelle th,
.spieler-tabelle td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.spieler-tabelle th {
    background-color: var(--gray-light);
    font-weight: 600;
}

.spieler-draggable {
    cursor: grab;
    transition: background-color 0.2s ease;
}

.spieler-draggable:active {
    cursor: grabbing;
    background-color: var(--gray-light);
}

.spieler-draggable:hover {
    background-color: #f0f0f0;
}

/* Ball-Element */
.ball-draggable {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    cursor: grab;
    background: var(--gray-light);
    margin-top: 20px;
    transition: all 0.2s ease;
}

.ball-draggable:active {
    cursor: grabbing;
    background: #e0e0e0;
}

.ball-draggable:hover {
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
}

.ball-icon {
    font-size: 32px;
    margin-right: 12px;
}

/* Taktikfeld */
.taktikfeld {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.taktik-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.taktik-toolbar label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.taktik-toolbar input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.taktik-toolbar button {
    padding: 10px 15px;
    background: var(--secondary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.taktik-toolbar button:hover {
    background: #1d4ed8;
}

/* Zoom Controls */
.zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.zoom-controls button {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

#zoomLevel {
    font-size: 14px;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
}

/* Size Controls */
.size-controls {
    margin-top: 20px;
    padding: 15px;
    background: var(--gray-light);
    border-radius: 8px;
}

.size-controls h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
}

.size-slider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.size-slider label {
    min-width: 100px;
    font-size: 14px;
}

.size-slider input {
    flex: 1;
}

.size-slider span {
    min-width: 40px;
    text-align: right;
    font-size: 14px;
}

#resetSizes {
    width: 100%;
    padding: 8px;
    background: var(--gray-medium);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

#resetSizes:hover {
    background: var(--gray-dark);
}

/* Animation Controls */
.animation-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    padding: 20px;
    background: var(--gray-light);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.animation-controls button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-record { background: var(--danger-red); color: var(--white); }
.btn-stop { background: var(--gray-medium); color: var(--white); }
.btn-capture { background: var(--secondary-blue); color: var(--white); }
.btn-play { background: var(--success-green); color: var(--white); }
.btn-save { background: #7c3aed; color: var(--white); }
.btn-clear { background: var(--warning-orange); color: var(--white); }

.animation-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#recordingControls,
#playbackControls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.frame-counter {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-dark);
}

/* Timeline */
.timeline-container {
    background: var(--gray-light);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.timeline-container h4 {
    margin: 0 0 15px 0;
    color: var(--gray-dark);
    font-size: 18px;
}

.timeline {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 15px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: 100px;
    margin-bottom: 20px;
}

/* Gegner Button unter der Timeline */
.gegner-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.gegner-btn:hover {
    background: #2d4a80;
}

/* Spielfeld */
.feld-container {
    position: relative;
    width: 100%;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.feld {
    width: 100%;
    aspect-ratio: 3/2; /* Mehr rechteckig statt quadratisch */
    background: var(--field-green);
    border: 3px solid var(--white);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    max-height: 70vh;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

/* Spielfeld-Markierungen */
.feld::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    transform: translateY(-50%);
}

.mittellinie {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    transform: translateY(-50%);
}

.mittelkreis {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    margin-left: -60px;
    margin-top: -60px;
    border: 2px solid var(--white);
    border-radius: 50%;
}

.strafraum {
    position: absolute;
    width: 200px;
    height: 80px;
    border: 2px solid var(--white);
    left: 50%;
    transform: translateX(-50%);
}

.strafraum.oben { top: 0; }
.strafraum.unten { bottom: 0; }

.tor {
    position: absolute;
    width: 60px;
    height: 15px;
    background: var(--white);
    left: 50%;
    transform: translateX(-50%);
}

.tor.oben { top: -7px; }
.tor.unten { bottom: -7px; }

/* Weißer Bereich unten */
.unterbereich {
    position: relative;
    height: 100px;
    background: var(--gray-light);
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 8px;
}

/* Spieler-Icons */
.spieler-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-red);
    color: var(--white);
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    cursor: move;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    user-select: none;
    border: 2px solid var(--white);
    z-index: 50;
    transition: none;
    touch-action: none;
}

.spieler-icon.scouting {
    background: var(--scouting-gray);
    opacity: 0.8;
}

.spieler-icon.gegner {
    background: var(--primary-blue);
}

.spieler-icon.selected {
    outline: 3px solid #00c3ff;
    box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.3);
}

.spieler-name {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    display: none;
    z-index: 60;
}

/* Ball auf dem Feld */
.ball-on-field {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    color: #333;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    cursor: move;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    user-select: none;
    border: 2px solid #ccc;
    z-index: 60;
    transition: none;
    touch-action: none;
}

/* Entfernen-Bereich */
.remove-zone {
    padding: 15px 25px;
    border: 2px dashed var(--danger-red);
    border-radius: 8px;
    text-align: center;
    color: var(--danger-red);
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 200;
}

.remove-zone.dragover {
    background: var(--danger-red);
    color: var(--white);
    border-color: #900;
    transform: scale(1.05);
}

/* 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.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover,
.close:focus {
    color: var(--black);
    text-decoration: none;
}

#screenshotPreview {
    margin: 20px 0;
    text-align: center;
}

#screenshotPreview img {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.modal-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-download {
    background-color: var(--success-green);
    color: var(--white);
}

.btn-download:hover {
    background-color: #15803d;
}

.btn-close {
    background-color: var(--gray-medium);
    color: var(--white);
}

.btn-close:hover {
    background-color: #4b5563;
}

.modal-input {
    margin: 20px 0;
}

.modal-input label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 500;
}

.modal-input input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.modal-input input:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

/* Frame Thumbnails */
.frame-thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.frame-thumbnail.active {
    border-color: var(--secondary-blue);
}

.frame-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-number {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
}

.frame-delete {
    position: absolute;
    top: 3px;
    right: 3px;
    background: rgba(220, 38, 38, 0.9);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.frame-delete:hover {
    background: var(--danger-red);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .taktikboard-container {
        padding: 10px;
        gap: 15px;
    }
    
    .taktik-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .animation-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    #recordingControls,
    #playbackControls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .animation-controls button {
        width: 100%;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons button {
        width: 100%;
    }
    
    .spieler-liste {
        padding: 15px;
    }
    
    .spieler-tabelle {
        font-size: 14px;
    }
    
    .feld {
        aspect-ratio: 3/4;
    }
    
    .spieler-icon {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    .ball-on-field {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }
}

/* Touch Device Optimierungen */
@media (hover: none) and (pointer: coarse) {
    .spieler-draggable {
        padding: 15px;
        margin: 5px 0;
        border: 2px solid #eee;
        border-radius: 8px;
    }
    
    .ball-draggable {
        padding: 20px;
    }
    
    /* Größere Touch Targets */
    .animation-controls button {
        padding: 15px 20px;
        min-height: 50px;
    }
    
    .taktik-toolbar label {
        padding: 10px;
    }
}

/* Focus Styles für Accessibility */
button:focus-visible,
input:focus-visible,
[draggable]:focus-visible {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 2px;
}

/* Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    padding: 10px;
}

.tab-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    background: #f5f5f5;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #ddd;
}

.tab-btn.active {
    background: #C00D0E; /* Vereinsfarbe */
    color: #fff;
}

/* ==== Moderne Positionsauswahl ==== */
.positions-section {
    margin: 24px 0;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #f1f5f9;
    width: 100%;
    overflow: visible;
}

.positions-section h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.positions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
    width: 100%;
}

.position-category {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    width: 100%;
    min-height: fit-content;
}

.position-category:hover {
    border-color: #c00d0e;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.position-category h4 {
    color: #334155;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.position-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.position-checkbox {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    width: 100%;
    margin: 0 !important;
}

.position-checkbox:hover {
    background: #f1f5f9;
    border-color: #c00d0e;
    transform: translateX(4px);
}

.position-checkbox input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #c00d0e;
    cursor: pointer;
    margin: 0 !important;
    flex-shrink: 0;
}

.position-checkbox input[type="checkbox"]:checked + .position-badge {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(192, 13, 14, 0.3);
}

.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 24px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.badge-tw {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.badge-defense {
    background: linear-gradient(135deg, #10b981, #047857);
}

.badge-midfield {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge-attack {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.position-text {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.position-checkbox input[type="checkbox"]:checked ~ .position-text {
    color: #1e293b;
    font-weight: 600;
}

/* Farb-Kategorien für bessere Übersicht */
.position-category.goalkeeper {
    border-left: 4px solid #3b82f6;
}

.position-category.defense {
    border-left: 4px solid #10b981;
}

.position-category.midfield {
    border-left: 4px solid #f59e0b;
}

.position-category.attack {
    border-left: 4px solid #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .positions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .position-checkbox {
        padding: 12px;
    }
    
    .position-text {
        font-size: 13px;
    }
}

/* ======= VERLETZUNGEN STYLES ======= */
.verletzt-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    animation: pulse-injury 2s infinite;
}

@keyframes pulse-injury {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 3px 8px rgba(239, 68, 68, 0.5);
    }
}

.spieler-verletzt {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-left: 4px solid #ef4444;
}

.spieler-verletzt td {
    opacity: 0.8;
}

.verletzung-info {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 1px solid #f87171;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
    color: #7f1d1d;
}

.verletzung-info strong {
    color: #991b1b;
}

.genesen-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease;
}

.genesen-btn:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* ===================================
   MODERN DASHBOARD DESIGN
   =================================== */

/* Dashboard Container */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Admin Header für Superadmins */
.admin-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: white;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
    animation: gradient-pulse 3s ease-in-out infinite;
}

.admin-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}

.admin-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: 8px;
}

.admin-header p {
    color: #cbd5e1;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Verein Info Header - Modern Card Design */
.verein-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-radius: 20px !important;
    padding: 32px !important;
    margin-bottom: 32px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    position: relative !important;
    overflow: hidden !important;
}

.verein-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c00d0e, #e11d48, #c00d0e);
    animation: gradient-pulse 3s ease-in-out infinite;
}

@keyframes gradient-pulse {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.05); }
}

.trophy-icon {
    font-size: 3.5rem !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    border-radius: 20px !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3) !important;
    flex-shrink: 0 !important;
}

.verein-info h2 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #1e293b, #475569) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 8px !important;
}

.verein-info p {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Navigation Buttons - Modern Pills */
.navigation-buttons {
    display: flex;
    gap: 16px;
    margin-left: auto;
    flex-wrap: wrap;
}

.btn-nav {
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.btn-nav:hover::before {
    left: 100%;
}

.btn-nav.mannschaften {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-nav.mannschaften:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.btn-nav.trainer {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-nav.trainer:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-nav.zuweisungen {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-nav.zuweisungen:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Dashboard Sections */
.dashboard-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
}

.dashboard-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* System Statistics Section */
.stats-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.stats-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card.vereine:hover { border-color: rgba(59, 130, 246, 0.3); }
.stat-card.jugendleiter:hover { border-color: rgba(16, 163, 74, 0.3); }
.stat-card.trainer:hover { border-color: rgba(245, 158, 11, 0.3); }
.stat-card.mannschaften:hover { border-color: rgba(192, 13, 14, 0.3); }
.stat-card.scout_spieler:hover { border-color: rgba(139, 92, 246, 0.3); }

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card.vereine .stat-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.stat-card.jugendleiter .stat-icon {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.stat-card.trainer .stat-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.stat-card.mannschaften .stat-icon {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.stat-card.scout_spieler .stat-icon {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.stat-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
    margin-top: 0;
}

.stat-content p {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Mannschaften Grid - Modern Cards */
.mannschaften-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 24px !important;
    margin-top: 28px !important;
}

.mannschaft-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-radius: 16px !important;
    padding: 28px !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.mannschaft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c00d0e, #e11d48);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mannschaft-card:hover::before {
    transform: scaleX(1);
}

.mannschaft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(192, 13, 14, 0.3);
}

.mannschaft-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mannschaft-card h3::before {
    content: '⚽';
    background: linear-gradient(135deg, #c00d0e, #e11d48);
    border-radius: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.mannschaft-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.mannschaft-actions {
    margin-top: 20px;
}

.mannschaft-actions .btn {
    background: linear-gradient(135deg, #c00d0e, #e11d48);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 13, 14, 0.3);
}

.mannschaft-actions .btn:hover {
    background: linear-gradient(135deg, #a10b0c, #be185d);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(192, 13, 14, 0.4);
}

.mannschaft-actions .btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.mannschaft-actions .btn:hover::after {
    transform: translateX(4px);
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

.empty-state p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 24px;
    font-weight: 500;
}

.empty-state .btn {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.empty-state .btn:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

/* Calendar Controls Modern Styling */
.calendar-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.calendar-controls label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.calendar-controls select {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.calendar-controls select:focus {
    border-color: #c00d0e;
    box-shadow: 0 0 0 3px rgba(192, 13, 14, 0.1);
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .verein-info {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .navigation-buttons {
        margin-left: 0;
        justify-content: center;
    }
    
    .btn-nav {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .mannschaften-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-section {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    .dashboard-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 16px;
    }
    
    .verein-info {
        padding: 20px;
    }
    
    .trophy-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .verein-info h2 {
        font-size: 1.8rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-nav {
        justify-content: center;
    }
}
