/* UTILITIES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url("../Bilder/agentur.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    font-family: sans-serif;
    line-height: 1.6;
}

body {
    background-color: transparent
}

#wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

textarea {
    font-family: sans-serif;
}

h1:not(#indexh1):not(#profilh1):not(#sterneh1):not(#cherityh1) {
    margin: 143px auto 43px;
    text-align: center;
    color: #000080;
}

a {
    color: #000080;
    text-decoration: none;
    cursor: pointer
}

li {
    list-style: none;
}

/* NAVBAR STYLING STARTS */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 7;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #ffffff;
    color: #000080;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.43), 0 6px 20px 0 rgba(0, 0, 0, 0.37);
}

.nav-links a {
    color: #000080;
}

/* LOGO */
.logo img {
    width: 43px;
}

.logo span {
    color: #000080;
}

/*RESPONSIVE NAVBAR MENU STARTS*/
/* CHECKBOX HACK */
input[type=checkbox] {
    display: none;
}

/*HAMBURGER MENU*/
.hamburger {
    display: none;
    user-select: none;
}

.menu {
    display: flex;
    gap: 1em;
    font-size: 18px;
}

.menu li {
    position: relative;
    list-style: none;
}

.menu li a {
    padding: 6px;
    text-decoration: none;
    color: inherit;
}

.menu li a:hover {
    color: #ffffff;
    background-color: #000080;
    border-radius: 5px;
    transition: 0.3s ease;
}

.submenu {
    display: none;
    position: absolute;
    background: white;
    box-shadow: none;
    z-index: 10;
    min-width: 143px;
    right: 43px;
    padding: 0;
    border: none;
    border-radius: 0;
}

/* Mobil: unterhalb des Nav-Menüs */
@media (max-width: 767px) {
    .submenu {
        display: none;
        top: 100%;
        left: 0;
        transform: translateY(10px);
    }
}

/* Desktop: leicht nach rechts versetzt */
@media (min-width: 768px) {
    .submenu {
        top: 100%;
        right: 0px;
        transform: translateY(10px);
    }
}

.submenu li {
    display: block;
    padding: 6px 12px;
}

.submenu li a {
    display: block;
    padding: 6px;
    color: #000080;
    text-decoration: none;
}

.submenu li a:hover {
    background-color: #000080;
    color: white;
}

@media screen and (max-width: 768px) {

    .menu {
        display: none;
        position: absolute;
        margin-top: 20px;
        background-color: #ffffff;
        right: 0;
        left: 0;
        text-align: left;
        padding: 0px 0px 16px;
        box-shadow: 0 12px 10px -8px rgba(0, 0, 0, 0.45);
    }

    .menu li {
        width: 100%
    }

    .menu li + li {
        margin-top: 12px;
    }

    .menu li a:hover {
        padding: 6px;
        color: #000080;
        background-color: #ffffff;
    }

    .menu a {
        display: block;
        min-width: 100%
    }

    #profil-submenu {
        position: absolute;
        right: 60px;
    }

    input[type=checkbox]:checked ~ .menu {
        display: block;
    }

    .hamburger {
        display: block;
    }

    .dropdown {
        left: 50%;
        top: 30px;
        transform: translateX(35%);
    }

    .dropdown li:hover {
        background-color: #000080;
    }
}
