button {
  background: #4a6cf7;
  color: white;
  cursor: pointer;
  border: none;
  margin-right: 10px;
}

button:hover {
  background: #3a56c7;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 25px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

th {
  background: #4a6cf7;
  color: white;
}

.round-title {
  font-size: 20px;
  margin-top: 5px;
  margin-bottom: 10px;
  font-weight: bold;
}

.result-input {
  width: 80px;
  text-align: center;
}

.edit-btn {
  float: right;
  background: #eee;
  color: #333;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 6px;
}

.edit-btn:hover {
  background: #ddd;
}

/* Error / validation messages */

.error-message {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;

  background: #ffe5e5;
  color: #a10000;

  font-size: 0.9rem;
}

.error-message[hidden] {
  display: none;
}

/* =========================
   Modal Overlay (Confirm)
   ========================= */

.modal-overlay {
  /* immer viewport-basiert */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  /* Darstellung */
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.45);

  /* über allem */
  z-index: 9999;
}

/* ✅ hidden-Zustand MUSS Display überschreiben */
.modal-overlay[hidden] {
  display: none !important;
}

/* =========================
   Modal Box
   ========================= */

.modal {
  background: #fff;
  padding: 1.5rem 2rem;

  min-width: 320px;
  max-width: 90vw;

  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* =========================
   Modal Actions
   ========================= */

.modal-actions {
  margin-top: 1.5rem;

  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* optionaler Danger-Button */
.modal-actions .danger {
  background: #c62828;
  color: #fff;
  border: none;
}
