:root {
  --text: #000000;
  --light-text: #00000080;
  --bg-shadow: #1f1f1f10;
  --bg-input: #1f1f1f40;
  --bg-modal: #af8600;
  --ges-line: 1px solid #000000;
  --color-player: #000000;
  --gradient: linear-gradient(#31475e, #1e2831);
  --index-outerdiv: linear-gradient(#fed330, #fcac00);
  --bg-index-teams: #1e283150;
  --btn: linear-gradient(#31475e, #1e2831);
  --btn2: linear-gradient(#587fa8, #283642);
  --btn3: linear-gradient(#587fa8, #283642);
  --toast-bg: #ffffff;
  --toast-text: #222;
}

[data-theme="dark"] {
  --text: #d8d8d8;
  --light-text: #d8d8d8d0;
  --bg-shadow: #7a640070;
  --bg-input: #7a640070;
  --bg-modal: #18262b;
  --ges-line: 1px solid #b4930090;
  --color-player: #b49300;
  --gradient: linear-gradient(#e9b600, #af8600);
  --index-outerdiv: linear-gradient(#ceaa28, #c08402);
  --bg-index-teams: #e0e0e050;
  --btn: linear-gradient(#49698b, #364757);
  --btn2: linear-gradient(#e9b600, #af8600);
  --btn3: linear-gradient(#31475e, #1e2831);
  --toast-bg: #2b2b2b;
  --toast-text: #e6e6e6;
}

html:not(.theme-ready) * {
  transition: none !important;
}

body{
    font-family: sans-serif;
    text-align: center;
    height: auto;
    margin: 0px;
    color: var(--text);
}

table td {
  color: var(--text);
}


.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"]  .icon-moon { display: none; }


body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  background: linear-gradient( #e9b600, #af8600);
  opacity: 1;

  transition: opacity 0.2s ease;
}

[data-theme="dark"] body::before {
  opacity: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;

  background: linear-gradient( #18262b, #0f1a20);
  transition: opacity 0.2s ease;
}

#theme-toggle{
  background-color: #00000020;
  padding: 4px;
  border: 0px;
  border-radius: 4px;
}

.icon {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.icon-moon path {
  fill: currentColor;
  color: #566a71;
}

.icon-sun circle {
  fill: currentColor;
  color: #566a71;
}

.icon-sun line {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  color: #566a71;
  opacity: 0.6;
}




.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;

  max-width: 320px;
  padding: 12px 16px;

  background: var(--toast-bg);
  color: var(--toast-text);

  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);

  font-size: 14px;
  line-height: 1.4;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;

  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: rgb(255, 204, 0); /* z.B. Sonne */
  border-radius: 10px 0 0 10px;
}

[data-theme="dark"] .toast::before {
  background: #9b59b6;
}

@media (max-width: 400px) {
  .toast {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: unset;
  }
}
