:root {
    --olive: #A3B18A;
    --purple: #6A0572;
    --indigo: #3C1642;
    --yellow: #F2E8CF;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--indigo);
    background-color: var(--olive);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    width: 100%;
    z-index: 1000;
    height: 80px;
    overflow: visible;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    height: 100%;
    overflow: visible;
}

.logo a {
    text-decoration: none;
    color: var(--indigo);
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--indigo);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--purple);
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

/* Main Content */
main {
    padding-top: 80px;
}

section {
    padding: 4rem 0;
    width: 100%;
    overflow: hidden;
    scroll-margin-top: 100px;
}

h1, h2, h3, h4 {
    color: var(--purple);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Global heading alignment */
section h2 {
    text-align: left;
    padding-left: 0;
}

/* Hero Section */
.hero {
    background-color: var(--yellow);
    background-image: url('./img/ElmOw1.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    text-align: center;
    padding: 8rem 0;
    margin-top: 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(242, 232, 207, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1, .hero p, .hero h2 {
    text-align: center;
}

.hero h1 {
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--purple);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--indigo);
}

/* About Section */
.about {
    background-color: var(--white);
    padding: 5rem 0;
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
}

/* Features Section */
.features {
    background-color: var(--yellow);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 10px var(--shadow);
    text-align: center;
}

.feature-item h3, .feature-item p {
    text-align: center;
}

/* Testimonials */
.testimonials {
    background-color: var(--white);
    background-image: url('./img/eHEBxU.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: soft-light;
    text-align: center;
    padding: 5rem 0;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonials h2 {
    margin-bottom: 3rem;
    text-align: left;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 10px var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.testimonial-card blockquote {
    flex-grow: 1;
    margin: 0 0 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-title {
    font-size: 0.85rem;
    color: var(--purple);
    font-style: italic;
}

/* Services */
.services {
    background-color: var(--yellow);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow);
}

.service-content {
    padding: 1.5rem;
}

/* Pricing */
.pricing {
    background-color: var(--white);
}

.pricing h2, .pricing > .container > p {
    text-align: left;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.pricing-item {
    background-color: var(--yellow);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 10px var(--shadow);
    text-align: center;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
}

.pricing-features li {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact {
    background-color: var(--yellow);
}

.contact h2 {
    text-align: left;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow);
    width: 100%;
    overflow: hidden;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

/* Footer */
footer {
    background-color: var(--indigo);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

footer h3 {
    color: var(--yellow);
    margin-bottom: 1rem;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--yellow);
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--indigo);
    color: var(--white);
    padding: 1rem;
    z-index: 1001;
    display: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    flex: 1;
}

.cookie-content a {
    color: var(--yellow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
        cursor: pointer;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--indigo);
        height: 2px;
        width: 25px;
        position: relative;
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }

    .nav-toggle-label span::before {
        bottom: 8px;
    }

    .nav-toggle-label span::after {
        top: 8px;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        width: 100%;
        transform: scale(1, 0);
        transform-origin: top;
        transition: transform 0.3s ease;
        box-shadow: 0 2px 10px var(--shadow);
    }

    nav ul {
        flex-direction: column;
        padding: 1rem;
    }

    nav li {
        margin-left: 0;
        margin-bottom: 1rem;
    }

    .nav-toggle:checked ~ nav {
        transform: scale(1, 1);
    }

    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    /* Adjust scroll padding for mobile */
    html {
        scroll-padding-top: 70px;
    }
    
    /* Adjust scroll margin for mobile */
    #uber-uns, #leistungen, #tarife, #formular {
        scroll-margin-top: 70px;
    }
    
    /* Adjust header height for mobile */
    header {
        height: 70px;
    }
    
    /* Adjust main content padding for mobile */
    main {
        padding-top: 70px;
    }
}

@media (max-width: 576px) {
    .features-grid,
    .services-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix for horizontal scrolling in mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Fix for any potentially overflowing content */
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}

/* Services images */
.service-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

/* About image */
.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 100%;
}

/* Map image */
.map img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

@media (max-width: 480px) {
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .author-image {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Fix for header covering section titles when clicking navigation links */
html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

/* Specific adjustments for section IDs that are targets of navigation links */
#uber-uns, #leistungen, #tarife, #formular {
    scroll-margin-top: 80px;
} 