h1 {
    color: var(--secondary-color);
}

h3 {
   font-size: 1.5em; 
   font-weight: 500;
}

/*++++++++++++++++++++++++ Part1, Part2, Part3 +++++++++++++++++++++++++++++*/
article header {
  background: none;
}

article header h2 {
  width: 100%;
}
/*++++++++++++++++++++++++++++++++ Part 1 +++++++++++++++++++++++++++++++++*/
#part-1 {
   background-image: url("../img/AdobeStock_386571499.webp");
   background-size: cover;
   display: flex;
   justify-content: space-between; /* Optional: Verteilt die Boxen gleichmäßig */
   align-items: stretch;
   flex-direction: column;
   text-shadow: 2px 2px #000000;
   padding: 20px 5% 20px 6%;
}

.button-box {
  display: flex;
  justify-content: center;  /* Gleichmäßige Verteilung der Buttons */
  gap: 10px;  /* Optional: Abstand zwischen den Buttons */
  flex-wrap: wrap;  /* Bei Bedarf, damit die Buttons auf kleineren Bildschirmen umbrechen */
  margin: 30px 0;
}

#img-responsive-webdesign {
    width: 90%;
}

/*+++++++++++++++++++++++++++++++++ Part 2 ++++++++++++++++++++++++++++++++++*/
#part-2 h2 {
    color: var(--pink-color); 
}

#part-2 {
    padding: 30px 5% 30px 5%;
    background-color:var(--secondary-color); 
    font-size: 1em;
    color: var(--primary-color); 
}

#part-2 section:first-of-type {
    margin-bottom: 20px;
}


/*+++++++++++++++++++++++++++++++++++ Part 3 +++++++++++++++++++++++++++++++++*/
#part-3 {
    padding: 30px 5% 30px 5%;
    background-color: var(--primary-color); 
}

#part-3 h2 {
    color: var(--secondary-color); 
}
    
#part-3 p {
    margin: auto;
    text-align: center;
}

/*++++++++++++++++++++ Flip Card ++++++++++++++++++++++*/
/* Grid für Flip-Cards */
.flip-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; /* Abstand zwischen den Karten */
    padding: 20px;
    justify-content: center;
}

/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    perspective: 1000px;
    background-color: transparent;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.flip-card-back p {
    font-size: 1em;
    padding: 5%;
}
  
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}
  
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
  
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
  
.flip-card-front {
    background-color: var(--turkis-color); 
    color: var(--secondary-color); 
    font-weight: 800;

}
  
.flip-card-back {
    background-color: var(--pink-color); 
    color: white;
    transform: rotateY(180deg);
}

/*+++++++++++++++++ Responsive min-width: 800px ++++++++++++++++++++++*/
@media only screen and (min-width: 800px) {
    #part-2 section:first-of-type {
        margin-bottom: 50px;
    }
    
    h1 {
        font-size: 4.5em;
    }
    h2 {
        font-size: 4em;
        padding-bottom: 60px;
    }

}

/*+++++++++++++++++ Responsive min-width: 1200px ++++++++++++++++++++++*/
@media only screen and (min-width: 1200px) {
    /*+++++++++++++++++++++++++++++++++++ Part 1 +++++++++++++++++++++++++++++++++*/
    #part-1 {
        flex-direction: row;
        min-height: 800px;
    }

    #part-1 > section {
        width: 50%;
        display: flex;
        flex-direction: column;  /* Stellt sicher, dass die Elemente untereinander angeordnet sind */
        justify-content: center; /* Zentriert vertikal (innerhalb des verfügbaren Raums) */
    }

    h1, #part-1 p {
        text-align: left!important;
    }

    .button-box {
        display: flex;
        justify-content: flex-start;  /* Button-Elemente nach links ausrichten */
        gap: 10px;  /* Optional: Abstand zwischen den Buttons */
    }

    .button-box .button-link:first-of-type {
        margin-left: 0!important;
    }


    h1 {
        font-size: 4.8em;
    }

    h2 {
        font-size: 4em;
    }

    figure {
        justify-content: end!important;
    }

}

/*+++++++++++++++++ Responsive min-width: 1600px ++++++++++++++++++++++*/
@media only screen and (min-width: 1600px) {
    
    h1 {
        font-size: 5.8em;
    }

    h2 {
        font-size: 5em;
    }
   /*+++++++++++++++++++++++++++++++++++ Part 2 +++++++++++++++++++++++++++++++++*/  
   #part-2 section section:nth-of-type(2) {
        margin-left: 5%;
    }

    #part-2-img-wrapper {
        display: flex;
        justify-content: center;
    }

    #part-2-img {
        width: 80%;
        margin: auto;
    }
    #part-2 p {
        text-align: left;
    }
}