body {
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
  "Segoe UI Symbol"; */
  font-family: Roboto;
  padding: 0;
  margin: 0;
  background: #ebebeb;
  overflow-x: hidden;
  color: #555555;
  overscroll-behavior: contain;
}

html {
  margin: 0;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

h1 {
    color: #555555;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
}

h2 {
  text-align: left;
  font-size: 24px !important;
  margin: 10px;
  font-weight: 500;
  margin-bottom: 20px;
}

h4 {
  padding: 0;
  margin: 0;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;

}

th, td {
  padding: 8px 12px;
  text-align: left;
}

.ranking-gender-title {
  font-size: 14px;
}

.rankingTableColumnHeader tr {
  border-bottom: 1px solid #55555520;
}

.dark-mode .rankingTableColumnHeader tr {
  border-bottom: 1px solid #ecedef10;
}

tbody tr {
  border-bottom: 1px solid #55555540;
}

.dark-mode tbody tr {
  border-bottom: 1px solid #ecedef20;
}

img {
  vertical-align: middle;
}

input[type="text"], input[type="number"] {
  padding: 5px;
  margin: 5px 0;
  width: 200px;
}

button {
  padding: 6px 12px;
  margin-top: 0px;
}

.buttonContactReset {
  flex:1; font-size: 15px;
  background: #f9f9f9;
  color: #555555;
  font-weight: bold;
}

.buttonContactSubmit {
  flex:1;
  font-size: 15px;
  font-weight: bold;
}

#membershipForm,
#contactForm {
  padding: 10px;
  background: #ebebeb;
  margin-top: 30px;
  border-radius: 20px;
  color: #555555 !important; 
  font-size: 14px;
  font-weight: 500;
}

.gradient-border-btn {
    display: block;
    cursor: pointer;
    color: white;
    margin: 0 auto;
    position: relative;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    overflow: hidden;
    padding: 7px;
    isolation: isolate;
    border: none;
    background: transparent;
    border-radius: 17px;
}

.gradient-border-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 100%;
    background: linear-gradient(115deg, #4fcf70, #78e3eb, #c8a3ec, #12bcfe, #44ce7b);
    background-size: 25% 100%;
    animation: gradient-slide 0.75s linear infinite;
    animation-play-state: running;
    translate: 0% 0%;             
}

@keyframes gradient-slide {
    to {
        transform: translateX(-25%);
    }
}

.gradient-border-btn span {
  position: relative;
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: #ffffff;
  border-radius: 3px;
  height: 100%;
  color: #209fc3;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}

.ptr--ptr {
	box-shadow: none !important;
	pointer-events: none;
	font-size: 14px !important;
	font-weight: bold;
	top: 0;
	height: 0;
	transition: height 0.2s, min-height 0.2s !important;
	text-align: center;
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	align-content: stretch;
}

.ptr--box {
	padding: 0 !important;
	flex-basis: 100%;
}

.ptr--pull {
	transition: none;
}

.ptr--text {
	margin-top: .33em;
  color: 55555590 !important;
}

.ptr--icon {
	color: 55555590 !important;
	transition: transform .3s;
}

/* When at the top of the page, disable vertical overscroll so passive touch listeners can take over. */
.ptr--top {
	touch-action: pan-x pan-down pinch-zoom;
}

.ptr--release .ptr--icon {
  margin-top: 50px !important;
	transform: rotate(180deg);
}

/* Standard: versteckt */
#refreshIndicator {
  display: none;
}

/* Nur Mobile anzeigen */
@media (max-width: 480px) {
  #refreshIndicator {
    display: flex;
  }
}

.page-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(2, 115, 208, 1) 0%, rgba(2, 115, 208, 1) 50%, rgba(0, 132, 212, 1) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.page-preloader.active {
  opacity: 1;
  pointer-events: auto;
}

.page-preloader .pagePreloaderspinner {
  width: 70px;
  height: 70px;
  border: 6px solid #0273d0;
  border-top: 6px solid #f9f9f9;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.ios-color-anchor {
  position: fixed;
  top: 0;
  height: calc(env(safe-area-inset-top) + 7px);
  width: 100%;
  background: #0273d0;
  z-index: 99999;
}

.wttWebFullPage {
  padding-top: calc(env(safe-area-inset-top) + 5px);
}

.toggleSign {
  margin-left: 10px;
  padding: 3px 8px;
  cursor: pointer;
  background: #ddd;
  border: none;
  border-radius: 4px;
}

.toggleSign:hover {
  background: #bbb;
}

#playersList div {
  margin-bottom: 0px;
}

#playersList input {
  width: 50px;
  height: 25px;
  font-size: 18px;
  text-align: center;
  border: 1px solid #f1f1f1;
  border-radius: 20px;
}

#playersList button {
  margin-left: 5px;
  padding: 4px 8px;
  cursor: pointer;
}

.center-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align-last: center;
}

.center-select option {
  text-align: center;
}

.no-arrow {

}

/* Container für Gender Switch */
.gender-switch-container {
  display: flex;
  top: 50px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  margin-bottom: 10px;
  gap: 5px;
}

.sporttype-switch-btn {
  padding: 7px 10px;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  background: #ebebeb;
  transition: 0.1s;
  font-size: 14px;
  color: #555555;
}

/* Aktiver Button */
.sporttype-switch-btn.active {
  background: #0273d0; 
  color: #f9f9f9;
}

/* Buttons Styling */
.gender-switch-btn {
  padding: 7px 10px;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  background: #ebebeb;
  transition: 0.1s;
  font-size: 14px;
  color: #555555;
}

/* Aktiver Button */
.gender-switch-btn.active {
  background: #0273d0; 
  color: #f9f9f9;
}

/* Buttons Styling */
.sport-type-btn {
  padding: 7px 10px;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  background: #ebebeb;
  transition: 0.1s;
  font-size: 14px;
  color: #555555;
  width: 100%;
}

/* Aktiver Button */
.sport-type-btn.active {
    background: #0273d0; 
    color: #f9f9f9;
}

.dark-mode .sporttype-switch-btn.active {
  background: #0273d0; 
  color: #f9f9f9;
}

.dark-mode .gender-switch-btn,
.dark-mode .sporttype-switch-btn,
.dark-mode .sport-type-btn {
  background: #000000;
  color: #f9f9f9;
}

.rankingTableColumnHeader {
  position: sticky;
  top: 105px;
  background: #f9f9f9;
  box-shadow: inset 0 -1px 0 #e4e4e4;
}

#ranking {
  width: 100%;
  margin: 0 auto;
}

#ranking table {
  width: 100%;
  border-collapse: collapse;
  background-color: #f1f1f1;
  box-shadow: #55555520 2px 2px 8px 0px;
}

#ranking th,
#ranking td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

#ranking th {
  background-color: #f5f5f5;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
}

#ranking img {
  vertical-align: middle;
  display: block;
}

.player-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.player-entry span {
  flex-shrink: 0;
}

.player-entry input {
  width: 60px;
  padding: 4px;
}

.player-entry button {
  background: #f44336;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  user-select: none;
}

.player-entry button:hover {
  background: #d32f2f;
}

#updatePointsForm button[type="submit"] {
  margin-top: 20px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 7px;
  border: none;
  background-color: #3ab57a;
  color: white;
  font-size: 14px;
}

#updatePointsForm button[type="submit"]:hover {
  background-color: #388e3c;
}

#playersList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-entry {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  background: #f1f1f1;
  padding: 10px;
  border-radius: 7px;
  box-shadow: #55555520 2px 2px 8px 0px;
}

.player-entry .col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-entry .col.name {
  flex-direction: column;
  text-align: left;
  justify-content: flex-start;
  align-items: flex-start;
}

.player-entry .col.points {
  flex-direction: column;
}

.player-entry input[type="number"] {
  width: 100%;
  padding: 5px;
  font-size: 14px;
}

.player-entry button.minusBtn {
  background-color: #f44336;
  border: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 8px 12px; 
  border-radius: 4px;
  cursor: pointer;
}

.col minus {
    width: 80px !important;
}

.player-entry button.minusBtn:hover {
  background-color: #d32f2f;
}

.player-entry .minusBtn {
  display: none;
}

.edit-mode .minusBtn {
  display: inline-block;
}

#toggleEditBtn {
  margin-bottom: 10px;
  padding: 6px 12px;
  background: #555;
  color: white;
  border: none;
  border-radius: 7px;
  cursor: pointer;
}

#toggleEditBtn.active {
  background: #d32f2f;
}

#addPlayerForm input,
#addPlayerForm select,
#addPlayerForm button {
  height: 40px;
  box-sizing: border-box;
  font-size: 14px;
  vertical-align: middle;
}

.addNewPlayer {
  background: #f1f1f1;
  border-radius: 20px;
  padding: 10px;
  box-shadow: #55555520 2px 2px 8px 0px;
  margin-top: 160px;
}

.updatePoints {
  margin-top: 20px;
  background: #f1f1f1;
  border-radius: 20px;
  padding: 10px;
  box-shadow: #55555520 2px 2px 8px 0px;
}

#updatePointsMessage {
    margin-top: 10px;
}

.ranking-header th {
  background-color: #e4e4e4 !important;
  color: #555555;
  font-weight: 400 !important;
  height: 20px;
}

#lastUpdate {
  font-size: 11px;
  color: #777777;
  text-align: end;
  margin-right: 10px;
}

.lang-tab {
  display: none;
}
.lang-tab.active {
  display: block;
}
.inner-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
  padding: 10px 10px 10px 0px;
  border-bottom: 1px solid #55555550;
  position: sticky;
  top: 240px;
  background: #ffffff;
  z-index: 1;
}
.inner-tab {
  padding: 6px 12px;
  cursor: pointer;
  background: #ecedef;
  border-radius: 50px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #555555;
  border: 1px solid #dfdfdf;
  width: 100%;
}
.inner-tab.active {
  background: #0273d0;
  color: #ecedef;
}

.lang-tab {
  display: none;
}

.lang-tab.active {
  display: block;
}

.lang-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
  padding: 10px 10px 10px 0px;
  border-bottom: 1px solid #55555550;
}

.lang-btn {
  padding: 6px 12px;
  cursor: pointer;
  background: #ecedef;
  border-radius: 50px;
  border: none;
  width: 100px;
  font-size: 16px;
  font-weight: 500;
  color: #555555;
  border: 1px solid #dfdfdf;
  width: 100%;
}

.lang-btn.active {
  background: #0273d0;
  color: #ecedef;
}

.lang-btn-settings {
  padding: 6px 12px;
  cursor: pointer;
  background: #cccccc;
  border-radius: 7px;
  border: none;
  width: 100px;
  font-size: 16px;
  font-weight: 500;
  color: #555555;
}

.lang-btn-settings.active {
  background: #0273d0;
  color: #ecedef;
}

.modal-lang-tabs {
  margin-top: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #55555550;
  padding: 10px 10px 10px 0px;
}

.headerAdmin {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(2, 115, 208, 1) 0%, rgba(2, 115, 208, 1) 50%, rgba(0, 132, 212, 1) 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0px 20px;
  gap: 8px;
  height: 120px;
}

.header2 {
  position: relative;
  background: linear-gradient(135deg, rgba(2, 115, 208, 1) 0%, rgba(2, 115, 208, 1) 50%, rgba(0, 132, 212, 1) 100%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
  gap: 8px;
  height: 150px;
  transition: height 0.4s ease-out;
}

.infoButtonRankingPoints {
  border: none;
  cursor: pointer;
  border-radius: 7px;
  transition: 0.1s;
  font-size: 12px;
  color: #0273d1;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.rankingUpdateButton {
  border: none;
  cursor: pointer;
  border-radius: 7px;
  transition: 0.1s;
  font-size: 14px;
  color: #555555;
  display: flex;
  align-items: center;
}

.dark-mode .rankingUpdateButton {
  color: #ecedef;
}

.infoIconRankingPoints {
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  flex-shrink: 0;
  border: 2px solid #555555;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #555555;
  text-align: end;
  cursor: pointer;
}

.dark-mode .infoIconRankingPoints {
  color: #ecedef;
  border: 2px solid #ecedef;
}

.rankingUpdateWrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  height: 20px;
}

.slider {
  position: absolute;
  inset: 0;
}

.slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slider img.active {
  opacity: 1;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(360deg,rgba(2, 115, 208, 0) 40%,rgb(2, 115, 208) 100%);
  z-index: 2;
}

.header {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  padding: 10px 15px;
  gap: 8px;
  height: 250px;
  transition: height 0.4s ease-out;
  overflow: hidden;
}

.header .logo {
  position: absolute;
  top: 40px;
  width: auto;
  height: 140px;
  object-fit: cover;
  z-index: 2 !important;
}

.headerInnerLogo {
  width: 100%;
  display: flex;
}

.logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.tabsAdmin {
  position: fixed;
  top: 180px;
  left: 0;
  right: 0;
  z-index: 1001;
  background: #ffffff;
  display: flex;
  height: 60px;

  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-left: 10px;
  margin-right: 10px;
  border-radius: 0px;
}

.tabsAdminBackground {
  background: #ffffff;
  z-index: 1000;
  position: fixed;
  margin: 0;
  height: 60px;
  width: 100%;
  top: 180px;
  box-shadow: #55555520 2px 2px 8px 0px;
  padding: 0px 10px 0px 10px;
}

.subHeader {
  position: sticky;
  top: 7px;
  left: 0;
  right: 0;
  z-index: 1001;
  background: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 15px;
  border-bottom: 0px solid #ddd;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  height: 50px;
  box-shadow: #55555520 2px 2px 8px 0px;
  margin-top: -50px;
}

.subHeaderInner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subHeaderBg {
  position: sticky;
  top: 0;
  height: 20px;
  background: #0273d0;
  z-index: 1000;
}

.subHeader h1 {
  margin: 0;
  font-size: 17px !important;
}

.subHeader .right-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.welcomeTextHeader {
  font-size: 14px;
  color: #5555559f;
  margin-top: -7px;
}

.subHeaderAdmin {
  border-bottom: 0px solid #ddd;
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  z-index: 1001;
  background: #f1f1f1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  height: 80px; 
}

.cookieBanner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #f9f9f9;
  border: none;
  padding: 15px 20px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
  border-radius: 20px;
  display: none;
  z-index: 9000;
  max-width: 500px;
  margin: auto;
}

.customToggleSideBar {
  margin-left: 5px;
}

.social-share-block {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  border-radius: 0 8px 8px 0;
  transition: width 0.7s ease;
  overflow: hidden;
  z-index: 1000;
  width: 100px;
  margin-left: -5px;
}

.social-share-block.collapsed {
  width: 30px;
}

.toggle-btn {
  height: 60px;
  width: 20px;
  border: none;
  background: #555555;
  color: #f1f1f1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s;
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
}

.social-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #f1f1f1;
  display: flex;
  justify-content: center;
  padding: 0px 0;
  height: 85px;
}

.tabMen {
    border-top-left-radius: 0px;
}

.tabWomen {
    border-top-right-radius: 0px;
}

#storyCameraBtn {
  background-color: #ebebeb;
  color: #4b4c4e;
  font-weight: bold;
}

.tab-text {
  font-size: 12px;
  text-align: center;
}

.tab-button-desktop {
  display: flex;             
  flex-direction: row;       
  align-items: center;
  justify-content: center;
  gap: 6px;                  
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #555555;
  transition: all 0.2s ease;
}

.tab-button-desktop i {
  font-size: 18px;
  margin: 0;
}

.tab-button-desktop span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.tab-button-desktop.active {
  background: #ebebeb;
  border-radius: 20px;
  color: #0273d0;
}

.tab-button {
  flex: 1;
  padding: 8px 0;
  border: none;
  background-color: #0273d0;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  color: #f1f1f1;
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
}

.tab-button i {
  font-size: 22px;
  margin-top: -10px;
}

.tab-button span {
  font-size: 10px;
  font-weight: 500;
  margin-top: 5px;
  letter-spacing: 0rem;
}

.tab-button.active {
  border-top: 4px solid #74b731;
  background: #f9f9f9;
  color: #0273d0;
}

.tab-button-admin {
  padding: 10px 10px 10px 10px;
  background-color: #ffffff;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 18px;
  border-radius: 4px 4px 0 0;
  color: #555555;
  border-bottom: 4px solid transparent;
  margin-right: 4px;
}

.tab-button-admin2.active2 {
  color: #555555;
  border-bottom: 4px solid #0273d0;
  background-color: #f1f1f1;
}

.tab-button-admin.active {
  color: #f1f1f1;
  border-bottom: 4px solid #9ed647;
  background-color: #0273d0;
}

.last-update {
  font-size: 12px;
  color: #8d8e90;
  text-align: end;
}

.accordion {
  border-radius: 7px;
  margin: 1rem 0;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 0px solid #ccc;
}

.accordion-toggle {
  background-color: #0273d0;
  color: #f1f1f1;
  font-weight: 500;
  padding: 12px 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 18px;
  transition: background 0.3s;
  margin-top: 10px;
  border-radius: 20px;
}

.accordion-toggle:hover {
  background-color: #f1f1f1;
  color: #555555;
}

.accordion-toggle.active {
  background-color: #555555;
  color: #f1f1f1;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background-color: #f1f1f1;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px;
}

.accordion-content.open {
  padding: 14px;
  max-height: 100%;
}

.year-accordion {
  overflow: hidden;
}

.accordion-header2 {
  cursor: pointer;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  color: #555555;
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 15px;
}

.accordion-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 15px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  color: #555555;
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 10px;
  gap: 10px;
}

.dark-mode .accordion-header {
  background: #171c1f;
  color: #ecedef;
}

.accordion-news-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.accordion-news-content.open {
  padding: 14px;
  max-height: 100%;
}

.accordion-news-toggle {
  color: #f1f1f1;
  font-weight: 500;
  cursor: pointer;
  width: 0;
  text-align: left;
  border: none;
  outline: none;
  font-size: 18px;
  transition: background 0.3s;
  border-radius: 20px;
}

.accordion-news-toggle:hover {
  background-color: #f1f1f1;
  color: #555555;
}

.accordion-news-toggle.active {
  background-color: #555555;
  color: #f1f1f1;
}

.stats-section {
  display: block;
  margin-right: 10px;
  margin-left: 10px;
  margin-top: 265px !important;
  margin-bottom: -180px !important;
}

#rankingContainer {
  margin-bottom: 10px;
  padding: 0px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
}

#adminContent {
  margin-top: 240px !important;
  padding: 5px;
  margin: 5px;
}

#adminContent h2 {
  margin-bottom: 30px !important;
  margin: 0;
  margin-top: 20px !important;
  font-size: 22px !important;
}

.tabBlockDiv h2 {
  margin-bottom: 30px !important;
  margin: 0;
  margin-top: 20px !important;
}

#messageBox.hidden {
    display: block;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.textLink {
  font-size: 14px;
  font-weight: bold;
  color: #555555;
}

.buttonIconRetweet {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #555555;
}

.buttonIconRetweet:hover {
  color: #007bff;
}

#restoreBackupBtn  {
  height: 40px;
  border: none;
  background: #3ab57a;
  color: #f1f1f1;
  font-size: 14px;
  border-radius: 50px;
}

#restoreBeachTennisBackupBtn  {
  height: 40px;
  border: none;
  background: #3ab57a;
  color: #f1f1f1;
  font-size: 14px;
  border-radius: 50px;
}

#closeBackupModalBtn  {
  height: 40px;
  border: none;
  background: #e35c47;
  color: #f1f1f1;
  font-size: 14px;
  border-radius: 50px;
}

.tournamentInfoIcon {
  font-size: 26px;
}

.tournamentDrawIcon {
  font-size: 26px;
}

.tournamentsInfoText {
  padding: 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  color: #555555;
  font-size: 14px;
  line-height: 22px;
}

.tdClassTournamentsNumberTable {
  padding-left: 10px; 
  vertical-align: top !important;
  padding: 13px 5px 10px 10px !important;
}

.tournament-details-vertical {
  line-height: 30px;
  font-size: 14px;
}

.tournament-details {
  height: 0;
  overflow: hidden;
  transition: height 0.5s ease;
  background: #f9f9f9;
  font-size: 14px;
}

.tournament-details.open {
  height: auto;
}

#tournamentSection ul {
  list-style: none;
  padding: 0;
}

.tournamentSection {
  margin-bottom: 10px;
}

.tableCustomHeight {
  height: 70px !important;
  cursor: pointer;
}

.tournament-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 14px !important;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  color: #555555;
  line-height: 22px;
}

.tournament-table th {
  text-align: left;
  border-bottom: 1px solid #f1f1f1;
  color: #555555;
  font-weight: 600 !important;
  height: 20px;
  font-size: 14px;
}

.tournament-table tbody tr {
  height: 50px;
  border-bottom: 1px solid #ebebeb;
}

.ranking-title {
  text-align: left;
  font-size: 24px;
  margin: 2px;
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 20px;
}

.ranking-headline {
  text-align: left;
  font-size: 20px;
  margin: 10px;
  font-weight: 500;
  margin-bottom: 17px;
  height: 28px;
  margin-right: 0;
}

.ranking-headline-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.ranking-headline-wrapper h2 {
  margin: 0;
}

.ranking-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 100%;
  justify-content: flex-end;
  height: 50px;
}

.ranking-search-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #555;
  margin-right: -4px;
}

.ranking-search-input {
  position: absolute;
  right: 0;
  top: 0;
  height: 40px;
  width: 0;
  opacity: 0;
  padding: 0 8px;
  border: 1px solid #55555590;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
  margin: 0 !important;
}

.ranking-input-ui {
  padding: 8px;
  box-sizing: border-box;
  height: 50px;
  font-size: 14px;
  border: none;
  background: #ebebeb;
  color: #555555;
  text-align: left;
  flex: 1;
  width: 100%;
  border-bottom: 1px solid #55555590;
}

.ranking-search-input.active {
  display: block;
  opacity: 1;
  right: 40px; 
  width: calc(100% - 40px);
  border-radius: 0 !important;
}

.ranking-search-input:focus {
  outline: none;
  box-shadow: none;
  border-color: #55555590;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ranking-table th.rank,
.ranking-table td.rank { width: 40px; }
.ranking-table th.player,
.ranking-table td.player { width: auto; }
.ranking-table th.points,
.ranking-table td.points { width: 50px; }

.tournament-place {
  font-size: 12px;
  color: #777;
}

.refresh-button {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #555555;
  position: relative; 
  margin: 2px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-button:hover {
  color: #555555;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  text-decoration: none;
  color: inherit;
}

.mobile-menu hr.hrLineMenu {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0;
}


.menu-button {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #555555;
  padding: 0;
  width: 20px;
}

.menu-dropdown {
    position: static;
    display: inline-block;
    text-align: end;
    margin-top: 10px;
}

.hrLineFooter {
  background: #55555540; 
  width: 100%; 
  border: none; 
  height: 1px; 
  margin-top: 5px; 
  margin-bottom: 5px;
}

.hrLineMenu {
  background: #55555540;
  border: none;
  height: 1px;
  margin: 5px;
}

.hrLineMenuTransparent {
  background: #55555500;
  border: none;
  height: 1px;
  margin: 5px;
}

.hrLine {
  background: #55555540;
  width: 170px;
  border: none;
  height: 1px;
}

.hrNewsLine {
  background: #55555540;
  width: 100%;
  border: none;
  height: 1px;
  margin-top: 20px;
}

.hrMarginLine {
  background: #55555540;
  width: 100%;
  border: none;
  height: 1px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.hrTournamentsLine {
  background: #55555540;
  width: 100%;
  border: none;
  height: 1px;
  margin-top: 20px;
}

hr {
  margin-block-start: 0;
  margin-block-end: 0;
}

.inline-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px !important;
  color: #55555590 !important
}

.dark-mode .inline-title {
  color: #ecedef80 !important
}

.inline-header {
  height: 68px;
  position: sticky;
  top: 55px;
  background: #ebebeb;
  z-index: 9999;
  margin-top: -10px;
}

.dark-mode .inline-header {
  background: #000000;
}

.openSettings {
  color: #f9f9f9 !important;
  background: #0d0f10;;
  margin-top: 0;
}

.dropdown-content {
  position: fixed;
  right: 0;
  width: 200px;
  height: auto;
  background-color: #f9f9f9;
  transform: translateX(100%);
  transition: transform 0.5s ease;
  z-index: 2000;
  overflow-y: auto;
}

.dropdown-content.open {
  transform: translateX(0);
}

.dropdown-overlay {
  position: fixed;
  left: 0;
  width: 100vw;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1990;
  backdrop-filter: blur(0px);
}

.dropdown-overlay.show {
  opacity: 1;
  visibility: visible;
  display: block;
}

.dropdown-content a {
  color: #555555;
  padding: 15px 15px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  text-align: right;
}

.dropdown-content a i {
  margin-left: 10px;
}

.dropdown-content a:hover {
    color: #0273D0;
}

.tournament-table th, .tournament-table td {
  border: 0;
  padding: 7px;
  border-top: 1px solid #dadada;
  vertical-align: top;
}

.tournament-table th {
  text-align: left;
}

.rules-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.rules-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rules-info-icon {
  width: 15px;
  height: 15px;
  border: 2px solid #555555;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #555555;
}

.dark-mode .rules-info-icon {
  border: 2px solid #ecedef;
  color: #ecedef;
}

.fa-info:before {
  content: "\f129";
}

#rulesToggle {
  padding: 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  color: #555555;
  font-size: 14px;
  line-height: 22px;
}

#rulesContent {
  background: rgb(249, 249, 249);
  border-radius: 0px 0px 20px 20px;
  box-shadow: rgba(85, 85, 85, 0.125) 2px 2px 4px 0px;
  color: rgb(85, 85, 85);
  font-size: 14px;
  line-height: 20px;
  margin-top: -30px;
  padding: 5px 10px 5px 10px;
  font-size: 12px;
  color: #55555590;
  margin-bottom: 15px;
}

.draw-true {
  color: #0273d0;
  cursor: pointer;
}

.draw-false {
  color: #555555;
  cursor: pointer;
}

.reg-true {
  color: #0273d0;
  cursor: pointer;
}

.reg-false {
  color: #555555;
  cursor: pointer;
}

.buttonAddNewTournament {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 7px;
  border: none;
  color: white;
  font-size: 14px;
}

.titleExistingTournament {
    margin-top: 0px;
}

.dropdownAdmin {
  position: relative;
  display: inline-block;
}

.fa-chart-line {
  margin-left: 5px;
}

.fa-database{
  margin-left: 5px;
}

.dropdown-menu-admin {
  display: none;
  position: absolute;
  right: 0;
  background: #ffffff;
  min-width: 160px;
  box-shadow: #55555520 2px 2px 8px 0px;
  z-index: 1000;
  border-radius: 20px;
}

.dropdown-menu-admin.show {
  display: block;
}

.dropdown-menu-admin button {
  width: 100%;
  text-align: end;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
}

.dropdown-menu-admin button:hover {
  color: #0273D0;
}

.dropdown-item-admin {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  height: 50px;
  font-weight: 500;
  color: #555555;
}

.dropdown-item-admin:hover {
  color: #0273D0;
}

.dropdownAdmin.show .dropdown-menu-admin {
  display: block;
}

.accordion-toggle-addNewPlayer {
    margin-top: 4px;
}

#eventsContainer .accordion-section {
    flex: 0 0 100%;
    width: 100%;
    display: block;
}

#pastToggle2025 {
  cursor: pointer;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  color: #555555;
  font-size: 14px;
  line-height: 22px;
}

#pastToggle2026Beach {
  cursor: pointer;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  color: #555555;
  font-size: 14px;
  line-height: 22px;
}

#pastToggle2025Beach {
  cursor: pointer;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  color: #555555;
  font-size: 14px;
  line-height: 22px;
}

#pastToggle2026 {
  cursor: pointer;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  color: #555555;
  font-size: 14px;
  line-height: 22px;
}

#pastToggleNews2025 {
  cursor: pointer;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  color: #555555;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
}

#pastContentNews2025 {
  flex-direction: column;
  gap: 20px;
  padding: 15px 0px 15px 0px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

#pastToggleNews2026 {
  cursor: pointer;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  color: #555555;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
}

.dark-mode #pastToggle2026Beach {
  background: #171c1f;
  color: #ecedef;
}

.dark-mode #pastToggle2025Beach {
  background: #171c1f;
  color: #ecedef;
}

#pastContentNews2026 {
  flex-direction: column;
  gap: 20px;
  padding: 15px 0px 15px 0px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

#pastContentNews2026 img {
  height: 200px !important;
}

#pastContentNews2026 .event-card {
  height: 200px !important;
}

#pastContentNews2025 img {
  height: 200px !important;
}

#pastContentNews2025 .event-card {
  height: 200px !important;
}

.placeDropdown {
  width: -webkit-fill-available;
  padding: 8px;
  box-sizing: border-box;
  height: 50px;
  font-size: 14px;
  border: none;
  background: #f1f1f1;
  color: #555555;
  text-align: left;
} 

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-group textarea {
  padding: 20px !important;
  border-radius: 20px;
}

.form-group label {
  font-weight: bold;
}

form button {
  background: #0273D0;
  color: white;
  border: none;
  padding: 10px 10px;
  font-size: 18px;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  /* height: 50px; */
  font-size: 14px;
  border: none;
  background: #f1f1f1;
  color: #555555;
  text-align: left;
  margin-top: 4px; 
}

.form-group select {
  appearance: none;
  line-height: 22px;
}

.wiseLogo {
  margin-top: -12px;
}

.form-group input {
  width: -webkit-fill-available;
  padding: 20px;
  box-sizing: border-box;
  /* height: 50px; */
  font-size: 14px;
  border: none;
  background: #f1f1f1;
  color: #555555;
  text-align: left;
  border-radius: 20px;
}

.form-group select {
  width: -webkit-fill-available;
  padding: 10px;
  box-sizing: border-box;
  height: 50px;
  font-size: 14px;
  border: none;
  background: #f1f1f1;
  color: #555555;
  text-align: left;
}

#addPlayerCountry {
  background: #fff !important;
}

.contactInput {
  width: -webkit-fill-available !important;
  padding: 8px;
  box-sizing: border-box;
  height: 50px;
  font-size: 14px;
  border: none;
  background: #ffffff;
  color: #555555;
  text-align: left;
  margin-top: 10px !important;
}

.inputYourName {
  width: -webkit-fill-available !important;
  padding: 8px;
  box-sizing: border-box;
  height: 50px;
  font-size: 14px;
  border: none;
  background: #ffffff;
  color: #555555;
  text-align: left;
  margin-top: 10px !important;
}

.share-popup {
  position: absolute;
  z-index: 2000;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 20px;
  display: flex;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  text-align: end;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: -100px;
  margin-right: -100px;
  border: 1px solid #ecedef20;
}

.share-popup a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #555555;
  text-align: end;
  justify-content: flex-end;
  margin: 8px;
}

.share-popup a.facebook   { color: #1877f2; }
.share-popup a.whatsapp   { color: #25d366; }
.share-popup a.instagram  { color: #e4405f; }
.share-popup a.telegram   { color: #0088cc; }
.share-popup a.twitter    { color: #000000; }

.fa-facebook { color: #1877f2; }
.fa-square-facebook  { color: #1877f2; }
.fa-whatsapp   { color: #25d366; }
.fa-instagram  { color: #e4405f; }
.fa-telegram   { color: #0088cc; }
.fa-twitter    { color: #000000; }

.share-popup a:hover {
  opacity: 0.5;
}

.share-popup i {
  margin-right: 8px;
  font-size: 26px !important;
}

.share-popup-events {
  position: absolute;
  z-index: 2000;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 20px;
  display: flex;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  text-align: end;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 100px;
  right: 10px;
}

.share-popup-events a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #555555;
  text-align: end;
  justify-content: flex-end;
  margin: 8px;
}

.share-popup-events a.facebook   { color: #1877f2; }
.share-popup-events a.whatsapp   { color: #25d366; }
.share-popup-events a.instagram  { color: #e4405f; }
.share-popup-events a.telegram   { color: #0088cc; }
.share-popup-events a.twitter    { color: #000000; }

.share-popup-events a:hover {
    opacity: 0.5;
}

.share-popup-events i {
  margin-right: 8px;
  font-size: 26px !important;
}

.event-share-wrapper {
  display: flex;
  justify-content: flex-end;
}

.share-btn-events {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #555555;
  font-size: 14px;
  font-weight: 600;
  padding: 0px 0px 0px 0px;
}

.share-btn-events i {
    font-size: 16px;
}

.shareTxt {
  font-size: 16px;
}

.share-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
  background: #f9f9f9;
  text-align: end !important;
  justify-content: end;
}

.share-btn i {
  font-size: 18px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -10px;
  margin-bottom: -15px;
}

.newsDate {
  font-size: 12px !important;
  color: #55555590 !important;
}

.newsCategory {
  font-size: 12px;
  color: #555555;
  font-weight: 500;
  background: #55555515;
  padding: 5px;
  border-radius: 7px;
}

.newsCategorySelect {
  font-size: 14px;
  border: none;
  background: #ebebeb;
  padding: 7px 10px;
  color: #555555;
  border-radius: 50px;
}

.news-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  padding-left: 10px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
}

.back-to-news-btn {
  padding: 8px 8px;
  border: none;
  cursor: pointer;
  border-radius: 20px;
  background: #f9f9f9;
  transition: 0.1s;
  font-size: 14px;
  color: #0273d0;
}

.back-to-news-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.tab-btn {
  padding: 8px 8px;
  border: none;
  cursor: pointer;
  border-radius: 7px;
  background: #f9f9f9;
  transition: 0.1s;
  font-size: 14px;
  color: #0273d0;
}

.tab-btn.active {
  background: #0273d0;
  color: #f9f9f9;
}

.events-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.share-icons {
  display: flex;
  gap: 30px;
}

.share-icons a {
  font-size: 20px;
  color: #555555;
  transition: color 0.2s;
}

.share-icons a.facebook   { color: #1877f2; }
.share-icons a.whatsapp   { color: #25d366; }
.share-icons a.instagram  { color: #e4405f; }
.share-icons a.telegram   { color: #0088cc; }
.share-icons a.twitter    { color: #000000; }

.news-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid #e0e0e0;
  padding-top: 5px;
}

.news-actions .read-more-btn,
.news-actions .share-btn {
  flex: 1;
  padding: 0;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left !important;
  color: #555555;
  max-width: fit-content;
}

.news-actions .share-btn {
    text-align: right;
}

.player-table {
  width: -webkit-fill-available;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}

.player-table th,
.player-table td {
  border: 1px solid #f1f1f1;
  text-align: left;
}

.titleExistingPlayers {
  text-align: left;
}

.monthFilterRow {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: end;
    margin-right: 10px;
}

/* Text oben */
.monthFilterLabel {
    font-size: 14px;
}

/* Select + X */
.monthFilterControls {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Select */
.monthFilterControls select {
    flex: 1 1 auto;
}

.monthFilterBtn {
  cursor:pointer; 
  display:flex; 
  align-items:center;
  gap:5px;
  font-size: 14px;
  border: none;
  background: #ebebeb;
  color: #0273d0;
  border-radius: 7px;
  padding: 5px 10px;
}
.dark-mode .monthFilterBtn {
  background: #000000;
  color: #ecedee;
}

.monthFilterAccordion {
  display: none;
  top: 90%;
  right: 10px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 20px;
  position: absolute;
  width: 200px;
  box-shadow: #55555520 0 0 5px 5px;
  border: 1px solid #e4e4e4;
}
 
.dark-mode .monthFilterAccordion {
  background: #272c34;
  border: 1px solid #00000050;
  box-shadow: none;
}

.dark-mode .clearMonthFilter {
  background: #000000;
  color: #ecedef;
}

.clearMonthFilter {
  font-size: 14px;
  border: none;
  background: #f9f9f9;
  color: #0273d1;
  border-radius: 50px;
  cursor: pointer;
  padding: 5px 10px;
  margin-left: 5px;
} 

.month-filter-btn {
  background: #ebebeb;
  color: #0273d0;
  border-radius: 7px;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  position: relative;
}

/* AKTIVER FILTER */
.month-filter-btn.active {
  background: #0273d0;
  color: #fff;
}

.ranking-tabs {
  display: none;
  position: sticky;
  top: 55px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  margin-bottom: 10px;
  z-index: 99;
  height: 30px;
}

.ranking-tabs-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ranking-subtab {
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: #f9f9f9;
  font-size: 16px;
  color: #555555;
  width: 120px;
  margin-bottom: -10px;
  padding: 10px;
}

.ranking-subtab.active {
  color: #0273d0 !important;
  border-bottom: 2px solid #0273d0;
}

.homeContainerInner {
  padding: 0 0px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
}

.friends-logos {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.friends-logos img{
  width: 100px;
  border-radius: 20px;
}

.footerContent {
  text-align: center;
  padding: 20px 0;
  margin-bottom: 85px !important;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-links a {
  text-decoration: none;
  color: #55555590;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #0273d0;
}

.update-toggle {
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .2s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #f1f1f1;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #0273D0;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

.updatePointsBtn {
  background-color: #3ab57a;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.toggle-label {
  margin-right: 7px;
  font-weight: bold;
  font-size: 14px;
}

.update-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
}

#idUpdatePointsBtn {
  position: static;
}

.inputFieldsPoints {
  font-size: 14px;
  background: #f1f1f1;
  border-radius: 20px;
  border: none;
  text-align: center !important;
  width: 40px !important;
  height: 30px;
}

.switchLabel {
  margin-left: 5px;
  font-size: 14px;
}

.tabBlockDiv {
  padding: 10px;
  background: #ffffff;
  margin-top: 20px;
  border-radius: 20px;
  width: -webkit-fill-available;
  box-shadow: #55555520 2px 2px 8px 0px;
}

.tabBlockPlayersUpdatePoints {
  padding: 10px;
  background: #f1f1f1;
  margin-top: 20px;
  border-radius: 20px;
  width: -webkit-fill-available;
  box-shadow: #55555520 2px 2px 8px 0px;
}

#newPlayerForm {
  margin-top: 30px;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 20px;
  background: #ebebeb;
}

.dark-mode #newPlayerForm {
  background: #272c35;
}

.tabBlockPlayersAddNewPlayer {
  padding: 10px;
  background: #f1f1f1;
  margin-top: 20px;
  border-radius: 20px;
  width: -webkit-fill-available;
  box-shadow: #55555520 2px 2px 8px 0px;
}

.tabButtonMenu {
  margin-left: 0px;
}

.dropdown-toggle {
  background-color: transparent !important;
}

.search-bar {
  margin-bottom: -10px;
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 15px;
}

#playerSearchInput, #rankingSearchInput {
  padding: 8px;
  box-sizing: border-box;
  height: 50px;
  font-size: 14px;
  border: none;
  background: #f1f1f1;
  color: #555555;
  text-align: left;
  flex: 1;
  width: 100%;
}

#clearSearchBtn_Version2 {
  background: #0273d0;
  border: none;
  padding: 5px 10px;
  font-size: 18px;
  cursor: pointer;
  font-size: 25px;
  color: #f1f1f1;
  border-radius: 20px;
  margin-left: 5px;
}

#clearSearchBtn {
  border: none;
  height: 50px;
  background: #f1f1f1;
  color: #555555;
  font-size: 30px !important;
  border-radius: 7px;
}

.inputEditPlayer {
  width: 80px !important;
  border: 1px solid #b8b8b8;
  background: #f1f1f1;
  height: 30px;
}

.selectEditPlayer select {
  width: 50px !important;
  border: 1px solid #b8b8b8;
  background: #f1f1f1;
  height: 42px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 2px;
  text-align: center;
}

.updateRankingReset-btn {
  background: #f1f1f1 !important;
  color: #555555 !important;
}

.updateRanking-btn {
  cursor: pointer;
  color: #0273d0;
  transition: color 0.2s ease;
  width: 50px;
  height: 50px;
  text-align: center;
  background: #f1f1f1;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 18px;
}

.delete-btn {
  cursor: pointer;
  color: #555555;
  transition: color 0.2s ease;
  width: 40px;
  height: 40px;
  text-align: center;
  background: #f1f1f1;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 18px;
}

.selectEditPlayer {
  text-align: center !important;
}

.selectGenderEditPlayer {
  width: 50px !important;
  border: 1px solid #b8b8b8;
  background: #f1f1f1;
  height: 42px;
  border-radius: 0%;
}

.country-cell-center {
  text-align: center !important;
}

.edit-btn {
  width: 40px;
  height: 40px;
  text-align: center;
  background: #f1f1f1;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 18px;
  color: #555555;
}

.rankings-controls {
	display: flex;
	align-items: center;
  position: sticky;
  top: 293px;
  background: #ffffff;
  z-index: 1;
}

.search-bar-updatePoints {
	flex: 7;
	display: flex;
	align-items: center;
}

.update-btn-wrapper {
	flex: 3;
	display: flex;
	justify-content: flex-end;
  height: 50px;
}

.registrationPlayerContainer {
  margin-top: 30px;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 20px;
  background: #ebebeb;
}

.registerBtn {
  background: #e35c47;
}

.switch-player {
  background: #0273D0;
  color: #f1f1f1;
  border: none;
  padding: 5px;
  font-size: 15px !important;
  border-radius: 7px;
  cursor: pointer;
  width: 100%;
  height: 50px;
  border-bottom: 4px solid #0273D0;
}

.switch-player.active {
  border-bottom: 4px solid #9ed647;
}

#playerGender {
  width: -webkit-fill-available;
  padding: 8px;
  box-sizing: border-box;
  height: 50px;
  font-size: 14px;
  border: none;
  background: #ffffff;
  color: #555555;
  text-align: left;
  margin-top: 10px;
}

.selectStatsPeriod {
  width: 50%;
  padding: 8px;
  box-sizing: border-box;
  font-size: 14px;
  border: none;
  background: #f1f1f1;
  color: #555555;
  text-align: left;
}

#scrollTopBtn {
  position: fixed;
  bottom: 95px;
  right: 8px;
  z-index: 999;
  background-color: #0273d050;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 20px;
  display: none;

  transition: background-color 0.3s, transform 0.2s;
}

#scrollTopBtnAdmin {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9100;
  background-color: #0273d0;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 20px;
  display: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.2s;
}

#scrollTopBtnAdmin:hover {
  background-color: #0061b1;
  transform: translateY(-4px);
}

#scrollTopBtn:hover {
  background-color: #0061b1;
  transform: translateY(-4px);
}

#clearRankingSearchBtn {
  border: none;
  height: 50px;
  background: #f1f1f1;
  color: #555555;
  font-size: 30px !important;
  border-radius: 7px;
  margin-left: 5px;
}

.logoutButton {
  background-color: #f1f1f1;
  right: 15px;
  position: absolute;
  border: none;
  font-size: 20px;
  font-weight: bold;
  color: #0273d0;
  border-radius: 7px;
  height: 40px;
  top: 15px;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.changeNewsImgBlock {
  background-color: #f1f1f1;
  padding: 10px;
}

.statusMessage {
  display: none;
  padding: 15px;
  width: -webkit-fill-available;
  text-align: center;
  color: #ecedef;
  border-radius: 20px;
  margin-top: 10px;
  font-weight: 500;
}

.statusMessage.success {
  background: #3ab57a;
}

.statusMessage.error {
  background: #e74c3c;
}

.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

.spinner {
  color: #0273d0;
  width: 4px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 19px 0 0 7px, 38px 0 0 3px, 57px 0 0 0;
  transform: translateX(-38px);
  animation: l21 .5s infinite alternate linear;
}

@keyframes l21 {
  50%  {box-shadow: 19px 0 0 3px, 38px 0 0 7px, 57px 0 0 3px}
  100% {box-shadow: 19px 0 0 0  , 38px 0 0 3px, 57px 0 0 7px}
}

.image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-wrapper .news-main-image {
    width: 100%;
    display: block;
}

.image-wrapper {
  position: relative;
}

/* Overlay unten */
.event-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  margin-left: -10px !important;
  margin-right: -10px !important;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 20%, rgba(0, 0, 0, 0) 100%);
  color: #ecedef;
  width: calc(100% + -10px) !important;
  margin-bottom: 10px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  height: 120px;
  display: flex;
  align-items: flex-end;
}

/* Zeile 1 – Datum */
.event-overlay-date {
  display: inline-block;
  background: rgba(0,0,0,0.8);
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  margin-bottom: 6px;
}

/* Zeile 2 – 70 / 30 */
.event-overlay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: -webkit-fill-available;
}

/* Titel links */
.event-overlay-title {
  width: 70%;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

/* Actions rechts */
.event-overlay-actions {
  width: 30%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Icon Buttons */
.event-overlay-actions button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #ecedef;
  color: #ecedef;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #ecedef;
  display: flex;
  flex-direction: column-reverse; /* Text startet unten */
  transition: transform 0.3s ease;
}

.image-title-overlay h2 {
  margin: 0;
  line-height: 1.2;
}

.news-main-image {
  width: 100%;
  display: block;
}

.event-date-badge {
  position: absolute;
  top: -15px;
  right: -10px;
  background: linear-gradient(135deg, rgba(2, 115, 208, 1) 0%, rgba(2, 115, 208, 1) 50%, rgba(0, 132, 212, 1) 100%);
  color: white;
  font-size: 24px;
  font-weight: 600;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 20px;
  z-index: 10;
  width: 70px;
  height: 30px;
  justify-content: center;
  align-items: center;
  display: flex;
  padding: 15px 10px;
  flex-direction: column;
  line-height: 1;
}

.event-date-badge small {
  display: block;
  font-size: 14px;
  line-height: 1;
  margin-top: 2px;
  width: 100%;
  color: #ffffff90;
}

.marquee-separator {
  width: 5px;
  height: 5px;
  margin: 12px 10px 15px 15px;
  background: #ecedef;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.8;
}

.marquee-container {
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 15px;
  border-radius: 0px;
  background: #0273d0;
  gap: 10px; 
  font-size: 14px;
  margin-bottom: -5px;
  height: calc(env(safe-area-inset-top) + 7px);
  position: relative;
  z-index: 999;
}

.marquee-fixed {
  flex-shrink: 0; 
  font-weight: 600;
  white-space: nowrap;
  font-size: 14px;
  color: #ecedef;
}

.dark-mode .marquee-fixed {
  color: #ecedef;
}

.marquee-scroller {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.marquee-event-link {
  font-size: 14px !important;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  pointer-events: auto;
  color: #ecedefc9;
  margin-top: 4px;
}

.marquee-track.running {
  animation: marqueeAnim linear infinite;
}

.marquee-scroller:hover .marquee-track.running {
  animation-play-state: auto;
  cursor: pointer;
}

.image-title-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 40px;
}

.news-main-image {
  width: 100%;
  height: auto;
  display: block;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 99999;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 50%;
  height: 300px;
  transform: scale(0.95);
  transition: transform 0.4s ease;
  box-shadow: #00000021 0 0 20px 10px;
}

.image-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.image-modal.active img {
  transform: scale(1);
}

.image-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

.modal-share a.facebook   { color: #1877f2; }
.modal-share a.whatsapp   { color: #25d366; }
.modal-share a.instagram  { color: #e4405f; }
.modal-share a.telegram   { color: #0088cc; }
.modal-share a.twitter    { color: #000000; }

.modal-tab.active {
  background: #f9f9f9;
}

.modal-player-card {
  display: flex;
  align-items: center;
  gap: 25px;
  box-sizing: border-box;
  padding: 15px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(235, 235, 235, 1) 100%);
  margin-top: -15px;
  height: 170px;
  width: calc(100% + 20px) !important;
  margin-left: -10px !important;
  margin-right: -20px !important;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
}

.block-card .modal-player-card img {
  width: 100% !important;
  height: 100% !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  margin: 0 !important;
}

.modal-player-tabs {
  display:flex; 
  background: #ebebeb;
  margin-top: -10px;
  width: calc(100% + 20px) !important;
  margin-left: -10px !important;
  margin-right: -20px !important;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  margin-bottom: 10px;
}

.news-image-latest {
  position: absolute;
  top: 0px;
  left: -10px;
  background: #0273d0;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 10px;
  text-transform: uppercase;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 10px;
}

.news-image-wrapper {
  position: relative;
}

.dark-mode .news-image-category {
  background: #000000a1 !important;
}

.authorPhoto {
  font-size: 12px !important;
  color: #55555590 !important;
  border-bottom: 1px solid #e0e0e0;
}

.dark-mode .authorPhoto {
  color: #ecedef80 !important;
  border-bottom: 1px solid #272c34;
}

.shortTextFirstNews {
  margin-top: -10px;
}

.news-image-category {
  position: absolute;
  top: 10px;
  right: 0px;
  z-index: 3;
  color: #ecedef;
  font-size: 12px;
  color: #555555;
  font-weight: 500;
  background: #f9f9f9c4 !important;
  padding: 5px;
  border-radius: 7px;
}

.news-image-overlay {
  display: none; 
  pointer-events: none;
}

.news-image-title {
  display: block;
}

@media (min-width: 451px) {
  .news-image-category {
    display: none;
  }
  .shortTextFirstNews {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .first-news .news-image-title {
    display: none; 
  }

  .news-meta-firstNews {
    display: none;
  }

  .first-news .news-image-overlay {
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 150px;
    padding: 15px;
    align-items: flex-end; 
    justify-content: space-between;
    color: #ecedef;
    margin-left: -10px !important;
    margin-right: -10px !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0) 100%);
    width: calc(100% + -10px) !important;
  }

  .first-news .news-overlay-left {
    width: 80%;
  }

  .first-news .news-overlay-date {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 4px;
    font-weight: 500;
  }

  .first-news .news-overlay-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 25px;
  }

  .first-news .news-overlay-right {
    width: 20%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 4px;
  }

  .first-news .news-overlay-right i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ecedef;
    border-radius: 50%;
    font-size: 16px;
  }
}

.news-overlay-top-right {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.news-image-title {
  display: none;
}

@media (max-width: 480px) {
  .first-news h3 {
    display: none;
  }
}

.custom-modal-player-h2 {
  font-size: 20px;
  font-weight: 500;
  color: #555555;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
}

.modal-tab {
  border:none;
  border-bottom: 2px solid transparent;
  background-color: #ebebeb;
  font-size: 14px;
  color: #555555;
  width: auto;
  cursor: pointer;
  height: 50px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin-right: 5px;
}

.modal-tab-contents {
  margin-top: 30px;
}

.modal-tab-content {
  display: none;
}

.modal-tab-content.active {
  display: flex;
}

.modal-tab-content {
  color: #555555;
}

.modal-tab-content span {
  color: #555555;
}

.modal-player-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 50%;
  background: #ebebeb;
  cursor: pointer;
}

.modal-tab-contents {
  margin-top: -10px;
  margin-bottom: -15px;
  width: calc(100% + 20px);
  margin-left: -10px;
  margin-right: -20px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  background: #f9f9f9;
}

.dark-mode .modal-tab-contents {
  background: #171c1f;
}

.dark-mode .modal-tab.active {
  background: #171c1f;
}

.modal-tab-inner {
  padding: 10px;
  box-sizing: border-box;
}

.modal-tab-contentsX {
  display: flex;
  position: sticky;
  top: 50px;
  background: #f9f9f9;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  margin-bottom: 10px;
  margin-top: 20px;
}

.modal-image-title {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  background: rgb(0 0 0 / 50%);
  color: #ffffff;
  padding: 10px;
  font-size: 18px;
  font-weight: 500;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column-reverse;
  line-height: 1.3;
  max-height: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  margin: 0;
  width: calc(100% + 20px) !important;
  margin-left: -10px !important;
  margin-right: -20px !important;
}

.modal-image-titleXX {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  background: rgba(241, 241, 241, 0.75);
  color: #555555;
  padding: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  box-sizing: border-box;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column-reverse; 
  line-height: 1.3;
  max-height: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  margin: 0;
}

.eventsTitle {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: calc(100% + 20px) !important;
  margin-left: -10px !important;
  margin-right: -20px !important;
  padding: 20px 10px 20px 10px;
  color: white;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  box-sizing: border-box;
  word-break: break-word;
  margin: 0;
  text-shadow: 4px 4px 20px #000000;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  height: 100px;
  text-transform: uppercase;
}

.event-card {
  box-sizing: border-box;
  padding: 15px 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  height: 350px;
}
.event-card img {
  width: calc(100% + 20px) !important;
  height: 350px;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  margin-bottom: 10px;
  margin-left: -10px !important;
  margin-right: -20px !important;
  margin-top: -15px;
  cursor: pointer;
}
.event-details p {
  margin: 4px 0;
  font-size: 0.9em;
  color: #444;
}
.event-details i {
  color: var(--accentColor);
  margin-right: 6px;
}

.block-card {
  box-sizing: border-box;
  padding: 15px 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
}

.block-card h2 {
  font-size: 20px !important;
}

.block-card span,
.block-card strong {
  font-size: 14px !important;
}

.block-card img {
  width: calc(100% + 20px) !important;
  height: auto;
  margin-bottom: 10px;
  margin-left: -10px !important;
  margin-right: -20px !important;
  
  margin-top: -15px;
}

.modalEvent {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7); 
  z-index: 1100;
  display: flex; 
  justify-content: center;
  align-items: center;
  padding: 20px; 
  box-sizing: border-box;
}

.modalNews {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7); 
  z-index: 1100;
  display: flex; 
  justify-content: center;
  align-items: center;
  padding: 20px; 
  box-sizing: border-box;
}

.modal-content {
  background: #ffffff; 
  max-width: 800px;   
  max-height: 70vh;
  width: 80vw;
  border-radius: 7px;
  box-shadow: #55555520 2px 2px 8px 0px;
  position: relative;
  padding: 20px;
  overflow: auto;
}

.modal-content .close {
  border-radius: 7px;
  position: fixed;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: white;
  padding: 5px 10px;
  margin-right: 5px;
}

.modal-content label {
  font-size: 18px;
  font-weight: 600;
}

.modal-content textarea {
  min-height: 150px !important;
  height: 150px !important;
  width: -webkit-fill-available;
  padding: 8px;
  box-sizing: border-box;
  height: 50px;
  font-size: 14px;
  border: none;
  background: #f1f1f1;
  color: #555555;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
  "Segoe UI Symbol";
  line-height: 22px;
}

.editTitle {
  font-weight: bold;
  font-size: 20px;
}

.event-buttons {
  display: flex;
  gap: 5px;
}

.player-select {
  /* transform: scale(1.5); */
  transform-origin: center;
  margin: 5px;
}

.tdIcons {
  text-align: end;
  vertical-align: top;
  white-space: nowrap;
  font-size: 20px;
}

.tdIcons a,
.tdIcons i,
.tdIcons span {
  display: inline-block;
  margin-left: 6px;
  cursor: pointer;
}

.tdIcons img {
  vertical-align: middle;
}

.tdDraw {
  text-align: end;
  font-size: 25px;
  color: #555555;
  padding: 16px 9px 0px 0px !important;
}

.tdDraw a:link,
.tdDraw a:visited,
.tdDraw a:active {
  color: inherit;
  text-decoration: none;
}

.noDraw {
  text-align: end;
  font-size: 16px;
  color: #555555;
}

.btnEditSave {
  background-color: #3ab57a;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  width: 100%;
  margin-top: 10px;
}

.btnEditDelete {
  background-color: #f1f1f1;
  color: #e35c47;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  width: 100%;
  margin-top: 10px;
}

.btnResetModalPoint {
  background-color: #f1f1f1;
  color: #000000;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  width: 100%;
  margin-top: 10px;
}

.news-teaser-card img {
  width: 100%;       
  height: 450px !important;      
  object-fit: cover; 
  object-position: top;
  cursor: pointer;
}

.gallery-thumb {
  max-width: 30% !important;
  height: auto !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  box-shadow: #55555520 2px 2px 8px 0px !important;
  cursor: pointer !important;
  transition: transform 0.2s !important;
  max-height: 400px !important;
  object-fit: cover !important;
  border-radius: 20px !important;
  margin-left: -20px !important;
  margin-bottom: 25px !important;
}

.modal-gallery img {
  width: 100%;        
  height: auto;       
  max-height: 400px;  
  object-fit: cover;  
  border-radius: 7px; 
}

.closeLineModal {
  height: 4px;
  background: #55555580;
  width: 50px;
  border-radius: 50px;
  margin-top: -5px;
  margin-bottom: 10px;
}

#customModal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0); 
  z-index: 99999;
  transition: background-color 0.5s ease;
}

.custom-modal-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80%;
  max-height: 90vh;
  background-color: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.5s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.custom-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

#customModal.show {
  background-color: rgba(0,0,0,0.8); 
}

#customModal.show .custom-modal-wrapper {
  transform: translateY(0); 
}

#modalTextContent { 
  overscroll-behavior: contain;
  font-size: 14px;
  padding-bottom: 80px;
}

.customHeaderImgInModal {
  max-height: 300px;
  display: block;
  width: calc(100% + 40px) !important;
  margin-left: -20px;
  margin-right: -10px;
  height: 300px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border-radius: 0 !important;
  margin-bottom: 10px;
  background: #f0f0f0;
  margin-top: -20px;
}
.custom-modal {
  padding-bottom: env(safe-area-inset-bottom);
}

.dark-mode .custom-modal-header {
  background: #202428;
}

.dark-mode .custom-modal-header #modalTitleText {
  color: #f1f1f1;
}

.dark-mode .closeLineModal {
  background: #555555;
}

.custom-modal-header {
  flex: 0 0 auto; 
  position: sticky;
  top: 0;
  background-color: #f1f1f1;
  padding: 12px 20px;
  font-weight: bold;
  z-index: 2000;
  cursor: pointer;
  text-align: left;
  box-shadow: rgba(85, 85, 85, 0.125) 2px 2px 2px 0px;
}

.custom-modal-header .close-text {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
}

.custom-modal-header .close-text i {
  font-size: 14px;
  color: #f1f1f1;
  border-radius: 50%;
  padding: 6px;
}

.custom-modal-header #modalTitleText {
  margin: 0;
  font-size: 17px;
  color: #555555;
  font-weight: 500 !important;
}

/* --- SPLIT NEWS --- */
@media (max-width: 480px) {
  .compact-split {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .compact-split .split-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
  }

  .split-wrapper {
    max-width: 100%;
    overflow: hidden;
  }

  .compact-split .split-image {
    width: 35%;
    flex-shrink: 0;
    min-height: 120px !important;
    max-height: 140px !important;
    display: flex;
  }

  .compact-split .split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-right-radius: 0px;
    border-top-left-radius: 10px;
    max-height: 200px !important;
  }

  .compact-split .split-content {
    width: 65%;
    display: flex;
    flex-direction: column;
  }

  #split-news-container {
    display: flex;
    gap: 20px;
    flex-direction: column;
  }

  #load-more-btn {
    display: block;
    padding: 7px 10px;
    border: 1px solid #0273d1;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.1s;
    font-size: 14px;
    color: #0273d1;
    width: 100%;
    background: transparent;
  }

  .compact-split .split-content h3 {
    margin: 10px 0 5px 0;
    font-size: 16px;
  }

  .compact-split .split-content .short {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .compact-split .meta-line {
    font-size: .75rem;
    color: #777;
  }

  .compact-split .news-actions.full {
    display: flex;
    gap: 10px;
    width: 100%;
  }
  .news-actions {
    margin-bottom: -8px;
  }
}

.custom-modal-content .news-main-image {
  display: block !important;
  width: calc(100% + 40px) !important;
  margin-left: -20px !important;
  margin-right: -20px !important;
  object-fit: cover !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 0 !important;
  margin-bottom: 10px !important;
  background: #f0f0f0 !important;
  margin-top: -20px !important;
  border-bottom-left-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
}

.custom-modal-content h2 {
  font-size: 20px;
  margin: 0;
}

.like-btn i{
  font-size: 16px;
}

.like-count {
  font-size: 15px;
  margin-top: 2px;
  font-weight: bolder;
}

.like-btn {
  cursor: pointer;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #555555;
  transition: color 0.4s;
}

.like-btn.active {
    color: #0273d0;
}

.like-btn .like-count {
    font-weight: bold;
}

input[type="radio"] {
  /* transform: scale(1.5); */
  margin-right: 10px;
}

.radio-group-horizontal {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  margin-top: 10px;
}

.radio-container {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}

.radio-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-radio {
  width: 30px;
  height: 30px;
  border: 2px solid #0273D0;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: all 0.2s;
}

.radio-container input:checked + .custom-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #0273D0;
  border-radius: 50%;
}

.lightbox-overlay {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  z-index: 9300; 
  justify-content: center;
  align-items: center;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 20px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #f1f1f1;
  background: rgba(0,0,0,0.5);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 1200;
  border-radius: 20px;
}

.lightbox-nav.left { left: 10px; }
.lightbox-nav.right { right: 10px; }

.lightbox-overlay .close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #333333;
  cursor: pointer;
  z-index: 1200;
  background: #f1f1f1;
  padding: 0 10px;
  border-radius: 20px;
}

#newsGalleryFileNames {
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

#newsContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#eventsContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-longtext h2 {
  margin: 0 !important;
  line-height: 24px;
  font-size: 20px !important;
}

.back-btn {
  background: #ebebeb;
  border: none;
  color: #0077cc;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  width: 30px;
  position: sticky;
  top: 55px;
  height: 58px;
  padding-left: 10px;
  text-align: left;
  margin-top: 3px;
  height: auto;
}

.dark-mode .back-btn {
  background: #000000;
  color: #ecedef;
}

.monthly-ranking-container {
  box-sizing: border-box;
  padding: 15px 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.monthly-tab-btn {
  padding: 7px 10px;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  background: #ebebeb;
  transition: 0.1s;
  font-size: 14px;
  color: #555555;
}

/* Aktiver Button */
.monthly-tab-btn.active {
  background: #0273d0; 
  color: #f9f9f9;
}

.news-teaser-card {
  box-sizing: border-box;
  padding: 15px 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  display: flex;
  flex-direction: column;
}

.block-card {
  box-sizing: border-box;
  padding: 15px 10px;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
}

.news-teaser-card:hover {
  transform: translateY(0px);
}

.news-teaser-card2 img.news-main-image2 {
  width: 100%;
  height: auto;
  border-radius: 20px;
  margin-bottom: 10px;
}

.news-teaser-card img.news-main-image {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  width: calc(100% + 20px) !important;
  margin-left: -10px !important;
  margin-right: -20px !important;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  margin-top: -15px;
}

.news-main-image {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9; 
  background: #f0f0f0;
  object-position: top;
}

.news-main-image.placeholder {
  background: #f0f0f0;
}

.news-teaser-card h3 {
  margin-top: 25px;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
}

.news-teaser-card p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 22px;
  color: #555555;
}

.news-teaser-card button.read-more-btn {
  background-color: transparent;
  color: #555555;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.read-more-btn:hover {
    background-color: transparent;
}

.toast-message {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 200px;
  height: 70px;               
  display: flex;              
  align-items: center;        
  justify-content: center;    
  background-color: #000000bf;
  color: #ecedef;
  padding: 0 20px;            
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
  font-size: 16px;            
  text-align: center;         
}
.toast-message.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-longtext {
  margin-top: 0px;
  font-size: 14px;
  line-height: 22px;
  color: #555555;
}

.modal-longtext p {
  margin: 0;
}

.modal-longtext ol {
  font-weight: 600;
}

.modal-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 11%;
  margin-top: 35px;
  justify-content: center;
}

.modal-gallery img {
  max-width: 90px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: #55555520 2px 2px 8px 0px;
  cursor: pointer;
  transition: transform 0.2s;
}

.custom-modal-content img {
  width: 100%;
  cursor: pointer;
  border-radius: 20px;
  margin-bottom: 10px;
  object-fit: cover;
  object-position: top;
}

.shortTextTxtArea {
  min-height: 150px !important;
  height: 150px !important;
  width: -webkit-fill-available;
  padding: 8px;
  box-sizing: border-box;
  height: 50px;
  font-size: 14px;
  border: none;
  background: #f1f1f1;
  color: #555555;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
  "Segoe UI Symbol";
}

.custom-file-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  background: #ffffff;
  padding: 10px;
  border-radius: 7px;
  border: 1px solid #e5e5e5;
}

.upload-label {
  background-color: #ebebeb;
  color: #4a4c4e;
  padding: 8px 15px;
  font-size: 18px;
  border: none;
  cursor: pointer;
  border-radius: 7px;
  transition: background-color 0.3s;
  width: -webkit-fill-available;
  text-align: center;
}

.ql-editor {
  background: #f1f1f1;
  line-height: 20px !important;
  font-size: 15px !important;
}

.ql-container.ql-snow {
  border: 0 !important;
  border-radius: 7px !important;
}

.ql-toolbar.ql-snow {
  background: #f1f1f1;
  margin-top: -6px;
}

.checkboxSelectionRegistration {
  margin:5px 0 0 28px; 
  font-size:12px; 
  color:#55555590; 
  line-height:1.4;
}

.input-with-checkbox {
  display: flex;
  align-items: center;
  gap: 10px; 
}

.input-with-checkbox input[type="url"] {
  flex: 1; 
}

.checkbox-label-tournament-draw {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  width: 50px;
  margin: 0 !important;
}

.checkbox-label {
  font-weight: bold;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 20px;
  transform: scale(2);
  margin-right: 8px; 
}

.accordion-inner-item {
  padding: 20px 0;
  border-bottom: 2px solid #ddd; 
}

.accordion-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-controls {
  display: flex;
  gap: 12px; 
}

.accordion-controls i {
  cursor: pointer;
  color: #555555;
  transition: color 0.2s ease;
  width: 40px;
  height: 40px;
  text-align: center;
  background: #f1f1f1;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 18px;
}

.accordion-controls i:hover {
  color: #555555;
}

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 25px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #0273D0;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 20px;
}

.slider.round:before {
  border-radius: 50%;
}

.desktop-menu-links {
  display: flex;          
  justify-content: space-around;
  align-items: center;      
}

.desktop-menu-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s;
}

.desktop-menu-links a:hover {
    color: #0273d0;
}

/* =================================================================================== */
/* =================================================================================== */
/* ================== DARK MODE ====================================================== */
/* =================================================================================== */
/* =================================================================================== */
body.dark-mode {
  background-color: #000000;
  /* background-color: #000000; */
  color: #8c8e90;
}

.dark-mode #membershipForm,
.dark-mode #contactForm {
  background: #272c34;
  margin-top: 30px;
  border-radius: 20px;
  color: #ecedef !important;
  font-size: 14px;
  font-weight: 500;
}

.dark-mode #pastToggle2025 {
  background: #171c1f;
  color: #ecedef;
}

.dark-mode #pastToggle2026 {
  background: #171c1f;
  color: #ecedef;
}

.dark-mode #pastToggleNews2025 {
  background: #171c1f;
  color: #ecedef;
}

.dark-mode #pastToggleNews2026 {
  background: #171c1f;
  color: #ecedef;
}

.dark-mode .story-item img {
  border: 4px solid #55555590;
}

.dark-mode .story-bar {
  background: #171c1f;
}

.dark-mode .header,
.dark-mode .subHeader,
.dark-mode .subHeader h1 {
  background-color: #272c33;
  color: #ecedef;
}

.dark-mode h2,
.dark-mode .refresh-button,
.dark-mode .menu-button,
.dark-mode .ranking-search-btn {
  color: #ecedef;
}

.dark-mode a {
  color: #ecedef;
}

.dark-mode .tournament-table th,
.dark-mode .tournament-table td {
  color: #8c8e90;
  border-color: #333;
}

.dark-mode .page-preloader {
  background-color: #121212;
}

.dark-mode .cookieBanner {
  background-color: #000000;
  color: #ecedef !important;
}

.dark-mode .tab-btn,
.dark-mode .ranking-subtab {
  background-color: #171C1F;
  color: #ecedef;
}

.dark-mode .tab-btn.active,
.dark-mode .gender-switch-btn.active,
.dark-mode .sport-type-btn.active  {
  background-color: #0273d0 !important;
  color: #ecedef;
}

.dark-mode .ranking-subtab.active {
  color: #ecedef;
}

.dark-mode .tab-button,
.dark-mode .custom-modal-wrapper {
  color: #ecedef;
  background-color: #272c33;
}

.dark-mode .tab-button.active {
  background: #171c1f !important;
}

.dark-mode .news-tabs,
.dark-mode .ranking-tabs,
.dark-mode .gender-switch-container,
.dark-mode #rankingContainer,
.dark-mode .news-teaser-card,
.dark-mode .news-teaser-card p,
.dark-mode .news-teaser-card button.read-more-btn,
.dark-mode .news-actions .share-btn,
.dark-mode .tournamentsInfoText,
.dark-mode #rulesToggle,
.dark-mode .tournament-table {
  background: #171c1f;
  color: #ecedef;
}

.dark-mode .news-actions {
  border-top: 1px solid #272c34;
}

.dark-mode .dropdown-content {
  background: #272c34;
  color: #ecedef;
}

.dark-mode #rulesContent {
  background: #171c1f;
  color: #ecedef80;
  font-size: 12px;
}

.dark-mode .newsDate {
  color: #ecedef80 !important;
}

.dark-mode .rankingTableColumnHeader {
  background: #171c1f;
  color: #ecedef;
  box-shadow: inset 0 -1px 0 #232729;
}

.dark-mode .tournament-table tbody tr {
  border-bottom: 1px solid #55555550;
}

.dark-mode .modal-longtext {
  color: #ecedef !important;
}

.dark-mode .modal-longtext span {
  color: #ecedef !important;
}

.dark-mode .modal-image-title {
  background: rgb(0 0 0 / 50%);
  backdrop-filter: blur(4px);
  margin-left: -10px;
  margin-right: -10px;
  width: -webkit-fill-available;
}

.dark-mode .reg-false,
.dark-mode .draw-false {
  color: #8c8e90;
}

.dark-mode .hrMarginLine {
  background-color: #ecedef4d;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea,
.dark-mode .inputYourName,
.dark-mode #addPlayerCountry,
.dark-mode #playerGender {
  background: #171c1f !important;
  color: #ecedef;
}

.dark-mode .buttonContactReset {
  background: #171c1f;
  color: #757575;
}

.dark-mode .buttonContactSubmit {
  flex:1;
  font-size: 15px;
  font-weight: bold;
}

.dark-mode .hrLineFooter {
  background: #55555540; 
  width: 100%; 
  border: none; 
  height: 1px; 
  margin-top: 5px; 
  margin-bottom: 5px;
}

.dark-mode .checkboxSelectionRegistration,
.dark-mode #howToContent ol,
.dark-mode .tournament-place,
.dark-mode .last-update {
  color:#ecedef80 !important;
}

.dark-mode .tournament-table td {
  color: #ecedef !important;
}

.dark-mode .ranking-input-ui {
  background: #000000 !important;
  color: #ecedef;
}

.dark-mode .tab-button-desktop {
  color: #ffffff;
}

.dark-mode .tab-button-desktop.active {
  color: #0273d0;
}

.dark-mode .tab-button-desktop.active {
    background: #171c1f;
}

.dark-mode .like-btn {
  color: #ecedef;
}

.dark-mode .like-btn.active {
    color: #0273d0;
}

.dark-mode .share-popup {
  background: #272c34;
}

.dark-mode .share-popup-events {
  background: #272c34;
}

.dark-mode #refreshIndicator span {
  color: #ecedef80 !important;
}

.dark-mode .event-card {
  background: #171c1f;
}

.dark-mode .block-card {
  background: #171c1f;
}

.dark-mode .newsCategorySelect {
  background: #000000;
  color: #ecedee;
}

.dark-mode .back-to-news-btn {
  background: #171c1f;
  color: #ecedee;
}

.dark-mode .newsCategory {
  color: #ecedef;
  background: #000000;
}

.dark-mode .modal-player-card {
  background: linear-gradient(0deg,rgba(39, 44, 52, 1) 0%, rgba(23, 28, 31, 1) 70%);
}

.dark-mode .modal-player-tabs {
  background: #272c34;
}

.dark-mode .modal-tab {
  background: #272c34;
  color: #ecedef;
}

.dark-mode .modal-tab-content span {
  color: #ecedef;
}

.dark-mode .modal-player-info span {
  color: #8d8e90;
}

.dark-mode .share-btn-events {
  color: #ecedef;
}

.dark-mode .registrationPlayerContainer {
  background: #272c35;
}

.dark-mode .share-popup a.facebook   { color: #ececef; }
.dark-mode .share-popup a.whatsapp   { color: #ececef; }
.dark-mode .share-popup a.instagram  { color: #ececef; }
.dark-mode .share-popup a.telegram   { color: #ececef; }
.dark-mode .share-popup a.twitter    { color: #ececef; }

.dark-mode .share-icons a.facebook   { color: #ececef; }
.dark-mode .share-icons a.whatsapp   { color: #ececef; }
.dark-mode .share-icons a.instagram  { color: #ececef; }
.dark-mode .share-icons a.telegram   { color: #ececef; }
.dark-mode .share-icons a.twitter    { color: #ececef; }

.dark-mode .share-popup-events a.facebook   { color: #ececef; }
.dark-mode .share-popup-events a.whatsapp   { color: #ececef; }
.dark-mode .share-popup-events a.instagram  { color: #ececef; }
.dark-mode .share-popup-events a.telegram   { color: #ececef; }
.dark-mode .share-popup-events a.twitter    { color: #ececef; }

.dark-mode .modal-share a.facebook   { color: #ececef; }
.dark-mode .modal-share a.whatsapp   { color: #ececef; }
.dark-mode .modal-share a.instagram  { color: #ececef; }
.dark-mode .modal-share a.telegram   { color: #ececef; }
.dark-mode .modal-share a.twitter    { color: #ececef; }

.dark-mode .fa-facebook   { color: #ececef; }
.dark-mode .fa-square-facebook   { color: #ececef; }
.dark-mode .fa-whatsapp   { color: #ececef; }
.dark-mode .fa-instagram  { color: #ececef; }
.dark-mode .fa-telegram   { color: #ececef; }
.dark-mode .fa-twitter    { color: #ececef; }

.story-bar {
  display: none;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 10px 10px 10px;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  background: #f9f9f9;
  margin-bottom: 10px;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  position: relative;
  z-index: 99;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.story-bar::-webkit-scrollbar {
  display: none;
}

.story-item img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: border 0.2s;
  object-position: top;
  border: 4px solid #55555540;
}

.story-close-btn {
  position: absolute;
  top: 50px;
  right: 23px;
  background: rgba(0,0,0,0.5);
  color: #ecedef;
  border: none;
  font-size: 28px;
  padding: 5px 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.2s;
}

.story-close-btn:hover {
  background: rgba(0,0,0,0.8);
}

/* Modal */
.story-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.story-modal-img {
  width: 90%;
  max-width: 400px;
  max-height: 90%;
  border-radius: 20px;
}

.story-progress {
  position: absolute;
  top: 20px;
  left: 10%;
  width: 80%;
  height: 5px;
  display: flex;
  gap: 2px;
}

.story-progress-bar {
  flex: 1;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  overflow: hidden;
}

.story-progress-bar-inner {
  width: 0;
  height: 100%;
  background: #ecedef;
  transition: width 10s linear;
}

label.required::after {
  content: " *";
  color: #e35c47;
}

/* ========================================================================================== */
/* ================== DESKTOP ab 992px ====================================================== */
/* ========================================================================================== */
@media (min-width: 992px) {
  .tdClassTournamentsNumberTable {
    vertical-align: middle !important; 
    padding: 10px;
  }

  .tournament-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  .past-tournament-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  .tournament-card.top-tournament:hover,
  .tournament-card.otv-tournament:hover,
  .tournament-card.upcoming-weekend:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  #pastContentNews2025 {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #pastContentNews2025 .news-card {
    flex: 1 1 calc(50% - 20px);
  }

  #pastContentNews2026 {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #pastContentNews2026 .news-card {
    flex: 1 1 calc(50% - 20px);
  }

  .menu-dropdown {
    display: none;
  }

  .custom-modal-wrapper {
    margin-left: 15vw !important;
    margin-right: 15vw !important;
  }

  .dropdown-content {
    transform: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .dropdown-content.open {
    opacity: 1;
    visibility: visible;
  }

  .dropdown-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .dropdown-overlay.show {
    opacity: 0.8;
    visibility: visible;
  }

  .news-teaser-card.compact-news {
    display: flex;
    flex-direction: row;
    height: 150px;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 7px;
    overflow: hidden;
  }

  .compact-news img.news-main-image {
    width: 30%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
  }

  /* Inhalt rechts */
  .compact-news .news-content {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 0;
  }

  /* Überschrift oben */
  .compact-news h3 {
    margin: 0; 
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
  }

  /* Kurztext darunter */
  .compact-news p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: #555;
    flex-grow: 1; /* füllt den mittleren Bereich aus, damit Buttons unten bleiben */
  }

  /* Meta-Infos darunter */
  .compact-news .news-meta {
    font-size: 0.75rem;
    color: #888;
} 

  /* Buttons-Leiste unten */
  .compact-news .news-actions {
    display: flex;
    gap: 5px;
    font-size: 0.8rem;
    justify-content: flex-start;
  }

  #newsContainer,
  #eventsContainer {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .news-teaser-card {
    width: calc(50% - 10px); 
  }

  .event-card {
    width: calc(50% - 10px); 
  }

  .subHeaderInner,
  .headerInnerLogo {
    max-width: 70vw;
    margin: 0 auto; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
  }

  .desktop-menu-links {
    display: flex;
    align-items: center;
  }

  .tabs {
    display: none;
  }

  .footer-links {
    flex-direction: row;
    margin-top: 20px;
  }

  .menu-category {
    display: none;
  }

  .dropdown-socials {
    display: none !important;
  }
}

/* ========================================================================================== */
/* ================== Mobile Ansicht (max 991px) ============================================ */
/* ========================================================================================== */
@media (max-width: 991px) {
  .desktop-menu-links {
    display: none;
  }
  .dark-mode .dropdown-content {
    background: #272c34;
  }
  .tabs {
    display: flex;
    justify-content: space-around;
  }
  .dropdown-content {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #ebebeb;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    height: 100%;
  }

  .custom-modal-content .news-main-image {
    height: 350px !important;
  }

  .iconsInMenu {
    display:flex;
    flex-direction:column; 
    align-items:center; 
    text-decoration:none; 
    color:#555555;
    margin-bottom: 0 !important;
  }

  .dropdown-overlay {
    background: rgba(0, 0, 0, 0.7);
  }

  .dropdown-content::-webkit-scrollbar {
    width: 6px;
  }

  .openFollowUs {
    display: none !important;
  }

  .dark-mode .dropdown-content a {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
    width: auto;
    background: #171C1F;
    border-radius: 20px;
    margin-bottom: 10px;
    padding: 8px;
    text-align: left;
    font-size: 14px;
    color: #ecedef;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: background 0.2s;
  }

  .dark-mode .dropdown-content a:hover {
    background: #171c1f;
    color: #ecedef;
  }

  .dropdown-content a {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
    width: auto;
    background: #f8f9f8;
    border-radius: 20px;
    margin-bottom: 10px;
    padding: 8px;
    text-align: left;
    font-size: 14px;
    color: #555555;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: background 0.2s;
  }

  .dropdown-content a:hover {
    background: #ebebeb;
    color: #555555;
  }

  .dropdown-content a i {
    float: none;
    font-size: 18px;
    color: #555555;
    order: 0;
    margin-left: 0;
  }

  .dropdown-content a span {
    order: 1;
    flex: 1;
  }

  .dropdown-content .hrLineMenu,
  .dropdown-content .hrLineMenuTransparent {
    display: none;
  }

  .dropdown-content i {
    float: right;
    font-size: 18px;
    color: #777777;
  }

  .dropdown-content .hrLineMenu,
  .dropdown-content .hrLineMenuTransparent {
    display: none;
  }

  .menu-category {
    font-size: 20px !important;
  }

  .hrLineMenuTransparent {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 15px 0 10px 0;
  }

  .dropdown-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 220px;
    margin-top: 20px;
  }

  .dropdown-socials a {
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s;
    background: none !important;
    box-shadow: none;
  }

  .dropdown-socials i {
    font-size: 20px !important;
  }

  .dropdown-socials a:hover {
    transform: scale(1.1);
    color: #000;
  }
}

/* ========================================================================================== */
/* ================== Desktop Optimierungen ab 769px ======================================== */
/* ========================================================================================== */
@media (min-width: 769px) {
  tbody tr:hover {
    background-color: #ebebeb;
  }

  .dark-mode tbody tr:hover {
    background-color: #000000;
  }

  #ranking table,
  .tournament-table {
    width: 100%;
    font-size: 18px;
  }
  
  #ranking th, #ranking td,
  .tournament-table th, .tournament-table td {
    padding: 12px 16px;
  }
  
  .tournament-table th:nth-child(1),
  .tournament-table td:nth-child(1) {
    width: 10%;
  }
  .tournament-table th:nth-child(2),
  .tournament-table td:nth-child(2) {
    width: 60%;
  }
  .tournament-table th:nth-child(3),
  .tournament-table td:nth-child(3) {
    width: 30%;
  }
  
  .tournament-table tbody tr {
    height: 60px;
  }
  
  .tournament-place {
    font-size: 12px;
  }
}

/* ========================================================================================== */
/* ================== Verschiedene Modal Breakpoints ======================================== */
/* ========================================================================================== */
@media (max-width: 1400px) {
  .custom-modal-wrapper {
    margin-left: 200px !important;
    margin-right: 200px !important;
  }
}

@media (max-width: 1000px) {
  .custom-modal-wrapper {
    margin-left: 100px !important;
    margin-right: 100px !important;
  }
}

@media (max-width: 800px) {
  .custom-modal-wrapper {
    margin-left: 0px !important;
    margin-right: 0px !important;
  }
  .header {
    height: 200px;
  }
  .header .logo {
    top: 40px;
    height: 100px;
  }
}

/* ========================================================================================== */
/* ================== Container ab 600px ==================================================== */
/* ========================================================================================== */
@media (min-width: 600px) {
  #adminContent {
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
  }
  .stats-section {
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
  }
  .homeContainerInner {
    max-width: 70vw;
    margin-left: auto;
    margin-right: auto;
  }

  .tournamentSection, 
  #newsSection {
    margin-left: auto;
    margin-right: auto;
    max-width: 70vw;
  }
}

/* ========================================================================================== */
/* ================== Sehr kleine Geräte max 450px ========================================== */
/* ========================================================================================== */
@media (max-width: 480px) {
  .header {
    height: 170px;
  }
  .header .logo {
    top: 30px;
    height: 90px;
  }
  .news-teaser-card img {
    max-height: 180px;
  }
  .first-news img {
    max-height: 300px;
  }
  .custom-modal-content img {
    max-height: 300px;
  }

  .custom-modal-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  .block-card img {
    height: 300px;
  }
}

/* ========================================================================================== */
/* ================== Smartphones max 600px ================================================= */
/* ========================================================================================== */
@media (max-width: 600px) {
  body {
    padding: 0;
  }

  table {
    font-size: 14px;
    font-weight: 400;
    width: 100%;
  }

  th, td {
    padding: 8px 8px;
  }

  #ranking th,
  #ranking td {
    padding: 7px;
    font-size: 14px;
  }

  .player-entry {
    grid-template-columns: 1fr 2fr 1fr;
    font-size: 14px;
  }

  .player-entry .col.name small {
    font-size: 12px;
  }

  .player-entry input[type="number"] {
    font-size: 12px;
  }

  #addPlayerForm {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
  }

  #addPlayerForm input,
  #addPlayerForm select {
    flex: 1;
    min-width: 0;
  }

  #addPlayerForm button {
    flex-shrink: 0;
  }
}

.pastContentBG {
  padding: 15px 0px 15px 0px;
  margin-top: -14px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* ===================== TOURNAMENT LIST ===================== */
.tournament-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== TOURNAMENT CARD ===================== */
.tournament-card {
  position: relative; 
  width: 100%;
  padding: 15px;
  border-radius: 20px;
  box-shadow: #55555520 2px 2px 2px 0;
  background: #f9f9f9;
  box-sizing: border-box;
  transition: background 0.4s, box-shadow 0.5s;
  cursor: pointer;
}

.dark-mode .tournament-card {
  background: #171c1f;
}

/* ===================== TOURNAMENT HEADER ===================== */
.tournament-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tournament-number-inline {
  font-size: 14px;
  font-weight: bold;
  color: #f9f9f9;
  background: #555555;
  padding: 3px 7px;
  border-radius: 7px;
  width: fit-content;
}

.tournament-name {
  font-weight: 500;
  font-size: 18px;
  margin-top: 15px;
}

.dark-mode .tournament-name {
  color: #ecedef;
}

/* ===================== DATE, TIME, PLACE ===================== */
.tournament-date {
  margin-top: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
  flex-wrap: wrap;
}

.tournament-date i {
  color: #0273d0; /* Icons blau */
}

.tournament-place {
  font-size: 13px;
  opacity: 0.7;
}

.dark-mode .tournament-date,
.dark-mode .tournament-place {
  color: #ecedef80;
}

/* ===================== ACTIONS ===================== */
.tournament-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.tournamentDrawIcon.draw-active {
  color: #0273d0; /* Blau wenn draw === true */
}

/* ===================== LABELS ===================== */
.tournament-card.top-tournament,
.tournament-card.otv-tournament,
.tournament-card.upcoming-weekend {
  position: relative;
}

.top-tournament {
  border-left: 10px solid #0273d1;
}

.otv-tournament {

}

/* Gemeinsame Styles für Labels */
.tournament-label {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50px;
  color: #ecedef;
  white-space: nowrap;
}

/* Top Tournament Label */
.top-tournament-label {
  background-color: #0273d0;
  padding: 5px 10px;
}

.otv-tournament-label {
  background-color: #e35c47;
  /* border: 1px solid #e35c47; */
  padding: 5px 10px;
}

.otv-tournament-label-noBG {
  color: #e35c47 !important;
  border: 1px solid #e35c47;
}

.top-tournament-label-noBG {
  color: #0273d0 !important;
  border: 1px solid #0273d0;
}

/* Upcoming Weekend Label */
.upcoming-weekend-label {
  color: #555555;
  padding: 3px 10px 3px 10px;
  border: 1px solid #555555;
}

.today-label {

}

/* ===================== DARK MODE ===================== */
.dark-mode .top-tournament-label {
  background-color: #0273d0 !important;
  color: #ecedef;
}

.dark-mode .top-tournament-label {
  background-color: #e35c47;
  color: #ecedef;
}

.dark-mode .upcoming-weekend-label {
  /* background-color: #555555; */
  color: #ecedef;
}

/* ===================== OPTIONAL: BOX-SHADOW FEINJUSTIERUNG ===================== */
.tournament-details-horizontal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 15px;
}

.tournament-details-horizontal .line {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tournament-details-horizontal .justify-between {
  justify-content: space-between;
}

.tournament-details-horizontal i {
  margin-right: 4px;
  color: #8c8e90;
}

/* Past Tournament Card */
.past-tournament-card {
  background-color: #f9f9f9;
  border-radius: 20px;
  padding: 15px;
  transition: background-color 0.4s, box-shadow 0.5s;
  display: flex;
  flex-direction: column;
}

.dark-mode .past-tournament-card {
  background-color: #171c1f;
  color: #ebebeb;
  box-shadow: none;
}

/* ---------- Zeile 1: NR + NAME links, Info Icon rechts ---------- */
.past-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 15px;
}

.past-header .tournament-number-name {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.past-header .tournamentInfoIcon {
  font-size: 20px;
  color: #8d8e90;
  cursor: pointer;
}

.dark-mode .past-header .tournamentInfoIcon {
  color: #8d8e90;
}

/* ---------- Zeile 2: Datum + Zeit + Ort ---------- */
.past-details {
  display: flex;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
  color: #8c8e90;
}

.past-details span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tournament-number {
  font-size: 16px;
  font-weight: 500;
  color: #8d8e90;
  margin-right: 5px;
}

.last-tournament-container {
  position: relative;
  overflow: hidden;
}

.last-tournament-container::after {
  content: "\f091"; 
  font-family: "Font Awesome 6 Free"; 
  font-weight: 900;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px; 
  color: #ebebeb;
  pointer-events: none; 
  z-index: 0;
}

.dark-mode .last-tournament-container::after {
  color: #272c34;
}