
#vereinslisteTable tr td, #historylistBody tr td {
	cursor: url('/images/intern/cursor/rightclick.svg'), context-menu;
}

#spielerTabelle tr td {
	cursor: url('/images/intern/cursor/bothclick.svg'), context-menu;
}

#spielerTabelleBody tr.history-club-mismatch:not(.table-primary):not(.table-success) > *,
#historylistBody tr.history-club-mismatch:not(.table-primary):not(.table-success) > * {
	--bs-table-bg: #cfe2ff;
	--bs-table-bg-type: #cfe2ff;
	--bs-table-bg-state: #cfe2ff;
	--bs-table-color: #084298;
	color: #084298 !important;
}

[data-bs-theme="dark"] #spielerTabelleBody tr.history-club-mismatch:not(.table-primary):not(.table-success) > *,
[data-bs-theme="dark"] #historylistBody tr.history-club-mismatch:not(.table-primary):not(.table-success) > * {
	--bs-table-bg: #365b7e;
	--bs-table-bg-type: #365b7e;
	--bs-table-bg-state: #365b7e;
	--bs-table-color: #f1f6fc;
	color: #f1f6fc !important;
}

#kontextMenu .context-disabled,
#spielerKontextMenu .context-disabled,
#mitarbeiterKontextMenu .context-disabled {
	color: var(--bs-secondary-color) !important;
	opacity: 0.45;
	background-color: transparent !important;
	cursor: not-allowed !important;
}

#kontextMenu .context-disabled:hover,
#kontextMenu .context-disabled:focus,
#spielerKontextMenu .context-disabled:hover,
#spielerKontextMenu .context-disabled:focus,
#mitarbeiterKontextMenu .context-disabled:hover,
#mitarbeiterKontextMenu .context-disabled:focus {
	color: var(--bs-secondary-color) !important;
	background-color: transparent !important;
	cursor: not-allowed !important;
}

#kontextMenu .context-disabled i,
#spielerKontextMenu .context-disabled i,
#mitarbeiterKontextMenu .context-disabled i {
	opacity: 0.5;
}





.specials-flip-wrapper {
	width: 100%;
	perspective: 1400px;
}

.specials-flip {
	position: relative;
	width: 100%;
	display: grid;
	transform-style: preserve-3d;
	transition: transform 0.55s cubic-bezier(.4, .2, .2, 1);
}

.specials-flip.is-flipped {
	transform: rotateY(180deg);
}

.specials-face {
	grid-area: 1 / 1;
	width: 100%;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.specials-front {
	transform: rotateY(0deg);
}

.specials-back {
	transform: rotateY(180deg);
}

#playerSpecialsBody tr {
	cursor: pointer;
}

.history-table-wrapper {
	width: 100%;
	height: 433px;
	overflow: auto;
}

#historylist {
	width: 100%;
	table-layout: auto;
	border-collapse: collapse;
	margin: 0;
}

#historylist th,
#historylist td {
	white-space: nowrap;
}

#historylist thead th {
	position: sticky;
	top: 0;
	z-index: 10;
}

/* Kontext-Menü */
.kontext-menu {
    position: absolute;
    z-index: 9999;
    display: none;
    background: #2b2b2b;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 4px 0;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.kontext-menu-eintrag {
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
}
.kontext-menu-eintrag:hover {
    background: #3c3c3c;
}
.kontext-trennlinie {
    border-bottom: 1px solid #444;
    margin: 4px 0;
}


canvas {
	outline: none;
}

.fm-farblegende {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;

    padding-top: 6px;

/*    border-top: 1px solid var(--bs-border-color); */

    font-size: 13px;
}

.fm-farblegende-titel {
    font-weight: 600;
    margin-right: 4px;
}

.fm-farblegende-eintrag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.fm-farblegende-farbe {
    width: 14px;
    height: 14px;

    display: inline-block;

    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 2px;
}

.fm-erfahrung {
    display: grid;
    grid-template-columns: 190px 48px minmax(300px, 1fr);
    align-items: center;
    gap: 8px;

    margin-top: 8px;
    padding-top: 8px;

    border-top: 1px solid var(--bs-border-color);
}

.fm-erfahrung-info {
    display: flex;
    align-items: center;
    gap: 4px;

    font-size: 12px;
    white-space: nowrap;
}

.fm-erfahrung-punkt {
    width: 10px;
    height: 10px;

    flex: 0 0 10px;

    background: #7ad66d;

    border: 1px solid rgba(0, 0, 0, .2);
}

#fmErfahrungBonus {
    width: 48px;
    height: 27px;

    padding: 1px 3px;

    text-align: center;
    font-size: 12px;
}

.fm-erfahrung-regler {
    position: relative;

    height: 50px;

    display: flex;
    align-items: center;
}


/* Slider */

#fmErfahrungSlider {
    width: 100%;
    height: 18px;

    margin: 0;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;

    cursor: pointer;
}


/* Firefox Track */

#fmErfahrungSlider::-moz-range-track {
    height: 3px;

    background: var(--bs-secondary-color);

    border-radius: 2px;
}


/* Firefox Thumb */

#fmErfahrungSlider::-moz-range-thumb {
    width: 12px;
    height: 22px;

    background: var(--bs-body-bg);

    border: 1px solid var(--bs-secondary-color);
    border-radius: 1px;

    cursor: pointer;
}


/* Chrome / Edge Track */

#fmErfahrungSlider::-webkit-slider-runnable-track {
    height: 3px;

    background: var(--bs-secondary-color);

    border-radius: 2px;
}


/* Chrome / Edge Thumb */

#fmErfahrungSlider::-webkit-slider-thumb {
    width: 12px;
    height: 22px;

    margin-top: -10px;

    -webkit-appearance: none;
    appearance: none;

    background: var(--bs-body-bg);

    border: 1px solid var(--bs-secondary-color);
    border-radius: 1px;

    cursor: pointer;
}


/* Beschriftungen */

.fm-erfahrung-label {
    position: absolute;

    font-size: 10px;
    white-space: nowrap;

    transform: translateX(-50%);

    pointer-events: none;
}

.fm-erfahrung-oben {
    top: 0;
}

.fm-erfahrung-unten {
    bottom: 0;
}

.fm-erfahrung-letzte {
    transform: translateX(-100%);
}

.fm-bereich {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 5px;
}

/* =========================================================
   POSITIONEN
   ========================================================= */

.fm-position-header,
.fm-position-zeile {
    display: grid;
    grid-template-columns: 42px 54px 46px 24px;
    align-items: center;
    column-gap: 6px;
    width: 100%;
}

.fm-position-header {
    margin-bottom: 5px;

    font-size: 11px;
    color: var(--bs-secondary-color);
    text-align: center;
}

.fm-position-zeile {
    min-height: 29px;
    margin-bottom: 3px;
}

.fm-position-name {
    min-width: 0;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}

.fm-position-input {
    width: 54px;
    min-width: 54px;
    height: 26px;

    padding: 1px 3px;

    text-align: center;

    font-size: 12px;

    color: var(--bs-body-color);
}

.fm-position-staerke {
    width: 46px;
    min-width: 46px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 600;

    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);

    background: var(--bs-tertiary-bg);
}

.fm-position-auswahl {
    width: 17px;
    height: 17px;

    margin: 0 !important;

    justify-self: center;
    align-self: center;
}


/* =========================================================
   ATTRIBUT-GRUPPEN
   ========================================================= */

.fm-attribut-gruppen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    align-items: start;
}

.fm-attribut-gruppe {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);

    padding: 4px 5px;
}

.fm-attribut-gruppe-titel {
    margin-bottom: 3px;
    padding-bottom: 2px;

    font-size: 11px;
    font-weight: 600;

    border-bottom: 1px solid var(--bs-border-color);
}

.fm-attribut-spalte {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}


/* =========================================================
   EINZELNE ATTRIBUTE
   ========================================================= */

.fm-attribut {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 4px;
    min-height: 25px;
}

.fm-attribut-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-attribut-input {
    width: 44px;
    min-width: 44px;
    height: 24px;
    padding: 0 2px;
    text-align: center;
    font-weight: 600;
    color: #000 !important;
}


/* Number-Pfeile */

.fm-attribut-input::-webkit-inner-spin-button,
.fm-attribut-input::-webkit-outer-spin-button {
    margin: 0;
}


/* =========================================================
   GEWICHTUNGSFARBEN
   ========================================================= */

.fm-gewicht-0 {
    background-color: #ffffff !important;
    color: #000 !important;
}

.fm-gewicht-2 {
    background-color: #7ad66d !important;
    color: #000 !important;
}

.fm-gewicht-4 {
    background-color: #f2df58 !important;
    color: #000 !important;
}

.fm-gewicht-6 {
    background-color: #f1a34a !important;
    color: #000 !important;
}

.fm-gewicht-9 {
    background-color: #e56cae !important;
    color: #000 !important;
}

.fm-gewicht-10 {
    background-color: #e45c5c !important;
    color: #000 !important;
}

.stern {
	font-size: 20px;
	line-height: 1;
}
.stern-gold { color: #ffc107; }
.stern-silber { color: #c0c0c0; }
#talentSterne, #staffTalentSterne {
    flex: 0 0 110px;
    width: 110px;
    display: flex;
    gap: 2px;
}

th[data-sortiert="asc"]::after { content: " ↑"; opacity: 0.7; }
th[data-sortiert="desc"]::after { content: " ↓"; opacity: 0.7; }

#spielerTabelleBody tr {
	cursor: pointer
}

.kader-tabelle-wrapper {
  max-height: 630px;
  height: 630px;
  overflow-y: auto;
  border-top: 1px solid var(--bs-border-color);
}

/* ✅ Kopf bleibt fest + bekommt kontrastierende Ränder */
.kader-tabelle-wrapper thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid var(--bs-border-color);
  box-shadow: none;
}

/* ✅ Sicherheitsabstand für die ERSTE Datenzeile */
.kader-tabelle-wrapper tbody tr:first-child td {
  border-top: 1px solid var(--bs-border-color);
  padding-top: 0.4rem;
}

.table-xs th,
.table-xs td {
  padding: 0.15rem 0.35rem;
  font-size: 0.93rem;
}

.farbauswahl {
    width: 40px !important;
    height: 28px !important;
    padding: 0 !important;
    text-align: center;
}

.sp-palette .sp-thumb-el {
  width: 20px !important;
  height: 20px !important;
  margin: 3px !important;
  border: 1px solid black !important;
}

.form-select {
  padding: .2rem 2.25rem .2rem .75rem;
}

.slider.slider-horizontal {
  width: inherit !important;
}

#vereinslisteTable th,
#vereinslisteTable td {
  font-size: 14px !important;
}

.border-top.border-dashed,
.border-dashed.border-top    { border-top-style: dashed !important; }

.border-bottom.border-dashed,
.border-dashed.border-bottom { border-bottom-style: dashed !important; }

.border-start.border-dashed,
.border-dashed.border-start  { border-left-style: dashed !important; }

.border-end.border-dashed,
.border-dashed.border-end    { border-right-style: dashed !important; }

.border.border-dashed,
.border-dashed.border        { border-style: dashed !important; }

/* ================================================
   STADIUM SWEETALERT
   Bootstrap Light / Dark automatisch übernehmen
   ================================================ */

.stadium-swal-popup {
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    border: 1px solid var(--bs-border-color) !important;
}

.stadium-swal-title {
    color: var(--bs-body-color) !important;
}

.stadium-swal-text {
    color: var(--bs-secondary-color) !important;
}

.stadium-swal-btn {
    margin: 0 5px !important;
}


/* Icon */
.stadium-swal-popup .swal2-icon.swal2-warning {
    border-color: var(--bs-warning) !important;
    color: var(--bs-warning) !important;
}


/* Buttons */
.stadium-swal-popup .btn-danger {
    --bs-btn-bg: #dc3545;
    --bs-btn-border-color: #dc3545;
}

.stadium-swal-popup .btn-secondary {
    --bs-btn-bg: var(--bs-secondary-bg);
    --bs-btn-color: var(--bs-body-color);
    --bs-btn-border-color: var(--bs-border-color);
}

/* Alle SweetAlert-Dialoge folgen dem aktiven Bootstrap-Theme und den Modals. */
.swal2-popup {
    background: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    border: 1px solid var(--bs-border-color) !important;
    border-top: 8px solid #145A32 !important;
}

.swal2-title { color: var(--bs-body-color) !important; }
.fm-export-overlay {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 2000;
	width: min(22rem, calc(100vw - 2rem));
	padding: .85rem 1rem;
	max-height: min(65vh, 34rem);
	overflow-y: auto;
	border: 1px solid var(--bs-border-color);
	border-radius: .5rem;
	background: var(--bs-body-bg);
	color: var(--bs-body-color);
	box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .22);
	pointer-events: auto;
}
.fm-export-overlay-content {
	display: flex;
	flex-direction: column;
	gap: .4rem;
}
.fm-export-progress-row { min-width: 0; }
.fm-export-progress-row + .fm-export-progress-row { margin-top: .65rem; }
.fm-export-overlay .spinner-border {
	width: 1.1rem;
	height: 1.1rem;
	border-width: .16rem;
	color: #198754;
}
.fm-export-drag-handle {
	cursor: move;
	user-select: none;
	touch-action: none;
}
.swal2-html-container { color: var(--bs-secondary-color) !important; }
.swal2-popup .swal2-input,
.swal2-popup .swal2-select,
.swal2-popup .swal2-textarea {
    background: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    border-color: var(--bs-border-color) !important;
}






#tab_stadion .file-drop-zone {
    margin: 12px 5px 12px 5px !important;
}

#sprachDropdownMenu {
    min-width: 0 !important;
    width: 50px !important;
    padding: 5px !important;
}

#sprachDropdownMenu .dropdown-item {
    padding: 6px 10px !important;
    display: flex;
    justify-content: center;
}

#sprachDropdownMenu .dropdown-item img {
    margin-right: 0 !important;
}

/* ===== NAV-PILLS FARBEN + 3 GRÖSSEN ===== */

/* Grundzustand */
.nav-pills .nav-link {
    color: var(--bs-nav-pills-link-color);
    background-color: var(--bs-nav-pills-link-bg);
    border-radius: var(--bs-nav-pills-border-radius);
    margin-right: 0.25rem;
}
.nav-pills .nav-link:hover {
    color: var(--bs-nav-pills-link-hover-color);
    background-color: var(--bs-nav-pills-link-hover-bg);
}

/* === GRÖSSEN === */
.nav-pills.nav-sm .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}
.nav-pills.nav-md .nav-link { /* Standard */
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
}
.nav-pills.nav-lg .nav-link {
    padding: 0.5rem 1rem;
    font-size: 1.125rem;
}

/* === FARBEN === */
.nav-pills.nav-gray .nav-link.active     { color: #fff; background-color: var(--bs-secondary); }
.nav-pills.nav-primary .nav-link.active  { color: var(--bs-primary-text-emphasis); background-color: var(--bs-primary); }
.nav-pills.nav-success .nav-link.active  { color: var(--bs-success-text-emphasis); background-color: var(--bs-success); }
.nav-pills.nav-danger .nav-link.active   { color: var(--bs-danger-text-emphasis); background-color: var(--bs-danger); }
.nav-pills.nav-warning .nav-link.active   { color: var(--bs-warning-text-emphasis); background-color: var(--bs-warning); }
.nav-pills.nav-info .nav-link.active     { color: var(--bs-info-text-emphasis); background-color: var(--bs-info); }



#countrySelect + .bootstrap-select,
.bootstrap-select:has(> #countrySelect),
div.bootstrap-select:has(> select#countrySelect) {
    /* Deine Regeln NUR für diese eine Div */
    width: 220px !important;
    /* oder andere Klasse-Eigenschaften */
}

.sponsor-jahr-input {
    position: relative;
}

.sponsor-jahr-input #sponsorDuration {
    padding-right: 24px;
}

.sponsor-jahr-spinner {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 22px;

    display: flex;
    flex-direction: column;

    overflow: hidden;
    border-left: 1px solid var(--bs-border-color);

    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
}

.sponsor-jahr-spinner button {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 0;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);

    font-size: 9px;
    line-height: 1;

    cursor: pointer;
}

.sponsor-jahr-spinner button:first-child {
    border-bottom: 1px solid var(--bs-border-color);
}

.sponsor-jahr-spinner button:hover {
    background-color: var(--bs-secondary-bg);
}

.sponsor-jahr-spinner button:active {
    background-color: var(--bs-tertiary-bg);
}



/* Obere Navigation: Blau → Dunkelgrün */
.navbar-primary,
.bg-primary,
header.bg-primary,
nav.navbar {
    background-color: #145A32 !important;
    border-color: #0B3D23 !important;
}



/* Container relativ setzen, damit das Overlay passt */
#clubBadge1, #clubBadge2, #stadiumpicBig, #stadiumpicMedium, #mascotPicture, #tunnelPicture, #headquarterPicture, #fanPicture, #generalCityPicture, #customCityPicture {
    position: relative;
    display: inline-block;
}

/* Transparente Schutz-Schicht darüber */
#clubBadge1::after,
#clubBadge2::after,
#stadiumpicBig::after,
#stadiumpicMedium::after,
#mascotPicture::after,
#tunnelPicture::after,
#generalCityPicture::after,
#customCityPicture::after {
    content: "";
    position: absolute;
    inset: 0;   /* deckt alles ab */
    background: transparent;
    cursor: default;
}

/* Bild zusätzlich schützen */
#clubBadge1 img,  #clubBadge2 img, #stadiumpicBig img,  #stadiumpicMedium img,  #mascotPicture img, #tunnelPicture img, #headquarterPicture img, #fanPicture img,
img#clubBadge1, img#clubBadge2, img#stadiumpicBig, img#stadiumpicMedium, img#mascotPicture, img#tunnelPicture, img#headquarterPicture, img#fanPicture, 
img#generalCityPicture, img#customCityPicture, img#clubTicketPicture, img#ticketClubBadge, img#clubLoadingScreenPicture, img#loadingScreenClubBadge,
.player-report-image img, .staff-report-image img, .custom-picture-preview img {
    pointer-events: none;       /* Klicks gehen durch, aber kein Ziehen */
    user-select: none;          /* Nicht auswählbar */
    -webkit-user-drag: none;     /* Kein Drag & Drop */
}

#genericBadgeList img {
    cursor: pointer;
}

.kontext-menu {
    display: none;
    position: absolute;
    z-index: 9999;
    min-width: 220px;
    padding: 2px 0;
    border: 1px solid #808080;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

/* 📝 Menü-Eintrag mit Icon-Platz */
.kontext-menu-eintrag {
    padding: 3px 8px 3px 28px;
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kontext-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
    margin-left: -18px;
}

.kontext-text {
    flex: 1;
}

/* ➖ Trennlinie */
.kontext-trennlinie {
    height: 1px;
    margin: 2px 1px;
}

/* ☀️ HELLE Ansicht (Standard) */
.kontext-menu {
    background: #f0f0f0;
    border-color: #707070;
}
.kontext-menu-eintrag {
    color: #000000;
}
.kontext-menu-eintrag:hover {
    background: #3399ff;
    color: #ffffff;
}
.kontext-trennlinie {
    background: #d0d0d0;
}

/* 🌙 DUNKLE Ansicht — GENAU DEINE SCHREIBWEISE! */
[data-bs-theme="dark"] .kontext-menu {
    background: #1a1a1c; /* ✅ Dunkler Hintergrund */
    border-color: #444444; /* ✅ Dunklerer Rand */
}
[data-bs-theme="dark"] .kontext-menu-eintrag {
    color: #e5e5e5; /* ✅ Helle Schrift */
}
[data-bs-theme="dark"] .kontext-menu-eintrag:hover {
    background: #004488; /* ✅ Dunkleres Blau bei Hover */
    color: #ffffff;
}
[data-bs-theme="dark"] .kontext-trennlinie {
    background: #333333; /* ✅ Dunkle Trennlinie */
}





/* ✅ NUR in der NAVBAR — ETWAS GRÖSSER! */
.navbar .form-control,
.navbar .form-select,
.navbar > .container .btn,
.navbar > .container-fluid .btn {
  padding: 0.35rem 0.7rem !important;
  font-size: 0.95rem !important;
}

/* ✅ Alles unter der Vorschau KOMPLETT verstecken */
.file-input .file-input-status,
.file-input .file-preview-status,
.file-input .progress-bar,
.file-input .progress,
.file-input .btn-toolbar,
.file-input .file-actions,
.file-input .file-footer,
.file-preview-frame .file-actions {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* ✅ Nur die Vorschau bleibt sichtbar */
.file-preview {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ✅ Text und Kästchen nebeneinander — ohne festen Platz für alle! */
.bootstrap-select .dropdown-menu li a {
  display: flex !important;
  align-items: center !important;
  padding: 6px 12px !important;
}

/* ✅ Ohne Farbe: normaler Text */
.bootstrap-select .dropdown-menu li a span.text {
  margin-left: 0 !important;
  vertical-align: middle !important;
}

/* ✅ Ausgewählter Eintrag */
.bootstrap-select .dropdown-menu li.selected a,
.bootstrap-select .dropdown-menu li:focus a,
.bootstrap-select .dropdown-menu li.highlighted a {
  background-color: var(--bs-primary) !important;
  color: var(--bs-white) !important;
}

/* ✅ Kein hässlicher Rand */
.bootstrap-select .dropdown-item {
  outline: none !important;
}

/* ✅ Geschlossene Anzeige immer mittig */
.bootstrap-select .dropdown-toggle .filter-option-inner-inner {
  display: flex !important;
  align-items: center !important;
}

.bild-rahmen {
  padding: 2px;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.25rem;
  background-color: var(--bs-body-bg);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* ✅ Schwarz-Modus — kurzer Name */
.bild-rahmen.bg-black {
  background-color: #000;
}

.bild-rahmen img {
  width: 256px;
  height: 256px;
  object-fit: contain;
  margin: auto;  /* ← DAS reicht! */

}

/* ✅ Nur Rand, Abstand und Bild-Anpassung — alles andere = Bootstrap! */
.bild-rahmen {
  padding: 2px;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.25rem;
  background-color: var(--bs-body-bg);
}

/* ========================================
   ALLGEMEIN: Alle bootstrap-select Felder
   ======================================== */

/* ✅ Geschlossenes Feld — Text + Pfeil mittig! */
.bootstrap-select > .dropdown-toggle {
  height: 28px !important;
  padding: 0 0.6rem !important; /* ✅ Nur links/rechts — kein oben/unten! */
  font-size: 0.85rem !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: 0rem !important; 
  background-color: var(--bs-body-bg) !important;
  background-image: none !important;
  color: var(--bs-body-color) !important;
  display: flex !important;
  align-items: center !important; /* ✅ ALLEN Inhalt vertikal ZENTRIEREN! */
  justify-content: space-between !important;
  box-shadow: none !important;
  width: 100% !important;
}

/* ✅ Geschlossenes Feld — Text + Pfeil mittig! */
.rounded-selectpicker.form-control-sm .bootstrap-select > .dropdown-toggle {
  border-radius: 0.25rem !important; 
}

/* ✅ Text-Bereich — KEIN eigenes Line-Height! Erbt Zentrierung! */
.bootstrap-select > .dropdown-toggle .filter-option {
  padding: 0 !important;
  line-height: normal !important; /* ✅ WICHTIG: Keine feste Höhe! */
  height: auto !important;
  color: inherit !important;
  display: block !important;
}

/* ✅ Pfeil — ebenfalls mittig */
.bootstrap-select > .dropdown-toggle .caret {
  border-top-color: var(--bs-body-color) !important;
  margin-top: 0 !important; /* ✅ Kein Versatz nach unten! */
  border-width: 5px 4px 0 4px !important;
}

/* ✅ Fokus / Hover */
.bootstrap-select > .dropdown-toggle:focus,
.bootstrap-select > .dropdown-toggle:hover {
  border-color: #86b7fe !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15) !important;
}

/* ========================================
   NUR das Land-Select in der Navigation
   ======================================== */
#countrySelect + .bootstrap-select > .dropdown-toggle {
  height: 34px !important;
  padding: 0 0.75rem !important; /* ✅ Auch hier: nur links/rechts! */
}

/* ========================================
   DROPDOWN-Menü
   ======================================== */

/* ✅ Dropdown-Container */
.bootstrap-select .dropdown-menu {
  border: 1px solid var(--bs-border-color) !important;
  border-radius: 0.25rem !important;
  background-color: var(--bs-body-bg) !important;
  background-image: none !important;
  color: var(--bs-body-color) !important;
  padding: 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* ✅ Suchfeld */
.bootstrap-select .bs-searchbox {
  padding: 0.5rem !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--bs-border-color) !important;
}
.bootstrap-select .bs-searchbox .form-control {
  padding: 0.35rem 0.5rem !important;
  font-size: 0.85rem !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: 0.25rem !important;
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
  height: auto !important;
}

/* ✅ Options-Liste */
.bootstrap-select .dropdown-menu.inner {
  padding: 0.25rem 0 !important;
  margin: 0 !important;
}
.bootstrap-select .dropdown-menu li a {
  padding: 0.45rem 0.6rem !important;
  font-size: 0.85rem !important;
  color: var(--bs-body-color) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* ✅ Hervorhebung bei Hover/Auswahl */
.bootstrap-select .dropdown-menu li a:hover,
.bootstrap-select .dropdown-menu li.selected a {
  background-color: #0d6efd !important;
  color: #ffffff !important;
  background-image: none !important;
}

/* Im Länderpicker bleibt der Tastaturfokus vom ausgewählten Land unterscheidbar. */
.bootstrap-select:has(> #countrySelect) .dropdown-menu li.selected:not(.active) > a:not(.active) {
  background-color: var(--bs-tertiary-bg) !important;
  color: var(--bs-body-color) !important;
}
.bootstrap-select:has(> #countrySelect) .dropdown-menu li.active > a,
.bootstrap-select:has(> #countrySelect) .dropdown-menu li > a.active,
.bootstrap-select:has(> #countrySelect) .dropdown-menu li > a:focus-visible {
  background-color: #0d6efd !important;
  color: #ffffff !important;
}

/* Beim Spielort bleibt die gespeicherte Auswahl vom Tastaturfokus unterscheidbar. */
.bootstrap-select:has(> #line_54_0) .dropdown-menu li.selected:not(.active) > a:not(.active) {
  background-color: var(--bs-tertiary-bg) !important;
  color: var(--bs-body-color) !important;
}
.bootstrap-select:has(> #line_54_0) .dropdown-menu li.active > a,
.bootstrap-select:has(> #line_54_0) .dropdown-menu li > a.active,
.bootstrap-select:has(> #line_54_0) .dropdown-menu li > a:focus-visible {
  background-color: #0d6efd !important;
  color: #ffffff !important;
}

/* ✅ Keine Treffer */
.bootstrap-select .no-results {
  padding: 0.5rem 0.6rem !important;
  font-size: 0.85rem !important;
  color: var(--bs-body-color) !important;
  background: transparent !important;
}

/* ✅ Select2 Container — Höhe fest */
.select2-container .select2-selection--single {
  padding: 0 !important;
  height: 26px !important;
  font-size: 0.85rem !important;
  border-radius: 0.25rem !important;
  display: flex !important;
  align-items: center !important;
  background-color: var(--bs-body-bg) !important;
  border: 1px solid var(--bs-border-color) !important;
  color: var(--bs-body-color) !important;
}

.select2-selection.is-invalid {
	border-color: var(--bs-form-invalid-border-color) !important;
}

/* ✅ Text-Bereich */
.select2-selection__rendered {
  padding: 0 24px 0 0.4rem !important;
  margin: 0 !important;
  line-height: normal !important;
  flex: 1;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: inherit !important;
}

/* ✅ Pfeil-Container */
.select2-selection__arrow {
  position: static !important;
  width: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.select2-selection__arrow b {
  border-width: 5px 4px 0 4px !important;
  margin: 0 !important;
  border-top-color: var(--bs-body-color) !important;
}

/* ✅ Dropdown-Gesamt */
.select2-dropdown {
  border-color: var(--bs-border-color) !important;
  background-color: var(--bs-body-bg) !important;
}

/* ✅ Suchfeld oben im Dropdown */
.select2-search--dropdown .select2-search__field {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
  border: 1px solid var(--bs-border-color) !important;
}

/* ✅ TREFFER-ZEILEN — HÖHER! */
.select2-results__option {
  padding: 0.45rem 0.6rem !important; /* ✅ Etwas mehr Abstand = höhere Zeile */
  font-size: 0.85rem !important;
  color: var(--bs-body-color) !important;
  background-color: transparent !important;
}

/* ✅ HERVORHEBUNG */
.select2-results__option--highlighted,
.select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #0d6efd !important;
  color: #ffffff !important;
}

/* Bootstrap-Modals und ihr Hintergrund blenden schneller ein und aus. */
.modal-backdrop.fade {
  transition-duration: .08s;
}
.modal.fade .modal-dialog {
  transition-duration: .12s;
}

/* Bei der Assistentensuche steht das Eingabefeld direkt in der Auswahl. */
#assistantSearchModal .select2-container--bootstrap-5 .select2-selection--multiple {
  height: auto !important;
  min-height: calc(1.5em + 0.75rem + 2px);
  border-radius: var(--bs-border-radius) !important;
  background-color: var(--bs-body-bg) !important;
  border-color: var(--bs-border-color) !important;
  color: var(--bs-body-color) !important;
}
#assistantSearchModal .select2-selection .select2-search__field {
  width: 100% !important;
  background-color: transparent !important;
  color: var(--bs-body-color) !important;
}
#assistantSearchModal .select2-selection .select2-search__field::placeholder {
  color: var(--bs-secondary-color);
  opacity: 1;
}
#assistantSearchModal.assistant-search-pristine .select2-results__message {
  display: none;
}
body.assistant-clubless-squad #teamSwitchTabLi,
body.assistant-clubless-squad #mainTabs .assistant-club-jump {
  display: none !important;
}
.unique-id-list-dialog {
  margin: 6vh auto;
  max-width: min(1400px, calc(100vw - 2rem));
}
.unique-id-list-dialog .modal-content {
  max-height: 86vh;
}
.unique-id-list-dialog .modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.unique-id-list-scroll {
  max-height: calc(86vh - 155px);
  overflow: auto;
}
.unique-id-list-scroll th,
.unique-id-list-scroll td {
  min-width: 90px;
  max-width: 200px;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.unique-id-list-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bs-tertiary-bg);
}
.unique-id-list-scroll mark {
  background-color: var(--bs-warning);
  color: #000;
  padding: 0;
}
.assistant-country-list-dialog {
  max-width: min(650px, calc(100vw - 2rem));
  margin: 6vh auto;
}
.assistant-country-list-scroll {
  max-height: 70vh;
  overflow: auto;
}
.assistant-country-list-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bs-tertiary-bg);
}

.navbar .assistant-toggle {
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--bs-border-radius);
}

.graphic-report-image { position: relative; overflow: hidden; }
.custom-picture-preview { width: min(100%, 240px); }
.custom-picture-preview img { display: block; width: 100%; height: auto; }
.custom-picture-preview.custom-picture-placeholder { aspect-ratio: 4 / 3; }
.custom-picture-preview.custom-picture-placeholder img { width: 100%; height: 100%; object-fit: contain; }
.custom-picture-card .card-body { min-height: 188px; }
.custom-picture-slot-number { position: absolute; top: .35rem; left: .35rem; padding: 0 .35rem; border-radius: .25rem; background: #000b; color: #fff; font-weight: 700; font-size: .8rem; line-height: 1.5; pointer-events: none; }
.custom-picture-preview .graphic-report-ribbon { right: -36px; top: 21px; width: 145px; font-size: .82rem; line-height: 1.9; }
.graphic-report-ribbon {
  display: none;
  position: absolute;
  right: -53px;
  top: 38px;
  width: 220px;
  transform: rotate(45deg);
  text-align: center;
  background: var(--bs-danger);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 2.2;
  pointer-events: none;
  box-shadow: 0 2px 8px #0008;
}
.graphic-report-image.has-report .graphic-report-ribbon { display: block; }
.graphic-report-compact .graphic-report-ribbon {
  right: -34px;
  top: 23px;
  width: 145px;
  font-size: .82rem;
  line-height: 1.9;
}
.graphicsReportCount, .qualityCount {
  background-color: #e56cae !important;
  color: #000 !important;
  font-weight: 700;
  border: 1px solid #0008;
}
.graphic-report-note {
  display: block;
  max-width: 26rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.graphic-report-note.expanded {
  white-space: pre-wrap;
  overflow: visible;
  overflow-wrap: anywhere;
}
.navbar .assistant-toggle:hover,
.navbar .assistant-toggle:focus-visible,
.navbar .assistant-toggle.show {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ✅ Erste Spalte: Text links, Streifen-Bereich ganz rechts am Rand */
table td:first-child {
  position: relative;
  padding-right: 18px !important;
  white-space: nowrap;
}

/* ✅ Streifen-Container: klebt IMMER am rechten Rand, füllt von RECHTS nach LINKS */
.status-streifen-bereich {
  position: absolute;
  top: 0;
  right: 0; /* ← immer am äußersten rechten Rand! */
  height: 100%;
  display: flex;
  flex-direction: row-reverse; /* ← RECHTS nach LINKS auffüllen! */
  gap: 0;
}

/* ✅ Jeder Streifen: 6px breit, volle Höhe */
.status-streifen {
  width: 6px;
  height: 100%;
  flex-shrink: 0;
}

/* 🟦 BLAU = Historien — GLEICHE Farbe in Hell + Dunkel! */
.streifen-blau {
  background-color: #2563eb; /* Normales Blau */
}
[data-bs-theme="dark"] .streifen-blau {
  background-color: #2563eb; /* ✅ Gleicher Wert! */
}

/* 🟥 ROT = tmID — GLEICHE Farbe in Hell + Dunkel! */
.streifen-rot {
  background-color: #dc2626; /* Normales Rot */
}
[data-bs-theme="dark"] .streifen-rot {
  background-color: #dc2626; /* ✅ Gleicher Wert! */
}

/* 🟧 ORANGE = tmID_res — aus Dark-Mode! */
.streifen-orange {
  background-color: #fb923c; /* Das hellere Orange */
}
[data-bs-theme="dark"] .streifen-orange {
  background-color: #fb923c; /* ✅ Gleicher Wert! */
}

/* 🟡 GELB = tmID_youth — GLEICHE Farbe in Hell + Dunkel! */
.streifen-gelb {
  background-color: #facc15; /* Normales Gelb */
}
[data-bs-theme="dark"] .streifen-gelb {
  background-color: #facc15; /* ✅ Gleicher Wert! */
}

/* ✅ Alles wird kleiner — OHNE Select2 zu zerstören! */
:root {
    font-size: 14px; /* ← 14px = kompakt, 13px = noch kleiner */
    --bs-primary: #145A32;
    --bs-primary-rgb: 20, 90, 50;
	--fancybox-border: #8f8f9d;
	--fancybox-bg: #ffffff;
}


:root[data-bs-theme="dark"], .dark {
	--fancybox-border: #90909d;
	--fancybox-bg: #313038;
}


.form-control, .form-select, {
    padding: 0.2rem 0.4rem;
    font-size: 0.85rem;
}
.form-label {
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
}

/* ✅ Select sieht wie form-control-sm aus + Text mittig */
.select-no-style {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  height: 2.25rem !important;        /* ← Gleiche Höhe wie form-control-sm */
  width: 100% !important;
  margin: 0 !important;
  outline: none !important;
  /* ✅ Text ZENTRIEREN */
  vertical-align: middle !important;
  display: flex !important;
  align-items: center !important;
}

/* ✅ Fallback für Browser ohne flex bei select */
select.select-no-style {
  line-height: 2.25rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body {
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    min-width: 1200px;
    font-size: 14px;
    padding-top: 70px;
    transition: background-color 0.3s ease;
}

/* Obere Navigation über die gesamte Bildschirmbreite */
body > nav.navbar {
    width: 100vw !important;
    max-width: none !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0.4rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    background-color: #145A32 !important;
}

body > nav.navbar > .container,
body > nav.navbar > .container-fluid {
    width: 100% !important;
    max-width: 1650px !important;
    margin-left: auto;
    margin-right: auto;
}

/* ✅ Dunkelmodus: Seitenhintergrund dunkel */
[data-bs-theme="dark"] body {
    background-color: #1a1a1a !important;
}

/* ✅ Dunkelmodus: Container & Tabs anpassen */
[data-bs-theme="dark"] .main-container {
    background-color: #242424 !important;
    border-color: #444 !important;
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .tab-bar {
    background-color: #2d2d2d !important;
    border-bottom-color: #444 !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: #b0b0b0 !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    background-color: #242424 !important;
    color: #7ab0ff !important;
    border-color: #444 #444 #242424 !important;
}

.nav-select {
    width: 200px;
    margin: 0;
    border: none;
    border-radius: 0.375rem;
    padding: 0.375rem 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    font-weight: 500;
    font-size: 14px;
}

.nav-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.navbar-brand {
    margin-left: 1rem;
    margin-bottom: 0;
    white-space: nowrap;
}

/* ✅ Nur der Container scrollt */
.main-container {
    width: 1400px;
    max-width: 1400px;
    margin: 1.5rem auto 0 auto;
    padding: 0;
    min-height: auto;  /* ❌ statt 100vh / 100% */
    height: auto;      /* Automatisch = nur so hoch wie nötig */	
    border-radius: 0.75rem;
    overflow-y: auto;
    transition: background-color 0.3s ease;
}

.select-ohne-pfeil {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: none !important;
  padding-right: 0.75rem !important; /* Abstand rechts */
}

.tab-bar {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    padding: 0.75rem 0.75rem;
    font-weight: 500;
    margin-right: 4px;
    font-size: 14px;
}

.navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
}

.navbar-toggler {
    display: none !important;
}

/* ✅ Spaltenbreiten steuern */
.table th:nth-child(1),
.table td:nth-child(1) {
    width: 120px;
    white-space: nowrap;
}
.table th:nth-child(2),
.table td:nth-child(2) {
    width: calc(100% - 120px);
}

.bs-select-readonly .btn {
    pointer-events: none !important;
    opacity: 0.7;
    filter: grayscale(30%);
    cursor: not-allowed !important;
}

#inhalt-7-1 input.staff-readonly {
    background-color: var(--bs-secondary-bg) !important;
    color: var(--bs-secondary-color) !important;
    opacity: 0.7;
    cursor: not-allowed;
}

#staffSkillsForm {
    padding: 1rem;
}

.staff-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.staff-skill-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 2rem;
}

.staff-skill-row label {
    flex: 1;
    min-width: 0;
}

.staff-skill-row input {
    width: 4.5rem;
    flex: none;
    text-align: center;
}

.staff-skill-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
    margin-top: .75rem;
}

.staff-skills-footer {
    margin-top: .5rem;
}

.staff-skills-footer output { min-width: 2rem; text-align: right; font-weight: 600; }

.staff-career-positions { height: 245px; overflow-y: auto; }

.staff-birth-picker { position: relative; }
.staff-birth-popup {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 1060;
    display: grid;
    grid-template-columns: 78px minmax(120px, 1fr) 88px;
    width: 340px;
    max-width: 90vw;
    padding: 6px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow);
}
.staff-birth-column + .staff-birth-column { border-left: 1px solid var(--bs-border-color); }
.staff-birth-heading {
    padding: 4px 6px;
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
    border-bottom: 1px solid var(--bs-border-color);
}
.staff-birth-options { height: 215px; overflow-y: auto; }
.staff-birth-option {
    display: block;
    width: 100%;
    padding: 4px 6px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font-size: .875rem;
    text-align: center;
}
.staff-birth-option:hover, .staff-birth-option:focus-visible {
    background: var(--bs-secondary-bg);
    outline: none;
}
.staff-birth-option.active,
.staff-birth-option.active:hover,
.staff-birth-option.active:focus-visible {
    background: var(--bs-primary);
    color: #fff;
}

@media (max-width: 767px) {
    .staff-skills-grid { grid-template-columns: 1fr; gap: .5rem; }
}
/* Farbfelder in der Ticket-Logopalette. */
.ticket-palette-swatch {
    display: inline-block;
    flex: 0 0 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid var(--bs-secondary-color);
    border-radius: .2em;
}
.ticket-palette-select-wrap { min-width: 0; }
.ticket-palette-trigger { display: flex; align-items: center; gap: .45rem; }
.ticket-palette-trigger::after { margin-left: auto; }
.ticket-palette-selected-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-palette-menu { min-width: 100%; max-height: 18rem; overflow-y: auto; }
.ticket-palette-choice { display: flex; align-items: center; gap: .45rem; }
.ticket-palette-selected-swatch {
    display: inline-block;
    flex: 0 0 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid var(--bs-secondary-color);
    border-radius: .2em;
}
.ticket-palette-swatch.is-empty,
.ticket-palette-selected-swatch.is-empty {
    background: linear-gradient(135deg, transparent 46%, var(--bs-danger) 47%, var(--bs-danger) 53%, transparent 54%);
}
.ticket-palette-label { width: 5.5rem; }
.ticket-palette-hex { width: 5.8rem; font-family: monospace; }
