/* =====================================================
   RESPONSIVE DESIGN
===================================================== */


@media(max-width:1000px){


.cards{

    grid-template-columns:repeat(2,1fr);

}


.about-grid,
.contact-grid{

    grid-template-columns:1fr;

}


nav ul{

    gap:15px;

}


}



@media(max-width:700px){


header .container{

    height:auto;

    padding:20px 0;

    flex-direction:column;

    gap:20px;

}


nav ul{

    flex-direction:column;

    text-align:center;

}


.hero{

    height:90vh;

}


.hero-buttons{

    flex-direction:column;

}


.cards{

    grid-template-columns:1fr;

}


h2{

    font-size:2rem;

}


section{

    padding:60px 0;

}


footer .container{

    flex-direction:column;

    gap:20px;

    text-align:center;

}


}

@media(max-width:1000px){

.team-grid{

    grid-template-columns:repeat(2,1fr);

}

}



@media(max-width:700px){

.team-grid{

    grid-template-columns:1fr;

}


.team-card img{

    height:300px;

}

}

/* ================= Mobile Optimierung ================= */


@media (max-width: 900px) {


    header .container {

        flex-wrap: wrap;

        justify-content: space-between;

    }


    nav {

        width: 100%;

        display: none;

        order: 3;

    }


    nav.open {

        display: block;

    }


    nav ul {

        flex-direction: column;

        padding: 20px 0;

        gap: 15px;

    }


    .menu-button {

        display: block;

        font-size: 30px;

        cursor: pointer;

        color: #0086bc;

    }


    header .button {

        display: none;

    }



    .hero {

        min-height: 650px;

    }


    .hero-content h1 {

        font-size: 38px;

    }


    .hero-content p {

        font-size: 16px;

    }



    .cards {

        grid-template-columns: 1fr;

    }



    .about-grid,

    .contact-grid {

        grid-template-columns: 1fr;

    }



    .service-card img,

    .team-card img {

        width:100%;

        height:auto;

    }



    .appointment-form {

        padding:20px;

    }


}

@media (max-width:600px){


input,
select,
textarea {

    font-size:16px;

    padding:14px;

}


.appointment-form button {

    width:100%;

}



.page-header h1 {

    font-size:32px;

}


}

/* ================= Fitness Header Mobile ================= */

@media (max-width: 768px) {


    .fitness-header {

        padding:60px 20px;

        min-height:auto;

    }


    .fitness-header h1 {

        font-size:32px;

        line-height:1.25;

        margin-bottom:20px;

        color:#1a1a1a;

    }


    .fitness-header p {

        font-size:16px;

        line-height:1.6;

        color:#333;

    }


}

@media (max-width:768px){

.page-header {

    height:auto;

    min-height:250px;

    display:flex;

    align-items:center;

}

.page-header h1 {

    white-space:normal;

}

}

@media (max-width: 768px) {


header {

    position: relative;
    z-index: 1000;

}


.page-header,
.fitness-header {

    padding-top:120px;

}


}

/* =====================================================
   KURSBESCHREIBUNGEN AUF HANDYS
   ===================================================== */

@media (max-width: 768px) {

    .modern-course-card ul {
        opacity: 1;
        max-height: none;
        overflow: visible;
        margin-top: 20px;
    }

}

/* =====================================================
   KURSE - MOBILE OPTIMIERUNG
   ===================================================== */

@media (max-width: 768px) {

    .course-list .container,
    .course-info .container,
    .rehab-section .container,
    .weekly-courses .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .course-cards,
    .info-grid,
    .rehab-grid,
    .course-calendar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .modern-course-card,
    .info-box,
    .rehab-card,
    .course-day {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

}

@media (max-width: 768px) {

    .modern-course-card {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .modern-course-card h3 {
        font-size: 1.25rem;
        line-height: 1.3;
        overflow-wrap: break-word;
    }

    .modern-course-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        overflow-wrap: break-word;
    }

    .modern-course-card ul {
        padding-left: 20px;
        margin-bottom: 0;
    }

    .modern-course-card li {
        line-height: 1.5;
        margin-bottom: 6px;
    }

}

@media (max-width: 768px) {

    .course-calendar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }

    .course-day {
        width: 100%;
        box-sizing: border-box;
        padding: 18px;
        border-radius: 16px;
    }

    .course-day h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .course-entry {
        width: 100%;
        box-sizing: border-box;
        padding: 14px;
        margin-bottom: 12px;
    }

    .course-entry strong {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .course-entry span {
        font-size: 0.95rem;
        line-height: 1.4;
        overflow-wrap: break-word;
    }

    .course-entry small {
        font-size: 0.8rem;
    }

}

/* =====================================================
   MOBILE – KURSÜBERSCHRIFTEN
   ===================================================== */

@media (max-width: 768px) {

    .course-info h2 {
        font-size: 1.7rem;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        max-width: 100%;
    }

    .course-info .info-box {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

}

@media (max-width: 768px) {

    .course-info h2,
    .course-list h2,
    .rehab-section h2,
    .weekly-courses h2 {
        font-size: 1.6rem;
        line-height: 1.25;
        hyphens: none;
        word-break: normal;
        overflow-wrap: normal;
    }

}

@media (max-width: 400px) {

    .course-info h2 {
        font-size: 1.4rem;
    }

}

.menu-button {
    display: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #0086bc;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 900px) {

    .menu-button {
        display: block;
        background: transparent;
        border: none;
        padding: 0;
        color: #0086bc;
        font-size: 30px;
        cursor: pointer;
    }

}