/* styles.css */

/* Basis-Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body und Schriftarten */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
  padding-bottom: 40px;
}

/* Header – Fußball-Thema mit modernem Farbverlauf */
.football-header {
  background: linear-gradient(to right, #004400, #007700);
  color: #fff;
  padding: 20px;
  text-align: center;
}
.football-header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
}
.football-header nav li {
  margin: 0 10px;
}
.football-header nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.football-header nav a:hover {
  color: #ccffcc;
}

/* Global Access Container */
.global-access-container,
.sport-selection-container {
  max-width: 400px;
  margin: 50px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}
.global-access-container h2,
.sport-selection-container h2 {
  margin-bottom: 15px;
}
.global-access-container input[type="password"],
.sport-selection-container input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.global-access-container button,
.sport-selection-container button {
  padding: 12px 20px;
  background: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.global-access-container button:hover,
.sport-selection-container button:hover {
  background: #0056b3;
}

/* Custom Alert Box für animierte Erfolg- und Fehlermeldungen */
.alert {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 16px;
}
.alert .icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}
.alert svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.alert.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}
.alert.success .check {
  stroke: #155724;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw-check 0.5s forwards;
}
.alert.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}
.alert.error .cross {
  stroke: #721c24;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw-cross 0.5s forwards;
}
@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes draw-cross {
  to {
    stroke-dashoffset: 0;
  }
}

/* Sport Buttons */
.sport-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}
.sport-button {
  display: inline-block;
  padding: 15px 25px;
  background: #007BFF;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.sport-button:hover {
  background: #0056b3;
  transform: scale(1.05);
}
.sport-button.disabled {
  background: #888;
  pointer-events: none;
}

/* Container & Grid */
.container {
  padding: 20px;
}
.sessions-grid,
.matchdays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Cards */
.card {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.card h3 {
  margin-bottom: 10px;
  font-size: 1.5em;
  color: #007BFF;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 15px;
  margin-top: 10px;
  background: #007BFF;
  color: #fff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
  cursor: pointer;
}
.btn:hover {
  background: #0056b3;
}

/* Back Link (spezifisch im Tab "Tore verwalten") */
.back-button {
  margin-bottom: 20px;
  display: inline-block;
}

/* Tabellen für Statistiken & Verwaltung */
.stat-table,
.referee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.stat-table th, .stat-table td,
.referee-table th, .referee-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.stat-table th,
.referee-table th {
  background: #007BFF;
  color: #fff;
}

/* Team Cards in Matchday View */
.team-card {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.team-card h4 {
  margin-bottom: 5px;
  color: #007BFF;
}

/* Tab Navigation Styles (für das Schiedsrichter-Portal) */
.tabs {
  overflow: hidden;
  background-color: #f1f1f1;
  margin-top: 20px;
  border-radius: 8px;
  display: flex;
}
.tablink {
  background-color: inherit;
  flex: 1;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: background-color 0.3s;
  font-size: 16px;
}
.tablink:hover, .tablink.active {
  background-color: #ddd;
}
.tabcontent {
  display: none;
  padding: 20px;
  border-top: none;
  background: #fff;
  border-radius: 0 0 8px 8px;
  margin-top: 0;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
  .football-header h1 {
    font-size: 1.5em;
  }
  .football-header nav li {
    margin: 5px;
  }
  .container, .global-access-container, .sport-selection-container {
    margin: 20px;
    padding: 15px;
  }
}
/* Spielerkarte für Rundendetails */
.player-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  width: 45%;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.player-card .player-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.player-card .player-info {
  font-size: 0.95em;
}

.player-card .player-name {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.player-card .goal-badge {
  background-color: #ff9800;
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.9em;
}

