html {
    scroll-behavior: smooth;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
    text-wrap: pretty;
}

main {
    overflow: hidden;
}

body.no-scroll {
    overflow: hidden;
}

body {
    font-weight: lighter;
    background: #f0f0f0;
}

.page,
.job,
.site {
    max-width: 1600px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
}

/* --- Header --- */
#site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1000;
    color: #fff;
    padding-bottom: 0.5rem;
    max-width: 1600px;
    font-weight: normal;
    background: var(--wp--preset--color--dark);
}

#site-header .contact-info a,
#site-header .contact-info a:visited {
    font-size: 0.9rem;
    text-align: right;
    color: #fff;
    font-weight: normal;
}

#site-header .contact-info a:hover {
    color: var(--wp--preset--color--primary);
}

#site-header .contact-info img {
    width: 20px;
    height: 20px;
}

.site-logo {
    position: relative;
}

.site-logo img {
    position: relative;
    height: auto;
    width: 200px;
    z-index: 100;
}

.main-menu,
.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-menu li {
    position: relative;
}


.main-menu>li {
    display: inline-block;
}

/* Link-Styling */
.main-menu a,
.main-menu a:visited {
    display: block;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-weight: normal;
}


.main-menu li:visited>a:hover {
    color: var(--wp--preset--color--primary);
}

/* Dropdown Level 1 */
.main-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.main-menu li ul a,
.main-menu li ul a:visited {
    color: #000;
    font-weight: normal;
}

.main-menu li ul a:hover {
    background: var(--wp--preset--color--primary);
    color: #000;
}


.main-menu li:hover>ul {
    display: block;
}

/* Dropdown Level 2 */
.main-menu li ul li ul {
    top: 0;
    left: 100%;
    margin-left: 2px;
    /* Abstand zum Parent-Menü */
    z-index: 1001;
}

.main-menu li ul li:hover>ul {
    display: block;
}

/* Pfeile */
.main-menu li.menu-item-has-children>a::after {
    content: ' ▾';
    font-size: 0.75em;
    margin-left: 0.3em;
}

.main-menu li ul li.menu-item-has-children>a::after {
    content: ' ▸';
    font-size: 0.75em;
    margin-left: 0.3em;
}


@media (max-width: 992px) {
    .main-menu>li {
        display: block;
    }

    .main-menu li ul {
        position: static;
        box-shadow: none;
        background: none;
    }
}

/* Contact Button */

.header-contact-button,
.header-contact-button:visited {
    padding: calc(0.667em) calc(1.333em);
    border: 1px solid rgba(255, 212, 0, 0.6);
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    width: 100%;
    text-align: center;
    font-weight: normal;
}

.header-contact-button:hover {
    background: var(--wp--preset--color--primary);
    color: #000;
}

/* Header Dark */
header.header-dark .contact-info a,
header.header-dark .contact-info a:visited,
header.header-dark .main-menu a,
header.header-dark .main-menu a:visited {
    color: #000;
}

header.header-dark .header-contact-button,
header.header-dark .header-contact-button:visited {
    border: 1px solid var(--wp--preset--color--dark);
    color: var(--wp--preset--color--dark);
}

/* 

header.scrolled {
    background: var(--wp--preset--color--dark);
    transition: all 0.1 linear;
}

header.scrolled .contact-info a,
header.scrolled .contact-info a:visited,
header.scrolled .main-menu a,
header.scrolled .main-menu a:visited {
    color: #000;
}

header.scrolled .main-menu li ul a,
header.scrolled .main-menu li ul a:visited {
    color: #000;
}
*/

/* Mobile Nav */

.custom-toggler {
    position: relative;
    border: none;
    border-right: 5px solid var(--wp--preset--color--primary);
    background: var(--wp--preset--color--dark);
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 30px;
    z-index: 9999;
    border-radius: 0;
    cursor: pointer;
}

.custom-toggler:hover,
.custom-toggler:visited {
    border-color: var(--wp--preset--color--primary);
}

.custom-toggler .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 0;
    transition: 0.3s;
}

.custom-toggler.open .top {
    transform: rotate(45deg) translate(4px, 4px);
}

.custom-toggler.open .middle {
    opacity: 0;
}

.custom-toggler.open .bottom {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Container Animation */
.mobile-nav-container {
    position: fixed;
    overflow-y: scroll;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    background-color: var(--wp--preset--color--dark);
    color: #fff;
    display: none;
    flex-direction: column;
    padding: 1.5rem 1rem;
    z-index: 9998;
}

.mobile-nav-container.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu .navbar-nav {
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.2rem;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.mobile-menu .navbar-nav li {
    margin-bottom: 1rem;
}

.mobile-menu .navbar-nav li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.mobile-menu .navbar-nav li ul {
    font-size: 1rem;
    list-style-type: none;
    margin: 0;
    padding: 0 0.5rem;
}

.mobile-menu .navbar-nav li ul li {
    margin-bottom: 0.6rem;
}

.mobile-menu .navbar-nav li ul li a {
    font-weight: normal;
}

.submenu-toggle {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.submenu-open>a .submenu-toggle {
    transform: rotate(90deg);
}

.mobile-menu .navbar-nav li ul li ul {
    display: none;
    border-left: 2px solid var(--wp--preset--color--primary);
}

.mobile-menu .navbar-nav li ul li.submenu-open>ul {
    display: block;
}


.mobile-menu .navbar-nav li ul li ul li {
    margin-bottom: 0.4rem;
}

.mobile-nav-footer {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}

.mobile-nav-footer a {
    color: var(--wp--preset--color--primary);
}



/* Hero Image */

.hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 100px;
}

.hero-image span {
    font-size: 3.4rem;
    font-weight: lighter;
    padding: 0.2rem 1rem;
    background: rgba(255, 255, 255, 0.5);
}

@media only screen and (max-width: 768px) {

    .hero-image {
        margin-top: 60px;
        align-items: flex-end;
        padding-bottom: 50px;
    }

    .hero-image span {
        font-size: 2rem;
    }
}

/* Footer */

footer {
    border-top: 1px solid #f0f0f0;
    background: var(--wp--preset--color--dark);
    color: #fff;
}

footer .footer-nav {
    list-style-type: none;
    padding: 0;
    display: flex;
}

footer a,
footer a:visited {
    color:
        #fff;
}


footer ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

footer ul li {
    padding: 0.2rem 0;
}

footer ul li a,
footer ul li a:visited {
    color: #fff;
}

footer ul li a:hover {
    color: var(--wp--preset--color--primary);
}

/* Dark Mode Glow */

body.dark-mode .svg-bulb {
    filter: drop-shadow(0 0 10px #fdd835);
}

body {
    transition: all 0.1s linear;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
    transition: all 0.1s linear;
}

body.dark-mode a,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .has-text-color {
    color: #fff !important;
}

body.dark-mode .main-menu .sub-menu a,
body.dark-mode header .wp-block-button__link {
    color: #000 !important;
}

body.dark-mode .site-logo:after {
    content: url(../images/logo-blob-dark.svg)
}

body.dark-mode .lamp-container .cord {
    background: white;
}


body.dark-mode .section-invert {
    color: black;
    background: #fff !important;
}

body.dark-mode .section-invert:before {
    background: url('../images/invert-border-top-dark.svg');
    height: 120px;
}

body.dark-mode .section-invert:after {
    background: url('../images/invert-border-bottom-dark.svg');
    height: 78px;
    bottom: -78px;
}

body.dark-mode .section-invert a,
body.dark-mode .section-invert a:visited,
body.dark-mode .section-invert h1,
body.dark-mode .section-invert h2,
body.dark-mode .section-invert h3,
body.dark-mode .section-invert h4,
body.dark-mode .section-invert h5,
body.dark-mode .section-invert h6,
{
color: black !important;
}

@keyframes lampDrop {
    0% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 40px);
    }

    100% {
        transform: translate(-50%, 0);
    }
}

.lamp-container.drop {
    animation: lampDrop 0.6s ease;
}