/* --- Variables & Colors --- */
:root {
    --bg-color: #E8E1D9;       
    --text-main: #0F2A1D;      
    --text-muted: #1F412E;     
    --accent: #C2A46B;         
    --accent-dark: #081510;    
    
    /* Header & Formular Farben */
    --nav-bg: rgba(232, 225, 217, 0.95);
    --nav-border: rgba(15, 42, 29, 0.1);
    --form-bg: rgba(15, 42, 29, 0.03);
    --form-border: rgba(15, 42, 29, 0.2);
    --select-arrow: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230F2A1D%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.dark-theme {
    --bg-color: #0F2A1D;       
    --text-main: #E8E1D9;      
    --text-muted: #A8B0AA;     
    
    --nav-bg: rgba(15, 42, 29, 0.95);
    --nav-border: rgba(232, 225, 217, 0.1);
    --form-bg: rgba(255, 255, 255, 0.05);
    --form-border: rgba(232, 225, 217, 0.3);
    --select-arrow: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23E8E1D9%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; }
a { color: var(--text-main); text-decoration: none; transition: var(--transition); }

.section-padding { padding: 8rem 0; }
.text-center { text-align: center; margin-bottom: 4rem; }
.text-center h2 { font-size: 3rem; color: var(--text-main); text-decoration: underline; text-decoration-color: var(--text-main); text-underline-offset: 8px;}

/* --- Header / Nav --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000; padding: 1.5rem 0;
    transition: var(--transition);
    background: var(--nav-bg); 
    border-bottom: 1px solid var(--nav-border);
}
header.scrolled { padding: 0.8rem 0; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo img { 
    height: 65px;
    width: auto; 
    object-fit: contain; 
    border-radius: 5px;
}

.nav-right { 
    display: flex; 
    align-items: center; 
    margin-left: auto;
    margin-right: 2.5rem;
}
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* --- Detail Page Back Link --- */
.back-link {
    font-size: 0.85rem; 
    letter-spacing: 1px; 
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent);
}

/* Language Switch */
.lang-switch { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.lang-switch button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-family: var(--font-body); font-size: 0.85rem; transition: var(--transition); }
.lang-switch button:hover, .lang-switch button.active { color: var(--accent); font-weight: 600; }

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center; text-align: center;
}

.hero-tags {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-content h1 { 
    font-size: clamp(3rem, 6vw, 5.5rem); 
    margin-bottom: 1.5rem; 
    text-transform: uppercase;
}

.hero-sub {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-content p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 3rem; }

.hero-actions { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.cta-button {
    display: inline-block; padding: 1rem 2.5rem;
    background-color: var(--text-main); color: var(--bg-color);
    font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.85rem; border: 1px solid var(--text-main); cursor: pointer; transition: var(--transition);
}
.cta-button:hover { background-color: var(--accent); border-color: var(--accent); color: white; }
.cta-button.secondary { background-color: transparent; color: var(--text-main); }
.cta-button.secondary:hover { background-color: var(--text-main); color: var(--bg-color); }


/* Floating Images */
.floating-img {
    position: absolute;
    z-index: -1;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    opacity: 0.9;
}

.img-left {
    width: 250px; height: 320px;
    left: 8%; top: 20%;
    transform: rotate(-6deg);
}

.img-right {
    width: 220px; height: 280px;
    right: 10%; bottom: 15%;
    transform: rotate(8deg);
}

/* Detail Button */
.btn-detail {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--text-main);
    color: var(--bg-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: var(--transition);
}
.btn-detail:hover {
    background-color: var(--accent);
    color: white;
}

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image img {
    width: 100%; 
    height: auto; 
    object-fit: cover; 
    aspect-ratio: 3/4;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.about-text h2 { font-size: 3rem; margin-bottom: 2rem; }

/* --- Clean Grid Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem 2rem;
}

.gallery-item {
    display: block;
    cursor: pointer;
}

.img-wrapper {
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: #dcd4c8;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

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

/* Der Text UNTER dem Bild */
.gallery-info h3 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.gallery-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.gallery-item:hover .gallery-info h3 {
    color: var(--accent);
}

/* --- Contact Section --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.contact-info h3 { font-size: 2rem; margin-bottom: 1.5rem; }
.contact-form { background: transparent; padding: 0; }
.form-group { margin-bottom: 2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, 
.form-group textarea,
.form-group select {
    width: 100%; 
    padding: 1rem; 
    color: var(--text-main);
    font-family: var(--font-body); 
    font-size: 1rem; 
    border-radius: 4px;
    transition: var(--transition);
    background: var(--form-bg);
    border: 1px solid var(--form-border);
}
.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus { 
    outline: none; 
    border-color: var(--accent); 
    background: transparent;
}
/* Styling Dropdown */
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--accent);
}

/* --- Hamburger Icon (Desktop versteckt) --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* --- Detail Page Layout --- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.detail-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

body.dark-theme .detail-img {
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.detail-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); 
    margin-bottom: 1rem;
}

/* =========================================
   FOOTER SECTION
   ========================================= */
.site-footer {
    background-color: var(--bg-color);
    padding: 2rem 0 2rem;
    border-top: 1px solid var(--form-border);
    text-align: center;
}

/* Social Media Icons */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-socials a {
    color: var(--text-main);
    transition: var(--transition);
    display: inline-flex;
}

.footer-socials a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-socials svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Legal Text */
.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.legal-links a {
    color: var(--text-muted);
    font-weight: 500;
}

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

.desktop-only {
    display: none; /* Der Trennstrich wird auf dem Handy ausgeblendet */
}

/* --- Footer Desktop View --- */
@media screen and (min-width: 768px) {
    .footer-legal {
        flex-direction: row; /* Auf dem PC nebeneinander */
        justify-content: center;
        gap: 2rem;
    }
    
    .desktop-only {
        display: inline;
    }
}

/* --- Animations --- */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media screen and (max-width: 992px) {
    .img-left { width: 150px; height: 200px; left: -5%; top: 15%; opacity: 0.15; }
    .img-right { width: 140px; height: 180px; right: -5%; bottom: 10%; opacity: 0.15; }
}

@media screen and (max-width: 768px) {
.hero-content {
        position: relative;
        z-index: 10; 
        width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
        margin-bottom: 1rem;
    }

    .hero-sub {
        padding: 0 1.5rem;
        margin-bottom: 2.5rem;
    }
    .hero-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .img-left {
        display: block;
        position: absolute;
        width: 110px; 
        height: 150px;
        left: -5%; 
        top: 15%;
        transform: rotate(-4deg);
        opacity: 0.6 !important; 
        z-index: 1;
        pointer-events: none; 
    }

    .img-right { 
        display: block; 
        position: absolute;
        width: 200px; 
        height: 260px;
        right: -10%; 
        bottom: 8%; 
        transform: rotate(8deg);
        opacity: 0.6 !important; 
        z-index: 1;
        pointer-events: none; 
    }

    .section-padding { padding: 4rem 0; }

    .hamburger { display: flex; }
    .nav-right {
        margin: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); 
        transition: clip-path 0.4s ease-in-out;
    }
    .nav-right.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .nav-links { flex-direction: column; text-align: center; width: 100%; }
    
    .header-controls {
        gap: 1rem;
    }

    .back-link {
        margin-left: 0.5rem;
        font-size: 0.75rem;
    }

    /* Grids für Mobile auflösen */
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

    .detail-grid {
        grid-template-columns: 1fr; /* Setzt Bild und Text untereinander! */
        gap: 2rem;
    }
}
