/* Trainingstile */
.training {
    margin-bottom: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    color: #000;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    padding: 5px 8px; /* Verkleinertes Padding oben und unten */
    line-height: 1.3; /* Engerer Zeilenabstand */
    box-sizing: border-box; /* Verhindert, dass Padding die Breite überschreitet */
    display: flex;
    flex-direction: column; /* Verhindert, dass Elemente zu breit werden */
    justify-content: flex-start; /* Zieht alle Elemente an den oberen Rand */
}

.training h3 {
    margin: 3px 0 5px 0; /* Kleinerer Abstand über und unter der Überschrift */
    font-size: 1.1em;
    padding-top: 0;
}

.training p {
    margin: 2px 0; /* Weniger Abstand zwischen den <p>-Tags */
    font-size: 0.95em;
    padding-top: 0;
}

.status-ungklar {
    background-color: #e9ecef; /* grau */
    border-color: #adb5bd;
}

.status-zugesagt {
    background-color: #d4edda; /* grünlich */
    border-color: #28a745;
}

.status-abgesagt {
    background-color: #f8d7da; /* rötlich */
    border-color: #dc3545;
}

button {
    margin: 5px 0;
    padding: 6px 10px;
    font-size: 0.95em;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    width: 100%;
}

button:hover {
    background-color: #45a049;
}

input[type="text"] {
    padding: 5px 8px;
    margin-bottom: 5px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.training input[type="date"], .training input[type="time"] {
    padding: 5px 8px;
    margin-bottom: 5px;
}

#anmeldungen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 1000;
}

#anmeldungen-list {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
}

#anmeldungen-list p {
    margin: 10px 0;
}

/* Visuelle Hervorhebung des geklickten Trainings */
.highlight {
    background-color: #f0f8ff;
    border: 2px solid #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Anmeldung buttons */
.anmeldung-buttons {
    margin-top: 10px;
    display: none;
    width: 100%;
}

/* Responsivität für kleine Bildschirme */
@media (max-width: 600px) {
    .training {
        padding: 0.8em;
        font-size: 14px;
    }

    button {
        padding: 8px 12px;
        margin: 4px 0;
        font-size: 16px;
    }

    input[type="text"] {
        width: 100%;
        font-size: 16px;
    }

    header {
        flex-direction: column; /* Stellt sicher, dass der Header in einer Spalte angeordnet wird */
        text-align: center; /* Text wird zentriert */
    }

    header h1 {
        margin-bottom: 10px; /* Kleiner Abstand unter der Überschrift */
    }

    .admin-button {
        margin-left: 0; /* Entfernt den linken Abstand */
        margin-top: 10px; /* Fügt einen Abstand über dem Button hinzu */
        width: 100%; /* Macht den Admin-Button vollbreit */
        text-align: center; /* Zentriert den Button */
    }
}

.admin-button {
    padding: 10px 16px;
    background-color: #28a745; /* Grüner Hintergrund */
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.admin-button:hover {
    background-color: #218838; /* Dunkleres Grün beim Hover */
}

header {
    display: flex;
    justify-content: space-between; /* Verteilt Inhalt */
    align-items: center; /* Zentriert Inhalt vertikal */
    background-color: #2c90f5; /* Dunkelblau */
   	padding: 1em;
    text-align: center;
  	
}

header h1 {
    color: white;
    margin: 0;
    flex-grow: 1; /* Lässt die Überschrift den gesamten Raum einnehmen */
}

.admin-button {
    margin-left: 20px; /* Abstand von der Überschrift */
}
#sperrzeit-info {
  border: 2px solid #FFA500;   /* orangefarbener Rahmen */
  padding: 15px;               /* Innenabstand */
  border-radius: 8px;          /* abgerundete Ecken */
  background-color: #FFF8DC;   /* hellgelber Hintergrund */
  margin-bottom: 20px;         /* Abstand nach unten */
}