

/* tiles.css: Container für Kacheln */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
    gap: 15px; /* Abstand zwischen den Kacheln */
    width: 90%; /* Nutze 90% der Breite des Containers */
    margin-left: auto; /* Zentriert den Container horizontal */
    margin-right: auto;
    max-width: 1300px; /* Begrenze die Breite auf maximal 1200px */
    padding: 20px; /* Etwas Innenabstand für bessere Optik */
    border-radius: 8px; /* Leicht abgerundete Ecken für den Container */
}

/* Einzelne Kachel */
.tile {

    max-width: 600px;
    background: rgba(255, 255, 255, 0.4);
    /* Neuer Box-Shadow */
    box-shadow:
            0 4px 6px rgba(0, 0, 0, 0.1),
            0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 20px;

    color: #555c5f; /* Grauer Farbton wie bei anderen Texten */
    display: flex;
    flex-direction: column; /* Inhalte vertikal anordnen */
    justify-content: space-between; /* Platz zwischen den Elementen */
    align-items: center; /* Zentriert Inhalte horizontal */
    overflow: hidden; /* Verhindert, dass Bilder aus der Kachel herausragen */
}

.tile-single {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow:
            0 4px 6px rgba(0, 0, 0, 0.1),
            0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 15px;

    /* Zentrierung */
    margin-left: auto;
    margin-right: auto;
}

.tile-single:not(:last-of-type) {
    margin-top: 25px;
    /*margin-bottom: 10px;*/
}

/* Hover-Effekt: Kachel hebt sich leicht */
.tile:hover {
    /*transform: translateY(-3px); !* Leichtes Anheben *!*/
    /*box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15); !* Verstärkter Schatten *!*/
}

/* Zusätzliche Stile für Kachel-Titel und Beschreibung */
.tile h3 {
    font-size: 20px; /* Etwas kleinere Titel für Kacheln */
    margin-top: 5px; /* Abstand oberhalb */
}

/* Kachel-Bild */
.tile img {
    max-width: 100%;
    height: auto;
    border-radius: 5px; /* Abgerundete Ecken am Bild */
    margin-top: 10px;
}
.tile a {
    display: inline-block;
    color: #004d26;
    font-weight: bold;
    text-decoration: none;
}

.tile a:hover {
    text-decoration: underline;
}

.training-image-container,
.turniere-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 600 / 400; /* Stellt sicher, dass das Bild ein Seitenverhältnis von 16:9 hat */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    border-radius: 5px; /* Abgerundete Ecken */
}
/* Progress-Bar */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background-color: #069d4a;
    transition: width 10s linear;
}

/* Alle Bilder im Container */
.training-image-container img,
.turniere-image-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    border-radius: inherit; /* Erbt die abgerundeten Ecken vom Container */
}


/* Aktives Bild wird sichtbar */
.training-image-container img.active,
.turniere-image-container img.active{
    opacity: 1;
}

/* Erste Bilder sichtbar machen */
.training-image-container img:first-child,
.turniere-image-container img:first-child {
    opacity: 1;
}

.tile-link {
    margin-top: 10px;
    color: #007b5f;
}

@media (max-width: 600px) {
    /* Kachel-Anordnung */
    .tiles-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

