
#services-container{
    display: flex;                /* puts them in a row */
    justify-content: center;      /* centers horizontally */
    align-items: flex-end;        /* bottom-aligns them for visual balance */
    gap: 20px;                    /* space between boxes */
    flex-wrap: wrap;              /* makes it flexible on smaller screens */
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background-color: #202A44;
    color: white;
    padding: 2.5% 10% 2.5% 10%;

}

p {
    margin: 0.75em;
    margin-bottom: 0.5%;
}

    /* base style for all boxes */
.service-box  {
    flex: 1 1 200px;              /* flexible width but min 200px */     
    background: #121254;
    transition: all 0.3s ease;
    border: white 1px solid;
    padding-left: 0.5%;
    padding-right: 0.5%;
}

    /* middle one slightly taller */
    .service-box-middle {
        flex: 1 1 200px;              /* flexible width but min 200px */
        transition: all 0.3s ease;
        background-color: #ff4b4b;
        border: white 1px solid;
    }

.extras {
    color: #000035;          
    font-weight: bold;
}

.preis {
    color: rgb(255, 255, 121);          
    font-weight: bold;
    font-size: 1.25em;
}
.extras2 {
    color: #ff4b4b;          
    font-weight: bold;
}

#button2 {
    background-color: #202A44;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: bold;

}

@media (min-width: 1500px) {
    .service-box {
        height: 900px;              /* taller on large screens */
        font-size: 120%;
    }  
    .service-box-middle {
        height: 930px;              /* taller on large screens */
        font-size: 120%;
    }
}

@media (min-width: 1201px) and (max-width: 1499px) {
    .service-box {
        height: 820px;               /* medium height on medium screens */
        font-size: 110%;
    }  
    .service-box-middle {
        height: 850px;              /* medium height on medium screens */
        font-size: 110%;
    }
}

@media (min-width: 1101px) and (max-width: 1200px) {
    .service-box {
        height: 780px;               /* medium height on medium screens */
        font-size: 100%;
    }  
    .service-box-middle {
        height: 810px;              /* medium height on medium screens */
        font-size: 100%; 
    }
}

@media (max-width: 1100px) and (min-width: 900px) {
  #services-container {
    flex-direction: column; /* stack under each other */
    align-items: center;
  }

  .service-box {
    height: 1150px;
    font-size: 100%;
    width: 90%;
  }

  .service-box-middle {
    height: 1200px;
    font-size: 100%;
    width: 90%;
  }
}

/* --- Smaller screens (751px–899px) --- */
@media (max-width: 899px) and (min-width: 751px) {
  #services-container {
    flex-direction: column; /* keep stacking */
    align-items: center;
  }

  .service-box {
    height: 1200px;
    font-size: 110%;
    width: 90%;
  }

  .service-box-middle {
    height: 1250px;
    font-size: 110%;
    width: 90%;
  }
}

/* --- Very small screens (≤750px) --- */
@media (max-width: 750px) {
  #services-container {
    flex-direction: column; /* still stacked */
    align-items: center;
  }

  .service-box {
    height: 1300px;
    font-size: 110%;
    width: 90%;
  }

  .service-box-middle {
    height: 1350px;
    font-size: 110%;
    width: 90%;
  }
}