body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: white;
    color: black;
    --icon-color: black;
}

h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: 100px; /* etwas mehr als die Header-Höhe für Abstand */
}

h2 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

h3, h4 {
    margin-top: 0.5rem;
    margin-bottom: 0rem;
}

p {
    line-height: 1.6;
    margin: 0.5rem 0;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    background: lightgrey;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    height: 50px;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    color: black;
    background-color: darkgray;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.desktop-nav a {
    text-decoration: none;
    color: black;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.desktop-nav a:not(.button):hover,
.desktop-nav a:not(.button):focus {
    background: black;
    color: white;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 999;
}

.menu-item:hover .dropdown {
    display: flex;
}

.button {
    background: black;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.button:hover {
    transform: scale(1.05);
    background: black !important;
}

.menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--icon-color);
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 1rem 2rem;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    box-sizing: border-box;
}

.mobile-nav.active {
    display: block;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-item {
    position: relative;
    border-bottom: 1px solid #eee;
}

.mobile-menu-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: black;
    text-decoration: none;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-item > a .menu-text {
    flex-grow: 1;
}

.mobile-submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0.5rem;
    font-size: 1rem;
    color: var(--icon-color);
    -webkit-tap-highlight-color: transparent;
}

.mobile-submenu {
    display: none;
    padding-left: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.mobile-submenu.active {
    display: flex;
}

.mobile-submenu a {
    padding: 0.5rem 0;
    color: black;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 998;
}

.mobile-nav.active ~ .menu-overlay {
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (min-width: 1025px) {
    .mobile-nav {
        display: none !important;
    }
    .menu-overlay {
        display: none !important;
    }
}

/* Main Content */
main {
    padding: 2rem;
}

.intro-box {
    background: #efefef;
    border-left: 4px solid #000;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* Footer */
footer {
    margin-top: 3rem;
    color: black;
}

.footer-main {
    background-color: #b8b8b8;
    padding: 2rem 0 1.5rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#logo-bottom {
    background-color: lightgray;
}

.footer-address p {
    margin: 0.2rem 0;
    line-height: 1.4;
}

.footer-address p:first-child {
    font-weight: bold;
}

.footer-bottom {
    background-color: lightgray;
    padding: 1rem 0;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    color: black;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.separator {
    font-weight: 500;
}

.footer-copyright {
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}