:root {
    --primary-color: #5D2E0C;
    --secondary-color: #8B4513;
    --accent-color: #D2B48C;
    --bg-color: #FDFCF0;
    --text-color: #333;
    --white: #ffffff;
    --container-width: 1100px;
    --transition: all 0.3s ease;
    --gutter: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    height: 50px;
    width: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger menu animation */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1581428982868-e432373f93f7?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Word break for mobile view */
.word-break {
    word-break: keep-all;
    hyphens: auto;
}

@media (max-width: 768px) {
    .word-break {
        word-break: break-word;
        hyphens: manual;
    }
    
    :root {
        --gutter: 25px;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .gallery-filter {
        gap: 5px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0; /* Weniger Abstand auf mobilen Geräten */
    }
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title {
    margin-bottom: 3rem;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 8px;
}

/* Mobile padding for gallery images */
@media (max-width: 768px) {
    .gallery-grid {
        gap: 15px;
    }
    
    .gallery-item {
        margin: 5px;
        box-shadow: none; /* Kein Schatten in der mobilen Ansicht */
    }
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact-info-simple {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info-simple p {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer nav {
    margin-top: 10px;
    justify-content: center;
}

footer a {
    margin: 0 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

footer a:hover {
    opacity: 1;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--secondary-color);
    font-weight: bold;
}