@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.nav {
    height: 60px;
    width: 100%;
    background-color: #35353569;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav>.nav-header {
    display: inline;
}

.nav>.nav-header>.nav-title {
    display: inline-block;
    font-size: 22px;
    color: aliceblue;
    padding: 10px 10px 10px 10px;
    padding-left: 40px;
    font-weight: bold;
    text-decoration: none;
    font-family: Arial Black;
}

.nav>.nav-btn {
    display: none;
}

.nav>.nav-links {
    display: inline;
    float: right;
    font-size: 16px;
    padding-right: 40px;
}

.nav>.nav-links>a {
    display: inline-block;
    padding: 13px 10px 13px 10px;
    text-decoration: none;
    color: #efefef;
}

/* Smooth hover animation for the navigation links */
.nav-links a:not(.rounded-link) {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:not(.rounded-link):hover {
    color: #779A2B;
}

.nav>#nav-check {
    display: none;
}

@media (max-width:800px) {
    .nav>.nav-btn {
        display: flex;
        align-items: center;
        position: absolute;
        right: 0px;
        top: 5px;
    }

    .nav>.nav-btn>label {
        display: inline-block;
        width: 50px;
        height: 60px;
        padding: 13px;
    }

    .nav>.nav-btn>label>span {
        display: block;
        width: 25px;
        height: 10px;
        border-top: 4px solid #eee;
        border-radius: 10%;
    }

    .nav>.nav-links {
        position: absolute;
        display: block;
        width: 100%;
        background-color: #081b27;
        height: 0px;
        transition: all 0.3s ease-in;
        overflow-y: hidden;
        top: 50px;
        left: 0px;
        text-align: center;
        padding-right: 0px;
    }

    .nav>.nav-links>a {
        display: block;
        width: 100%;

    }

    .nav>#nav-check:not(:checked)~.nav-links {
        height: 0px;
    }

    .nav>#nav-check:checked~.nav-links {
        height: calc(100vh - 50px);
        overflow-y: auto;
    }
}

header {
    margin: 0;
    padding-top: 80px;
    padding-bottom: 80px;
}

.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
}

.logo-section img {
    height: 150px;
    width: auto;
    margin: 0;
}


@media screen and (max-width: 767px) {
    .logo-section {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    .logo-section img {
        height: 100px;
        width: auto;
        margin: 0;
    }
}

/*main*/
.wrapper-content-st {
    margin: 0 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* Allow images to wrap on small screens */
    background: url("./img/R1.jpg") no-repeat center center/cover;
    min-height: 400px;
    height: auto;
}

button{
    cursor: pointer;
    border: 5px solid #888; 
    border-radius: 2px;
}

#button1-st {
    background-color: #C0D48D;
    height: 300px;
    width: 300px;
    margin: 5vh;
}

#button2-st {
    background-color: #dfeeba;
    height: 300px;
    width: 300px;
    margin: 5vh;
}

button:hover {
    transform: scale(1.01);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}


.container {
    margin: auto;
    position: relative;
    height: auto;
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #333333;
    text-align: center;
}

.image-container {
    height: 230px;
    width: 230px;
    margin: 0 auto;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.container-overlay {
    position: absolute;
    top: 50%; /* Positionieren Sie die Überlagerung relativ zum oberen Rand */
    left: 50%; /* Positionieren Sie die Überlagerung relativ zum linken Rand */
    transform: translate(-50%, -50%); /* Zentrieren Sie die Überlagerung sowohl horizontal als auch vertikal */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(200, 200, 200, 0.7); /* Hintergrundfarbe mit Transparenz */
    width: 100%; /* Breite auf 100% setzen */
    height: 15%;
    color: #333333;
    text-align: center;
    padding: 10px; /* Fügen Sie optionalen Innenabstand hinzu */
}


/* Fügen Sie diese Regel hinzu, um den Text zu zentrieren */
.container-overlay::after {
    content: attr(data-title); /* Verwenden Sie data-title-Attribut, um den Text festzulegen */
    font-size: 2.5vh;
    color: #333333; /* Textfarbe (kann geändert werden) */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



.container-title p {
    font-size: 2.5vh;
    color: #333333;
    margin: 0;
    top: 50%; /* Sie können den Wert anpassen, um die vertikale Position anzupassen */
    left: 50%;
    transform: translate(-50%, -50%); /* Zentriert den Text sowohl horizontal als auch vertikal */
}

#contact-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#contact-popup form {
    margin: 15% auto;
    /* 15% von oben und zentriert */
    width: 80%;
    background-color: #c0d48d;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#contact-popup label,
#contact-popup input,
#contact-popup textarea {
    display: block;
    width: 90%;
    margin-bottom: 10px;
    font-size: 16px;
    color: #000000;
}

#name,
#email,
#message {
    color: #000;
}

#contact-popup label {
    font-weight: bold;
}

#contact-popup input,
#contact-popup textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #eeeeee;
}

#contact-popup input:focus,
#contact-popup textarea:focus {
    outline: none;
    border-color: #6b7a8f;
}

#contact-popup .popup-content {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background-color: #272727;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.close {
    color: #ffffff;
    float: right;
    font-size: 50px;
    font-weight: bold;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    /* Add this line */
}


.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2;
    padding-top: 3px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* 80% opaque black */
}

.modal-content-container-st {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: #fefefe;
    margin: 80px auto;
    padding: 0;
    width: 85%;
    height: auto;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.modal-content-st {
    display: flex;
    flex-direction: row;
}

.modal::-webkit-scrollbar {
    display: none;
}

.modal-content-unten-st {
    display: flex;
    flex-direction: column;
}

.modal-content-oben-st {
    width: 70%;
    /* Nehmen Sie 70% des verfügbaren Platzes ein */
    padding: 30px 20px;
    /* Fügen Sie etwas Polsterung hinzu */
}

.modal-content-unten-st {
    width: 30%;
    padding: 30px 20px;
}

.modal-content-unten-st img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    object-position: center;
    margin: 10px auto;
}

.modal-text-container-st {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #C0D48D;
    padding: 10px;
    height: 100%;
    color: #333333;
}

.modal-text-container-st p {
    padding: 1vh;
    font-size: 22px;
    align-items: center;
}

.modal-text-container-st h2 {
    font-size: 35px;
}

.modal-text-container-st b {
    font-size: 28px;
    line-height: 1.5;
}


.button2 {
    width: 80%;
    height: 50px;
    text-align: center;
    margin: 20px;
    border-radius: 10px;
    font-size: 20px;
    border: 0.5px solid #0E1903;
    background-color: #333333;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease-in-out;
}

.button2::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #0E1903;
    transition: width 0.3s ease-in-out;
    z-index: -1;
}

.button2:hover {
    background-color: #0E1903;
}

.button2:hover::before {
    width: 100%;
}

.button-center {
    display: flex;
    justify-content: center;
}

.close {
    position: fixed;
    top: 40px; /* Abstand vom oberen Rand */
    right: 10px; /* Abstand vom rechten Rand */
    color: #fffefe;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
}

.close:hover {
    color: #555;
}


/*footer*/
footer {
    margin-top: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer a {
    font-size: 20px;
    padding: 20px;
    color: #000;
    text-decoration: none;
}

@media (max-width: 768px) {
    header {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .modal-content-st {
        flex-direction: column;
    }

    .modal-content-oben-st{
        width: 100%;
    }

    .modal-content-unten-st{
        width: 100%;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .logo-section {
        height: 100px;
    }

    .logo-section img {
        height: 100px;
    }

    .wrapper-content {
        min-height: 320px;
        background-size: cover;
        display: flex;
        flex-direction: column;
    }

    button {
        height: auto;
        width: 80%;
        margin: 30px auto;
        border: 2px solid #888;
        padding: 10px;
    }

    .wrapper-content .index-btn h1 {
        font-size: 1.6em;
    }

    .wrapper-content h1 {
        font-size: 40px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    header {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .modal-content-st {
        flex-direction: column;
    }

    .modal-content-oben-st{
        width: 100%;
    }

    .modal-content-unten-st{
        width: 100%;
        flex-direction: row;
    }

    .logo-section {
        height: 120px;
    }

    .logo-section img {
        height: 120px;
    }

    .wrapper-content .index-btn h1 {
        font-size: 1.6em;
    }
}

@media (min-width: 1921px) and (max-width: 4800px) {
    .logo-section {
        height: 160px;
    }

    .logo-section img {
        height: 160px;
    }

    .wrapper-content {
        min-height: 480px;
    }

    button {
        height: 23em;
        width: 23em;
        margin: 40px auto;
        border: 5px solid #888;
    }

    .wrapper-content .index-btn .container-title {
        font-size: 2.2em;
    }
}