/* Apply general styles to the whole page */
:root {
    --primary-color: #F28500; /* Orange brand color */
    --secondary-color: #F6E2C9; /* Light beige background */
    --tertiary-color: #f3d9be; /* Slightly darker beige */
    --text-color: #333;
    --light-bg: rgba(255, 255, 255, 0.4);
    --nav-bg: rgba(255, 255, 255, 0.85); /* More transparent nav */
    --footer-bg: #222;
    --footer-text: #fff;
    --btn-primary: #333;
    --btn-hover: #555;
}

html, body {
    height: 100%; /* Ensures the body takes up the full screen */
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--secondary-color); /* Single color background */
    display: flex;
    flex-direction: column;
    color: var(--text-color);
}

/* Ensure content fills the screen */
.content {
    flex-grow: 1; /* Makes the content area expand to fill available space */
    padding-top: 80px; /* Prevents navbar from overlapping content */
}

.content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

/* Remove default padding and margin from all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style the navigation bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    padding: 15px 0;
    z-index: 1000;
    transition: top 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar container for mobile layout */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

/* Mobile logo styling */
.mobile-logo {
    display: none;
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Flexbox for equal spacing */
.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Style for navigation items */
.nav-menu li {
    flex: 1;
    text-align: center;
    position: relative;
}

.nav-menu li a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 345; /* Increased by 15% from 300 */
    color: var(--text-color);
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s ease;
}

/* Underline all navbar items except logo */
.nav-menu li a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

/* Show full underline on hover */
.nav-menu li a:hover::after {
    width: 100%;
}

/* Remove underline from logo */
.nav-logo a::after {
    display: none !important;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

/* Centered Logo Styling */
.nav-logo {
    flex-grow: 0;
    text-align: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
    max-width: none;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

/* Class to hide navbar when scrolling down */
.hidden-nav {
    top: -80px;
}

/* Ensure navbar doesn't overlap content */
.ueber-uns-page, .features, .cta-container {
    padding-top: 80px;
}

/* Intro box styling */
.intro-box {
    margin: 220px auto 30px auto; /* Top margin, centered horizontally */
    background-color: var(--light-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    color: var(--text-color);
    width: 80%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Features section */
.features {
    text-align: center;
    padding: 50px 20px;
}

.features h2 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--text-color);
}

.features-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.feature-box {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
    max-width: 400px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.feature-box h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-box p {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.6;
}

/* CTA Container */
.cta-container {
    text-align: center;
    margin: 60px 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--btn-primary);
    color: white;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: var(--btn-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Über Uns Page Styling */
.ueber-uns-page {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-color);
}

.ueber-uns-page h1 {
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 60px; /* Increased space between header and body text */
    margin-top: 60px; 
    color: var(--text-color);
}

.ueber-uns-page h2,
.policy-section h2 {
    font-size: 28px;
    font-weight: 500;
    margin: 40px 0 20px;
    color: var(--text-color);
}

.ueber-uns-page h3,
.policy-section h3 {
    font-size: 22px;
    font-weight: 500;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.ueber-uns-page p, 
.ueber-uns-page ul:not(nav ul), 
.ueber-uns-page li:not(nav li), 
.ueber-uns-page strong, 
.ueber-uns-page b,
.policy-section p,
.policy-section ul,
.policy-section li {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    text-align: left;
    max-width: 800px;
    margin: 15px auto;
}

.ueber-uns-page .about-values ul {
    list-style: none;
    padding: 0;
}

.ueber-uns-page .about-values li {
    font-size: 18px;
    font-weight: 400;
    margin: 10px 0;
}

.ueber-uns-page strong, 
.ueber-uns-page b,
.policy-section strong,
.policy-section b {
    font-weight: 700;
}

/* Policy Section Styling */
.policy-section {
    margin-bottom: 40px;
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.policy-section ul {
    padding-left: 30px;
}

.policy-section li {
    margin-bottom: 10px;
}

.pdf-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    margin-bottom: 60px; /* Add bottom margin */
    justify-content: flex-start; /* Changed from center to flex-start */
    min-height: 85vh; /* Changed from fixed height */
    overflow: visible; /* Changed from hidden to visible */
}

.pdf-container h1 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
}

.pdf-wrapper {
    width: 90%;
    max-width: 1200px;
    height: auto; /* Changed from fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Changed from hidden to visible */
    margin-bottom: 30px; /* Add space between iframe and download button */
}

.pdf-wrapper object,
.pdf-wrapper iframe {
    width: 100%;
    height: 85vh; /* Slightly reduced height */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.pdf-download {
    margin: 20px 0;
    text-align: center;
}

/* Impressum Styling */
.impressum-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 50px;
    line-height: 1.6;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--nav-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    text-align: center;
    max-width: 400px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-popup p {
    margin: 0 0 15px;
    font-size: 16px;
    color: var(--text-color);
}

.cookie-popup button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

#accept-cookies {
    background-color: var(--primary-color);
    color: white;
}

#decline-cookies {
    background-color: #f5f5f5;
    color: var(--text-color);
}

.cookie-popup button:hover {
    transform: translateY(-2px);
}

/* Footer styling */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 20px;
    margin-top: auto;
    width: 100%;
}

footer a {
    color: var(--footer-text);
    text-decoration: none;
    padding: 0 10px;
    transition: color 0.3s ease;
    position: relative;
}

footer a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

footer a:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto 60px;
    padding: 0 20px;
}

.hero-desktop {
    display: block;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.hero-desktop:hover {
    transform: translateY(-10px);
}

.hero-desktop img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-mobile {
    display: none;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-mobile img {
    width: 100%;
    height: auto;
    display: block;
}

/* Prevent scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features-container {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-box {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .intro-box {
        font-size: 30px;
        margin-top: 150px;
    }
    
    /* Mobile navigation styles */
    .navbar-container {
        flex-wrap: nowrap;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .mobile-logo {
        display: block;
    }
    
    .desktop-logo {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background-color: var(--nav-bg);
        width: 80%;
        height: 100%;
        text-align: center;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        padding: 80px 0 30px;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    /* Hamburger animation when active */
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-desktop {
        display: none;
    }

    .hero-mobile {
        display: block;
    }
}

@media (max-width: 480px) {
    .intro-box {
        font-size: 24px;
        margin-top: 120px;
    }
    
    .ueber-uns-page h1 {
        font-size: 36px;
    }
    
    .feature-box h3 {
        font-size: 20px;
    }
    
    nav ul li a {
        font-size: 16px;
        padding: 8px 10px;
    }

    .hero-section {
        margin: 10px auto 40px;
    }
}
