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

/* FIX: 'clip' stops horizontal overflow but does NOT break sticky headers or trap touch-scrolling like 'hidden' does */
html, body {
    overflow-x: clip; 
}

html {
    scroll-behavior: smooth; 
    scroll-padding-top: 75px; 
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6; 
    color: #8B635C; 
    background-color: #FCF9F5; 
}

main {
    position: relative;
}

/* Typografie */
h1, h2, h3, h4, .market-date {
    font-family: 'Nunito', sans-serif; 
    font-weight: 700;
    color: #8A6652;
    margin-bottom: 10px; 
}

h1 { 
    font-family: 'Sacramento', cursive; 
    font-weight: 400; 
    font-size: 4em; 
    text-align: center; 
    letter-spacing: -1px; 
    line-height: 1.1; 
    color: #8A6652;
}

h2 { font-size: 2.2em; }
h3 { font-size: 1.4em; margin-bottom: 5px; }
p { margin-bottom: 12px; } 

ul {
    margin-bottom: 12px; 
    margin-left: 20px;
}

a {
    color: #8A6652;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: #D5A9A3; }

/* LAYOUT & ABSTÄNDE */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2; 
}

section {
    padding: 40px 0; 
    position: relative;
}

/* FIX: Removed backdrop-filter to prevent massive scroll lag over animated blobs */
.bg-light {
    background-color: rgba(255, 255, 255, 0.95); 
    border-radius: 40px; 
    margin: 15px 15px; 
    box-shadow: 0 10px 30px rgba(138, 102, 82, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 25px; 
}

/* HEADER & NAV */
header {
    background-color: rgba(252, 249, 245, 0.95); 
    border-bottom: 1px solid rgba(138, 102, 82, 0.1); 
    box-shadow: 0 4px 20px rgba(138, 102, 82, 0.05); 
    padding: 8px 0 3px 0; 
    position: sticky; 
    top: 0;
    z-index: 1000; 
    /* Backdrop filter is safe here because it's a small area and fixed to the top */
    backdrop-filter: blur(8px);
}

.logo-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 50px; 
    transition: transform 0.3s ease;
    border-radius: 50%; 
}

.logo-container img:hover { transform: rotate(-5deg) scale(1.05); }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: #8A6652;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1em;
}

nav a:hover { color: #E4C7C2; }

/* BLOBS - BUNT GEMISCHTE PASTELL PALETTE */
.page-blob {
    position: absolute;
    z-index: 0; 
    opacity: 0.4; 
    border-radius: 50% 40% 60% 40% / 40% 50% 40% 60%;
    pointer-events: none; 
    will-change: border-radius, transform; /* FIX: Tells browser to hardware-accelerate these */
}

.blob-1 { top: 15%; left: -10%; width: 500px; height: 500px; background-color: #CDE0C9; animation: morph 15s infinite alternate ease-in-out; } 
.blob-2 { top: 35%; right: -15%; width: 650px; height: 600px; background-color: #FDF4C7; animation: morph 18s infinite alternate-reverse ease-in-out; } 
.blob-3 { top: 55%; left: 5%; width: 400px; height: 400px; background-color: #EAE2D8; animation: morph 12s infinite alternate ease-in-out; } 
.blob-4 { top: 75%; right: 5%; width: 550px; height: 550px; background-color: #F5D6B8; animation: morph 20s infinite alternate-reverse ease-in-out; } 
.blob-5 { top: 90%; left: -5%; width: 600px; height: 600px; background-color: #D4EAE0; animation: morph 16s infinite alternate ease-in-out; } 
.blob-6 { top: 25%; left: -8%; width: 480px; height: 480px; background-color: #D3E1F1; animation: morph 14s infinite alternate-reverse ease-in-out; } 
.blob-7 { top: 68%; left: -12%; width: 520px; height: 520px; background-color: #E2D9EE; animation: morph 17s infinite alternate ease-in-out; } 

/* HERO */
.hero {
    background: linear-gradient(135deg, #FDFBFA 0%, #F1EEEA 100%); 
    padding: 40px 0 60px 0; 
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    margin-bottom: 25px; 
    position: relative;
    z-index: 2;
}

.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { flex: 1; }
.hero-text p { color: #9C775E; font-size: 1.3em; margin-bottom: 30px; }

.btn-hero { font-weight: 800; background-color: #8A6652; color: #FFFFFF; box-shadow: 0 6px 20px rgba(138, 102, 82, 0.2); }
.btn-hero:hover { background-color: #725342; transform: translateY(-4px); }

.hero-image-wrapper { flex: 1; position: relative; display: flex; justify-content: center; }
.hero-image { width: 100%; max-width: 350px; border-radius: 30px;  transform: rotate(3deg); transition: transform 0.5s; }
.hero-image-wrapper:hover .hero-image { transform: rotate(0deg) scale(1.03); }

/* Hero-Blob */
.hero-blob { position: absolute; width: 500px; height: 500px; background-color: #EAD1CC; border-radius: 50% 40% 60% 40% / 40% 50% 40% 60%; z-index: 1; opacity: 0.2; right: -20px; top: -30px; animation: morph 8s ease-in-out infinite alternate; }

@keyframes morph {
    0% { border-radius: 50% 40% 60% 40% / 40% 50% 40% 60%; }
    100% { border-radius: 40% 60% 40% 50% / 50% 40% 60% 40%; }
}

/* BUTTONS */
.btn { font-family: 'Nunito', sans-serif; display: inline-block; padding: 12px 28px; background-color: #FFFFFF; color: #8A6652; font-weight: 800; border-radius: 50px; transition: all 0.3s; box-shadow: 0 4px 15px rgba(223, 189, 183, 0.4); border: 2px solid transparent; text-decoration: none; cursor: pointer; }
.btn:hover { background-color: #FCF9F5; transform: translateY(-4px); }
.btn-alt { background-color: #8A6652; color: #FFFFFF; }

/* PRODUKTE */
.product-group { margin-bottom: 30px; }
.product-group h3 { text-align: center; border-bottom: 3px solid #CDE0C9; padding-bottom: 8px; margin-bottom: 25px; } 
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

/* FIX: Removed backdrop-filter to stop scroll lag */
.product-card { 
    background-color: rgba(255, 255, 255, 0.98); 
    padding: 20px; 
    border-radius: 24px; 
    box-shadow: 0 4px 20px rgba(138, 102, 82, 0.06); 
    transition: all 0.3s; 
    display: flex; 
    flex-direction: column; 
}
.product-card:hover { box-shadow: 0 10px 30px rgba(138, 102, 82, 0.15); transform: translateY(-8px); }
.product-image-placeholder { width: 100%; height: 180px; background-color: #F8EFEF; border-radius: 16px; margin-bottom: 15px; overflow: hidden; }
.product-image-placeholder img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.product-card:hover img { transform: scale(1.05); }

/* LISTEN */
.about-content-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text, .carousel-container { min-width: 0; }
.heart-list { list-style: none; margin-left: 0; }
.heart-list li { margin-bottom: 15px; padding-left: 30px; position: relative; }
.heart-list li::before { content: "❤"; position: absolute; left: 0; color: #F5D6B8; font-size: 1.1em; }

/* KARUSSELL */
.carousel-container { position: relative; width: 100%; height: 600px; border-radius: 30px; overflow: hidden; background-color: #F8EFEF; box-shadow: 0 10px 30px rgba(138, 102, 82, 0.1); border: 4px solid #FFFFFF; }
.carousel-track { display: flex; height: 100%; transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
.carousel-slide { min-width: 100%; height: 100%; }
.carousel-image-placeholder { height: 100%; width: 100%; }
.carousel-image-placeholder img { width: 100%; height: 100%; object-fit: contain; }
.carousel-button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.8); border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; z-index: 10; }
.carousel-button.prev { left: 10px; } .carousel-button.next { right: 10px; }
.carousel-dots { position: absolute; bottom: 15px; width: 100%; text-align: center; }
.dot { height: 10px; width: 10px; margin: 0 5px; background: rgba(255,255,255,0.6); border-radius: 50%; display: inline-block; cursor: pointer; }
.dot.active { background: #8A6652; transform: scale(1.2); }

/* MÄRKTE & KONTAKT */
.market-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.market-item { background: rgba(255,255,255,0.9); border: 2px dashed #D3E1F1; padding: 20px; border-radius: 20px; text-align: center; transition: 0.3s; } 
.market-item:hover { transform: translateY(-5px); background: #FDF4C7; } 
.market-date { color: #8A6652; background: #FFF; padding: 5px 15px; border-radius: 30px; border: 1px solid #CDE0C9; display: inline-block; margin-bottom: 10px; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form { background: rgba(255,255,255,0.9); padding: 25px; border-radius: 24px; box-shadow: 0 8px 30px rgba(138,102,82,0.06); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 2px solid #F0E6DF; border-radius: 12px; background: #FCF9F5; font-family: inherit; }
.contact-form textarea { height: 120px; }

footer { background: #FCF9F5; padding: 20px 0; text-align: center; font-size: 0.9em; }

/* --- MOBILE STYLING FIXES --- */
@media (max-width: 768px) {
    .logo-nav-container { 
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: space-between; 
        align-items: center; 
    }
    
    .mobile-menu-toggle { display: block; }
    
    nav { width: 100%; }
    
    /* Absolute positioning prevents the mobile menu from inflating the sticky header */
    nav ul { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        padding: 15px 0; 
        gap: 15px; 
        text-align: center;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(252, 249, 245, 0.98);
        border-bottom: 1px solid rgba(138, 102, 82, 0.1);
        box-shadow: 0 10px 20px rgba(138, 102, 82, 0.1);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    nav ul.active { display: flex; }

    /* Stacks the hero elements so they don't break horizontal width */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-image-wrapper {
        margin-top: 20px;
    }
    
    /* Prevents the carousel from dominating small screens */
    .carousel-container {
        height: 350px;
    }

    .about-content-wrapper, .contact-wrapper { grid-template-columns: 1fr; }
    
    h1 { font-size: 2.5em; }
}
