/* Standard-Light-Mode */
body {
    background-color: white;
    color: black;
    transition: 0.7s;
    font-family: Arial, sans-serif; 
    text-align: center; 
    margin-top: 50px;
}

/* Dark-Mode */
body.dark {
    background-color: #1e1e1e;
    color: white;
    font-family: Arial, sans-serif; 
    text-align: center; 
    margin-top: 50px;
}



.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px 100px;
    text-align: center;
    margin-left: 20%;
    margin-right: 20%;
  }
  
  .item img {
    width: 300px;
    height: auto;
    cursor: pointer;
  }
  


form { 
    margin-top: 20px; 
}

input, button { 
    padding: 10px; 
    font-size: 16px; 
}

/* Toggle-Switch Styling */
.switch {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.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: 0.7s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.7s;
    border-radius: 50%;
}

/* Dark Mode aktiviert */
input:checked + .slider {
    background-color: #007BFF;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

/* Kopfzeilenstil */
th {
    background-color: #ff0000;
    color: white;
    padding: 10px;
    text-align: left;
}

/* Zellenstil */
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Tabellenzeilen abwechselnd einfärben */
tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Hover-Effekt für Zeilen */
tr:hover {
    background-color: #ddd;
}

/*Test für Drag and Drop*/
#groups {
    display: flex;
    justify-content: space-between;
}

.group {
    width: 30%;
    border: 2px solid #ccc;
    padding: 10px;
    border-radius: 8px;
}

.group h2 {
    text-align: center;
}

.draggable-list {
    list-style-type: none;
    padding: 0;
    min-height: 450px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 10px;
}

.draggable-list li {
    margin: 8px;
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    cursor: move;
}

.boxed-heading {
    background-color: #f5f5f5;       /* Heller Hintergrund */
    border-left: 6px solid #ff0000;  /* Target-typisches Rot für Akzent */
    border-right: 6px solid #ff0000;  /* Target-typisches Rot für Akzent */
    padding: 16px 24px;              /* Innenabstand */
    margin: 20px 0;                  /* Außenabstand */
    font-size: 1.8rem;               /* Schriftgröße */
    font-weight: bold;              /* Fettschrift */
    font-family: 'Segoe UI', sans-serif; /* Moderne Schrift */
    color: #333;                    /* Dunkle Schriftfarbe */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten für Tiefe */
    border-radius: 8px;              /* Abgerundete Ecken */
    text-align: center;
  }

  .update-games-loss-button,
  .update-games-won-button,
  .update-legs-loss-button,
  .update-legs-won-button,
  .modern-button {
    background-color: #ff0000;       /* Target-Rot */
    color: #fff;                     /* Weiße Schrift */
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 1001;
    
  }
.modern-button-left{
    background-color: #ff0000;       /* Target-Rot */
    color: #fff;                     /* Weiße Schrift */
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
  
}

  .update-games-loss-button:hover,
  .update-games-won-button:hover,
  .update-legs-loss-button:hover,
  .update-legs-won-button:hover,
  .modern-button:hover {
    background-color: #c5001f;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }
  .update-games-loss-button:active,
  .update-games-won-button:active,
  .update-legs-loss-button:active,
  .update-legs-won-button:active,
  .modern-button:active {
    transform: scale(0.98);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  }

  .info-snippet {
    background-color: #fff5f7;         /* sanftes Rot-Rosa für dezenten Akzent */
    border-left: 4px solid #ff0000;    /* Target-Rot als Akzent */
    border-right: 4px solid #ff0000;    /* Target-Rot als Akzent */
    padding: 12px 20px;
    margin: 24px 0;
    font-size: 0.95rem;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    line-height: 1.5;
  }


  .popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  .popup-box {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
  }
  .popup-box button {
    margin: 5px;
  }

  .Statistik-Header th{
    background-color: #ff0000; /* Target-typisches Rot */
    color: white; /* Weiße Schriftfarbe für Kontrast */
    padding: 10px; /* Innenabstand */
    text-align: left; /* Text linksbündig */
    font-family: 'Segoe UI', sans-serif; /* Moderne Schriftart */
    font-size: 1.4rem; /* Größere Schriftgröße für Kopfzeilen */
  }
.Admin-Header a,
.Statistik-Header a{
    text-decoration: none; /* Keine Unterstreichung */
    color: white; /* Weiße Schriftfarbe */
}
.Admin_Header a:visited
  .Statistik-Header a:visited {
    color: white; /* Weiße Schriftfarbe für besuchte Links */
  }

  .register {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
  }

  .register a {
    color: #e60023;
    text-decoration: none;
  }

  .register a:hover {
    text-decoration: underline;
  }

  input[type="email"],
  input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
  }

  .actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .actions label {
    font-weight: normal;
  }

  .actions a {
    color: #e60023;
    text-decoration: none;
  }

  .actions a:hover {
    text-decoration: underline;
  }

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 360px;
}

  .logo {
    width: 164px;
    height: 164px;
    margin: 0 auto 1rem;
    background: #e60023;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  input.mailuser{
    width: 50%;
    margin: 0 auto;
  }

  strong{
    font-size: large;
  }

.audio-btn {
  width: 48px;
    height: 48px;
    border-radius: 50%; /* macht den Button rund */
    background-color: #ff0000; /* grün */
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.audio-btn:hover .icon {
  background-color: #ff0000;
    transform: scale(1.10);
}
.audio-btn:active {
  transform: scale(0.95);
}
.icon {
  width: 28px;
  height: 28px;
  fill: white;
}
.audio-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;

  text-align: left;
  border: none;
  vertical-align: middle;
  
}

.upload-input {
  display: none;
}

.upload-label {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff0000;
  color: white;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease;
  margin-bottom: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.upload-label:hover {
  background-color: #d32f2f;
}

.upload-label:active {
  background-color: #b71c1c;
}

.file-name {
  margin-left: 15px;
  font-style: italic;
  color: #333;
  font-size: 14px;
}
