/* App-Navigation „Meine Mannschaft" – nur App-Ansicht (.fc-twa:not(.fc-ios-app)) auf der Mannschaftsseite.
   Wirkt erst, wenn das JS die Markierung html.fc-app-mannschaft gesetzt hat. */

/* ---- Nur eine Kategorie sichtbar („Unterseite"); Umschalten markiert das JS per Klasse ---- */
.fc-app-mannschaft .fc-vb-section.fc-appcat-hidden { display: none !important; }

/* Originale Sub-Navigation (von subnav.js) im Kategorie-Modus ausblenden – wir nutzen unsere eigene Chip-Leiste */
.fc-app-mannschaft .fc-vb-subnav:not(.fc-appcat-bar) { display: none !important; }

/* ---- Basis-Dichte-Pass: aktive Kategorie ohne Karten-Chrome, randlos, volle Breite ---- */
.fc-app-mannschaft .fc-vb-section.fc-appcat-active {
    border: 0 !important; background: transparent !important; box-shadow: none !important;
    border-radius: 0 !important; margin: 0 !important; padding: 0 !important;
}
/* doppelte Überschrift + Hüllen-Deko der aktiven Kategorie weg (Name steht im App-Kopf / Chip) */
.fc-app-mannschaft .fc-vb-section.fc-appcat-active > h2,
.fc-app-mannschaft .fc-vb-section.fc-appcat-active > .fc-vb-vis,
.fc-app-mannschaft .fc-vb-section.fc-appcat-active > .fc-vb-section-tools {
    display: none !important;
}

/* ---- Chip-Leiste (erbt .fc-vb-subnav-Pin aus fc-vereinsbereich.php; hier Flex + ☰ rechts fixiert) ---- */
.fc-twa:not(.fc-ios-app) .fc-appcat-bar { display: flex; align-items: center; gap: 4px; }
.fc-twa:not(.fc-ios-app) .fc-appcat-bar > ul { flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.fc-twa:not(.fc-ios-app) .fc-appcat-bar > ul::-webkit-scrollbar { display: none; }
.fc-twa:not(.fc-ios-app) .fc-appnav-cat-menu {
    flex: 0 0 auto; position: relative; width: 38px; height: 34px; display: flex; align-items: center; justify-content: center;
    border: 0; background: transparent; color: #444; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent;
}
.fc-twa:not(.fc-ios-app) .fc-appnav-cat-menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fc-twa:not(.fc-ios-app) .fc-appnav-cat-menu .fc-vb-subnav-todo { position: absolute; top: -2px; right: -2px; }

/* ---- Slide-in-Menü von rechts ---- */
.fc-twa:not(.fc-ios-app) .fc-appcat-sheet { position: fixed; inset: 0; z-index: 99996; }
.fc-appcat-sheet[hidden] { display: none !important; }
.fc-appcat-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.fc-appcat-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
    display: flex; flex-direction: column; background: #1a1a1a; color: #fff;
    padding-top: env(safe-area-inset-top); box-shadow: -4px 0 20px rgba(0,0,0,.4);
    border-left: 3px solid #CF1C1F;
}
.fc-appcat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-weight: 700; border-bottom: 1px solid #333; }
.fc-appcat-close { border: 0; background: transparent; color: #bbb; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.fc-appcat-list { overflow: auto; flex: 1 1 auto; }
/* fester Fuß im Seitenmenü: „Auswahl anpassen“, „Anmelden“ (Yves 2026-11-18) */
.fc-appcat-foot { flex: 0 0 auto; border-top: 1px solid #333; background: #1a1a1a; padding-bottom: env(safe-area-inset-bottom); }
.fc-appcat-item {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px; color: #e9e9e9 !important;
    text-decoration: none !important; font-size: 16px; font-weight: 600; border-bottom: 1px solid #262626;
}
.fc-appcat-item .fc-appcat-tx { flex: 1 1 auto; }
.fc-appcat-item .fc-appcat-ic { flex: 0 0 auto; width: 24px; height: 24px; display: flex; }
.fc-appcat-item .fc-appcat-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fc-appcat-item.is-active { color: #fff !important; background: rgba(207,28,31,.18); box-shadow: inset 3px 0 0 #CF1C1F; }
.fc-appcat-item.is-active .fc-appcat-ic { color: #CF1C1F; }

.fc-appcat-sort-open { margin: 10px 16px; padding: 11px 14px; border: 1px solid #3a3a3a; border-radius: 8px; background: #232323; color: #fff; font: 600 15px/1.2 inherit; text-align: left; cursor: pointer; }
.fc-appcat-sort { margin: 0 16px 16px; }
.fc-appcat-sortopt { display: block; padding: 9px 2px; color: #eee; font-size: 15px; cursor: pointer; }
.fc-appcat-sortopt input { accent-color: #CF1C1F; margin-right: 6px; }
.fc-appcat-custom { margin-top: 8px; border-top: 1px solid #333; padding-top: 8px; }
.fc-appcat-customrow { display: flex; align-items: center; gap: 6px; padding: 6px 0; color: #eee; font-size: 14px; }
.fc-appcat-customrow .fc-appcat-tx { flex: 1 1 auto; order: 3; }
.fc-appcat-move { order: 1; width: 40px; height: 40px; border: 1px solid #3a3a3a; border-radius: 6px; background: #232323; color: #fff; cursor: pointer; }
.fc-appcat-move:disabled { opacity: .35; cursor: default; }

body.fc-appcat-open { overflow: hidden; }

/* Editierstift/Sortier-Werkzeuge (section-layout.js) gehören nicht in die Chip-Leiste – Sortieren läuft übers ☰-Menü */
.fc-app-mannschaft .fc-appcat-bar .fc-vb-subnav-tools { display: none !important; }
/* „Meine Mannschaft"-Überschrift in der App weglassen (Name steht im App-Kopf) */
.fc-app-mannschaft .entry-title,
.fc-app-mannschaft .fc-vb-frontend h1 { display: none !important; }
/* Team-Umschalter auf der Seite ausblenden – die Mannschaftsauswahl steht jetzt im ☰-Menü */
.fc-app-mannschaft .fc-vb-team-switch { display: none !important; }

/* Menügruppen-Überschriften (Mannschaft / Bereiche) + Team-Einträge im Slide-in */
.fc-appcat-grouphead { padding: 13px 16px 5px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #8c8c8c; }
.fc-appcat-list > .fc-appcat-grouphead:first-child { padding-top: 4px; }
.fc-appcat-teamitem { font-size: 15px; }

/* --- Cockpit: App-Zugang-Badge in der Kaderzeile --- */
.fc-team-zugang { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; vertical-align: middle; white-space: nowrap; }
.fc-team-zugang--ok { background: #e4f5e9; color: #1a7f3c; }
.fc-team-zugang--wait { background: #fef3d7; color: #8a6100; }
.fc-team-zugang--no { background: #f0f1f3; color: #6b7280; }

/* --- Cockpit (Kader & Mannschaftsseite) im App-Modus: volle Breite, schlank --- */
.fc-app-mannschaft #fc-team-kader .fc-vb-player-list-full { margin-top: 4px; }
.fc-app-mannschaft #fc-team-mannschaftsseite .fc-vb-image-compare { margin: 0; }
.fc-app-mannschaft #fc-team-mannschaftsseite .fc-vb-img-slot { max-width: 100% !important; }

/* --- Cockpit-Feinschliff (UI/UX-Review 2026-11-15) --- */
/* Verwaiste rote Linie + Leerraum: die Seitenüberschrift „Meine Mannschaft" (.fc-vb-header) ist im
   App-Modus textlos ausgeblendet, ihr roter 3px-Unterstrich blieb aber stehen. Container ganz weg
   (der Titel steht im dunklen App-Kopf). */
.fc-app-mannschaft .fc-vb-header { display: none !important; }
/* Abstand unter der (im App-Modus ausgeblendeten) Abschnitts-Überschrift straffen */
.fc-twa:not(.fc-ios-app) .fc-appcat-sec.fc-appcat-active .fc-vb-section-head { margin-bottom: 2px; }

/* --- Sammel-Kategorie „Verwaltung": verschachtelte Abschnitte behalten ihre Überschrift --- */
.fc-app-mannschaft #fc-team-verwaltung .fc-vb-section > h2,
.fc-app-mannschaft #fc-team-verwaltung .fc-vb-section .fc-vb-section-head h2 { display: block !important; font-size: 17px; margin: 14px 0 8px; }
.fc-app-mannschaft #fc-team-verwaltung .fc-vb-section { border-top: 1px solid #ececec; padding-top: 6px; margin-top: 10px; }

/* Platzhalter schwerer Kategorien (werden beim Antippen geladen) */
.fc-appcat-lazy { padding: 18px 4px; }
.fc-appcat-lazy > a.fc-vb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; font-size: 15px; }
.fc-appcat-lazy-hint { margin: 8px 0 0; font-size: 13px; color: #4b5563; }
/* Zugang-Kennzeichen: nicht zusammendrücken lassen (Hintergrund deckte nur zwei Buchstaben) */
.fc-team-zugang { display: inline-flex; flex: 0 0 auto; width: max-content; }
/* Breite Editor-Tabellen (Info-Karten, Mannschaftsverwaltung) auf schmalen Bildschirmen wischbar statt abgeschnitten */
@media (max-width: 782px) {
    .fc-vb-frontend table.fc-vb-cards-table, .fc-vb-frontend table.fc-vb-team-mgmt-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
/* App: Push-Hinweis über der unteren Navigation statt darunter (Knöpfe waren nicht antippbar) */
.fc-twa:not(.fc-ios-app) .fc-push-banner { bottom: calc(59px + env(safe-area-inset-bottom)); }

/* ================= UI/UX-Review 2026-11-15, Block A: Lesbarkeit, Größen, Fokus =================
   Alles auf den Vereinsbereich (.fc-vb-frontend) bzw. die Seite „Meine Mannschaft“ (.fc-vb-frontend-mannschaft) begrenzt. */

/* A1 – Eingabefelder mobil/App mindestens 16 px (sonst zoomt das Handy beim Antippen) */
@media (max-width: 782px) {
    .fc-vb-frontend-mannschaft input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]):not([type="image"]),
    .fc-vb-frontend-mannschaft select,
    .fc-vb-frontend-mannschaft textarea,
    .fc-app-einstellungen select { font-size: 16px !important; }
}

/* A2 – Tippziele mindestens 40 px (mobil/App) */
@media (max-width: 782px) {
    /* 40-px-Fläche, aber per Negativ-Rand derselbe Platzbedarf wie vorher – die Überschrift bricht nicht früher um */
    .fc-vb-frontend .fc-vb-section-tools button { min-width: 40px; min-height: 40px; margin: -7px; }
    /* Kennzeichen „Privat“: sichtbare Pille bleibt klein, die Tippfläche wächst über einen durchsichtigen Rand */
    .fc-vb-frontend button.fc-vb-vis { border: 11px solid transparent; border-left-width: 6px; border-right-width: 6px; background-clip: padding-box; border-radius: 21px; margin: -11px -6px -11px 2px; padding-left: 6px; padding-right: 6px; gap: 3px; box-shadow: none; }
    .fc-vb-subnav > ul > li > a { padding-top: 11px; padding-bottom: 11px; }
    .fc-vb-subnav-tools button { min-width: 40px; min-height: 40px; border-radius: 20px; }
    /* Kader-Detail: Nutzen, Hintergrund entfernen, Speichern, Spielerkarte anzeigen … */
    .fc-vb-frontend .fc-vb-player-detail .fc-vb-btn-xs { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 40px; font-size: 12px; padding: 4px 10px; box-sizing: border-box; }
    /* Info-Karten und Mannschaftsverwaltung: Kästchen als 40-px-Fläche mit gezeichnetem 22-px-Kästchen, ✕ und ▲▼ 40 px */
    .fc-vb-frontend-mannschaft .fc-vb-cards-table input[type="checkbox"] {
        -webkit-appearance: none; appearance: none; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 6px; cursor: pointer; vertical-align: middle;
        background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect x='1' y='1' width='20' height='20' rx='4' fill='%23fff' stroke='%236b7280' stroke-width='2'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
    }
    .fc-vb-frontend-mannschaft .fc-vb-cards-table input[type="checkbox"]:checked {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect x='1' y='1' width='20' height='20' rx='4' fill='%23cf1c1f' stroke='%23cf1c1f' stroke-width='2'/%3E%3Cpath d='M6 11.5l3.5 3.5L16 8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
    .fc-vb-frontend-mannschaft .fc-vb-cards-table input[type="checkbox"]::before,
    .fc-vb-frontend-mannschaft .fc-vb-cards-table input[type="checkbox"]::after { content: none !important; display: none !important; }
    .fc-vb-frontend-mannschaft .fc-vb-cards-table input[type="checkbox"]:focus-visible { outline: 2px solid #1a3a1a; outline-offset: -6px; }
    .fc-vb-frontend-mannschaft .fc-vb-cards-table .fc-vb-btn-xs { min-width: 40px !important; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
    .fc-vb-frontend-mannschaft .fc-vb-team-mgmt-table .fc-vb-btn-sm { min-height: 40px; display: inline-flex; align-items: center; font-size: 12px !important; white-space: nowrap; }
}
/* App: ☰ der Chip-Leiste und die Schließen-× der beiden Blätter */
.fc-twa:not(.fc-ios-app) .fc-appnav-cat-menu { width: 40px; height: 40px; }
.fc-appcat-close, .fc-appsheet-close { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
/* App: die Chip-Leiste ist dadurch 10 px höher – Platz darunter und Sprungabstand nachziehen */
@media (max-width: 1099px) {
    .fc-twa:not(.fc-ios-app) .fc-vb-has-subnav .fc-vb-subnav-main { padding-top: 62px; }
    .fc-twa:not(.fc-ios-app) .fc-vb-subnav-target { scroll-margin-top: calc(52px + env(safe-area-inset-top) + 66px); }
}

/* A3 – Kader-Detail: „Bild ersetzen“ ↺ und „ins Archiv“ ✕ räumlich trennen */
.fc-vb-frontend .fc-vb-img-btn-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.fc-vb-frontend .fc-vb-img-btn-row .fc-vb-btn-danger-xs { margin-left: 18px; }

/* A4 – sichtbarer Tastatur-Fokus, einheitlich 2 px */
.fc-vb-frontend .fc-vb-section-tools button:focus-visible,
.fc-vb-frontend .fc-vb-btn:focus-visible,
.fc-vb-frontend .fc-vb-btn-xs:focus-visible { outline: 2px solid #1a3a1a; outline-offset: 2px; }
.fc-vb-frontend button.fc-vb-vis:focus-visible { outline: 2px solid #1a3a1a; outline-offset: 2px; }
@media (max-width: 782px) { .fc-vb-frontend button.fc-vb-vis:focus-visible { outline-offset: -9px; } }
/* Theme färbt jeden Knopf bei Fokus/Hover rot – das Kennzeichen behält seine Farben */
.fc-vb-frontend button.fc-vb-vis--private:hover, .fc-vb-frontend button.fc-vb-vis--private:focus { background-color: #f2f2f2; color: #555; }
.fc-vb-frontend button.fc-vb-vis--public:hover, .fc-vb-frontend button.fc-vb-vis--public:focus { background-color: #e8f5e9; color: #2e7d32; }

/* A5 – Kontrast Hinweistexte (#888 → #666, 5,7:1) */
body .fc-vb-frontend .fc-vb-muted, body .fc-vb-frontend .fc-personen-amtlich .fc-vb-muted { color: #666; }

/* A6 – Schrift unter 12 px anheben: Tabellenköpfe, Quell-Marken, „Privat“ */
.fc-vb-frontend .fc-vb-cards-table th, .fc-vb-frontend .fc-vb-data-table th { font-size: 12px; letter-spacing: .3px; }
.fc-vb-frontend .fc-vb-data-source-tag { font-size: 12px; letter-spacing: 0; }
.fc-vb-frontend .fc-vb-vis { font-size: 12px; }
.fc-vb-frontend .fc-vb-vis--public::before, .fc-vb-frontend .fc-vb-vis--private::before { font-size: 12px; }
@media (max-width: 640px) { .fc-vb-frontend .fc-vb-data-table td.fc-vb-dt-val::before { font-size: 12px; } }

/* A7 – Überschriften-Hierarchie: Abschnitt (h2) kleiner als der Seitentitel (28 px), Unterkarten sichtbar kleiner */
@media (min-width: 545px) { .fc-vb-frontend h2 { font-size: 26px !important; } }
.fc-vb-frontend .fc-vb-section .fc-vb-section h2 { font-size: 20px !important; }
/* Kader-Detail: Zwischenüberschriften einheitlich („Bilder“ nicht in Versalien neben „Spieler-Kartei“) */
.fc-vb-frontend .fc-vb-player-detail h4 { font-size: 16px !important; font-weight: 700; text-transform: none !important; letter-spacing: 0; color: #1e1e1e; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid #e2e4e7; }

/* A8 – lange Überschriften („Mannschaftsverwaltung“) trennen an Silben statt mitten im Wort */
.fc-vb-frontend h2 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; word-break: normal; }

/* A9 – Desktop: Sprungziele nicht unter dem schwebenden Wappen (75 px + 12 px Abstand) */
@media (min-width: 1100px) {
    html:not(.fc-twa) .fc-vb-subnav-target { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px); }
}

/* A10 – Desktop: „Meine Mannschaft“ nicht über die ganze Bildschirmbreite (Inhalt ca. 1280 px + Navigation) */
@media (min-width: 1100px) {
    body .fc-vb-frontend.fc-vb-frontend.fc-vb-frontend-mannschaft { width: min(1564px, calc(var(--fc-vb-vw) - 2 * var(--fc-vb-gutter))); margin-left: calc(50% - min(782px, var(--fc-vb-vw) / 2 - var(--fc-vb-gutter))); }
    .fc-vb-frontend-mannschaft #fc-vb-team-text .wp-editor-wrap { max-width: 900px; }
    .fc-vb-frontend-mannschaft .fc-tmk-balances, .fc-vb-frontend-mannschaft .fc-tmk-okacc, .fc-vb-frontend-mannschaft .fc-tmk-opensum { max-width: 720px; }
}

/* A12 – Info-Karten: Auswahl „Quelle“ lesbar breit */
.fc-vb-frontend .fc-vb-cards-table .fc-vb-card-source { min-width: 104px; font-size: 14px; }
.fc-vb-frontend .fc-vb-cards-table .fc-vb-ct-src { min-width: 112px; }

/* A13 – mobil: weiße Fläche der Sub-Navigation reicht bis unter das mitlaufende Wappen (sonst scheint links Inhalt durch) */
@media (max-width: 1099px) {
    html:not(.fc-twa) body:has(#fc-sticky-wappen.visible) .fc-vb-subnav { border-left-color: transparent; border-radius: 0 8px 8px 0; box-shadow: -120px 0 0 0 #fff, -120px 1px 0 0 #e1e1e1, 0 1px 3px rgba(0,0,0,0.06); }
}

/* A15 – App: Leerraum über dem Inhalt (leerer Seitentitel-Kopf mit 24 px Abstand) */
.fc-app-mannschaft .entry-header { display: none !important; }
@media (max-width: 1099px) { .fc-twa.fc-app-mannschaft:not(.fc-ios-app) .fc-vb-has-subnav .fc-vb-subnav-main { padding-top: 56px; } }

/* A16 – App: Chip-Leiste blendet rechts vor dem ☰ aus (zeigt: es geht weiter) */
.fc-twa:not(.fc-ios-app) .fc-appcat-bar > ul { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
.fc-twa:not(.fc-ios-app) .fc-appcat-bar > ul::after { content: ""; display: inline-block; width: 28px; }

/* A18 – Kader-Zeile mobil: „Karte“ in die Namenszeile, Kennzeichen (Mitglied/FuPa/Instagram + Zugang) in eine Reihe */
@media (max-width: 1000px) {
    .fc-vb-frontend .fc-vb-player-header { grid-template-columns: 1.6rem 40px minmax(0, 1fr) 32px 40px 14px; }
    .fc-vb-frontend .fc-vb-player-header .fc-vb-expand-icon { grid-column: 6; }
    .fc-vb-frontend .fc-vb-player-header-right .fc-vb-btn-card-preview { grid-column: 5; grid-row: 1; justify-self: center; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; }
    .fc-vb-frontend .fc-vb-player-header .fc-personen-slot-chips { grid-column: 1 / -1; grid-row: 2; }
    .fc-vb-frontend .fc-vb-player-header:has(.fc-team-zugang) .fc-personen-slot-chips { padding-right: 94px; min-height: 21px; }
    .fc-vb-frontend .fc-vb-player-header .fc-team-zugang { grid-column: 1 / -1; grid-row: 2; justify-self: end; align-self: start; margin-left: 0; }
}

/* A20 – Push-Hinweis mobil im Vereinsbereich kompakt: eine Zeile statt 120 px */
@media (max-width: 600px) {
    body:has(.fc-vb-frontend) .fc-push-banner { flex-wrap: nowrap; align-items: center; padding: 8px 12px; gap: 8px; }
    body:has(.fc-vb-frontend) .fc-push-banner__desc { display: none; }
    body:has(.fc-vb-frontend) .fc-push-banner__title { font-size: 13px; line-height: 1.2; }
    body:has(.fc-vb-frontend) .fc-push-banner__text { flex: 1 1 auto; min-width: 0; }
    body:has(.fc-vb-frontend) .fc-push-banner__actions { width: auto; flex: 0 0 auto; gap: 6px; }
    body:has(.fc-vb-frontend) .fc-push-banner__actions .fc-push-btn { flex: 0 0 auto; min-height: 40px; padding: 8px 10px; }
    body:has(.fc-vb-frontend) .fc-push-banner:not(.fc-push-banner--hidden) ~ .fc-side-menu { bottom: 76px; }
}

/* ===== App-Kopf: Kategorie links, Mannschaftsauswahl rechtsbündig (Yves 2026-11-16) ===== */
.fc-appbar-title--team { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.fc-appbar-title--team .fc-appbar-cat { flex: 1 1 auto; min-width: 0; }
.fc-appbar-title--team .fc-appbar-team { margin-left: auto; flex: 0 0 auto; max-width: 55%; }
/* Mannschaftsauswahl: Vereinsrot (auf Dunkel aufgehellt, damit lesbar) */
.fc-appbar-team { max-width: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: #ff5a5c; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: .01em; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.fc-appbar-team { cursor: pointer; min-height: 40px; padding: 9px 4px 9px 8px; }
button.fc-appbar-team:hover, button.fc-appbar-team:focus { background: transparent; color: #ff8486; }
button.fc-appbar-team:focus-visible { outline: 2px solid #ff5a5c; outline-offset: 2px; border-radius: 4px; }
.fc-appbar-cat { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-appbar-caret { color: #ff5a5c; margin-left: 6px; font-size: 12px; vertical-align: middle; }
/* App-Kopf nur mit Mannschaft (keine Kategorie-Leiste, z. B. Mannschaft ohne freigeschaltete Abschnitte): der Name IST der Titel */
.fc-appbar-title--teamonly { display: flex; align-items: center; }
.fc-appbar-title--teamonly .fc-appbar-team { font-size: 17px; font-weight: 700; color: #ff5a5c; padding: 0; margin: 0; min-height: 0; max-width: 100%; }
.fc-appbar-title--teamonly button.fc-appbar-team { cursor: pointer; }
.fc-appbar-title--teamonly button.fc-appbar-team:hover, .fc-appbar-title--teamonly button.fc-appbar-team:focus { color: #ff8486; }
/* Markierung in der Auswahlliste: welche Mannschaft hat TeamPunkt/Mannschaftsbereich freigeschaltet */
.fc-appcat-tp { flex: 0 0 auto; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.fc-appcat-teamitem.tp-on .fc-appcat-tp { background: #CF1C1F; color: #fff; }   /* freigeschaltet: rot/weiß */
.fc-appcat-teamitem.tp-off .fc-appcat-tp { background: transparent; color: #9a9a9a; border: 1px solid #3a3a3a; }   /* nicht freigeschaltet: dezent grau */
/* aktuelle Mannschaft: rot/weiß hervorgehoben (wie die aktive Kategorie) */
.fc-appcat-teamitem.is-current { font-weight: 700; color: #fff !important; background: rgba(207,28,31,.18); box-shadow: inset 3px 0 0 #CF1C1F; }
.fc-appcat-teamitem.is-current::after { content: "✓"; margin-left: 8px; color: #fff; }
/* Kopf-Dropdown „Mannschaft wechseln“: nur Mannschaften – plus „Weitere“, „Auswahl anpassen“, „Anmelden“ (Yves 2026-11-18) */
.fc-appcat-sheet--teams .fc-appcat-cathead, .fc-appcat-sheet--teams .fc-appcat-item:not(.fc-appcat-teamitem):not(.fc-appcat-more):not(.fc-appcat-auswahl):not(.fc-appcat-login),
.fc-appcat-sheet--teams .fc-appcat-teamhead, .fc-appcat-sheet--teams .fc-appcat-sort-open, .fc-appcat-sheet--teams .fc-appcat-sort { display: none !important; }
/* Sammel-Chip „Mannschaftsseite“: mehrere Abschnitte untereinander – deren Überschriften bleiben sichtbar */
.fc-app-mannschaft .fc-vb-section.fc-appcat-grouped.fc-appcat-active > h2,
.fc-app-mannschaft .fc-vb-section.fc-appcat-grouped.fc-appcat-active > .fc-vb-section-head { display: block !important; font-size: 19px !important; margin: 18px 0 8px; }

/* ================= UI/UX-Review 2026-11-15, Block B: Verhalten ================= */

/* B1 – Kopf der Kader-Zeile ist per Tastatur erreichbar: sichtbarer Fokus wie bei den Knöpfen (A4) */
.fc-vb-frontend .fc-vb-player-header:focus-visible { outline: 2px solid #1a3a1a; outline-offset: -2px; border-radius: 6px; }

/* B9 – App: die Überschrift der aktiven Kategorie ist ausgeblendet (Name steht im App-Kopf), damit fehlten auch
   die Kennzeichen darin („Privat“, „erscheint auf der Website“, Saison). Die Überschrift bleibt deshalb als schmale
   Zeile stehen: Text und Werkzeuge unsichtbar, nur die Kennzeichen sind zu sehen (Screenreader lesen die Überschrift weiter). */
.fc-app-mannschaft .fc-vb-section.fc-appcat-active:not(.fc-appcat-grouped) > h2:has(.fc-vb-vis, .fc-vb-badge) {
    display: flex !important; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px;
    font-size: 0 !important; line-height: 0; min-height: 0; margin: 0 0 6px !important; padding: 0 !important; border: 0 !important;
}
.fc-app-mannschaft .fc-vb-section.fc-appcat-active:not(.fc-appcat-grouped) > h2 > .fc-vb-section-tools,
.fc-app-mannschaft .fc-vb-section.fc-appcat-active:not(.fc-appcat-grouped) > h2 > .fc-vb-todo,
.fc-app-mannschaft .fc-vb-section.fc-appcat-active:not(.fc-appcat-grouped) > h2 > .fc-vb-save-status:empty { display: none !important; }
.fc-app-mannschaft .fc-vb-section.fc-appcat-active:not(.fc-appcat-grouped) > h2 > .fc-vb-vis,
.fc-app-mannschaft .fc-vb-section.fc-appcat-active:not(.fc-appcat-grouped) > h2 > .fc-vb-badge,
.fc-app-mannschaft .fc-vb-section.fc-appcat-active:not(.fc-appcat-grouped) > h2 > .fc-vb-muted { font-size: 12px; line-height: 1.3; }
