:root {
    --abstand_oben: 75px;
    --social_bar: 30px;
    --color_social_icons:#777;
}

header.innenw {
    top: var(--social_bar);
    left:0;
    background-color: #fff;
    padding-right: 4%;
    box-sizing: border-box;
    padding:15px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    box-shadow: 1px 7px 9px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    height:var(--abstand_oben);
    max-height:var(--abstand_oben);
}

.socialbar {
    top: 0;
    left:0;
    background-color: #ddd;
    padding-right: 4%;
    box-sizing: border-box;
    padding: 0px 4%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    width: 100%;
    box-shadow: 1px 7px 9px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    height:var(--social_bar);
    max-height:var(--social_bar);
    font-size: 16px;
}

.socialbar svg {
    fill: var(--color_social_icons) !important;
    transition: transform 0.3s ease, fill 0.3s ease;
}

.socialbar a:hover svg {
    fill: #000!important;
}


.login header.innenw,
.registrierung header.innenw {
    justify-content: center;
    padding-bottom:3em;
}

header.innenw > div.flex {
    justify-content: flex-end;
    align-items: center;
}

.logos-container {
    gap: 20px;
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 70%;
}

.logos-container .fhk {
    box-sizing: border-box;
    position: relative;
    min-height: 50px;
    max-width: 100%;
    max-height: 100%;
}

a.logo {
    display: flex;
    width: fit-content;
    height: 100%;
    text-decoration: none;
    align-items: flex-end;
}

a.logo img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
}


.login img, .blog img {
    width:30px!important;
}

.login {
    margin-left: 70px;
    gap: 7px;
    display: flex;
    font-size: 80%;
    color: #000;
    align-items: center;
    text-decoration: none;
}

.login.nomargin {
    margin-left: 0;
}

.login:hover {
    text-decoration: none;
}

.trenner {
    margin:0 10px;
}

footer {
    color: #fff;
    position: relative;
    z-index: 9999999;
    font-size: 80%;
    background-color: var(--footer);
    display: flex;
    justify-content: center;
    padding: 100px 4%;
    min-height: 15vh;
    align-items: flex-start;
}

footer h2 {
    color:#fff;
    font-size:140%;
    margin-top:0;
}

footer.center {
    background-color: #222;
    display: flex;
    justify-content: center;
    padding: 15px 4%;
    min-height: unset;
}

footer .links {
    font-size: 110%;
    display: flex;
    flex-direction: column;
}

footer a {
    color:#fff;
    text-decoration: none;
}

/* Footer Logo Styling */
footer a.logo {
    height: 80px;
    margin-bottom: 20px;
}

footer a.logo img {
    height: 100%;
    width: auto;
}

/*ANCHOR Sozial */

div.sozial {
    display: flex;
    align-items: center;
    gap: 5px;
}

div.sozial span {
    display: block;
    margin-right: 1em;
    white-space: nowrap;
    font-size: 70%;
}

div.sozial img {
    width: 2em;
    display: block;
}

div.sozial a {
    display: flex;
    cursor: pointer;
}

.sozial a svg {
    width: 20px;
}

footer .footer-container {
    display:flex;
    justify-content: space-between;
    width:1140px;
    max-width:100%;
}

footer.center .footer-container  {
    align-items: center;
}

footer .sozial a svg {
    fill: #fff;
}

footer .sozial {
    gap:10px;
}

header div.flex div.sozial {
    width: auto;
    padding: 0;
}

header div.sozial a {
    display: flex;
    align-items: center;
    margin-left: 0.5em;
}

div.sozial_popup {
    padding: 4em;
    border-radius: 1em;
    background: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10;
    text-align: center;
    transform: translateX(-50%) translateY(-50%);
    display: none;
    box-shadow: 0 7px 8px -4px rgb(0 0 0 / 20%), 0 13px 19px 2px rgb(0 0 0 / 14%), 0 5px 24px 4px rgb(0 0 0 / 12%);
}

div.sozial_popup.offen {
    display: block;
}

div.sozial_popup a {
    display: block;
    font-weight: 700;
    margin: 0.5em;
}

div.sozial_popup a.schliessen {
    position: absolute;
    right: 1em;
    top: 1em;
    color: #dd0c52;
}


.pcnot {
    display: none!important;
}

.beta-container {
    display:none!important;
    box-sizing: border-box;
    position: fixed;
    display: inline-block;
    width: 300px;
    left: 50%;
    z-index: 9998;
    transform: translateX(-50%);
    top: calc(var(--abstand_oben) +  var(--social_bar));
}

.beta-banner {
    box-sizing: border-box;
    width: 100%;
    z-index: 9999;
    background-color: #cdcdcd;
    color: #323232;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 0 0 5px 5px;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.beta-banner::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #cdcdcd;
}

.beta-info {
    box-sizing: border-box;
    z-index: 9998;
    display: none;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 0 0 5px 5px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    font-size: 80%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.beta-container:hover .beta-banner {
    border-radius:0 0 0 0!important;
}


/* Info-Box anzeigen, wenn der gesamte Container (inkl. Banner) gehovert wird */
.beta-container:hover .beta-info {
    display: block;
}

.fhk-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.fhk-container a {
    width: 100%;
    height: calc(var(--abstand_oben) - 30px);
    display: flex;
    align-items: center;
}

body .intercom-launcher, body .intercom-12celtb {
    background-color: var(--gruen)!important;
}

.chat-opener {
    display: flex;
    align-items: center;
    justify-content: center;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    position: fixed;
    border: #fff solid 4px;
    border-radius: 50px;
    padding: 14px;
    color: #fff;
    background-color: var(--gruen);
    height: 22px;
    width: 22px;
    transition: transform 3ms cubic-bezier(0.42, 0, 0.58, 1);
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.06), 0 2px 32px 0 rgba(0, 0, 0, 0.16);
    cursor: pointer;

}

.chat-opener svg {
    fill:#fff;
}

.chat-opener:hover {
    width:25px;
    height:25px;
}

.blog, .blog:hover {
    margin-left: 70px;
    gap: 7px;
    display: flex;
    font-size: 80%;
    color: #000;
    align-items: center;
    text-decoration: none;
}

.trenner.blog {
    margin-left:10px;
}

/* Grundstruktur */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.menu li {
    display: flex;
    padding: 10px 20px;
    list-style: none;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    align-items: center;
}

.menu li::before {
    background-color: unset!important;
}

.menu li a {
    text-decoration: none;
    color: #000;
    font-size: 80%;
}

.menu li:hover {
    background-color: #ddd;
}

/* Desktop Menü */
.desktop-menu {
    display: flex;
}

/* Mobile Menü */
.mobile-menu-wrapper {
    display: none;
}

#hamburger {
    font-size: 25px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu {
    top: calc(var(--abstand_oben) + var(--social_bar));
    right: 0px;
    background-color: #fff;
    position: fixed;
    display: none;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 1px 7px 9px rgba(0, 0, 0, 0.3);
    z-index:9999;
}

.mobile-menu li {
    border-top: 1px solid #ddd; /* Nur oben */
    min-width: 45dvw;
    padding:20px;
}

.mobile-menu li:first-child {
    border-top: none; /* Ersten Eintrag ohne Linie oben */
}


/* Menü sichtbar bei Klick */
.mobile-menu.active {
    display: flex;
}

.mobile-menu li a {
    font-size: 100%;
}

/* NEU: CSS mit spezifischen Klassennamen */
.contact-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.contact-modal-content {
    background-color: #ffffff;
    margin: 8% auto;
    padding: 2em 2.5em;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 650px;
    position: relative;
    animation: slide-down 0.4s ease-out;
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-modal-close-btn {
    color: #888;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.contact-modal-close-btn:hover,
.contact-modal-close-btn:focus {
    color: #000;
}

/* Formular-Stile mit neuem Container-ID */
#contactModalFormContainer h1 { text-align: center; color: #091e42; margin-top:0; margin-bottom: 1.5em; }
#contactModalFormContainer .form-group { margin-bottom: 1.25em; }
#contactModalFormContainer .form-group label { 
    background: none;
    border: 0;
    padding: 0;
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #5e6c84;
 }
#contactModalFormContainer .form-group input, #contactModalFormContainer .form-group textarea { width: 100%; padding: 0.8em; border: 1px solid #dfe1e6; border-radius: 4px; font-size: 1em; box-sizing: border-box; }
#contactModalFormContainer .form-group textarea { min-height: 150px; resize: vertical; }
#contactModalFormContainer .btn { display: block; width: 100%; background-color: var(--gruen); color: #ffffff; border: none; padding: 0.9em; border-radius: 4px; font-size: 1.1em; font-weight: bold; cursor: pointer; transition: background-color 0.2s; }
#contactModalFormContainer .btn:hover { opacity: .9; }

/* Antwort-Nachrichten mit neuer ID */
#contactModalResponse { padding: 1em; margin-bottom: 1.5em; border-radius: 4px; font-weight: 500; border: 1px solid transparent; text-align: center; }
#contactModalResponse.success { background-color: #e3fcef; color: #064; border-color: #79f2c0; }
#contactModalResponse.error { background-color: #ffebe6; color: #bf2600; border-color: #ff8f73; }

@media (max-width: 1250px) {
    header .sozial {
        display:none!important;
    }
}

@media (max-width: 1024px) {
    .mobile-menu-wrapper {
        display: block;
    }

    .desktop-menu {
        display: none;
    }
}

@media (max-width: 767px) {

    :root {
        --social_bar: 40px;
    }

    footer .footer-container {
        flex-wrap: wrap;
        gap: 50px;
        width:100%;
    }

    .login {
        margin-left:20px;
    }

    .mobilenot {
        display:none!important;
    }
    
    .pcnot {
        display: block!important;
    }

    header .flex {
        flex-wrap: nowrap;
    }


    div.sozial {
        gap: 10px;
    }

    .sozial a svg {
        width: 25px;
    }
}

@media (max-width: 550px) {

    :root {
        --abstand_oben: 60px;
    }

    a.logo {
        display: flex;
        max-width: 70%;
        margin-bottom: 0em;
        align-items: flex-end;
        height: auto;
    }

    a.logo img {
        text-align: left;
        display: block;
        /* width: 100%; */
        height: 50px;
        /* max-height: 36px; */
    }

    header.innenw {
        padding:0 4%;
    }


    footer {
        text-align: center;
        gap: 20px;
        flex-direction: column;
    }

    footer .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .logos-container {
        height: fit-content;
        max-height: unset;
        align-items: center;
        max-width: 80%;
    }

    .logos-container .fhk-container {
        box-sizing: border-box;
        width:25%;
        display: flex;
        align-items: center;
        height: 100%;
    }

    .logos-container .fhk {
        width: 100%;
        height: auto;
        padding-left: 0px;
    }

    .blog {
        margin-left: 10px;
    }

    .login.nomargin {
        margin-left:0px;
    }


}

@media (max-width: 400px) {
    .logos-container {
        gap: 10px;
        max-width: 70%;
    }

    div.sozial {
        gap: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
    }
}