/* Elements */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
}

header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


iframe {
    width: 600px;
    max-width: 95%;
    height: 450px;
    border: none;
    border-radius: 20px; 
    box-shadow: 1px 10px 10px rgba(0, 0, 0, 0.2);
    margin: 7.5vh auto 7.5vh auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 85vw;
    margin: 0 auto;
    padding: 0 20px 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 3vw;
}

nav ul li a {
    text-decoration: none;
    color: #004F7C;
    font-size: 20px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #0078d4;
}

/* Classes */

.background-img {
    background-image: url('img/background-img_blue.jpg');
    background-size: cover;
    background-position: center;
    height: fit-content;
    /*background-attachment: fixed;*/  /*Wird über media query aktiviert ab 900px screen width*/
}

.footer {
    background: #fff;
    color: #004F7C;
    padding: 30px 0 10px 0;
    font-size: 18px;
    width: 100%;
}

/*.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    line-height: 1.2;
    max-width: 85vw;
    margin: 0 auto;
    padding: 0 40px;
}*/

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 10px 0;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
    text-align: center;
    line-height: 1.2;
}

.footer-logo {
    width: 300px;
    height: auto;
    margin-bottom: 10px;
}

.footer-familia {
    width: 200px;
    height: auto;
    margin-bottom: 5px;
}

.footer-familia-text {
    font-size: 15px;
    color: #004F7C;
    margin-top: 0;
}

.footer-center a {
    color: #004F7C;
    text-decoration: underline;
}

.footer-bottom {
    text-align: left;
    color: #004F7C;
    font-size: 14px;
    margin-top: 20px;
    padding-left: 40px;
}

.footer-bottom a {
    color: #004F7C;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.hero {
    /*background-color: rgba(0, 79, 124, 0.9);*/
    padding-left: 15vw;
    padding-right: 15vw;
    height: 100vh;
    color: white;
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero-datenschutz {
    /*background-color: rgba(0, 79, 124, 0.9);*/
    padding-left: 15vw;
    padding-right: 15vw;
    color: white;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 50px 20px 100px 20px;
}

.hero-datenschutz-text {
    width: 1200px;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}


.hero-kontakt {
    /*background-color: rgba(0, 79, 124, 0.9);*/
    padding-left: 7vw;
    padding-right: 7vw;
    color: white;
    height: fit-content;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.hero-kontakt h1 {
    font-size: 36px;
}

.hero-kontakt a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.hero-kontakt a:hover {
    text-decoration: underline;
}

.hero-kontakt-content {
    width: 1200px;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.hero-leistungen {
    /*background-color: rgba(0, 79, 124, 0.9);*/
    height: fit-content;
    margin: 0px auto;
    color: white;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    width: 1200px;
    max-width: 95%;
}



.hero-team {
    /*background-color: rgba(0, 79, 124, 0.9);*/
    padding-left: 7vw;
    padding-right: 7vw;
    color: white;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    padding-top: 50px;
    padding-bottom: 100px;
}

.hero-text {
    width: 1200px;
    max-width: 95vw;
    margin: auto;
}

.hero-text-kontakt{
    margin: 7.5vh auto 7.5vh auto;
}

.hero-text-team {
    width: 800px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    padding: 40px 0;
}

.hero-img-team {
    width: 350px;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    opacity: 1;
    display: flex;
    justify-content: center;
    padding: 40px 0;
    opacity: 0.85;
}

.hero-img-team img {
    width: 400px;
    max-width: 95%;
    height: auto;
    max-width: 100% /*Adjust as needed */
    opacity: 1; /* Ensure the image is fully opaque */
    border-radius: 20px;
    box-shadow: 1px 10px 10px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-datenschutz-text h1 {
    font-size: 36px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.hero-datenschutz-text h2 {
    font-size: 24px;
}

.hero-datenschutz-text h3 {
    font-size: 20px;
    margin-top: 10px;
}

.hero-datenschutz-text a {
    color: white;
    text-decoration: underline;
}

.hero-datenschutz-text p {
    font-size: 18px;
    line-height: 1.2 !important;
}

.hero-team h1 {
    font-size: 40px;
    margin-bottom: 20px;
    line-height: 1;
}

.hero-team h2 {
    font-size: 32px;
    margin-bottom: 10px;
    line-height: 1;
}

.hero p {
    font-size: 24px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-datenschutz-text p {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-team p {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 40px;
}

.hero p br {
    margin-bottom: 10px;
}

.hero-team p br {
    margin-bottom: 10px;
}

.leistungen-content-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin: 7vh 70px;
}

.leistungen-img {
    height: auto;

}

.leistungen-img img {
    width: 120px;
    border-radius: 20px;
    box-shadow: 1px 10px 10px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

.leistungen-text {
    text-align: center;
    max-width: 120px;
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: auto;
}

.logo img {
    width: 250px;
    height: auto;
}

.lang-flag {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: transform 0.2s;
    cursor: pointer;
}

.lang-flag:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.nav-lang-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 5vw;
}

.map-placeholder {
    width: 600px;
    max-width: 95%;
    height: 450px;
    background: rgba(0, 79, 124, 0.85);
    color: #fff;
    border-radius: 20px;
    box-shadow: 1px 10px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 7.5vh auto 7.5vh auto;
    text-align: center;
    padding: 40px 20px;
}

.map-btn {
    background: #004F7C;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 20px;
    cursor: pointer;
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
}

.map-btn:hover {
    background: #0078d4;
}

.werdegang {
    width: 1600px;
    max-width: 95%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #004F7C;
    padding: 40px 0;
    border-radius: 20px;
    box-shadow: 1px 10px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 5vh;

}

.werdegang-elements {
    width: 800px;
    max-width: 95%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.werdegang a {
    color: #004F7C;
    text-decoration: none;
}

.werdegang a:hover {
    text-decoration: underline;
}

.werdegang h1 {
    font-size: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.werdegang h2 {
    font-size: 28px;
}

.werdegang h3 {
    font-size: 32px;
    margin-top: 50px;
}

.werdegang p {
    font-size: 18px;
}

.werdegang-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100vw;
    margin: 0 auto;
    padding-bottom: 20px;
    /*background-color: rgba(0, 79, 124, 0.9)*/
}



/* Hamburger button styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.nav-toggle-bar {
    width: 28px;
    height: 4px;
    background: #004F7C;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* IDs */

#active {
    border-bottom: 1px solid #004F7C;
    padding-bottom: 2px;
}

.spacer-transparent {
    height: 7vh; /* Adjust as needed */
    background-color: transparent;
}




/* Media query for mobile devices */

/* Aktiviert background-attachment: fixed; ab 900px screen width */
@media (max-width: 1400px) {
    .hero-kontakt {
        padding-top: 20px;
    }
}


@media (min-width: 900px) {
    .background-img {
        background-attachment: fixed;
    }
}


/* Responsive navbar */
@media (max-width: 900px) {
    nav {
        flex-direction: row;
        align-items: center;
        padding: 0 10px;
        position: relative;
    }
    .hero {
        height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .nav-toggle {
        display: flex;
        margin-left: auto;
        z-index: 101;
    }
    nav ul {
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        box-shadow: none;
        padding: 80px 0 0 0;
        display: none;
        z-index: 100;
        justify-content: flex-start;
        align-items: center;
    }
    nav ul.nav-open {
        display: flex;
    }
    nav ul li {
        margin: 0 0 25px 0;
        text-align: center;
    }
    nav ul li:last-child {
        margin-bottom: 0;
    }
    nav ul li a {
        font-size: 28px;
        padding: 18px 0;
        display: block;
        width: 100vw;
    }
    .logo img {
        width: 160px;
        margin-bottom: 0;
    }
}

/* hero Schrift kleiner auf kleinen mobilen Bildschirmen */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 20px;
    }
    .hero-kontakt h1 {
        font-size: 30px;
    }
    iframe {
        width: 100%;
        height: 300px;
    }
    .map-placeholder {
    width: 100%;
    height: 300px;
    padding: 20px 10px;
    }
}

/* Footer Mobile Responsive */
@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
        margin-bottom: 10px;
    }
    .footer-bottom {
        font-size: 14px;
        padding: 10px 0;
    }
    .footer-bottom {
        text-align: center;
    }
    .nav-lang-switcher {
        justify-content: center;
        margin-left: 0;
        margin-top: 12px;
        /*gap: 18px;*/
        flex-direction: column;
        gap: 10px;
        align-items: center;
        /*margin-top: 18px;*/
    }
    .nav-lang-switcher a {
        /*display: inline-block;*/
        display: block !important;
        margin: 0 auto;
    }
}