/* Standard Box */
.box {
    flex: 1 1 300px; /* Fixierte Mindestbreite und flexible Anpassung */
    width: 100%; /* Einheitliche Breite für alle Boxen */
    max-width: 800px; /* Begrenzt die maximale Breite */
    height: auto;
    padding: 10px;
    background: linear-gradient(to right, #f24040, #f51f1f);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    color: white;
    vertical-align: top;
    overflow: hidden;
    flex-direction: column;
    flex-grow: 1; /* Gleichmäßige Skalierung */
    justify-content: space-between;
    align-items: center;
  }
  
  .box-container{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 20px;
    margin-bottom: 40px;
    margin-top: 40px;
  }
  .box:hover {
    transform: scale(1.05);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.4);
  }
  
  .box h2 {
    font-size: clamp(1rem, 3vw, 2rem);
    color: white;
    margin-bottom: 0;
  }
  
  .box p {
    font-size: clamp(0.8rem, 1.5vw, 1.5rem);
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
  }
  
  .box.active {
    display: flex;
    flex-grow: 1; /* Gleichmäßige Skalierung */
    flex-direction: column;
    align-items: center;
    width: 100%; /* Einheitliche Breite für alle Boxen */
    max-width: 800px; /* Begrenzt die maximale Breite */
    background: linear-gradient(to right, #f24040, #f51f1f);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    color: white;
    vertical-align: top;
    overflow: hidden;
  }
  
  .box.active p {
    opacity: 1;
    max-height: 500px;
    padding-top: 10px;
    width: 100%;
    margin-bottom: 20px;
  }

  @media screen and (max-width: 768px) {
    .box h2 {
        font-size: clamp(1rem, 3vw, 2rem);
    color: white;
        margin-bottom: 0;
        margin-top: 20px;
      }
  }
  