@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
    --primary-color: #1e1e1e;
    --secondary-color: #007c85;
    --white: white;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0px 4px 10px rgba(0, 0, 0, 0.1);
    --overlay-dark: rgba(0, 0, 0, 0.7);
    
    --font-size-small: 1rem;
    --font-size-medium: 1.2rem;
    --font-size-large: 2rem;
    --font-size-xlarge: 3rem;
    
    --spacing-small: 1rem;
    --spacing-medium: 2rem;
    --spacing-large: 3rem;

    --animation-duration: 0.8s;
    --transition-standard: 0.5s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 100;
    padding: 0.5rem 0;
}

.container {
    max-width: 2000px;
    height: auto;
    padding: 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 40px;
    display: block;
    margin-left: 4vw;
}

/* Navigation */
.main-nav {
    display: flex !important;
    align-items: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease-in-out;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav li {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 15px;
}

.main-nav li:not(:last-child)::after {
    content: "|";
    font-size: 1.1rem;
    color: #666;
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    z-index: 110;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -75%;
    width: 75%;
    height: 100vh;
    background-color: white;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    transition: right 0.3s ease-in-out;
    z-index: 105;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    width: 100%;
    text-align: center;
}

.mobile-nav li {
    margin: 1.5rem 0;
}

.mobile-nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    display: block;
    padding: 1rem;
    transition: color 0.3s ease-in-out;
}

.mobile-nav a:hover {
    color: var(--secondary-color);
}

.close-menu {
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: darkred;
    padding: 10px 15px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 100;
}

.overlay.active {
    display: block;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container {
    width: 100%;
    max-width: 1600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left a {
    font-size: 1.2rem;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease-in-out;
}

.footer-left a:hover,
.footer-right a:hover {
    color: var(--secondary-color);
}

.footer-right {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-right a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease-in-out;
}

/* Buttons */
.btn {
    transition: transform 0.3s ease-in-out, background-color 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 1.5rem 2rem;
    }

    .main-nav ul {
        gap: 0;
    }

    .main-nav a {
        font-size: 1.3rem;
    }

    .main-nav li:not(:last-child)::after {
        content: none;
    }
}

@media screen and (max-width: 800px) {
    .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none !important;
    }
    
    .menu-toggle.hide {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-right {
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    .site-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 70px;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        background-color: white;
        padding: 0 2rem;
        z-index: 100;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        margin: auto;
    }

    .logo img {
        max-height: 35px;
        transform: translateY(4px);
    }

    .menu-toggle {
        position: absolute;
        right: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
    }
}

@media (min-width: 901px) {
    .main-nav {
        display: flex !important;
        align-items: center;
    }

    .menu-toggle {
        display: none !important;
    }

    .mobile-nav {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-delay: 0ms !important;
    }
}

/* Offset für alle Ankerziele */
[id] {
  /* Abstand oberhalb des Elements beim Scrollen */
  scroll-margin-top: 100px;
}
