.space {
    height: 80px;
}
.space2 {
    height: 40px;
}
.space3 {
    height: 30px;
}
body {
    font-family: "Albert Sans", sans-serif;
    color: #3F0D12;
    background: linear-gradient(to bottom, #f0f5ef, #D6E4D3);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
a {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    text-decoration: none;
}
button {
    font-family: "Albert Sans";
    font-weight: 700;
    font-size: 12px;
    padding: 10px 14px;
    background-color: #AC98FF;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    margin: 0 0 30px 0;
}
.CTA {
    font-family: "Albert Sans";
    font-weight: 700;
    font-size: 20px;
    padding: 20px 368px;
    background-color: #8A6FEF;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    margin: 0 0 30px 0;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.25s ease 0.1s;
}
.CTA:hover {
  background-color: #7455D4; /* Noch etwas dunkler */
}
.figma {
    display: block;
    width: auto;  /* Entfernt die feste 60%-Breite */
    text-align: left; /* Stellt sicher, dass der Inhalt links ausgerichtet ist */
}
.container h1 {
    font-family: "Albert Sans", sans-serif;
    color: #3F0D12;
    font-size: 53px;
    font-weight: 800;
    margin: 0 0 40px 0;
}
h2 {
    font-family: "Albert Sans", sans-serif;
    color: #3F0D12;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 30px 0;
}
.container {
    width: 80%;
    max-width: 1000px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.container p {
    font-size: 18px;
    text-align: left;
    line-height: 1.5;
    margin: 0 0 40px 0;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.image-item {
  display: block;
  width: 100%;
  height: 100%; /* Stellt sicher, dass das Bild die Höhe des Containers ausfüllt */
  object-fit: cover; /* Bild bleibt rechteckig und wird zugeschnitten, um den Container auszufüllen */
  overflow: hidden;
  border-radius: 16px;
}
.image-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
main .navigate p {
    font-family: "Albert Sans", sans-serif;
    font-weight: 500;
    font-size: 16px !important;;
    color: black !important;
    text-decoration: none !important;
    padding: 20px 20px;
}
img {
    max-width: 1000px;
    width: 100%;
    height: auto;
    margin: 0 0 54px 0;
}
.shadow {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}
.flow_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    max-width: 1000px;
    width: 100%;
}

.description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
}
.description_right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: right;
}
.description h2 {
    margin-bottom: 15px;
    text-align: left;
    margin: 0 0 30px 0;
}
.description_right h2 {
    margin-bottom: 15px;
    text-align: right;
    margin: 0 0 30px 0;
}
.description_right p {
    text-align: right;
    max-width: 100%;
}
.description p {
    text-align: left;
    max-width: 100%;
}
.screen {
    display: flex;
    justify-content: right;
    align-items: right;
}

.screen img {
    max-width: 80%;
    height: auto;
    object-fit: cover;
    max-height: 1500px;  /* Anpassung der Höhe für das Bild */
}
.screen_left {
    display: flex;
    justify-content: left;
    align-items: left;
}

.screen_left img {
    max-width: 80%;
    height: auto;
    object-fit: cover;
    max-height: 1500px;  /* Anpassung der Höhe für das Bild */
}
ul {
    font-size: 18px;
    margin: 0;
    line-height: 1.5;
    margin: 0 0 40px 0;
}
.second-image {
    position: relative; /* Absolut positioniert */
    top: -10px;  /* Oberhalb des Textes */
    left: 150px;  /* Direkt neben dem ersten Bild */
    transform: translateX(20px);  /* Optional, um ein wenig Abstand zu schaffen */
    z-index: 999;
}
.second-image img {
    max-width: 60%; /* Bildgröße anpassen */
    height: auto;
    z-index: 999;
    margin-bottom: none;
}
footer {
    width: 60%;
    max-width: 1200px;
    text-align: center;
    margin: 40px auto 0 auto;
    margin-top: 40px;
    padding: 20px;
    font-size: 14px;
    background-color: transparent;
}

/* Mobile Styles (Smartphones) */
@media only screen and (max-width: 480px) {
    .container {
        width: 90%;
        padding: 20px;
    }

    .container h1 {
        font-size: 28px;
        margin: 0 0 30px 0;
    }

    h2 {
        font-size: 16px;
    }

    .CTA {
        padding: 10px 30px;
        font-size: 16px;
    }

    button {
        padding: 8px 12px;
        font-size: 10px;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .image-item {
        width: 100%;
        height: auto;
    }
    .second-image {
        display: none !important;
    }
    /* Wichtig: flow_container auf eine Spalte setzen */
    .flow_container {
        display: grid; /* sicherstellen, dass es ein Grid ist */
        grid-template-columns: 1fr !important; /* auf eine Spalte setzen */
        gap: 20px;
    }
    .description,
        .description_right {
            order: 1; /* Den Text zuerst anzeigen */
            text-align: left !important;
        }

        .screen,
        .screen_left {
            order: 2; /* Das Bild danach anzeigen */
        }
    .screen img, .screen_left img {
        max-width: 100%;
        max-height: 1000px;
    }

    footer {
        width: 100%;
    }
}


/* Tablet Styles (Tablets) */
@media only screen and (max-width: 768px) {
    .container {
        width: 85%; /* Etwas breiter auf Tablets */
        padding: 30px; /* Weniger Padding für kleinere Bildschirme */
    }

    .container h1 {
        font-size: 40px; /* Kleinere Schriftgröße für Tablets */
        margin: 0 0 30px 0;
    }

    h2 {
        font-size: 18px; /* Kleinere Schriftgröße für Tablets */
    }

    .CTA {
        padding: 15px 50px; /* Weniger Padding für Buttons */
        font-size: 18px; /* Kleinere Schriftgröße für Tablets */
    }

    button {
        padding: 10px 14px; /* Weniger Padding für Tablets */
        font-size: 12px; /* Kleinere Schriftgröße */
    }

    .image-grid {
        grid-template-columns: 1fr 1fr; /* Zwei Spalten auf Tablets */
        gap: 20px;
    }

    .image-item {
        width: 100%; /* Vollbild auf Tablets */
        height: auto;
    }
    .flow_container {
        grid-template-columns: 1fr 1fr; /* Zwei Spalten auf Tablets */
    }

    .screen img, .screen_left img {
        max-width: 100%; /* Bild passt sich besser an */
        max-height: 1200px;
    }

    footer {
        width: 100%; /* Footer auf die ganze Breite dehnen */
    }
}
