body {
    font-family: sans-serif;
    padding: 1em;
  }
  
  label {
    font-weight: bold;
    display: block;
    margin-top: 1em;
  }
  
  input, select {
    width: 100%;
    padding: 0.5em;
    margin-top: 0.3em;
  }
  
  .icon {
    float: right;
    font-size: 1.2em;
    cursor: pointer;
  }
  
  .submit-buttons {
    margin-top: 2em;
    display: flex;
    justify-content: space-between;
  }
  
  .submit-buttons button {
    width: 48%;
    padding: 1em;
    font-size: 1em;
  }
  
  /* Drag & Drop */
  .player {
    background: #eee;
    padding: 0.5em 1em;
    border-radius: 5px;
    cursor: grab;
  }
  
  .dropzone {
    flex: 0 1 calc(50% - 0.4em);
    background: #f9f9f9;
    padding: 0.5em;
    border: 2px dashed #ccc;
    border-radius: 10px;
    min-height: 60px;
    box-sizing: border-box;
  }
  
  .dropzone strong {
    display: block;
    margin-bottom: 0.5em;
  }

  .dropzone-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
  }
  
  /* Dashboard Layout */
  .top-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1em; /* weniger Abstand zwischen Zeilen */
    gap: 0.8em;          /* Abstand zwischen Buttons */
    flex-wrap: wrap;     /* optional für bessere Mobilansicht */
  }
  
  .top-buttons a {
    flex: 1;
    text-align: center;
    padding: 1em 0.5em; /* Höhe erhöht, Breite bleibt schmal */
    background: #3c8cee;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95em;
    white-space: nowrap;
  }
  .day-button {
    flex: 1 1 calc(50% - 0.4em);
    text-align: center;
    padding: 1em 0.5em;
    background: #8fd19e;  /* Helles Grün */
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95em;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }
  
  
  .day-button:hover {
    background: #7bc88f;
  }
  .day-button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
  }
.logout {
  float: right;
  font-size: 0.8em;
}

/* Tagesansicht */
.session-list {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-top: 1.5em;
}
.session-entry {
  display: block;
  padding: 1em;
  background: #e9f1ff;
  border-radius: 10px;
  text-decoration: none;
  color: #000;
  font-size: 1em;
}
.session-entry:hover {
  background: #d4e7ff;
}
.box {
  border: 2px solid #ccc;
  padding: 1em;
  border-radius: 10px;
  display: inline-block;
  text-align: left;
  max-width: 90%;
}
ul {
  list-style: none;
  padding-left: 0;
}
li {
  margin-bottom: 1em;
}
.session-entry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e9f1ff;
  border-radius: 10px;
  margin-bottom: 0.5em;
  padding: 0.5em 1em;
}
.session-entry-row a {
  text-decoration: none;
  color: black;
}
.delete-icon {
  font-size: 1.2em;
  color: red;
}

.button {
  display: inline-flex;
  align-items: center;
  border: 2px solid;
  border-radius: 12px;
  overflow: hidden;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  margin-left: 0.3em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button .icon {
  background-color: white;
  padding: 0.6em 0.8em;
  font-size: 1.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button .text {
  padding: 0.6em 1em;
  display: inline-block;
  color: white;
  font-size: 1em;
}

.button.delete {
  border-color: #dc3545;
}

.button.delete .text {
  background-color: #dc3545;
}

.button.restore {
  border-color: #28a745;
}

.button.restore .text {
  background-color: #28a745;
}

.button:hover {
  opacity: 0.9;
  transform: scale(1.02);
  transition: all 0.15s ease-in-out;
}

/* Allgemeines Formularlayout */
form {
  max-width: 400px;
  margin: 0 auto;
}

form input[type="text"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form input[type="time"],
form select {
  width: 100%;
  box-sizing: border-box;
}

.input-icon-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.input-icon-row input {
  flex: 1;
}

.input-icon-row .icon {
  float: none;
  font-size: 1.3em;
  cursor: default;
}
.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.player-list .player {
  flex: 0 1 calc(50% - 0.5em);  /* zwei pro Zeile */
  text-align: center;
  padding: 0.5em;
  background: #eee;
  border-radius: 8px;
  cursor: grab;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.player:hover {
  background: #ddd;
  transition: background 0.2s ease;
}

.point-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1em;
}

.point-entry label {
  flex: 1;
}

.point-entry input[type="number"] {
  width: 100px;
  text-align: right;
}
.dragging-touch {
  opacity: 0.6;
  border: 2px dashed #333;
}
.dragging {
  opacity: 0.5;
  border: 2px dashed #007BFF;
}

.drop-target.hover {
  background-color: #d4e7ff;
  border: 2px solid #007BFF;
}

.drop-target.drop-hover {
  border: 2px solid #007BFF;
  background-color: #e3f2ff;
  transition: background-color 0.2s ease;
}

.drop-placeholder {
  display: block;
  height: 1.5em;
  color: #ccc;
  text-align: center;
}

/* Statistik Übersichtsliste */
.stats-button-list {
  display: flex;
  flex-direction: column;
  gap: 0.5em; /* kleiner Abstand zwischen den Buttons */
  margin-top: 1em;
}

.stats-button {
  display: block;
  width: 100%;
  background: #3c8cee;
  color: white;
  padding: 1em;
  border-radius: 10px;
  text-decoration: none;
  box-sizing: border-box;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stats-button:hover {
  background: #2e79d4;
}

.stats-button .game-title {
  font-weight: bold;
  font-size: 1em;
}

.stats-button .game-subtitle {
  font-size: 0.9em;
  margin-top: 0.3em;
}

/* Statistik Filter-Buttons */
.stats-filter {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1em;
  gap: 0.5em;
}

.stats-filter form {
  display: flex;
  width: 100%;
  gap: 0.5em;
}

.stats-filter button {
  flex: 1;
  padding: 0.5em;
  border: none;
  background: #ccc;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.stats-filter button.active {
  background: #007bff;
  color: white;
}

/* Statistik-Boxen (z. B. in Detailansicht) */
.stat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 1em;
}

.stat-box {
  background: #f0f0f0;
  padding: 1em;
  border-radius: 10px;
  flex: 0 1 calc(50% - 0.5em);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stat-box strong a {
  color: #007BFF;
  text-decoration: none;
}

.stat-box strong a:hover {
  text-decoration: underline;
}

.player-placement-list {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  margin-top: 1em;
}

.player-placement-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f7f7;
  padding: 0.6em 1em;
  border-radius: 10px;
  font-size: 1em;
  font-family: sans-serif;
}

.player-name {
  flex: 1;
  font-weight: bold;
  text-align: left;
  white-space: nowrap;
}

.player-placements {
  display: flex;
  gap: 0.4em;
  justify-content: flex-end;
}

.player-placements span {
  display: inline-block;
  width: 3.5em;  /* Feste Breite für gleichmäßige Ausrichtung */
  text-align: right;
  font-feature-settings: "tnum"; /* Tabellarische Ziffern (wenn unterstützt) */
}
.placement-table {
  display: grid;
  grid-template-columns: 1fr 3em 3em 3em 3em;
  gap: 0.4em 0.5em;
  align-items: center;
  margin-top: 1em;
}

.placement-header .col-place {
  font-weight: normal;
}

.placement-header {
  font-weight: bold;
  display: contents;
  color: #333;
}

.placement-row {
  display: contents;
}

.col-name {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-place {
  text-align: center;  /* vorher: right */
  font-variant-numeric: tabular-nums;
}
.stats-button-list {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.stats-button {
  display: block;
  background: #3c8cee;
  color: white;
  padding: 1em;
  border-radius: 10px;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.stats-button:hover {
  background: #2e79d4;
}

.stats-button strong {
  font-weight: bold;
}






/* Platzierungstabelle in Spieler-/Spieldetails */
.placement-table {
  display: grid;
  grid-template-columns: 1fr 3em 3em 3em 3em;
  gap: 0.4em 0.5em;
  align-items: center;
  margin-top: 1em;
}

.placement-header {
  font-weight: bold;
  display: contents;
  color: #333;
}

.placement-header .col-place,
.placement-row .col-place {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: normal;
}

.placement-row {
  display: contents;
}

.col-name {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
