/* Grundlegende Styles */
body {
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}


/* Info-Sektion */
.info {
    padding: 40px 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
}
.info-content{
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.t-size-h2 {
    font-size: 2rem;
    color: #1e549f; /* Hauptfarbe */
    text-align: center;
}

/* Geräte Liste */
.card-liste {
    display: flex;    
    flex-wrap: wrap;
    margin-top: 1rem;
    gap: 20px;
    list-style-type: none;
    padding: 0;
    justify-content: center;
}

.card-liste li {
    flex: 0 0 calc(33.33% - 20px);
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.card-liste a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    height: 110px; 
    position: relative;
    transition: transform 0.3s;
}

.card-liste a:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.card-liste span {
    position: relative;
    z-index: 2;
    margin-top: 5px;
    font-weight: bold;
}

.card-liste a:hover {
    transform: scale(1.05);
}

@media (max-width: 800px) {
    .card-liste li {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 500px) {
    .card-liste li {
        flex: 0 0 100%;
    }
}




/* Geräte-Details */
#geräte-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert die Inhalte */
}

.card-detail {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column; /* Flexbox für vertikale Anordnung */
    justify-content: space-between; /* Gleichmäßige Verteilung der Inhalte */
}

.card-detail:hover {
    transform: scale(1.02);
}

.card-detail img {
    max-width: 100%;
    border-radius: 10px;
}

.card-detail h3 {
    font-size: 1.5rem;
    color: #1e549f; /* Hauptfarbe */
}

.card-detail p {
    font-size: 1rem;
    color: #666;
    margin-top: 10px; /* Abstand zwischen Überschrift und Beschreibung */
}

/* Responsive Design für Geräte-Details */
@media (max-width: 600px) {
    .card-detail {
        padding: 15px;
        min-height: 200px; /* Anpassung der Mindesthöhe für Mobilgeräte */
    }
    
    .card-detail h3 {
        font-size: 1.3rem;
    }
    
    .card-detail p {
        font-size: 0.9rem;
    }
}

/* Physio */

/* Hauptliste der Buttons */
.button-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin-top: 1rem;
}

/* Button-Stil für jede Verlinkung */
.test-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #2e79ba; /* Grüner Hintergrund */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    text-transform: uppercase;
}

/* Hover-Effekt für die Buttons */
.test-btn:hover {
    background-color: #5fc9f3; /* Etwas dunkleres Grün bei Hover */
    transform: translateY(-5px); /* Leichtes Heben des Buttons */
}

/* Fokus-Effekt für Tastaturbenutzer */
.test-btn:focus {
    outline: 2px solid #1e549f; /* Visuelle Rückmeldung beim Fokus */
    box-shadow: 0 0 5px 1e549f;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .test-btn {
        width: calc(50% - 20px); /* Zwei Buttons pro Zeile bei kleineren Bildschirmen */
    }
}

@media (max-width: 480px) {
    .test-btn {
        width: 100%; /* Ein Button pro Zeile bei sehr kleinen Bildschirmen */
    }
}



/* Fitness Css */





#fitness {
    margin: 40px auto;
    padding: 20px;
    max-width: 800px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fitness-content {
    text-align: left;
}

.fitness-content h2 {
    font-size: 2rem;
    color: #1e549f;
    margin-bottom: 20px;
}

.fitness-content h3 {
    font-size: 1.5rem;
    color: #2e79ba;
    margin-top: 20px;
}

.fitness-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 10px 0;
}

/* Galerie Layout */
.gallerie h2{
    margin-bottom: 0;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));  /* Flexible Spalten, die auf 200px breiten Bildern basieren */
    gap: 20px;  /* Abstand zwischen den Bildern */
    padding: 10px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Mobile Anpassungen */
@media (max-width: 800px) {
    #fitness {
        padding: 15px;
    }

    .fitness-content h2 {
        font-size: 1.8rem;
    }

    .fitness-content h3 {
        font-size: 1.3rem;
    }

    .fitness-content p {
        font-size: 0.9rem;
    }

    /* Reduziere die Höhe der Galerie für kleine Bildschirme */
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}


/* Kurse CSS */

#kurs-details{
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}
.info-list {
    list-style-type: disc;
    padding-left: 20px; 
    margin: 10px 0; 
}

.info-list li {
    margin-bottom: 5px; 
}
.info-numb {
    padding-left: 20px; 
    margin: 10px 0; 
}

.info-numb li {
    margin-bottom: 5px;
}


/* Wellness */

#wellness-details{
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}


.wellness-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style-type: none;
}

.wellness-button {
    display: block;
    width: 100%;
    padding: 20px;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.wellness-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    z-index: 1;
}

.wellness-button span {
    position: relative;
    z-index: 2;
    font-weight: bold;
    font-size: 1rem; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); 
}

.wellness-button:hover {
    transform: scale(1.05);
}

@media (max-width: 800px) {
    .wellness-liste li {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 500px) {
    .wellness-liste li {
        flex: 0 0 100%;
    }
}



#kind-details{
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

@media (max-width: 800px) {
    #kind-details .card-detail{
        padding: 40px;
    }
}