* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

body{
    background-color: rgb(251, 244, 239) ;
    font-size: 18px;
    height: 100%;
    margin: 0;
}

section{
    min-height: 100vh;
    padding: 90px;
  }


h1{
    text-align: center;
}

/*TITLES*/
#about{
    color:#056147;
    margin: 35px auto 35px;
}

#mass{
    color:#056147;
    margin: 150px auto;
}


.vision{
    color:#FC6C20;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
    text-align: center;
    line-height: 1.6;
}

.vision p{
    color:#FC6C20;
}

.vision p{
    font-style: italic;
}

.vision-section{
    background-color:#F7F3ED;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.philosophie {
    display: flex;
    height: 100%;
    justify-content: center;
}
  
.box{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; 
    background-color:#056147;
    width: 100%;
    padding: 100px 20px;
    border-radius: 15px; 
    text-align: center;
    margin: 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.box:hover{
    transform: scale(1.05);
}

.title{
    color:#f3cce7;
}

.content{
    color:#F7F3ED;
}

.section-werwirsind{
    background-color: #f3cce7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.container-werwirsind{ 
    max-width: 80%;
    color: #056147;
    line-height: 2;
    text-align: center;
    margin-bottom: 50px;
}

.container-werwirsind p{
    color: #056147;
}

.team-section{
    color:#FC6C20;
    background-color: #056147;
}

.teambox{
    border-radius: 15px;
    display: flex;
    background-color:#f3cce7;
    max-width: 1000px;
    align-items: center;
    padding: 20px;
    margin: 20px auto; /* Center the box horizontally on the page */
    transition: transform 0.3s ease;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}


.teambox:hover{
    transform: scale(1.05);
}



.profile-img {
    width: 200px; 
    height: auto; 
    object-fit: cover; /* Ensure the image maintains aspect ratio */
    margin: 0 auto 20px; /*center image on mobile ADJUSTED*/
}
  
  
  /* Styling the Text */
  .team-text {
    flex: 1; /* Take up the remaining space */
    padding-left: 20px;
  }
  
  .team-text h3 {
    margin: 0 0 10px;
    color:#FC6C20;
  }
  
  .team-text p {
    color:#FC6C20;
    margin: 5px 0;
  }

.kontaktformular{
    background-color:#5B9BD5;
    height: auto;
    width: fit-content; /*ADJUSTED*/
    border-radius: 100px;
    text-align: center;
    margin: auto;

}

.kontaktformular a{
    color: white;
    font-size: 24px;
    font-style: bold;
    text-decoration: none;
}

  .contact{
    color:#5B9BD5;
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between boxes ADJUSTED */
    height: 100%;
    justify-content: center;
    align-items: start;
  }

  .contactbox{
    color:#5B9BD5;
    width: 240px;
    height: auto;
    flex: 1 1 100px; /*adjusted*/
    font-size: 20px;
    border-radius: 8px; 
    text-align: center;
    padding: 10px;
}
.contactbox a{
    text-decoration: none;
    color:#5B9BD5;
}


.kontaktformular:hover{
    background-color:#FC6C20;
    transform: scale(1.05);

}
@media (min-width: 610px) and (max-height: 750px){
    .container-arrows{
        display: none;
    }
}

@media (min-width: 610px) and (min-height: 750px){
    .container-arrows{
        display: inline-block;
        bottom: 0;
    }
}


@media (max-width: 1200px) {
    .philosophie {
        flex-direction: column;
        align-items: center;
    }
    .box{ 
        width: 80%;
    }
    .container-arrows{
        display: none;
    }
}

/* General Responsive Styles */
@media (max-width: 1024px) {
    section {
        padding: 50px; /* Reduce padding for smaller screens */
    }

    h1 {
        margin: 0 auto 10px;
    }

    .vision-section{
        padding-top: 100px;
    }

    .vision {
        max-width: 90%; /* Narrow the width for better fit */
    }

    .philosophie{
        margin-top: 10px;
        padding-top: 0;
    }
}

/* Tablet and Mobile Adjustments */
@media (max-width: 768px) {

    .container-werwirsind{
        margin-bottom: 40px;
    }

    p{
        line-height: 27px;
    }

    .teambox {
        flex-direction: column; /* Stack image and text */
        text-align: center; /* Center-align content */
        padding: 15px; /* Reduce padding */
    }

    .profile-img {
        width: 150px; /* Scale down image size */
        margin-bottom: 15px;
    }

    .team-text {
        font-size: 14px;
    }

    .contact {
        flex-direction: column; /* Stack contact boxes */
        align-items: center; /* Center-align boxes */
    }

    .contactbox {
        width: 80%; /* Make contact boxes full width */
        font-size: 18px; /* Adjust font size */
    }

    .box{ 
        width: 100%;
    }

}

/* Mobile Phones Adjustments */
@media (max-width: 480px) {
    body {
        font-size: 16px; /* Reduce global font size */
    }

    section {
        padding: 20px; /* Minimize padding */
    }

    .vision {
        font-size: 14px; /* Smaller font size for readability */
        padding: 10px;
    }

    .werwirsind {
        font-size: 14px;
    }

    .box {
        font-size: 14px;
        padding: 15px;
    }

    .teambox {
        max-width: 90%;
        padding: 10px;
    }

    .team-text p{
        font-size: 16px;
    }

    .contactbox {
        width: 80%;
        font-size: 14px;
        padding: 10px;
    }

    .kontaktformular {
        font-size: 16px;
        padding: 10px 20px;
    }

    .kontaktformular a {
        font-size: 18px;
    }
}
