/* === VARIABLES === */
:root {
    --primary-color: #205716; /* Dark green from logo */
    --secondary-color: #5e5d5c; /* Grey from navigation */
    --accent-color: #6a800a; /* A slightly brighter green for highlights */
    --light-grey: #f4f4f4;
    --dark-grey: #333;
    --white: #ffffff;
    --font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
    --header-height: 90px;
    --light-green: #F0FAF3;
}

/* === BASIC STYLES === */
body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0 0 60px 0; /* Add padding to the bottom equal to footer height */
    background-color: var(--light-green); /* Changed background color */
    color: var(--dark-grey);
    line-height: 1.7; /* Increased for readability */
    padding-top: var(--header-height); /* Space for sticky header */
    background-image: url('../assets/images/bg8.png');
    background-repeat: no-repeat;
    background-position: center center; /* Changed background position */
    background-attachment: fixed;
    background-size: contain; /* Changed background size */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--primary-color);
}

ul {
    list-style: none;
    padding: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
}

p.add_height{
	line-height: 1.5;
}

/* === LAYOUT & HEADER === */
.header {
    background: var(--white);
    padding: 0 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Changed to fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box; /* Ensure padding is included in width/height */
}

.header .logo img {
    max-height: 70px; /* Adjusted size */
}

/* === NAVIGATION === */
.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 10px; /* Reduced margin */
    position: relative; /* Needed for dropdown positioning */
}

.nav-link {
    color: var(--secondary-color);
    font-weight: bold;
    padding: 8px 12px; /* Adjusted padding */
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
    display: block;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0;
    z-index: 1001;
    min-width: 250px;
}

.dropdown-item a {
    color: var(--dark-grey);
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
}

.dropdown-item a:hover {
    background-color: var(--light-grey);
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: var(--primary-color);
}

/* === MAIN CONTENT === */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - var(--header-height) - 60px); /* Full height minus header and footer */
}

.content-section {
    background: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.main-content h1 {
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    word-break: break-word; /* Added for mobile responsiveness */
}

.content-section ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}

.content-section li {
    margin-bottom: 12px;
    padding-left: 1.5em;
    position: relative;
}

/* Custom bullet points for a modern look */
.content-section li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Container for split view of contact page */
.content-two-blocks {
    display: inline-block;
    padding: 1rem 1rem;
    vertical-align: top;
    width: 45%;
    line-height: 0.75;
}

.content-two-blocks img {
    width: 12vw;
	margin-bottom: 1vh;
	margin-top: 1vh;
}

/* === FOOTER === */
.footer {
    background: var(--dark-grey);
    color: var(--white);
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000; /* Ensure footer is above other content */
}

.footer p {
    margin: 0;
}


/* === LOCATION PAGE === */
.location-card {
    background-image: url('../assets/images/standorte-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 4rem 2rem;
    border-radius: 10px;
    max-width: 650px;
    margin: 2rem auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.location-info {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly more opaque */
    padding: 2rem;
    border-radius: 8px;
}

.location-info h2 {
    margin-top: 0;
    color: #005a00; /* Darker green for better contrast */
}


/* === RESPONSIVENESS === */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    body {
        padding-top: var(--header-height);
    }
    
    .header {
        padding: 0 15px;
    }

    .navbar {
        width: 100%;
        justify-content: flex-end;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        position: absolute;
        top: var(--header-height);
        left: 0;
        padding: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        margin: 0;
        width: 100%;
        text-align: left;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        border-radius: 0;
    }

    .nav-link:hover, .nav-link.active {
        transform: translateY(0);
    }

    .content-two-blocks {
        display: inline-block;
        padding: 1rem 1rem;
        vertical-align: middle;
        width: 90%;
        line-height: 1.0;
    }

    .content-two-blocks img {
        width: 45vw;
    }
}

