

@font-face {
    font-family: 'museo_sans500';
    src: url('_font/MuseoSans_500-webfont.woff2') format('woff2'),
         url('_font/MuseoSans_500-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'museo_sans700';
    src: url('_font/MuseoSans_700-webfont.woff2') format('woff2'),
         url('_font/MuseoSans_700-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'museo_sans300';
    src: url('_font/MuseoSans_300-webfont.woff2') format('woff2'),
    font-style: normal;
    font-display: swap;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 16px; /* Base font size */
}
body {
    font-family: 'museo_sans500';
}
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll during animation */
}


body.loaded {
    opacity: 1;
}

/* Disable background scrolling when modal is open */
.no-scroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
}


a {
    color: inherit; /* Inherit color from parent element */
    text-decoration: none; /* Remove underline */
}

a:hover {color:#F87D57;}

b {
  font-family: 'museo_sans700';
}

section {
    position: relative;
    display: flex; /* Use flexbox for the section */
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    position: relative; /* Ensure absolute positioning within section works */
    text-align: center;
}

#section1 {
  height:100vh;
    background-color: #009681;
  padding: 0 1rem;
}

#hero {
    width: 100%;
    max-width: 750px;
    height: 500px;
    background-image: url('_assets/slogan.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

}

#hero-wrapper {
    /*position: fixed;*/
    width: 100%;
    max-width: 750px;
    height: 500px;
    margin-bottom: 100px;
    transform: translateY(-100%);
    transition: transform 1s ease-in-out; /* Transition for sliding effect */

    /*margin-top: -100px;
*/
}


#scroller {
    width: 40px;
    height: 40px;
    background-image: url('_assets/arrow.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: relative;
    left: 50%;
    transform: translateX(-50%) translate3d(0, 0, 0);
    animation: bounce 2.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translate3d(0, 0, 0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px) translate3d(0, 0, 0);
    }
    60% {
        transform: translateX(-50%) translateY(-10px) translate3d(0, 0, 0);
    }
}



#section2 {
    background: #0076A9;
    min-height: 100vh;
    font-family: 'museo_sans700';
    text-transform: uppercase;
    color: #fff;
    background-image: url('_assets/logo.svg');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-attachment: fixed; /* This makes the background sticky */

}

#section2 .content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all children horizontally */
    text-align: center; /* Center text within the content div */
    z-index: 1;
    margin: 0 0 12.5rem 0;
}

#section2 #head {
    z-index: 1;
    width: 12.5rem;
    height: 12.5rem;
    border-radius: 100%;
    background-image: url('_assets/portrait.jpg'); /* Correct syntax for background image */
    background-size: contain; /* Ensure the image covers the div */
    background-position: center; /* Center the image within the div */
    background-repeat: no-repeat; /* Prevent the image from repeating */
}

#section2 #nachname{
    font-size: 3rem;
}
#section2 #vorname{
    font-family: 'museo_sans300'!important;
    font-size: 3.1rem;
    line-height: 3rem;
}

#section2 #subline{
    font-size: 1.3rem;
    margin-top: 0.5rem;
}

#section3 {
    background: #fff;
    min-height: 50vh;
    line-height: 2.25rem;
    padding: 2.25rem;
    color: #1D3557;
    font-size: 1.2rem;
    text-align: left;
}

#section4 {
  font-size:1.5rem;
  font-family: 'museo_sans700';
  line-height: 3rem;
    background: #E6ECEC;
    min-height: 50vh;
    color: #1D3557;
    padding: 2rem 0;
}

.button {
    font-size: 1.25rem;
    font-family: 'museo_sans700';
    padding: 0.5rem 1.5rem;
    color: #fff;
    background: #FA936F;
    border: 2px solid #F87D57;
    border-radius: 60px;
    display: inline-block;
    margin-top: 2rem;
    text-transform: uppercase;
}

.button:hover {
  background: #F87D57; color: #fff;
}

footer {
    padding: 20px;
    text-align: center;
    background: #1D3557;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto; /* Enables scrolling */
  justify-content: center;
  align-items: center;
  padding: 20px; /* Ensures spacing for scrolling on small screens */
}

.modal.show {
    display: flex; /* Wird per JavaScript hinzugefügt, wenn Modal geöffnet wird */
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0 20px 20px 20px;
    border-radius: 5px;
    width: 95%;
    max-width: 640px;
    color:black;
    text-align: left;
    max-height: 80vh; /* Limits height to 80% of viewport */
    overflow-y: auto; /* Allows vertical scrolling inside the modal */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: 'museo_sans300';
}



.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    position: sticky;
    top: 0;
    background: white;
    padding: 10px 0;
    z-index: 10;
}

.close {
    cursor: pointer;
    font-size: 22px;
}


/* Small Devices (portrait tablets and large phones, 600px to 767px) */
@media (min-width: 600px) and (max-width: 767px) {
}

/* Medium Devices (landscape tablets and small desktops, 768px to 991px) */
@media (min-width: 768px) {


#section3 {

    padding: 5rem;}
    #section3 p {

        max-width:800px ;

    }
}

/* Large Devices (desktops, 992px to 1199px) */
@media (min-width: 992px)  {
    #section2 #nachname{
        font-size: 6rem;
    }

    #section2 #vorname{
        font-size: 6.2rem;
        line-height: 6rem;
    }

    #section2 #subline{
        font-size: 2.6rem;
        margin-top: 0.5rem;
    }

   }

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Your styles for extra large devices */
}
