/* ═══════════════════════════════════════════════════
   Kickando — Frontend Admin Panel
   Premium Modern UI with Glassmorphism & Animations
   ═══════════════════════════════════════════════════ */

:root {
    --fcm-primary: #1e3a5f;
    --fcm-primary-light: #2c5282;
    --fcm-primary-dark: #1a2e4a;
    --fcm-accent: #F59E0B;
    --fcm-accent-glow: rgba(245, 158, 11, .35);
    --fcm-success: #10B981;
    --fcm-danger: #EF4444;
    --fcm-warning: #F59E0B;
    --fcm-info: #3B82F6;
    --fcm-bg: #f0f2f5;
    --fcm-surface: #ffffff;
    --fcm-surface-glass: rgba(255,255,255,.72);
    --fcm-border: #e2e5ea;
    --fcm-border-light: #f0f1f3;
    --fcm-text: #1a1d23;
    --fcm-text-secondary: #6B7280;
    --fcm-text-muted: #9CA3AF;
    --fcm-radius: 14px;
    --fcm-radius-sm: 8px;
    --fcm-radius-lg: 20px;
    --fcm-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    --fcm-shadow-lg: 0 4px 24px rgba(0,0,0,.08), 0 12px 48px rgba(0,0,0,.04);
    --fcm-shadow-glow: 0 0 20px rgba(30,58,95,.12);
    --fcm-transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* ─── Base Container ─── */
.fcm-fadmin {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--fcm-text);
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    min-height: 600px;
    background: var(--fcm-bg);
    border-radius: var(--fcm-radius-lg);
    position: relative;
}

/* Subtle background pattern */
.fcm-fadmin::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 300px;
    background: linear-gradient(135deg, var(--fcm-primary) 0%, var(--fcm-primary-light) 50%, #4a90d9 100%);
    border-radius: var(--fcm-radius-lg) var(--fcm-radius-lg) 0 0;
    z-index: 0;
    opacity: .06;
    pointer-events: none;
}
.fcm-fadmin > * { position: relative; z-index: 1; }

/* ─── Animations ─── */
@keyframes fcm-fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fcm-slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fcm-scaleIn {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes fcm-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}
@keyframes fcm-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes fcm-livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
    50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

.fcm-animate-in {
    animation: fcm-fadeIn .4s cubic-bezier(.4,0,.2,1) both;
}

/* ─── Login Prompt ─── */
.fcm-admin-login {
    text-align: center;
    padding: 80px 32px;
    background: var(--fcm-surface);
    border-radius: var(--fcm-radius-lg);
    border: 1px solid var(--fcm-border);
    max-width: 420px;
    margin: 60px auto;
    box-shadow: var(--fcm-shadow-lg);
}
.fcm-admin-login p {
    color: var(--fcm-text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}
.fcm-btn-admin-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--fcm-primary), var(--fcm-primary-light));
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--fcm-transition);
    box-shadow: 0 4px 16px rgba(30,58,95,.25);
}
.fcm-btn-admin-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30,58,95,.35);
}

/* ═══════════════════════════════════════
   Navigation
   ═══════════════════════════════════════ */
.fcm-fadmin-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--fcm-primary-dark) 0%, var(--fcm-primary) 40%, var(--fcm-primary-light) 100%);
    padding: 0 20px;
    border-radius: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    box-shadow: 0 4px 20px rgba(30,58,95,.3), inset 0 1px 0 rgba(255,255,255,.1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.fcm-fadmin-nav::-webkit-scrollbar { display: none; }

.fcm-fadmin-nav-brand {
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    padding: 16px 16px 16px 4px;
    border-right: 1px solid rgba(255,255,255,.15);
    margin-right: 8px;
    white-space: nowrap;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fcm-fadmin-nav-brand::before {
    content: '⚽';
    font-size: 18px;
}
.fcm-fadmin-nav-brand.has-logo::before { content: none; }
.fcm-fadmin-brand-logo { height: 30px; width: auto; max-width: 170px; display: block; object-fit: contain; }

.fcm-fadmin-nav-items { display: flex; gap: 2px; }

.fcm-fadmin-nav-item {
    padding: 16px 18px;
    border: none;
    background: none;
    color: rgba(255,255,255,.6);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: var(--fcm-transition);
    position: relative;
    letter-spacing: .01em;
}
.fcm-fadmin-nav-item:hover {
    color: rgba(255,255,255,.95);
    background: rgba(255,255,255,.06);
}
.fcm-fadmin-nav-item.active {
    color: #fff;
    border-bottom-color: var(--fcm-accent);
}
.fcm-fadmin-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--fcm-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--fcm-accent-glow);
}

/* Abmelden – am Ende der Navigation, optisch abgesetzt */
.fcm-fadmin-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 16px 18px;
    margin-left: 8px;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border-left: 1px solid rgba(255,255,255,.15);
    transition: var(--fcm-transition);
}
.fcm-fadmin-logout svg { flex: 0 0 auto; }
.fcm-fadmin-logout:hover {
    color: #fff;
    background: rgba(220,53,69,.85);
}

/* ═══════════════════════════════════════
   Views
   ═══════════════════════════════════════ */
.fcm-fadmin-view { display: none; }
.fcm-fadmin-view.active {
    display: block;
    animation: fcm-fadeIn .35s cubic-bezier(.4,0,.2,1) both;
}
.fcm-fadmin-view > h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--fcm-primary);
    letter-spacing: -.03em;
}

.fcm-fadmin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.fcm-fadmin-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--fcm-primary);
    letter-spacing: -.03em;
}

/* ═══════════════════════════════════════
   Stats Cards — Dashboard
   ═══════════════════════════════════════ */
.fcm-fadmin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.fcm-fadmin-stat {
    background: var(--fcm-surface);
    border-radius: var(--fcm-radius);
    padding: 20px;
    border: 1px solid var(--fcm-border);
    text-align: center;
    box-shadow: var(--fcm-shadow);
    transition: var(--fcm-transition);
    position: relative;
    overflow: hidden;
}
/* Offizielles fussball.de-Widget im Spielplan (iframe von next.fussball.de) */
.fcm-fd-widget { margin-top: 18px; }
.fcm-fd-widget h3 { margin: 0 0 8px; font-size: 16px; }
.fcm-fd-widget iframe { width: 100%; border: 0; min-height: 220px; border-radius: var(--fcm-radius); background: #fff; }
/* Dashboard: anklickbare Kacheln und Überschriften führen in den Bereich */
.fcm-dash-link { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fcm-fadmin-stat.fcm-dash-link:hover { transform: translateY(-2px); box-shadow: var(--fcm-shadow-lg); border-color: var(--fcm-primary-light); }
h3.fcm-dash-link:hover { color: var(--fcm-primary); }
.fcm-dash-arrow { color: var(--fcm-text-muted); font-weight: 400; margin-left: 2px; }
.fcm-fadmin-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fcm-primary), var(--fcm-accent));
    opacity: 0;
    transition: opacity .3s;
}
.fcm-fadmin-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--fcm-shadow-lg);
}
.fcm-fadmin-stat:hover::before { opacity: 1; }

.fcm-fadmin-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--fcm-primary);
    line-height: 1.1;
    letter-spacing: -.04em;
}
.fcm-fadmin-stat-label {
    font-size: 12px;
    color: var(--fcm-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 4px;
}

/* ─── Sections ─── */
.fcm-fadmin-section { margin-bottom: 24px; }
.fcm-fadmin-hint { color: #6B7280; font-size: 13px; margin: 8px 0 0; line-height: 1.5; }

/* Trainings-Belegungsplan – Wochen-Kalender mit Zeitachse + Drag&Drop */
.fcm-cal-tip { font-size: 12px; color: #6B7280; margin: 0 0 10px; }
.fcm-cal-wrap { display: flex; flex-direction: column; gap: 18px; }
.fcm-cal-pitch { border: 1px solid #e5e7eb; border-radius: 10px; overflow-x: auto; background: #fff; }
.fcm-cal-head { padding: 8px 12px; background: #f8fafc; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
.fcm-cal-head small { color: #6B7280; font-weight: 400; }
.fcm-cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.fcm-cal-grid { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); min-width: 600px; }
.fcm-cal-corner { border-bottom: 1px solid #e5e7eb; }
.fcm-cal-dayhead { text-align: center; font-size: 12px; font-weight: 700; color: #374151; padding: 6px 0; border-bottom: 1px solid #e5e7eb; border-left: 1px solid #f0f1f4; }
.fcm-cal-gutter { position: relative; }
.fcm-cal-hour { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: #9ca3af; white-space: nowrap; }
.fcm-cal-day { position: relative; border-left: 1px solid #f0f1f4; background-image: repeating-linear-gradient(to bottom, #eef0f4 0, #eef0f4 1px, transparent 1px, transparent 44px); }
.fcm-cal-day.drop-hover { background-color: #eaf3ff; }
.fcm-cal-ev { position: absolute; box-sizing: border-box; border-left: 3px solid #1e3a5f; background: #eef2fb; border-radius: 5px; padding: 2px 5px; font-size: 11px; line-height: 1.2; overflow: hidden; cursor: grab; user-select: none; }
.fcm-cal-ev:active { cursor: grabbing; }
.fcm-cal-ev .ev-t { display: block; font-weight: 700; color: #1e3a5f; }
.fcm-cal-ev .ev-w { display: block; color: #374151; white-space: normal; overflow: hidden; overflow-wrap: anywhere; line-height: 1.15; }
.fcm-cal-ev.conflict { background: #fde8e8; border-left-color: #dc3545 !important; }
.fcm-cal-ev.conflict .ev-t { color: #dc3545; }
.fcm-cal-ev.dragging { opacity: 0.45; }
.fcm-color-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fcm-color-swatch { width: 26px; height: 26px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.fcm-color-swatch.active { border-color: #1f2937; box-shadow: inset 0 0 0 2px #fff; }

/* Termine / Zu-/Absagen */
.fcm-event-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid #e7e8ec; border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.fcm-event-card.cancelled { opacity: .6; }
.fcm-event-when { text-align: center; min-width: 60px; }
.fcm-event-when .d { display: block; font-weight: 700; color: #1e3a5f; font-size: 14px; }
.fcm-event-when .t { display: block; color: #888; font-size: 13px; }
.fcm-event-when .m { display: block; color: #b45309; font-size: 12px; font-weight: 600; margin-top: 2px; white-space: nowrap; }
.fcm-event-info { flex: 1; min-width: 180px; }
.fcm-event-info strong { font-size: 15px; }
.fcm-event-info .sub { color: #6B7280; font-size: 13px; margin: 2px 0 6px; }
.fcm-event-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fcm-event-chips.big { margin: 10px 0 4px; }
.fcm-event-chips .chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef0f4; color: #555; }
.fcm-event-chips .chip.yes { background: #e7f4e8; color: #2e7d32; }
.fcm-event-chips .chip.maybe { background: #fbf3e0; color: #b8860b; }
.fcm-event-chips .chip.no { background: #fbeaea; color: #c0392b; }
.fcm-event-chips .chip.open { background: #eef0f4; color: #777; }
.fcm-event-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.resp-cell { white-space: nowrap; }
.fcm-resp-btn { border: 1px solid #d7d9de; background: #fff; color: #555; min-width: 34px; height: 30px; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 700; margin-right: 4px; }
.fcm-resp-btn.b-yes.active { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.fcm-resp-btn.b-maybe.active { background: #b8860b; color: #fff; border-color: #b8860b; }
.fcm-resp-btn.b-no.active { background: #c0392b; color: #fff; border-color: #c0392b; }

/* Wiederkehrende Trainings & Pausen (Termine-Ansicht) */
.fcm-fadmin-recurrence { background: #fff; border: 1px solid #e7e8ec; border-radius: 12px; padding: 4px 14px; margin: 0 0 16px; }
.fcm-fadmin-recurrence > summary { cursor: pointer; font-weight: 600; padding: 10px 0; list-style: none; user-select: none; }
.fcm-fadmin-recurrence > summary::-webkit-details-marker { display: none; }
.fcm-fadmin-recurrence > summary::before { content: '▸'; display: inline-block; margin-right: 8px; transition: transform .15s; color: #888; }
.fcm-fadmin-recurrence[open] > summary::before { transform: rotate(90deg); }
.fcm-rec-body { padding: 4px 0 14px; }
.fcm-rec-autogen { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 10px 0 18px; }
.fcm-rec-toggle, .fcm-rec-weeks { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.fcm-rec-weeks input { width: 60px; }
.fcm-rec-h { margin: 8px 0 6px; font-size: 15px; }
.fcm-rec-breakform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; }
.fcm-rec-breakform input[type=text] { min-width: 160px; }
.fcm-rec-breakform label { display: flex; gap: 6px; align-items: center; font-size: 13px; color: #555; }
.fcm-rec-break { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f8f9fb; border: 1px solid #e7e8ec; border-radius: 8px; padding: 8px 12px; margin: 6px 0; }
.fcm-rec-break-meta { display: block; font-size: 12px; color: #6B7280; margin-top: 2px; }

/* Team-Broadcast */
.fcm-bc-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin: 6px 0 12px; }
.fcm-bc-form select { min-width: 180px; }
.fcm-bc-form textarea { flex: 1; min-width: 220px; padding: 9px 11px; border: 1px solid #d7d9de; border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; }
.fcm-bc-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #f0f1f3; font-size: 13px; flex-wrap: wrap; }
.fcm-bc-meta { color: #9CA3AF; font-size: 12px; white-space: nowrap; }

/* Termin-Detail: Ergebnis / Fahrten / Dienste */
.fcm-result-box, .fcm-rides-box, .fcm-duties-box { background: #f8f9fb; border: 1px solid #e7e8ec; border-radius: 10px; padding: 10px 14px; margin: 10px 0; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fcm-result-box input[type=number] { width: 64px; padding: 7px 9px; border: 1px solid #d7d9de; border-radius: 7px; font-size: 15px; text-align: center; }

/* Jubiläen + Insights (Dashboard) */
.fcm-anniv-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0f1f3; font-size: 14px; flex-wrap: wrap; }
.fcm-ins-h { margin: 14px 0 6px; font-size: 14px; color: #374151; }
.fcm-ins-bar { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-size: 13px; }
.fcm-ins-bar .t { flex: 0 0 120px; color: #555; }
.fcm-ins-bar .b { flex: 1; background: #eef0f4; border-radius: 6px; height: 14px; overflow: hidden; }
.fcm-ins-bar .b i { display: block; height: 100%; background: var(--fcm-primary, #1e3a5f); }
.fcm-ins-bar .v { flex: 0 0 56px; text-align: right; font-weight: 700; }

/* Teilen & Drucken (Turnier-QR-Codes + PDF-Export) */
.fcm-share-sec { margin: 0 0 24px; }
.fcm-share-sec h4 { margin: 0 0 10px; font-size: 15px; }
.fcm-share-pdfs { display: flex; gap: 8px; flex-wrap: wrap; }
.fcm-share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.fcm-share-card { background: #fff; border: 1px solid #e7e8ec; border-radius: 12px; padding: 14px; text-align: center; }
.fcm-share-qr { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.fcm-share-qr svg { width: 150px; height: 150px; max-width: 100%; height: auto; }
.fcm-share-label { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.fcm-share-row { display: flex; gap: 6px; margin-bottom: 6px; }
.fcm-share-row input { flex: 1; min-width: 0; padding: 7px 9px; border: 1px solid #d7d9de; border-radius: 7px; font-size: 12px; color: #555; background: #f8f9fb; }
.fcm-share-open { display: inline-block; font-size: 13px; color: var(--fcm-primary, #1e3a5f); text-decoration: none; font-weight: 600; }
.fcm-venue-bar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
@media (max-width: 480px) { .fcm-share-grid { grid-template-columns: 1fr 1fr; } }

/* Digitale Kündigung – Hinweis-Badge in der Mitgliederliste */
.fcm-cancel-badge { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: #c0392b; background: #fdecea; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

/* Offene Abmeldungen – Bearbeitungs-Panel oben in der Mitglieder-Ansicht */
.fcm-cancel-panel { background: #fffaf0; border: 1px solid #f0d9a8; border-radius: 12px; padding: 14px 16px; }
.fcm-cancel-panel h3 { margin: 0 0 8px; font-size: 15px; color: #92400e; }
.fcm-cancel-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; padding: 9px 0; border-top: 1px solid #f0e0c0; }
.fcm-cancel-info { flex: 1; min-width: 200px; }
.fcm-cancel-info .sub { color: #6B7280; font-size: 13px; margin-top: 2px; }
.fcm-cancel-act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fcm-cancel-assign { max-width: 280px; padding: 6px 8px; border: 1px solid #d7d9de; border-radius: 7px; font-size: 13px; background: #fff; }
/* Alte Tabellen-Variante (Fallback, falls noch referenziert) */
.fcm-plan-table th.left { text-align: left; }
.fcm-plan-table td { vertical-align: top; min-width: 86px; }
.fcm-plan-slot { background: #eef2fb; border-radius: 6px; padding: 4px 7px; margin: 2px 0; font-size: 12px; line-height: 1.3; }
.fcm-plan-slot .t { font-weight: 700; color: #1e3a5f; display: block; }
.fcm-plan-slot.conflict { background: #fde8e8; color: #991b1b; }
.fcm-plan-slot.conflict .t { color: #dc3545; }
.fcm-fadmin-section h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--fcm-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ═══════════════════════════════════════
   Buttons — Polished with gradients
   ═══════════════════════════════════════ */
.fcm-fadmin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--fcm-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--fcm-transition);
    text-decoration: none;
    letter-spacing: .01em;
    position: relative;
    overflow: hidden;
}
.fcm-fadmin-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.15) 0%, transparent 50%);
    pointer-events: none;
}
.fcm-fadmin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.fcm-fadmin-btn:active {
    transform: translateY(0);
    box-shadow: none;
}
.fcm-fadmin-btn-primary {
    background: linear-gradient(135deg, var(--fcm-primary), var(--fcm-primary-light));
    color: #fff;
}
.fcm-fadmin-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(30,58,95,.35);
}
.fcm-fadmin-btn-secondary {
    background: var(--fcm-surface);
    color: var(--fcm-text);
    border: 1px solid var(--fcm-border);
}
.fcm-fadmin-btn-secondary::after { display: none; }
.fcm-fadmin-btn-secondary:hover {
    background: #f5f6f8;
    border-color: #d0d3d9;
}
.fcm-fadmin-btn-success {
    background: linear-gradient(135deg, #059669, var(--fcm-success));
    color: #fff;
}
.fcm-fadmin-btn-danger {
    background: linear-gradient(135deg, #DC2626, var(--fcm-danger));
    color: #fff;
}
.fcm-fadmin-btn-warning {
    background: linear-gradient(135deg, #D97706, var(--fcm-warning));
    color: #fff;
}
.fcm-fadmin-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Icon buttons */
.fcm-fadmin-btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    font-size: 16px;
}

/* ═══════════════════════════════════════
   Tables — Clean & modern
   ═══════════════════════════════════════ */
.fcm-fadmin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    background: var(--fcm-surface);
    border-radius: var(--fcm-radius);
    overflow: hidden;
    border: 1px solid var(--fcm-border);
    box-shadow: var(--fcm-shadow);
}
.fcm-fadmin-table th {
    padding: 12px 16px;
    background: #f8f9fb;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--fcm-text-muted);
    text-align: left;
    border-bottom: 2px solid var(--fcm-border);
    letter-spacing: .08em;
    position: sticky;
    top: 0;
    z-index: 1;
}
.fcm-fadmin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--fcm-border-light);
    vertical-align: middle;
    transition: background .15s;
}
.fcm-fadmin-table tbody tr {
    transition: var(--fcm-transition);
}
.fcm-fadmin-table tbody tr:hover {
    background: #f5f8ff;
}
.fcm-fadmin-table tbody tr:last-child td { border-bottom: none; }
.fcm-fadmin-table .actions {
    white-space: nowrap;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   Forms — Elevated glass panels
   ═══════════════════════════════════════ */
.fcm-fadmin-form-panel {
    background: var(--fcm-surface);
    border-radius: var(--fcm-radius);
    padding: 28px;
    border: 1px solid var(--fcm-border);
    margin-top: 20px;
    box-shadow: var(--fcm-shadow-lg);
    animation: fcm-scaleIn .3s cubic-bezier(.4,0,.2,1) both;
}
.fcm-fadmin-form-panel h3 {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 800;
    color: var(--fcm-primary);
    letter-spacing: -.02em;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--fcm-border-light);
}

.fcm-fadmin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.fcm-fadmin-col2 { grid-column: 1 / -1; }

.fcm-fadmin-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fcm-fadmin-field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--fcm-text-secondary);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.fcm-fadmin-field input,
.fcm-fadmin-field select,
.fcm-fadmin-field textarea {
    padding: 10px 14px;
    border: 2px solid var(--fcm-border);
    border-radius: var(--fcm-radius-sm);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    transition: var(--fcm-transition);
    background: #fafbfc;
    color: var(--fcm-text);
}
.fcm-fadmin-field input:focus,
.fcm-fadmin-field select:focus,
.fcm-fadmin-field textarea:focus {
    outline: none;
    border-color: var(--fcm-primary);
    box-shadow: 0 0 0 3px rgba(30,58,95,.1);
    background: #fff;
}
.fcm-fadmin-field input::placeholder { color: var(--fcm-text-muted); }

.fcm-fadmin-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--fcm-text-secondary);
}
.fcm-fadmin-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--fcm-primary);
}

.fcm-fadmin-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--fcm-border-light);
}

.fcm-fadmin-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.fcm-fadmin-filters select,
.fcm-fadmin-filters input {
    padding: 10px 14px;
    border: 2px solid var(--fcm-border);
    border-radius: var(--fcm-radius-sm);
    font-size: 13px;
    min-width: 160px;
    background: var(--fcm-surface);
    font-family: inherit;
    transition: var(--fcm-transition);
}
.fcm-fadmin-filters select:focus,
.fcm-fadmin-filters input:focus {
    outline: none;
    border-color: var(--fcm-primary);
    box-shadow: 0 0 0 3px rgba(30,58,95,.1);
}

/* ─── Score Input ─── */
.fcm-fadmin-score-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px 0;
}
.fcm-fadmin-score-team { text-align: center; }
.fcm-fadmin-score-team span {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--fcm-text-secondary);
}
.fcm-fadmin-score-team input {
    width: 80px;
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    padding: 12px;
    border: 3px solid var(--fcm-border);
    border-radius: 12px;
    background: #f8f9fb;
    transition: var(--fcm-transition);
    letter-spacing: -.04em;
}
.fcm-fadmin-score-team input:focus {
    border-color: var(--fcm-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(30,58,95,.1);
}
.fcm-fadmin-score-sep {
    font-size: 36px;
    font-weight: 800;
    color: var(--fcm-text-muted);
}

/* ═══════════════════════════════════════
   Modal — Glassmorphism overlay
   ═══════════════════════════════════════ */
.fcm-fadmin-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,20,30,.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fcm-fadeIn .2s ease both;
}
.fcm-fadmin-modal-content {
    background: var(--fcm-surface);
    border-radius: var(--fcm-radius-lg);
    padding: 32px;
    max-width: 520px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: fcm-scaleIn .25s cubic-bezier(.4,0,.2,1) both;
}
.fcm-fadmin-modal-content h3 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 800;
    color: var(--fcm-primary);
    letter-spacing: -.02em;
}

/* ═══════════════════════════════════════
   Badges — Pill style with dot
   ═══════════════════════════════════════ */
.fcm-fadmin-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* ─── Links / QR Panel ─── */
.fcm-fadmin-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.fcm-fadmin-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #f0f4f8;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--fcm-primary);
    border: 1px solid var(--fcm-border);
    transition: var(--fcm-transition);
}
.fcm-fadmin-link:hover {
    background: var(--fcm-primary);
    color: #fff;
    border-color: var(--fcm-primary);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   Toast — Elevated notification
   ═══════════════════════════════════════ */
.fcm-fadmin-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #059669, var(--fcm-success));
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(16,185,129,.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 400px;
}
.fcm-fadmin-toast::before { content: '✓'; font-size: 16px; }
.fcm-fadmin-toast.visible {
    transform: translateY(0);
    opacity: 1;
}
.fcm-fadmin-toast.error {
    background: linear-gradient(135deg, #DC2626, var(--fcm-danger));
    box-shadow: 0 8px 32px rgba(239,68,68,.3);
}
.fcm-fadmin-toast.error::before { content: '✕'; }

/* ═══════════════════════════════════════
   Empty State — Illustrated
   ═══════════════════════════════════════ */
.fcm-fadmin-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--fcm-text-muted);
    font-size: 14px;
    font-weight: 500;
    background: var(--fcm-surface);
    border-radius: var(--fcm-radius);
    border: 2px dashed var(--fcm-border);
    line-height: 1.6;
}
.fcm-fadmin-empty::before {
    content: '📭';
    display: block;
    font-size: 36px;
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════
   Match Rows — Enhanced
   ═══════════════════════════════════════ */
.fcm-fadmin-match-list {
    border: 1px solid var(--fcm-border);
    border-radius: var(--fcm-radius);
    overflow: hidden;
    box-shadow: var(--fcm-shadow);
    background: var(--fcm-surface);
}
.fcm-fadmin-match-row {
    display: grid;
    grid-template-columns: 60px 1fr 80px 1fr 80px;
    align-items: center;
    padding: 12px 16px;
    background: var(--fcm-surface);
    border-bottom: 1px solid var(--fcm-border-light);
    font-size: 13px;
    cursor: pointer;
    transition: var(--fcm-transition);
}
.fcm-fadmin-match-row:hover {
    background: #f5f8ff;
    transform: scale(1.005);
}
.fcm-fadmin-match-row:first-child { border-radius: var(--fcm-radius) var(--fcm-radius) 0 0; }
.fcm-fadmin-match-row:last-child { border-radius: 0 0 var(--fcm-radius) var(--fcm-radius); border-bottom: none; }
.fcm-fadmin-match-row .time {
    color: var(--fcm-text-muted);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}
.fcm-fadmin-match-row .home {
    text-align: right;
    font-weight: 600;
    padding-right: 8px;
}
.fcm-fadmin-match-row .away {
    text-align: left;
    font-weight: 600;
    padding-left: 8px;
}
.fcm-fadmin-match-row .score {
    text-align: center;
    font-weight: 800;
    font-size: 16px;
    color: var(--fcm-primary);
    letter-spacing: -.02em;
}
.fcm-fadmin-match-row .badge-col { text-align: center; }
.fcm-fadmin-match-row.is-live {
    background: linear-gradient(90deg, #FEF2F2, #fff);
    border-left: 4px solid var(--fcm-danger);
    animation: fcm-livePulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════
   Group Panel — Card-based
   ═══════════════════════════════════════ */
.fcm-fadmin-groups-panel {
    background: var(--fcm-surface);
    border-radius: var(--fcm-radius);
    padding: 24px;
    border: 1px solid var(--fcm-border);
    margin-top: 20px;
    box-shadow: var(--fcm-shadow-lg);
}
.fcm-fadmin-groups-panel h3 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 800;
    color: var(--fcm-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: -.02em;
}

.fcm-fadmin-group-card {
    background: #fafbfd;
    border: 1px solid var(--fcm-border);
    border-radius: var(--fcm-radius);
    padding: 18px;
    margin-bottom: 14px;
    transition: var(--fcm-transition);
}
.fcm-fadmin-group-card:hover {
    box-shadow: var(--fcm-shadow);
    border-color: #d0d5dd;
}
.fcm-fadmin-group-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fcm-border-light);
}
.fcm-fadmin-group-card-header strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--fcm-primary);
}
.fcm-fadmin-group-card-actions {
    display: flex;
    gap: 6px;
}
.fcm-fadmin-group-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--fcm-radius-sm);
    font-size: 13px;
    transition: background .15s;
}
.fcm-fadmin-group-team:hover { background: #eef1f6; }
.fcm-fadmin-group-team .team-name { font-weight: 600; }

.fcm-fadmin-group-assign {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px dashed var(--fcm-border);
}
.fcm-fadmin-group-assign select {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--fcm-border);
    border-radius: var(--fcm-radius-sm);
    font-size: 13px;
    font-family: inherit;
}

/* ═══════════════════════════════════════
   Fee Stats — Gradient cards
   ═══════════════════════════════════════ */
.fcm-fadmin-fee-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.fcm-fadmin-fee-stat {
    background: var(--fcm-surface);
    border-radius: var(--fcm-radius);
    padding: 18px;
    border: 1px solid var(--fcm-border);
    text-align: center;
    box-shadow: var(--fcm-shadow);
    position: relative;
    overflow: hidden;
}
.fcm-fadmin-fee-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--fcm-primary);
}
.fcm-fadmin-fee-stat .amount {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--fcm-primary);
    letter-spacing: -.03em;
}
.fcm-fadmin-fee-stat .label {
    font-size: 11px;
    color: var(--fcm-text-muted);
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.fcm-fadmin-fee-stat.success::before { background: var(--fcm-success); }
.fcm-fadmin-fee-stat.success .amount { color: var(--fcm-success); }
.fcm-fadmin-fee-stat.danger::before { background: var(--fcm-danger); }
.fcm-fadmin-fee-stat.danger .amount { color: var(--fcm-danger); }

/* ═══════════════════════════════════════
   Card List — Members / Departments
   ═══════════════════════════════════════ */
.fcm-fadmin-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.fcm-fadmin-card {
    background: var(--fcm-surface);
    border-radius: var(--fcm-radius);
    padding: 20px;
    border: 1px solid var(--fcm-border);
    transition: var(--fcm-transition);
    box-shadow: var(--fcm-shadow);
}
.fcm-fadmin-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--fcm-shadow-lg);
}
.fcm-fadmin-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--fcm-primary);
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.fcm-fadmin-card-meta {
    font-size: 12px;
    color: var(--fcm-text-muted);
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}
.fcm-fadmin-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--fcm-border-light);
}

/* ─── Sub-Sections (Fees view) ─── */
.fcm-fadmin-subsection {
    margin-bottom: 28px;
}
.fcm-fadmin-subsection h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--fcm-primary);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fcm-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: -.01em;
}

/* ─── Color Dot (departments) ─── */
.fcm-fadmin-color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
    border: 2px solid rgba(0,0,0,.08);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* ─── Inline Group Filter ─── */
.fcm-fadmin-inline-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
}
.fcm-fadmin-inline-filter label {
    font-size: 12px;
    font-weight: 700;
    color: var(--fcm-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.fcm-fadmin-inline-filter select {
    padding: 8px 12px;
    border: 2px solid var(--fcm-border);
    border-radius: var(--fcm-radius-sm);
    font-size: 13px;
    font-family: inherit;
}

/* ─── KO Generate Bar ─── */
.fcm-fadmin-ko-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 2px solid var(--fcm-warning);
    border-radius: var(--fcm-radius);
    padding: 16px 20px;
    margin-top: 16px;
}
.fcm-fadmin-ko-bar span {
    font-size: 14px;
    font-weight: 700;
    color: #92400E;
}

/* ═══════════════════════════════════════
   Loading Skeleton
   ═══════════════════════════════════════ */
.fcm-fadmin-skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: fcm-shimmer 1.5s infinite;
    border-radius: var(--fcm-radius-sm);
    height: 20px;
    margin-bottom: 8px;
}
.fcm-fadmin-skeleton-card {
    background: var(--fcm-surface);
    border-radius: var(--fcm-radius);
    padding: 20px;
    border: 1px solid var(--fcm-border);
}

/* ═══════════════════════════════════════
   Unassigned Team Badges
   ═══════════════════════════════════════ */
.fcm-fadmin-unassigned-box {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 2px solid var(--fcm-warning);
    border-radius: var(--fcm-radius);
    padding: 18px;
    margin-bottom: 18px;
}
.fcm-fadmin-unassigned-box h4 {
    margin: 0 0 10px;
    color: #92400E;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fcm-fadmin-unassigned-box h4::before { content: '⚠️'; }

/* ═══════════════════════════════════════
   Team Chips (in groups)
   ═══════════════════════════════════════ */
.fcm-fadmin-team-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border: 1px solid #BFDBFE;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fcm-primary);
    transition: var(--fcm-transition);
}
.fcm-fadmin-team-chip:hover {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
}
.fcm-fadmin-team-chip button {
    background: none;
    border: none;
    color: var(--fcm-danger);
    cursor: pointer;
    font-size: 16px;
    padding: 0 2px;
    line-height: 1;
    font-weight: 700;
    transition: color .15s;
}
.fcm-fadmin-team-chip button:hover { color: #991B1B; }

/* ═══════════════════════════════════════
   Group Standings Table (compact)
   ═══════════════════════════════════════ */
.fcm-fadmin-standings {
    margin-top: 12px;
}
.fcm-fadmin-standings .fcm-fadmin-table {
    font-size: 12px;
}
.fcm-fadmin-standings .fcm-fadmin-table th {
    padding: 8px 10px;
    font-size: 10px;
}
.fcm-fadmin-standings .fcm-fadmin-table td {
    padding: 8px 10px;
}

/* ═══════════════════════════════════════
   Responsive
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .fcm-fadmin { padding: 12px; }
    /* Navigation bleibt horizontal (Wischen + Pfeile) statt zu einer hohen Spalte zu stapeln */
    .fcm-fadmin-nav { padding: 0 6px; }
    .fcm-fadmin-nav-brand { padding: 12px 10px 12px 4px; font-size: 14px; }
    .fcm-fadmin-nav-item { padding: 14px 13px; }
    .fcm-fadmin-grid { grid-template-columns: 1fr; }
    .fcm-fadmin-match-row {
        grid-template-columns: 50px 1fr 56px 1fr;
        font-size: 12px;
        padding: 10px 12px;
    }
    .fcm-fadmin-match-row .badge-col { display: none; }
    .fcm-fadmin-score-team input { width: 60px; font-size: 28px; }
    .fcm-fadmin-score-sep { font-size: 28px; }
    .fcm-fadmin-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .fcm-fadmin-header > div { width: 100%; }
    .fcm-fadmin-form-panel { padding: 20px; }
    .fcm-fadmin-modal-content { padding: 24px; }
    .fcm-fadmin-table { font-size: 12px; }
    .fcm-fadmin-table th, .fcm-fadmin-table td { padding: 8px 10px; }
    /* Breite Tabellen horizontal scrollbar machen statt überlaufen zu lassen */
    .fcm-fadmin-view .fcm-fadmin-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    /* Filter stapeln + volle Breite (auch auf Tablets im Hochformat) */
    .fcm-fadmin-filters { flex-direction: column; align-items: stretch; }
    .fcm-fadmin-filters select, .fcm-fadmin-filters input { width: 100%; min-width: 0; }
    /* Termine: Karten & Aktionen sauber stapeln */
    .fcm-event-card { gap: 10px; }
    .fcm-event-actions { width: 100%; }
    .fcm-event-actions .fcm-fadmin-btn { flex: 1 1 auto; }
    /* Wiederkehrende Trainings & Pausen: Felder volle Breite stapeln */
    .fcm-rec-autogen, .fcm-rec-breakform { flex-direction: column; align-items: stretch; }
    .fcm-rec-breakform input[type=text], .fcm-rec-breakform label, .fcm-rec-breakform input[type=date] { width: 100%; min-width: 0; }
    .fcm-rec-breakform label input[type=date] { flex: 1; }
    .fcm-rec-break { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .fcm-fadmin-nav-item {
        padding: 10px 12px;
        font-size: 12px;
    }
    .fcm-fadmin-stats { grid-template-columns: repeat(2, 1fr); }
    .fcm-fadmin-card-list { grid-template-columns: 1fr; }
    .fcm-fadmin-fee-stats { grid-template-columns: repeat(2, 1fr); }
    .fcm-fadmin-ko-bar { flex-direction: column; gap: 10px; text-align: center; }
    .fcm-fadmin-view > h2,
    .fcm-fadmin-header h2 { font-size: 22px; }
    .fcm-fadmin-stat-number { font-size: 26px; }
    .fcm-fadmin-btn { padding: 8px 14px; }
    .fcm-fadmin-filters {
        flex-direction: column;
    }
    .fcm-fadmin-filters select,
    .fcm-fadmin-filters input { min-width: unset; width: 100%; }
}

/* ════════════════════════════════════════════════════════
   Politur der ergänzten Views: Handbuch, Kabinen, Anmeldungen
   ════════════════════════════════════════════════════════ */

/* ── Handbuch: saubere, lesbare Typografie im Panel-Stil ── */
#fadmin-handbook {
    color: var(--fcm-text);
    font-size: 15px;
    line-height: 1.7;
    background: var(--fcm-surface);
    border: 1px solid var(--fcm-border);
    border-radius: var(--fcm-radius);
    box-shadow: var(--fcm-shadow);
    padding: 28px 32px;
}
#fadmin-handbook h2 {
    color: var(--fcm-primary);
    font-size: 1.45rem;
    font-weight: 800;
    margin: 1.9em 0 .55em;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fcm-border);
    letter-spacing: -.01em;
}
#fadmin-handbook h2:first-child { margin-top: 0; }
#fadmin-handbook h3 { color: var(--fcm-primary-light); font-size: 1.18rem; font-weight: 700; margin: 1.5em 0 .4em; }
#fadmin-handbook h4 { font-weight: 700; margin: 1.2em 0 .3em; }
#fadmin-handbook p { margin: .65em 0; }
#fadmin-handbook ul, #fadmin-handbook ol { margin: .5em 0 1em 1.4em; }
#fadmin-handbook li { margin: .32em 0; }
#fadmin-handbook strong { color: var(--fcm-text); font-weight: 700; }
#fadmin-handbook code {
    background: var(--fcm-border-light);
    color: var(--fcm-primary-dark);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: .9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
#fadmin-handbook blockquote {
    background: var(--fcm-bg);
    border-left: 4px solid var(--fcm-accent);
    margin: 1em 0;
    padding: 12px 16px;
    border-radius: 0 var(--fcm-radius-sm) var(--fcm-radius-sm) 0;
    color: var(--fcm-text-secondary);
}
#fadmin-handbook a { color: var(--fcm-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
#fadmin-handbook hr { border: 0; border-top: 1px solid var(--fcm-border); margin: 1.9em 0; }

/* ── Kabinen-Editor: wp-admin-Elemente an den Panel-Look angleichen ── */
#view-venue .fcm-card {
    background: var(--fcm-surface);
    border: 1px solid var(--fcm-border);
    border-radius: var(--fcm-radius);
    box-shadow: var(--fcm-shadow);
    padding: 14px 16px;
    margin-bottom: 16px;
}
#view-venue .fcm-venue-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#view-venue .fcm-btn {
    display: inline-flex; align-items: center; gap: 6px;
    border: 0; border-radius: var(--fcm-radius-sm);
    padding: 9px 15px; font-size: 13px; font-weight: 600;
    background: var(--fcm-border-light); color: var(--fcm-text);
    cursor: pointer; transition: var(--fcm-transition); line-height: 1;
}
#view-venue .fcm-btn:hover { filter: brightness(.97); transform: translateY(-1px); }
#view-venue .fcm-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }
#view-venue .fcm-btn-primary { background: var(--fcm-primary); color: #fff; }
#view-venue .fcm-btn-success { background: var(--fcm-success); color: #fff; }
#view-venue .fcm-btn-warning { background: var(--fcm-warning); color: #fff; }
#view-venue .fcm-btn-secondary { background: var(--fcm-border-light); color: var(--fcm-text); }
#view-venue .fcm-btn-sm { padding: 6px 12px; font-size: 12px; }
#view-venue .fcm-input, #view-venue .fcm-select, #view-venue .fcm-textarea {
    border: 1px solid var(--fcm-border); border-radius: var(--fcm-radius-sm);
    padding: 9px 11px; font-size: 14px; font-family: inherit; background: var(--fcm-surface);
}
#view-venue .fcm-venue-canvas { border-radius: var(--fcm-radius); }
#view-venue .fcm-hint { color: var(--fcm-text-secondary); font-size: 13px; }
/* Editor-Modal über dem Panel */
#fcm-venue-modal { z-index: 100000; }
#fcm-venue-modal .fcm-modal-content {
    background: var(--fcm-surface); border-radius: var(--fcm-radius); box-shadow: var(--fcm-shadow-lg);
}

/* ── Anmeldungen: Aktionsbuttons sauber umbrechen ── */
#view-registrations .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Scrollbare Navigationsleiste mit Pfeilen + Verlaufs-Andeutung ── */
.fcm-fadmin-nav-wrap { position: relative; margin-bottom: 24px; }
.fcm-fadmin-nav-wrap .fcm-fadmin-nav { margin-bottom: 0; }

.fcm-fadmin-nav-arrow {
    position: absolute;
    top: 0; bottom: 0;
    width: 60px;
    display: flex;
    align-items: center;
    border: 0;
    cursor: pointer;
    color: #fff;
    z-index: 6;
    transition: opacity .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.fcm-fadmin-nav-arrow svg {
    background: rgba(255,255,255,.16);
    border-radius: 50%;
    width: 30px; height: 30px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,.22);
    transition: var(--fcm-transition);
}
.fcm-fadmin-nav-arrow:hover svg { background: var(--fcm-accent); transform: scale(1.08); }
.fcm-fadmin-nav-arrow[hidden] { display: none; }
.fcm-fadmin-nav-arrow.left {
    left: 0;
    justify-content: flex-start;
    padding-left: 8px;
    border-radius: 16px 0 0 16px;
    background: linear-gradient(90deg, var(--fcm-primary-dark) 48%, rgba(26,46,74,0) 100%);
}
.fcm-fadmin-nav-arrow.right {
    right: 0;
    justify-content: flex-end;
    padding-right: 8px;
    border-radius: 0 16px 16px 0;
    background: linear-gradient(270deg, var(--fcm-primary-light) 48%, rgba(44,82,130,0) 100%);
}

/* Trainer-Rolle: Admin-only Bedienelemente ausblenden (Sicht; das echte Tor sitzt server-seitig). */
.fcm-role-trainer .fcm-mgr-only{display:none!important;}
/* Nur für Trainer sichtbar (z. B. „Meine Trainingszeiten"-Zuweisung). */
.fcm-coach-only{display:none;}
.fcm-role-trainer .fcm-coach-only{display:block;}

/* Trainer-Verwaltung */
.fcm-trn-teams{display:flex;flex-wrap:wrap;gap:8px 18px;margin:6px 0}
/* Chip-Labels (Bereiche/Teams) — Feld-Label-Stil (uppercase/block/700) gezielt zurücksetzen */
.fcm-trn-teams .fcm-trn-chk,
.fcm-fadmin-field .fcm-trn-chk{
    display:inline-flex;align-items:center;gap:6px;
    font-size:14px;font-weight:400;text-transform:none;letter-spacing:normal;
    color:var(--fcm-text);margin:0;cursor:pointer;white-space:nowrap;
}
.fcm-trn-chk input[type=checkbox]{width:auto;min-width:0;margin:0;flex:none}
.fcm-trn-card{border:1px solid #e5e7eb;border-radius:10px;padding:12px 14px;margin-bottom:10px}
.fcm-trn-head{margin-bottom:6px}

/* Budgetplanung: Unterreiter */
.fcm-budget-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px;}
.fcm-budget-tabs button{border:1px solid #d7dde6;background:#fff;color:#1e3a5f;border-radius:999px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer;}
.fcm-budget-tabs button.active{background:#1e3a5f;border-color:#1e3a5f;color:#fff;}
.fcm-budget-count{display:inline-block;min-width:18px;padding:0 6px;margin-left:4px;border-radius:999px;background:#F59E0B;color:#fff;font-size:11px;line-height:18px;text-align:center;}
.fcm-budget-box{background:#fff;border-radius:0 8px 8px 0;padding:8px 12px;margin:0 0 12px;border-left:4px solid #9CA3AF;}
.fcm-budget-num{text-align:right;white-space:nowrap;}
.fcm-budget-mini input{width:110px;}

/* Paket je Instanz (1.70): Hinweis-Leiste + Paket-Zeile unter der Navigation */
.fcm-license-banner{margin:10px 0 0;padding:10px 14px;border-radius:10px;font-size:14px;line-height:1.45;background:#fff7ed;border:1px solid #fdba74;color:#7c2d12}
.fcm-license-banner.is-danger{background:#fef2f2;border-color:#fca5a5;color:#7f1d1d}
.fcm-license-chip{margin:8px 0 0;font-size:12.5px;color:#6B7280;text-align:right}
.fcm-license-banner.is-demo{background:#eef3f9;border-color:#93c5fd;color:#1e3a5f}
