/* Allgemeine Stile */
body {
    font-family: "Arial", serif;
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
}

.pages {
    position: relative;
    text-align: center;
    font-family: Arial;
    color: white;
    font-size: 22px;
    padding: 25px;
    text-decoration: none;
}

.pages a {
    color: white;
    text-decoration: none;
    padding: 70px;
}

.pages a:hover {
    background-color: #63a0cc;
    border-radius: 25px;
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.3);
}

.menu {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #9bc4e2;
    border-radius: 0px 0px 10px 10px;
}

.menu1 {
    list-style: none;
}

.logo {
    display: block;
    position: absolute;
    top: 0%;
    height: 110%;
}

main {
    position: relative;
    padding: 6rem 2rem 2rem;
    text-align: left;
}

.container {
    position: relative;
    width: 100%;
    height: 105vh;
}

.bild1 {
    position: absolute;
    top: 55%; 
    right: 6%; /* Abstand von rechts */
    width: 45%; /* Anpassung an Bildschirmgröße */
    max-width: 1000px; /* Verhindert zu große Bilder */
    height: auto;
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.3);
}

.text1 {
    position: absolute;
    top: 30%; 
    right: 14%;
    font-size: 40px;
}

.bild2 {
    position: absolute;
    top: 20%; /* Weiter unten */
    left: 6%; /* Abstand von links */
    width: 45%;
    max-width: 1000px;
    height: auto;
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.3);
}

.text2 {
    position: absolute;
    top: 90%; 
    left: 14%;
    font-size: 40px;
}

.überschrift {
    font-size: 3rem;
    text-shadow: 10px 10px 15px rgba(0, 0, 0, 0.274);
}

.main-text {
    font-family: "Arial", serif;
    font-size: 2rem;
    margin: 2rem 0;
    text-align: left;
    line-height: 1.5;
}

.info {
    font-size: 1.3rem;
    color: rgb(148, 148, 148);
    text-align: center;
}

.container2 {
    display: flex;
    gap: 3rem; /* Abstand zwischen Bild und Text */
    height: 25%;
    margin-top: 5%;
    margin-bottom: 1%;
}

.bildübermich {
    width: 100%;
    max-height: 100%; /* Damit das Bild seine Größe beibehält */
}

.textüm {
    display: block;
}

.textübermich {
    font-size: 2rem;
    max-width: 90%; /* Verhindert, dass der Text zu weit geht */
    white-space: normal; /* Umbrüche im Text zulassen */
    overflow: hidden; /* Verhindert, dass der Text überläuft */
    text-overflow: ellipsis; /* Optional: Text wird mit '...' abgeschnitten, wenn er zu lang ist */
}

/* Anlageempfehlungen Styling */
.recommendation {
    border: 1px solid #ccc;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.recommendation h3 {
    margin-top: 0;
    color: #333;
}

.recommendation p {
    margin: 0.5rem 0;
}

/* Formular-Stile */
form {
    max-width: 45%;
    margin: 0 auto;
    padding: 1rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 22px;
}

.wählen {
    color: #8b8b8b;
}

form input[type="number"],
form select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
}

form output.range-output {
    display: inline-block;
    width: auto;
    margin-right: 0.5rem;
    font-weight: bold;
}

form .range-wrapper {
    margin-bottom: 1rem;
}

form button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background-color: #9bc4e2;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 1rem auto;
}

form button:hover {
    background-color: #70b4e4;
}

#recommendations {
    margin-top: 1rem;
}

.spende {
    display: block;
    position: relative;
    font-size: 3rem;
    text-align: center;
    cursor: pointer;
    border: none;
    background-color: #9bc4e2;
    color: white;
    padding: 1%;
    margin-bottom: 5%;
    text-decoration: none;
}
.spende:hover {
    background-color: #70b4e4;
}

.spendentext {
    margin-top: 10%;
    font-size: 2rem;
}

.fußzeile {
    position: relative;
    bottom: 0%;
    width: 100%;
    height: 40%;
    text-align: center;
    padding-bottom: 5%;
    padding-top: 2%;
    background-color:#9bc4e2;
    color: #ffffff;
}

.email {
    color: #1a73e8;
    cursor: pointer;
}

.social {
    margin: 0 10px; color: #1a73e8;
    cursor: pointer;
}

/* Mobile Anpassungen */
@media (max-width: 1000px ) {
    /* Menü kompakter & mittig ausrichten */
    .menu {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
        text-align: center;
    }
    
    .menu1 {
        display: flex;
        flex-direction: row; /* Nebeneinander */
        justify-content: center; /* Zentriert die Menüpunkte */
        align-items: center;
        gap: 10px; /* Abstand zwischen den Menüpunkten */
        padding: 0;
        list-style: none;
    }
    
    .pages {
        display: inline-block;
        font-size: 18px;
        padding: 6px;
    }
    
    .pages a {
        text-decoration: none;
        color: rgb(255, 255, 255);
        padding: 5px 10px;
    }    

    .logo {
        display: none;
    }

    /* Hauptinhalt anpassen */
    main {
        padding: 4rem 1rem 2rem;
        text-align: center;
    }

    .container {
        height: auto;
        padding-top: 30%;
    }

    .bild1, .bild2 {
        position: static;
        width: 90%;
        margin: 20px auto;
        display: block;
    }

    .text1, .text2 {
        position: static;
        text-align: center;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .container2 {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 10%;
        margin-bottom: 10%;
    }

    .textübermich {
        font-size: 1rem;
        max-width: 100%;
        text-align: center;
    }

    form {
        max-width: 90%;
    }

    .überschrift {
        font-size: 2rem;
    }

    .main-text {
        font-size: 1rem;
    }

    .info {
        font-size: 0.8rem;
        padding-top: 8%;
    }

    .spendentext {
        font-size: 1rem;
        padding-top: 10%;
    }

    /* Fußzeile mittig machen */
    .fußzeile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0;
        font-size: 14px;
        height: 10%;
        padding-bottom: 5%;
    }

    .social {
        margin-top: 10px;
    }
}
