.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh; /* passt je nach Layout – 100vh für ganze Seite */
}

.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top: 4px solid var(--color-white);
  border-right: 4px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.loader::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-bottom: 4px solid var(--color-light-blue);
  border-left: 4px solid transparent;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}.dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Stat Tiles ──────────────────────────────────────────── */
.dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.dashboard__tile {
  background: var(--color-white);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.dashboard__tile-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--border-radius-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard__tile-icon .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.dashboard__tile-icon--blue  { background: var(--color-light-blue); }
.dashboard__tile-icon--blue .icon { fill: var(--color-blue); }

.dashboard__tile-icon--green { background: rgba(145, 194, 67, 0.2); }
.dashboard__tile-icon--green .icon { fill: var(--color-dark-green); }

.dashboard__tile-icon--grey  { background: var(--color-light-grey); }
.dashboard__tile-icon--grey .icon { fill: var(--color-dark-grey); }

.dashboard__tile-icon--red   { background: var(--color-light-red); }
.dashboard__tile-icon--red .icon { fill: var(--color-dark-red); }

.dashboard__tile-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dashboard__tile-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark-grey);
  line-height: 1;
}

.dashboard__tile-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-mid-grey);
}

/* ── Panels ──────────────────────────────────────────────── */
.dashboard__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dashboard__panel {
  background: var(--color-white);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.dashboard__panel-title {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-mid-grey) !important;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-light-grey);
}

.dashboard__empty {
  color: var(--color-mid-grey);
  font-size: 0.9rem;
  font-style: italic;
  padding: 1rem 0;
}

/* ── Race Rows ───────────────────────────────────────────── */
.dashboard__race-row {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--color-light-grey);
  width: 100%;
  border-radius: var(--border-radius-small);
  transition: background 0.15s, padding-left 0.15s;
}

.dashboard__race-row:last-child {
  border-bottom: none;
}

.dashboard__race-row:hover {
  background: var(--color-light-grey);
  padding-left: 0.75rem;
}

.dashboard__race-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-blue);
  white-space: nowrap;
  min-width: 5.5rem;
}

.dashboard__race-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dashboard__race-mode {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark-grey);
}

.dashboard__race-classes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.dashboard__race-class {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  background: var(--color-light-blue);
  color: var(--color-blue);
  border-radius: 999px;
}

.dashboard__race-arrow {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--color-mid-grey);
  flex-shrink: 0;
  transition: fill 0.15s;
}

.dashboard__race-row:hover .dashboard__race-arrow {
  fill: var(--color-blue);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .dashboard__stats {
    grid-template-columns: 1fr;
  }

  .dashboard__panels {
    grid-template-columns: 1fr;
  }

  .dashboard__tile {
    padding: 1.25rem;
  }

  .dashboard__tile-value {
    font-size: 1.6rem;
  }
}
/* Container for input and label, relative positioning for label */
.input-field {
  position: relative;
}

/* Style for input fields */
input {
  border: 1px solid var(--color-dark-grey);
  border-radius: var(--border-radius-small);
  height: 100%;
  position: relative;
  padding: 1rem;
  font-size: 1.2rem;
  line-height: 1.2rem;
  background: var(--color-white);
  width: 100%;
  color: var(--color-dark-grey);
  font-family: "Open Sans";
  font-weight: normal;
}

/* Style for labels positioned inside input fields */
label {
  pointer-events: none;
  cursor: text;
  line-height: 100%;
  left: 0.75rem;
  top: 0.1rem;
  font-size: 1.2rem;
  position: absolute;
  transform: translateY(100%);
  transition: all 0.2s ease-out 0s;
  padding: 0 10px;
  color: var(--color-dark-grey);
}

/* Label moves up and shrinks when input is focused or filled */
.input-field input:focus + label,
.input-field input.filled + label {
  background: var(--color-white);
  transform: translateY(-60%);
  font-size: 0.8rem;
  color: var(--color-dark-grey);
}

/* Red outline on input focus */
input:focus-visible {
  border: 1px solid var(--color-light-blue);
}
.button {
  padding: 0.75rem 1rem;
  color: var(--color-blue);
  border: none;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-weight: 600;
  transition:
    background-color 0.5s ease,
    transform 0.5s ease;
  width: fit-content;
  display: flex;
  flex-direction: row;
  gap: 0.3rem;
}

.button-full {
  width: 100%;
  justify-content: center;
}

.button:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.primary-button {
  background-color: var(--color-light-blue);
}

.primary-button:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
  fill: var(--color-white);
}

.primary-active-button {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.primary-active-button:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
  fill: var(--color-white);
}

.secondary-button {
  background-color: var(--color-light-grey);
  color: var(--color-dark-grey);
}

.secondary-button:hover {
  background-color: var(--color-dark-grey);
  color: var(--color-white);
  fill: var(--color-white);
}

.danger-button {
  background-color: var(--color-red);
  color: var(--color-white);
}

.danger-button:hover {
  background-color: var(--color-dark-red);
  fill: var(--color-white);
}

.success-button {
  background-color: var(--color-light-green);
  color: var(--color-white);
  fill: var(--color-white);
}

.success-button:hover {
  background-color: var(--color-dark-green);
  fill: var(--color-white);
}

.male-button {
  background: var(--color-light-blue);
  color: var(--color-blue);
}
.male-button .icon {
  fill: var(--color-blue);
}

.female-button {
  background: var(--color-light-red);;
  color: var(--color-dark-red);
}
.female-button .icon {
  fill: var(--color-dark-red);
}


.button-state {
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    transform 0.15s ease;
}

.button-state-error {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.button-square {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-small {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}
.forgot-password-link {
  text-align: center;
}body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-container {
  animation: fadeGrowIn .5s ease-out;
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  max-width: 400px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.error-message {
  text-align: center;
}
.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-medium);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  min-height: 250px;
  width: 100%;
  transition: transform 0.2s ease;
  position: relative;
  gap: 1rem;
}

.card-body {
  color: var(--color-dark-grey);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap:1rem;
}

.card:hover {
  transform: translateY(-4px);
}

.card-header h2 {
  color: var(--color-blue);
}

.card__title-sub::before {
  content: ' · ';
}

@media (max-width: 980px) {
  .card__title-sub {
    display: block;
  }
  .card__title-sub::before {
    display: none;
  }
  .hover-buttons {
    opacity: 1;
  }
}

.card__subtitle {
  color: var(--color-mid-grey);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.card-content {
  font-size: 0.95rem;
  color: var(--color-dark-grey);
  margin-top: auto;
}

/* Buttons oben rechts beim Hover */
.hover-buttons {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.3rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.card:hover .hover-buttons {
  opacity: 1;
}

.card .delete-icon {
  fill: var(--color-red);
}

.card .icon:hover {
  transform: scale(1.1);
}

.card-danger {
  background-color: var(--color-red); /* z. B. #ffe5e5 */
  animation: cardFadeIn 0.3s ease forwards;
}

.card-danger .danger-button {
  background-color: var(--color-white); /* z. B. #ffe5e5 */
  color: var(--color-red);
}

.card-danger .danger-button:hover {
  background-color: var(--color-blue); /* z. B. #ffe5e5 */
  color: var(--color-white);
}

.card-danger h2, .card-danger p {
  color: var(--color-white);
}

.card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: auto;
}
.add-card {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  background-color: transparent;
  border: 2px dashed var(--color-white);
  border-radius: var(--border-radius-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  transition: all 0.3s ease;
  font-size: 2rem;
  width: 100%;
}

.add-card .icon {
  fill: var(--color-white);
  transition: all 0.3s ease;
  height: 2rem;
  width: 2rem;
}

.add-card:hover {
  background-color: var(--color-white);
  transform: translateY(-4px);

}

.add-card:hover .icon {
  fill: var(--color-dark-grey);
  transform: rotate(90deg);
}

.add-card span {
  pointer-events: none;
  user-select: none;
}
/* Container für Textarea + Label */
.textarea-field {
  position: relative;
}

/* Textarea Styling */
.textarea-field textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  line-height: 1.4rem;
  border: 1px solid var(--color-dark-grey);
  border-radius: var(--border-radius-small);
  background: var(--color-white);
  color: var(--color-dark-grey);
  resize: vertical;
  min-height: 120px;
  font-family: "Open Sans";
  font-weight: normal;
}

/* Label Styling */
.textarea-field label {
  position: absolute;
  top: 0;
  left: 1rem;
  color: var(--color-dark-grey);
  font-size: 1.2rem;
  pointer-events: none;
  background: var(--color-white);
  padding: 0 0.25rem;
  transition: all 0.2s ease;
}

/* Floating-Effekt bei Fokus oder nicht leerem Feld */
.textarea-field textarea:focus + label,
.textarea-field textarea:not(:placeholder-shown) + label {
  top: -1.2rem;
  left: 0.75rem;
  font-size: 0.8rem;
  padding: 0 0.65rem;
  color: var(--color-dark-grey);
}

/* Optional: Red outline on focus */
.textarea-field textarea:focus-visible {
  outline: 1px solid var(--color-light-blue);
}
.multi-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Die sichtbare Box */
.multi-box {
  border: 1px solid var(--color-dark-grey);
  border-radius: var(--border-radius-small);
  padding: 0 3.5rem 0 1rem; /* Platz rechts für Chevron */
  font-size: 1.2rem;
  background: var(--color-white);
  cursor: pointer;
  min-height: 62px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;

  color: var(--color-dark-grey);
  font-family: "Open Sans";

  position: relative;
  transition: border-color 0.2s;
}

/* Focus-Effekt simulieren */
.multi-field.is-open .multi-box {
  border-color: var(--color-light-blue);
}

/* Platzhalter */
.placeholder {
  color: #aaa;
}

/* LABEL */
.multi-field label {
  pointer-events: none;
  position: absolute;
  left: 0.75rem;
  top: 0.1rem;

  transition: all 0.2s ease-out;

  font-size: 1.2rem;
  padding: 0 10px;

  color: var(--color-dark-grey);
  background: transparent;

  z-index: 2;
}

/* Floating Label */
.multi-field.is-open label,
.multi-field.has-value label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.8rem;
  background: var(--color-white);
}

/* Container für Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
}

/* Einzelner Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;

  background: var(--color-light-blue);
  color: var(--color-blue);

  padding: 0.3rem 0.7rem;
  border-radius: 999px;

  font-size: 0.95rem;
}

/* X im Chip */
.chip button {
  border: none;
  background: transparent;
  color: var(--color-blue);

  cursor: pointer;

  font-size: 1rem;
  line-height: 1;

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

  padding: 0;
}

/* Chevron Bereich */
.multi-action-zone {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);

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

  width: 1.5rem;
  height: 1.5rem;
}

/* Chevron */
.multi-field .chevron-icon {
  width: 1rem;
  height: 1rem;

  fill: currentColor;
  color: var(--color-dark-grey);

  transform: rotate(90deg);
  transition: transform 0.2s ease-in-out;

  pointer-events: none;
}

.multi-field.is-open .chevron-icon {
  transform: rotate(270deg);
  color: var(--color-light-blue);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  background: var(--color-white);

  border: 1px solid var(--color-dark-grey);
  border-radius: var(--border-radius-medium);

  z-index: 10;

  max-height: 250px;
  overflow-y: auto;

  margin-top: 4px;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Option */
.option {
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-size: 1.1rem;
}

.option:hover {
  background: #f2f2f2;
}

/* Aktiv */
.option.active {
  background: var(--color-light-blue);
  color: white;
}.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal {
  background: var(--color-light-blue);
  border-radius: var(--border-radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal__title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-blue);
}

.modal__message {
  margin: 0;
  color: var(--color-blue);
  font-size: 0.95rem;
  line-height: 1.5;
}

.modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.modal__actions .button {
  width: auto;
}.form-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: cardFadeIn 0.15s ease;
}

.form-modal__content {
  width: 100%;
  animation: form-modal-in 0.18s ease;
}

@keyframes form-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.select-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Die sichtbare Box, die das Select imitiert */
.select-box {
  border: 1px solid var(--color-dark-grey);
  border-radius: var(--border-radius-small);
  padding: 0 1.25rem; /* Mehr Platz rechts für den Chevron */
  font-size: 1.2rem;
  background: var(--color-white);
  cursor: pointer;
  min-height: 62px;
  display: flex;
  align-items: center;
  color: var(--color-dark-grey);
  font-family: "Open Sans";
  position: relative;
  transition: border-color 0.2s;
}

/* Focus-Effekt simulieren, wenn geöffnet */
.select-field.is-open .select-box {
  border: 1px solid var(--color-light-blue);
}

/* Container für das Icon ganz rechts */
.select-action-zone {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

/* Der Chevron (unverändert) */
.select-field .chevron-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  color: var(--color-dark-grey);
  transition: transform 0.2s ease-in-out;
  transform: rotate(90deg);
  pointer-events: none; /* Klick geht auf die select-box */
}

.select-field.is-open .chevron-icon {
  transform: rotate(270deg);
  color: var(--color-light-blue);
}

/* Das "X", das den Chevron ersetzt */
.clear-icon-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem; /* Schön lesbar machen */
  color: var(--color-dark-grey);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

/* Kleiner Hover-Effekt für das X */
.clear-icon-btn:hover {
  color: #ff4d4d; /* Wird rot, um "Löschen" zu signalisieren */
  transform: scale(1.1);
}

/* Platzhalter-Farbe */
.placeholder {
  color: #aaa;
}

/* LABEL */
.select-field label {
  pointer-events: none;
  position: absolute;
  left: 0.75rem;
  top: 0.1rem;
  transition: all 0.2s ease-out;
  font-size: 1.2rem;
  padding: 0 10px;
  color: var(--color-dark-grey);
  background: transparent;
  z-index: 2;
}

/* Floating Label: Wenn offen ODER ein Wert ausgewählt ist */
.select-field.is-open label,
.select-field.has-value label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.8rem;
  background: var(--color-white);
}

/* DROPDOWN OPTIONS LIST */
.select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--color-dark-grey);
  border-radius: var(--border-radius-small);
  z-index: 10;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.select-option {
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-size: 1.1rem;
}

.select-option:hover {
  background: #f2f2f2;
}

.select-option.active {
  background: var(--color-light-blue);
  color: white;
}
.cs-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cs-label {
  pointer-events: none;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0 10px;
  color: var(--color-dark-grey);
}

.cs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cs-empty {
  font-size: 1.1rem;
  color: var(--color-white);
  font-style: italic;
  padding: 0.8rem 1rem;
}

/* Inaktiver Chip — wie Option im Dropdown */
.cs-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--color-light-blue);
  color: var(--color-blue);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.cs-chip:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

/* Aktiver Chip — wie aktive Option im Dropdown */
.cs-chip--active {
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  border-color: var(--color-light-blue) !important;
}

.cs-chip__remove {
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}.filter-bar {
  background: var(--color-white);
  border-radius: var(--border-radius-medium);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  box-shadow: var(--box-shadow);
}

.filter-bar__top {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-bar__search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.filter-bar__clear-input {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--color-mid-grey);
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

.filter-bar__clear-input:hover {
  color: var(--color-dark-grey);
}

.filter-bar__search-wrap input {
  padding: 0.7rem !important;
  font-size: 1rem !important;
  width: 100%;
  box-sizing: border-box;
}

.filter-bar__gender-group {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.filter-bar__gender-group .button {
  flex: 1;
  width: auto;
  justify-content: center;
}

.filter-bar__classes {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.filter-bar__classes-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-mid-grey);
  white-space: nowrap;
}

.filter-bar__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--color-light-grey);
}

.filter-bar__count {
  font-size: 0.8rem;
  color: var(--color-mid-grey);
}

/* Tablet portrait ≤ 768px */
@media (max-width: 768px) {
  .filter-bar {
    padding: 1.25rem;
    gap: 0.75rem;
  }

  .filter-bar__search-wrap {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }

  .filter-bar__gender-group {
    flex: 1 1 auto;
  }
}

/* Mobile ≤ 480px */
@media (max-width: 480px) {
  .filter-bar {
    padding: 1rem;
    gap: 0.625rem;
  }

  .filter-bar__top {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  .filter-bar__gender-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .filter-bar__search-wrap input {
    font-size: 0.9rem !important;
  }

  .filter-bar__classes-label {
    font-size: 0.65rem;
  }

  .cs-chip {
    font-size: 0.7rem;
  }

  .filter-bar__count {
    font-size: 0.75rem;
  }
}

/* Hover-States */
.secondary-male:hover {
  background: var(--color-light-blue);
  color: var(--color-blue);
}
.secondary-male:hover .icon {
  fill: var(--color-blue);
}
.secondary-female:hover {
  background: var(--color-light-red);
  color: var(--color-dark-red);
}
.secondary-female:hover .icon {
  fill: var(--color-dark-red);
}.athlete-history__empty {
  font-size: 0.8rem;
  color: var(--color-mid-grey);
  font-style: italic;
  margin: 0;
}

.athlete-history__list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.athlete-history__entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--color-dark-grey);
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--color-light-grey);
}

.athlete-history__entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.athlete-history__date {
  font-weight: 600;
  color: var(--color-blue);
}

.athlete-history__dnf {
  color: var(--color-red);
  font-weight: 600;
}

.athlete-history__laps {
  font-size: 0.75rem;
  font-weight: 600;
}

.athlete-history__laps--up {
  color: var(--color-dark-green);
}

.athlete-history__laps--down {
  color: var(--color-red);
}
/* ── Wrapper ─────────────────────────────────────────────── */
.athlete-table-wrap {
  border-radius: var(--border-radius-medium);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.athlete-table-scroll {
  max-height: 65vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Tabelle ─────────────────────────────────────────────── */
.athlete-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: var(--color-white);
}

.athlete-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* ── Header ──────────────────────────────────────────────── */
.athlete-table__th {
  background: var(--color-light-blue);
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-blue);
  border-bottom: 2px solid var(--color-blue);
  white-space: nowrap;
}
.athlete-table__th--sortable {
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.athlete-table__th--sortable:hover {
  background: var(--color-blue);
  color: var(--color-white);
}
.athlete-table__th--active {
  background: var(--color-blue);
  color: var(--color-white);
}
.athlete-table__th--actions {
  text-align: right;
}
.sort-icon {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-left: 3px;
}

/* ── Rows ────────────────────────────────────────────────── */
.athlete-table__row {
  border-bottom: 1px solid var(--color-light-grey);
  transition: background 0.1s;
}
.athlete-table__row:hover {
  background: var(--color-light-grey);
}
.athlete-table__row--expanded {
  background: var(--color-light-grey);
}
.athlete-table__row:last-child {
  border-bottom: none;
}

.athlete-table__td {
  padding: 1.25rem;
  vertical-align: middle;
  color: var(--color-dark-grey);
}
.athlete-table__dash {
  color: var(--color-mid-grey);
}

/* ── Name-Spalte ─────────────────────────────────────────── */
.athlete-table__name-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.athlete-table__fullname {
  font-weight: 600;
  color: var(--color-blue);
}
.athlete-table__expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  flex-shrink: 0;
}
.athlete-table__expand-btn svg {
  fill: var(--color-mid-grey);
  height: 0.75rem;
}
.expand-arrow {
  transform: rotate(90deg);
}
.expand-arrow--open {
  transform: rotate(270deg);
}

/* ── Race number ─────────────────────────────────────────── */
.race-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.2rem 0.5rem;
  background: var(--color-light-grey);
  border-radius: var(--border-radius-small);
  font-weight: 700;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-dark-grey);
}

/* ── Gender badge ────────────────────────────────────────── */
.gender-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.gender-badge .icon {
  width: 13px;
  height: 13px;
}
.gender-badge--m {
  background: var(--color-light-blue);
  color: var(--color-blue);
}
.gender-badge--f {
  background: #fce7f3;
  color: var(--color-dark-red);
}

/* ── Club ────────────────────────────────────────────────── */
.athlete-table__club {
  color: var(--color-dark-grey);
}

/* ── Race class badges ───────────────────────────────────── */
.race-class-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.race-class-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-light-blue);
  color: var(--color-blue);
}

/* ── Action buttons ──────────────────────────────────────── */
.athlete-table__actions {
  text-align: right;
}
.athlete-table__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.3rem;
}
.athlete-table__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: opacity 0.15s;
}
.athlete-table__action-btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.athlete-table__action-btn--edit .icon {
  fill: var(--color-blue);
}
.athlete-table__action-btn--delete .icon {
  fill: var(--color-red);
}
.athlete-table__action-btn:hover {
  opacity: 0.7;
}

/* ── History row ─────────────────────────────────────────── */
.athlete-table__history-row {
  background: var(--color-light-grey);
}
.athlete-table__history-cell {
  padding: 0.5rem 1rem 1rem 2.5rem;
}

/* ── Empty state ─────────────────────────────────────────── */
.athlete-table__empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-mid-grey);
  font-size: 0.95rem;
  background: var(--color-white);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--box-shadow);
  font-style: italic;
}

/* ── Visibility-Helfer (base) ────────────────────────────── */
.athlete-table__mobile-meta {
  display: none;
}
.athlete-table__actions-inline {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── > 980px: horizontales Scrollen auf engen Viewports ──── */
@media (min-width: 981px) and (max-width: 1200px) {
  .athlete-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .athlete-table {
    min-width: 640px;
  }
}

/* ── ≤ 980px: Karten-Layout ──────────────────────────────── */
@media (max-width: 980px) {
  .athlete-table-wrap {
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }
  .athlete-table-scroll {
    max-height: none;
    overflow: visible;
  }

  .athlete-table,
  .athlete-table thead,
  .athlete-table tbody,
  .athlete-table thead tr,
  .athlete-table tbody tr,
  .athlete-table th,
  .athlete-table td {
    display: block;
    width: 100%;
  }

  .athlete-table {
        background: transparent !important;
  }

  .athlete-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .athlete-table tbody .athlete-table__row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--color-white);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow);
    margin-bottom: 0.5rem;
    padding: 1.25rem;
  }
  .athlete-table__row:last-child {
    margin-bottom: 0;
  }
  .athlete-table tbody .athlete-table__row--expanded {
    margin-bottom: 0.5rem;
  }

  .athlete-table__td {
    padding: 0;
    border: none;
    width: 100%;
    min-height: 0;
  }

  .athlete-table__td.athlete-table__name .athlete-table__name-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .athlete-table__fullname {
    font-size: 1.1rem;
    color: var(--color-blue);
  }

  .athlete-table__desktop-only {
    display: none !important;
  }

  .athlete-table__desktop-cell {
    display: none;
  }
  .athlete-table__mobile-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .athlete-table__mobile-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
  }
  .athlete-table__mobile-club {
    font-size: 0.85rem;
    color: var(--color-dark-grey);
  }

  .athlete-table__actions-inline {
    display: flex;
    gap: 0.3rem;
  }

  /* Icons auf Touch: Card-Stil — keine Button-Box, natürliche Größe, direkte Farbe */
  .athlete-table__actions-inline .athlete-table__action-btn {
    width: auto;
    height: auto;
    background: transparent;
    padding: 2px;
    border-radius: 0;
  }
  .athlete-table__actions-inline .athlete-table__action-btn .icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  .athlete-table__actions-inline .athlete-table__action-btn--edit .icon {
    fill: var(--color-blue);
  }
  .athlete-table__actions-inline .athlete-table__action-btn--delete .icon {
    fill: var(--color-red);
  }

  .athlete-table__history-row {
    display: block;
    background: var(--color-white);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow);
    margin-bottom: 0.5rem;
  }
  .athlete-table__history-cell {
    display: block;
    padding: 1.25rem;
  }
}/* ==============================
   Athleten-Formular
============================== */
.athlete-form {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
}

.athlete-form .button-wrapper {
  grid-column: span 2;
}

@media (max-width: 980px) {
  .athlete-form {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* ==============================
   Seiten-Header + Add-Button
============================== */
.athletes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.athletes-header h1 {
  margin: 0;
}

.athletes-header__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  background: var(--color-light-blue);
  color: var(--color-blue);
  border: none;
  border-radius: var(--border-radius-small);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.athletes-header__add-btn .icon {
  width: 1rem;
  height: 1rem;
  fill: var(--color-blue);
  transition: fill 0.2s;
}

.athletes-header__add-btn:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.athletes-header__add-btn:hover .icon {
  fill: var(--color-white);
}
.race-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ==============================
   Abschnitte
============================== */
.race-form__section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.race-form__section-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark-grey);
  border-bottom: 1px solid var(--color-light-grey);
  padding-bottom: 0.4rem;
}

.race-form__section--actions {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 980px) {
  .race-form__section--actions {
    flex-direction: column;
    align-items: center;
  }

  .race-form__section--actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* ==============================
   2-Spalten Grid für Inputs
============================== */
.race-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.race-form__danish-mobile {
  display: none;
}

@media (max-width: 980px) {
  .race-form__grid {
    grid-template-columns: 1fr;
  }

  .race-form__danish-grid {
    display: none !important;
  }

  .race-form__danish-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .race-form__danish-round {
    background: var(--color-light-grey);
    border-radius: var(--border-radius-medium);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .race-form__danish-round-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-mid-grey);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .race-form__danish-round-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .race-form__danish-round-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark-grey);
    min-width: 4rem;
  }
}

/* ==============================
   Dänisches Punktegrid
============================== */
.race-form__danish {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.race-form__danish-grid {
  display: grid;
  gap: 0.25rem;
  overflow-x: auto;
  width: fit-content;
}

.race-form__danish-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.375rem;
  font-size: 0.875rem;
  min-width: 2.5rem;
}

.race-form__danish-cell--header {
  font-weight: 700;
  color: var(--color-mid-grey);
  white-space: nowrap;
}

.race-form__danish-cell--label {
  font-weight: 600;
  justify-content: flex-start;
  white-space: nowrap;
  color: var(--color-dark-grey);
}

.race-form__danish-cell--input {
  width: 100%;
  border-radius: 6px;
  padding: 0.3rem 0.4rem;
  text-align: center;
  font-size: 0.875rem;
  background: var(--color-white);
  color: var(--color-dark-grey);
  transition: border-color 0.15s;
}

.race-form__danish-cell--input:focus {
  outline: none;
  border-color: var(--color-blue);
}

.race-form__hint {
  font-size: 0.875rem;
  color: var(--color-mid-grey);
  font-style: italic;
  margin: 0;
}
.archive-empty {
  color: var(--color-white);
  opacity: 0.7;
}
.race-input {
  min-height: unset !important;
  flex-shrink: 0;
}

/* Tabs */
.race-input__tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Sub-Tabs (Wertungsrunden) */
.race-input__tabs--sub {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-light-blue);
}

/* Panel */
.race-input__panel {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.race-input__entry-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
}

.race-input__entry-row .input-field {
  flex: 1;
  min-width: 0;
}

.race-input__entry-row .button {
  flex-shrink: 0;
}

/* Positions-Chips */
.race-input__positions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.race-input__position-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--color-light-blue);
  border-radius: var(--border-radius-small);
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
}

.race-input__pos-rank {
  color: var(--color-mid-grey);
  font-size: 0.75rem;
}

.race-input__pos-nr {
  font-weight: 700;
  color: var(--color-blue);
}

.race-input__pos-remove {
  background: none;
  border: none;
  color: var(--color-mid-grey);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.1rem;
}

.race-input__pos-remove:hover {
  color: var(--color-red);
}

.race-input__position-chip--elim {
  background: var(--color-light-red, #fce7f3);
}

.race-input__position-chip--elim .race-input__pos-rank {
  color: var(--color-red);
  font-weight: 700;
}

.race-input__position-chip--elim .race-input__pos-nr {
  color: var(--color-dark-red, #600000);
}

/* Lap actions */
.race-input__lap-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* DNF list */
.race-input__dnf-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.race-input__dnf-label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-dark-grey);
}

.race-input__dnf-chip {
  background: var(--color-red);
  color: var(--color-white);
  border-radius: var(--border-radius-small);
  padding: 0.15rem 0.5rem;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Hint */
.race-input__hint {
  font-size: 0.8rem;
  color: var(--color-mid-grey);
  margin: 0;
}

/* Flash */
.race-input__flash {
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-small);
  font-weight: 600;
  font-size: 0.875rem;
  animation: flashIn 0.2s ease;
}

.race-input__flash--error {
  background: #fde8e8;
  color: var(--color-red);
}

.race-input__flash--success {
  background: #edf7e1;
  color: var(--color-dark-green);
}

@keyframes flashIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.race-input__dnf-remove {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0 0 4px;
  line-height: 1;
  opacity: 0.7;
}

.race-input__dnf-remove:hover {
  opacity: 1;
}

.icon-up, .icon-down {
  fill: var(--color-white);
  width: .5rem;
}

.icon-up,.icon-up:hover {
  transform: rotate(-90deg) !important;
}

.icon-down,.icon-down:hover {
  transform: rotate(90deg) !important;
}

/* Finale-Zieleinlauf Block */
.race-input__finale-finish {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-light-blue);
}

.race-input__hint--finish {
  font-weight: 600;
  color: var(--color-blue);
}

/* Edit-Aktionen */
.race-input__edit-actions {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 980px) {
  .race-input__edit-actions .button {
    width: 100%;
    justify-content: center;
  }
}.rr-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rr-filter-bar__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.rr-filter-bar__search-wrap {
  position: relative;
  flex: 1;
  min-width: 160px;
}

.rr-filter-bar__clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-mid-grey);
  line-height: 1;
}

.rr-filter-bar__gender-group {
  display: flex;
  gap: 0.4rem;
  flex: 1;
}

.rr-filter-bar__gender-group .button {
  flex: 1;
  width: auto;
  justify-content: center;
}

.rr-filter-bar__classes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rr-filter-bar__classes-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-mid-grey);
  white-space: nowrap;
}

.rr-filter-bar__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-light-blue);
}

.rr-filter-bar__count {
  font-size: 0.8rem;
  color: var(--color-mid-grey);
  font-weight: 600;
}
.rr-pdf__icon {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}
@keyframes rr-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.rr-pdf__icon--spin {
  animation: rr-spin 0.8s linear infinite;
}
.race-results {
  min-height: unset !important;
}

.race-results__tools {
  min-height: unset !important;
  display: flex;
  flex-direction: column;
}

.race-results__tools > .button {
  align-self: flex-end;
}

@media (max-width: 980px) {
  .race-results__tools > .button {
    align-self: stretch;
    width: 100%;
    justify-content: center;
  }
}

.race-results__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.race-results__title {
  margin: 0;
  font-size: 1rem;
  color: var(--color-blue);
}

.race-results__counter {
  font-size: 0.8rem;
  color: var(--color-mid-grey);
  font-weight: 600;
}

.race-results__empty {
  color: var(--color-mid-grey);
  font-style: italic;
  font-size: 0.875rem;
}

.race-results__table-wrap {}

.race-results__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.race-results__table thead th {
  text-align: left;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-mid-grey);
  border-bottom: 2px solid var(--color-light-grey);
  white-space: nowrap;
}

.race-results__col-pts,.race-results__col-laps,.race-results__col-rank {
  text-align: center !important;
}
.race-results__table tbody td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--color-light-grey);
  vertical-align: middle;
}

.race-results__row:last-child td {
  border-bottom: none;
}

/* Spalten-Breiten */
.race-results__col-rank    { width: 2.2rem; font-weight: 700; font-size: 1rem;text-align:center; }
.race-results__col-nr      { width: 2.8rem; font-weight: 700; color: var(--color-blue); }
.race-results__col-name    { min-width: 8rem; }
.race-results__col-gender  { width: 4.5rem; }
.race-results__col-club    { width: 9rem; }
.race-results__col-classes { }
.race-results__col-pts     { width: 5.5rem; text-align: right;text-align:center; }
.race-results__col-laps    { width: 3.5rem; text-align: center;text-align:center; }
.race-results__col-finish  { width: 4rem; text-align: center; }
.race-results__col-status  { width: 3.5rem; text-align: center; }

/* Header-Actions */
.race-results__header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Gender Badge */
.rr-gender-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.rr-gender-badge .icon {
  width: 11px;
  height: 11px;
}
.rr-gender-badge--m { background: var(--color-light-blue); color: var(--color-blue); }
.rr-gender-badge--f { background: #fce7f3; color: var(--color-dark-red); }

/* Rennklassen Badges */
.rr-class-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.rr-class-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--color-light-blue);
  color: var(--color-blue);
}

.rr-dash { color: var(--color-mid-grey); }

.rr-expand-row { display: none; }

.rr-expand-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.3rem 0;
}

.rr-expand-content__club {
  font-size: 0.78rem;
  color: var(--color-mid-grey);
}

@media (max-width: 980px) {
  .race-results__row--clickable {
    cursor: pointer;
  }

  .rr-expand-row {
    display: table-row;
    background: var(--color-light-grey);
  }

  .rr-expand-row td {
    padding: 0.3rem 0.6rem 0.5rem 2.8rem;
    border-bottom: 1px solid var(--color-light-grey);
  }
}

/* Punkte */
.race-results__last-pts {
  font-size: 0.7rem;
  color: var(--color-mid-grey);
  margin-left: 0.3rem;
}

/* Runden */
.race-results__laps-up   { color: var(--color-dark-green); font-weight: 700; }
.race-results__laps-down { color: var(--color-red); font-weight: 700; }
.race-results__laps-zero { color: var(--color-mid-grey); }

/* DNF / Ausgeschieden Zeile */
.race-results__row--dnf td,
.race-results__row--eliminated td {
  opacity: 0.45;
}

/* Badges */
.race-results__badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: var(--border-radius-small);
  font-size: 0.7rem;
  font-weight: 700;
}

.race-results__badge--ok {
  background: #edf7e1;
  color: var(--color-dark-green);
}

.race-results__badge--dnf {
  background: #fde8e8;
  color: var(--color-red);
}

.race-results__badge--elim {
  background: #f3f3f3;
  color: var(--color-dark-grey);
}
.race-session {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.race-session__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.race-session__title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.race-session__meta {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
}

.race-session__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-direction: row;
}



@media (max-width: 980px) {
  .race-session__actions {
    flex-direction: column;
  }

  .race-session__actions .button {
    width: 100%;
    justify-content: center;
  }
}

.race-session__not-found {
  color: var(--color-white);
  opacity: 0.7;
}
.auth-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
/* === General Nav Item === */
.nav-links .nav-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-medium);
  transition: all 0.3s ease;
}

/* === Link === */
.nav-links .nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem;
  width: 100%;
  font-size: 1rem;
  color: var(--color-dark-grey);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-links .nav-link .icon {
  width: 1.75rem;
  transition: all 0.3s ease;
}

.nav-links .nav-link .link-text {
  display: inline;
  width: 100%;
}

/* === Active Link Styling === */
.nav-links .nav-link.active,
.nav-links .nav-link.active:hover,
.nav-links .nav-item.active > .nav-link {
  color: var(--color-blue);
}

.nav-links .nav-link.active .icon,
.nav-links .nav-item.active .icon {
  fill: var(--color-blue);
}

/* === Hover & Active Background === */
.nav-links .nav-item:hover,
.nav-links .nav-item.active,
.nav-links .nav-item.opened,
.nav-links .nav-subitems .nav-item:has(.active) {
  background-color: var(--color-light-blue);
}

/* === Parent Items (with children) === */
.nav-links .nav-link.nav-parent {
  display: flex;
  align-items: center;
}

.nav-links .nav-parent .link-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* === Subitems === */
.nav-links .nav-parent .nav-subitems {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-links .nav-subitems .nav-link {
  padding-left: 3.5rem;
  color: var(--color-dark-grey);
}

.nav-links .nav-subitems .nav-link.active,
.nav-links .nav-subitems .nav-link.active:hover {
  color: var(--color-blue);
}

.nav-links .nav-subitems .nav-link:hover {
  color: var(--color-dark-grey);
}

/* === Chevron Icon === */
.nav-links .chevron {
  width: 12px;
  height: 12px;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

.nav-links .chevron.rotated {
  transform: rotate(270deg);
}

/* === Collapsed Sidebar === */
.side-nav.collapsed .nav-link .link-text {
  display: none;
}

.side-nav.collapsed .nav-links .nav-link {
  justify-content: center;
  padding: 0.4rem;
}
/* ========================
   📦 Sidebar Container
========================= */
.side-nav {
  position: sticky;
  height: 100vh;
  width: 300px;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* separates top and bottom sections */
  z-index: 1000;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  top:0;
}

/* Collapsed sidebar state */
.side-nav.collapsed {
  width: 70px;
  padding: 1rem;
}

/* ========================
   🔗 Navigation Links
========================= */
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ========================
   ⬅️ Collapse Toggle Button
========================= */
.collapse-toggle {
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  background: var(--color-white);
  border: none;
  width: 40px;
  height: 50px;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  cursor: pointer;
  padding: 0;
  opacity: 0; /* Hidden by default */
}

/* Show collapse button on hover */
.side-nav:hover .collapse-toggle {
  opacity: 1;
  pointer-events: auto;
}

/* ========================
   ➡️ Chevron Icon (used for toggle)
========================= */
.chevron-icon {
  width: 16px;
  height: 16px;
  fill: var(--color-dark-grey);
  transition: transform 0.3s ease;
}

/* Rotated state (for expanded sidebar) */
.chevron-icon.rotated {
  transform: rotate(180deg);
}

/* ========================
   🔓 Logout Button Styles
========================= */
.logout-button {
  background-color: var(--color-dark-grey);
  color: var(--color-white);
}

/* Link text inside logout button */
.logout-button button .link-text {
  color: var(--color-white);
  text-align: left;
}

/* Icon color in logout */
.logout-button svg {
  fill: var(--color-white);
}

/* Hover styles: invert colors */
.logout-button:hover button .link-text {
  color: var(--color-dark-grey);
}

.logout-button:hover svg {
  fill: var(--color-dark-grey);
}

/* Hamburger button - hidden on desktop, shown on mobile */
.hamburger-button {
  position: fixed;
  top: 2rem;
  left: 2rem;
  background: transparent;
  border: none;
  z-index: 1000; /* above everything */
  cursor: pointer;
  display: none; /* default hidden */
  padding: 0;
}

/* Show hamburger only on small screens */
@media (max-width: 768px) {
  .hamburger-button {
    display: block;
    height: 1.5rem;
    width: 1.5rem;
    fill: var(--color-white);
  }
}

/* Mobile sidebar open state */
.side-nav.mobile-open {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  max-width: 100%;
  padding: 2rem;
  background-color: var(--color-white);
  z-index: 1100; /* below hamburger but above rest */
  box-shadow: var(--box-shadow);
  transform: translateX(0);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* When mobile sidebar not open, keep original desktop styles */
/* Optionally hide it on mobile when not open */
@media (max-width: 768px) {
  .side-nav:not(.mobile-open) {
    transform: translateX(-120%);
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px; /* or collapsed width if desired */
    z-index: 1000;
  }
}

/* Mobile close button */
.mobile-close-button {
  display: none; /* hidden desktop */
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1201;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
}

@media (max-width: 768px) {
  .mobile-close-button {
    display: block;
  }
}

/* Adjust padding/margin if sidebar collapsed on mobile */
.side-nav.collapsed.mobile-open {
  width: 100vw;
  padding: 2rem;
}


@media (max-width: 768px) {
  .collapse-toggle {
    display: none !important;
  }
}:root {
  /* === Color Variables === */
  --color-white: #ffffff;
  --color-black: #000000;

  --color-light-grey: #f3f3f3;
  --color-mid-grey: #888888;
  --color-dark-grey: #444444;
  --color-light-blue: #b5dbf1;
  --color-blue: #004177;
  --color-light-red: #fce7f3;
  --color-red: #ee353c;
  --color-dark-red: #600000;
  --color-light-green: #91c243;
  --color-dark-green: #769e37;

  /* === Shadow === */
  --box-shadow: 8px 6px 10px rgb(0 0 0 / 50%);

  /* === Border Radius === */
  --border-radius-small: 0.25rem;
  --border-radius-medium: 0.5rem;
  --border-radius-big: 0.75rem;
}

/* === Login Container Animation === */
@keyframes fadeGrowIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation: Slide von rechts nach links */
@keyframes cardFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Open Sans - Medium Italic (500, italic) */
@font-face {
    font-family: 'Open Sans';
    src: url('/assets/OpenSans-MediumItalic-BCE62p9T.eot');
    src: url('/assets/OpenSans-MediumItalic-BCE62p9T.eot?#iefix') format('embedded-opentype'),
        url('/assets/OpenSans-MediumItalic-8-YPq4BW.woff2') format('woff2'),
        url('/assets/OpenSans-MediumItalic-CqgH3mIm.woff') format('woff'),
        url('/assets/OpenSans-MediumItalic-CMaTatEw.ttf') format('truetype'),
        url('/assets/OpenSans-MediumItalic-6fAIXagM.svg#OpenSans-MediumItalic') format('svg');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Open Sans - Light (300, normal) */
@font-face {
    font-family: 'Open Sans';
    src: url('/assets/OpenSans-Light-YMSYI-NW.eot');
    src: url('/assets/OpenSans-Light-YMSYI-NW.eot?#iefix') format('embedded-opentype'),
        url('/assets/OpenSans-Light-CR7mYAhp.woff2') format('woff2'),
        url('/assets/OpenSans-Light-DeIAsYuX.woff') format('woff'),
        url('/assets/OpenSans-Light-DMbkAea4.ttf') format('truetype'),
        url('/assets/OpenSans-Light-BYtToZM4.svg#OpenSans-Light') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Open Sans - Light Italic (300, italic) */
@font-face {
    font-family: 'Open Sans';
    src: url('/assets/OpenSans-LightItalic-KQmeBIHQ.eot');
    src: url('/assets/OpenSans-LightItalic-KQmeBIHQ.eot?#iefix') format('embedded-opentype'),
        url('/assets/OpenSans-LightItalic-BJbsZq5d.woff2') format('woff2'),
        url('/assets/OpenSans-LightItalic-BQr1pXKQ.woff') format('woff'),
        url('/assets/OpenSans-LightItalic-BqDraEPB.ttf') format('truetype'),
        url('/assets/OpenSans-LightItalic-Qb46EMuD.svg#OpenSans-LightItalic') format('svg');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Open Sans - Italic (normal weight, italic) */
@font-face {
    font-family: 'Open Sans';
    src: url('/assets/OpenSans-Italic-rpPZdz9i.eot');
    src: url('/assets/OpenSans-Italic-rpPZdz9i.eot?#iefix') format('embedded-opentype'),
        url('/assets/OpenSans-Italic-CjQoMKBT.woff2') format('woff2'),
        url('/assets/OpenSans-Italic-khph5yOz.woff') format('woff'),
        url('/assets/OpenSans-Italic-DB70oWrb.ttf') format('truetype'),
        url('/assets/OpenSans-Italic-_CICQYJh.svg#OpenSans-Italic') format('svg');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* Open Sans - Medium (500, normal) */
@font-face {
    font-family: 'Open Sans';
    src: url('/assets/OpenSans-Medium-Dycr8cBn.eot');
    src: url('/assets/OpenSans-Medium-Dycr8cBn.eot?#iefix') format('embedded-opentype'),
        url('/assets/OpenSans-Medium-CJPtL60s.woff2') format('woff2'),
        url('/assets/OpenSans-Medium-_k7eL-07.woff') format('woff'),
        url('/assets/OpenSans-Medium-COtDFs0b.ttf') format('truetype'),
        url('/assets/OpenSans-Medium-DU5XGocM.svg#OpenSans-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Open Sans - ExtraBold (bold, normal) */
@font-face {
    font-family: 'Open Sans';
    src: url('/assets/OpenSans-ExtraBold-CISRa4PG.eot');
    src: url('/assets/OpenSans-ExtraBold-CISRa4PG.eot?#iefix') format('embedded-opentype'),
        url('/assets/OpenSans-ExtraBold-Bcr7K5tr.woff2') format('woff2'),
        url('/assets/OpenSans-ExtraBold-CEFdyPh3.woff') format('woff'),
        url('/assets/OpenSans-ExtraBold-BQREDopz.ttf') format('truetype'),
        url('/assets/OpenSans-ExtraBold-BIdvkspG.svg#OpenSans-ExtraBold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Open Sans - ExtraBold Italic (bold, italic) */
@font-face {
    font-family: 'Open Sans';
    src: url('/assets/OpenSans-ExtraBoldItalic-ub4Il55c.eot');
    src: url('/assets/OpenSans-ExtraBoldItalic-ub4Il55c.eot?#iefix') format('embedded-opentype'),
        url('/assets/OpenSans-ExtraBoldItalic-BPgo9mrl.woff2') format('woff2'),
        url('/assets/OpenSans-ExtraBoldItalic-CyRwFhQV.woff') format('woff'),
        url('/assets/OpenSans-ExtraBoldItalic-Di_29Ykb.ttf') format('truetype'),
        url('/assets/OpenSans-ExtraBoldItalic-gq05GBlY.svg#OpenSans-ExtraBoldItalic') format('svg');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

/* Open Sans - Bold (bold, normal) */
@font-face {
    font-family: 'Open Sans';
    src: url('/assets/OpenSans-Bold-BS2fDPbI.eot');
    src: url('/assets/OpenSans-Bold-BS2fDPbI.eot?#iefix') format('embedded-opentype'),
        url('/assets/OpenSans-Bold-DgV4wLmS.woff2') format('woff2'),
        url('/assets/OpenSans-Bold-D0Ql3aNa.woff') format('woff'),
        url('/assets/OpenSans-Bold-Qi2k-7Og.ttf') format('truetype'),
        url('/assets/OpenSans-Bold-CNcPoU8m.svg#OpenSans-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Open Sans - Bold Italic (bold, italic) */
@font-face {
    font-family: 'Open Sans';
    src: url('/assets/OpenSans-BoldItalic-B-8NcFL_.eot');
    src: url('/assets/OpenSans-BoldItalic-B-8NcFL_.eot?#iefix') format('embedded-opentype'),
        url('/assets/OpenSans-BoldItalic-lo1O4_dg.woff2') format('woff2'),
        url('/assets/OpenSans-BoldItalic-B8OqoZJ5.woff') format('woff'),
        url('/assets/OpenSans-BoldItalic-BqEd-dPB.ttf') format('truetype'),
        url('/assets/OpenSans-BoldItalic-IUFK5Exn.svg#OpenSans-BoldItalic') format('svg');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

/* Open Sans - SemiBold (600, normal) */
@font-face {
    font-family: 'Open Sans';
    src: url('/assets/OpenSans-SemiBold-dEJZgqnI.eot');
    src: url('/assets/OpenSans-SemiBold-dEJZgqnI.eot?#iefix') format('embedded-opentype'),
        url('/assets/OpenSans-SemiBold-B60MoDWl.woff2') format('woff2'),
        url('/assets/OpenSans-SemiBold-D93qEapH.woff') format('woff'),
        url('/assets/OpenSans-SemiBold-D8jdTQhd.ttf') format('truetype'),
        url('/assets/OpenSans-SemiBold-Yh3WGLaY.svg#OpenSans-SemiBold') format('svg');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Open Sans - SemiBold Italic (600, italic) */
@font-face {
    font-family: 'Open Sans';
    src: url('/assets/OpenSans-SemiBoldItalic-Df62vUEe.eot');
    src: url('/assets/OpenSans-SemiBoldItalic-Df62vUEe.eot?#iefix') format('embedded-opentype'),
        url('/assets/OpenSans-SemiBoldItalic-BZIX6pf2.woff2') format('woff2'),
        url('/assets/OpenSans-SemiBoldItalic-DsDU3N7E.woff') format('woff'),
        url('/assets/OpenSans-SemiBoldItalic-Bt08TXnG.ttf') format('truetype'),
        url('/assets/OpenSans-SemiBoldItalic-CjWcS_ww.svg#OpenSans-SemiBoldItalic') format('svg');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* Open Sans - Regular (normal weight and style) */
@font-face {
    font-family: 'Open Sans';
    src: url('/assets/OpenSans-Regular-Daj0NsDy.eot');
    src: url('/assets/OpenSans-Regular-Daj0NsDy.eot?#iefix') format('embedded-opentype'),
        url('/assets/OpenSans-Regular-CW1ke_qS.woff2') format('woff2'),
        url('/assets/OpenSans-Regular-CZU9BRzY.woff') format('woff'),
        url('/assets/OpenSans-Regular-BgHxarj2.ttf') format('truetype'),
        url('/assets/OpenSans-Regular-DHgVdH_D.svg#OpenSans-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* === Reset & Normalize === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Ensure full height layout */
html,
body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Normalize media element styles */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Remove default focus styles */
*:focus,
*:focus-visible,
*:focus-within {
  outline: none;
}

/* Normalize links and list styles */
a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* Reset table layout */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default button styling */
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
html, body {
  overflow: hidden;
}

body {
  font-family: "Open Sans";
  font-weight: normal;
  font-size: 1rem;
  background-image: url("/assets/background-CeIO14eJ.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
}

#root {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#App {
  height: 100%;
  overflow: hidden;
}

.error-message {
  color: var(--color-light-blue);
}

.app-layout {
  display: flex;
  height: 100vh;
  height: 100dvh;
}

.main-content {
  flex: 1;
  padding: 2.5rem 2.5rem 4rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 980px) {
  .main-content {
    margin-top: 4rem;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Open Sans";
  font-weight: 600;
  color: var(--color-white);
}

.card-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card-container .card {
  min-height: auto;
}

.card-container .add-card {
  min-height: 95px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.button-wrapper {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
}

.card-edit {
  min-height: unset;
}
/* ============================================================
   responsive.css — Tablet & Mobile ≤ 980px
   Alle responsiven Anpassungen für Bildschirme bis 980px.
   Kann ohne Seiteneffekte auf den Desktop entfernt werden.
   ============================================================ */

@media (max-width: 980px) {

  /* ── Layout ──────────────────────────────────────────────── */

  .main-content {
    padding: 1.25rem;
    padding-top: 0;
    padding-bottom: 4rem;
    gap: 1rem;
  }

  /* ── Navigation ──────────────────────────────────────────── */

  /* Hamburger anzeigen */
  .hamburger-button {
    display: block;
    height: 1.5rem;
    width: 1.5rem;
    fill: var(--color-white);
    top: 1.25rem;
    left: 1.25rem;
  }

  /* Hamburger-Icon Farbe */
  .hamburger-button svg {
    fill: var(--color-white);
    width: 1.5rem;
    height: 1.5rem;
  }

  /* Sidebar ausblenden wenn geschlossen */
  .side-nav:not(.mobile-open) {
    transform: translateX(-120%);
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    z-index: 1000;
  }

  /* Collapse-Toggle auf Tablet/Mobile verstecken */
  .collapse-toggle {
    display: none !important;
  }

  /* Schließen-Button einblenden */
  .mobile-close-button {
    display: block;
  }

  /* Nav-Inhalt nach unten schieben, damit er nicht hinter dem X-Button liegt */
  .side-nav.mobile-open .nav-top {
    padding-top: 2.5rem;
  }

  /* ── Karten ──────────────────────────────────────────────── */

  .card {
    padding: 1.25rem;
  }

  /* Kein Hover-Lift auf Touch */
  .card:hover {
    transform: none;
  }

  /* Aktions-Buttons immer sichtbar (kein Hover auf Touch) */
  .hover-buttons {
    opacity: 1;
  }

  /* AddCard kompakt – kein großes leeres Feld auf Mobile */
  .add-card,
  .card-container .add-card {
    min-height: unset;
    padding: 0.875rem;
  }

  /* AddCard-Hover-Effekt deaktivieren */
  .add-card:hover {
    transform: none;
  }

  /* ── Race Session ─────────────────────────────────────────── */

  .race-session__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .race-session__title {
    font-size: 1.25rem;
  }

  .race-session__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .race-session__actions .button {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }

  /* ── Race Input ───────────────────────────────────────────── */

  /* Tabs kleiner */
  .race-input__tabs .button {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }

  /* Eintrag-Zeile umbrechen */
  .race-input__entry-row {
    flex-wrap: wrap;
  }

  /* ── Race Results Tabelle ─────────────────────────────────── */

  .race-results__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .race-results__table {
    min-width: unset;
    width: 100%;
    table-layout: fixed;
    font-size: 0.82rem;
  }

  .race-results__table thead th,
  .race-results__table tbody td {
    padding: 0.35rem 0.4rem;
  }

  .race-results__col-club,
  th.race-results__col-club,
  td.race-results__col-club,
  .race-results__col-classes,
  th.race-results__col-classes,
  td.race-results__col-classes,
  .race-results__col-gender,
  th.race-results__col-gender,
  td.race-results__col-gender {
    display: none;
  }

  .race-results__col-rank   { width: 2rem; }
  .race-results__col-nr     { width: 2.4rem; }
  .race-results__col-name   { min-width: unset; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .race-results__col-pts    { width: 4rem; }
  .race-results__col-laps   { width: 3rem; }
  .race-results__col-status { width: 3rem; }

  /* ── Race Form ────────────────────────────────────────────── */

  /* 2-Spalten-Grid → 1 Spalte */
  .race-form__grid {
    grid-template-columns: 1fr;
  }

  /* ── Formular-Karten auf CRUD-Seiten ─────────────────────── */

  .card-edit .form {
    gap: 0.75rem;
  }

  /* ── Formular-Modal (Athleten) ────────────────────────────── */

  /* Slide-up aus dem unteren Bildrand */
  .form-modal {
    padding: 0;
    align-items: flex-end;
  }

  .form-modal__content {
    max-width: 100% !important;
    width: 100%;
    border-radius: var(--border-radius-big) var(--border-radius-big) 0 0;
    max-height: 92vh;
    overflow-y: auto;
  }

  .form-modal__content .card {
    border-radius: var(--border-radius-big) var(--border-radius-big) 0 0;
    min-height: unset;
    max-height: 92vh;
    overflow-y: auto;
  }

  /* ── Auth-Seiten (Login, Passwort) ────────────────────────── */

  .auth-layout {
    align-items: flex-start;
    padding: 2rem 1rem;
    overflow-y: auto;
  }

  /* ── Button-Wrapper in Formularen ────────────────────────── */

  .button-wrapper {
    flex-direction: column;
  }

  .button-wrapper .button {
    width: 100%;
    justify-content: center;
  }

  /* ── Athleten Filterbar ───────────────────────────────────── */

  .athletes-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .athletes-header__add-btn {
    width: 100%;
    justify-content: center;
  }
}
