/* =============================================
   ZAUBEROFEN – Main Stylesheet
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; padding: 0;
    font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
    font-size: 14px;
    color: #444;
    background: #fff;
    line-height: 1.7em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
    font-family: 'Ubuntu', Helvetica, Arial, Lucida, sans-serif;
    color: #444;
    line-height: 1.2em;
    font-weight: 500;
    padding-bottom: 10px;
    margin: 0;
}
h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: #7d3d23; text-decoration: none; }
a:hover { color: #901e1e; }
img { max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* --- Layout Helpers --- */
.container {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}
.section {
    padding: 54px 0;
}
.section-dark { background: #222; }
.section-light { background: #fff; }
.section-brown { background: #7d3d23; }

/* =============================================
   HEADER
   ============================================= */
#main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 66px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#main-header.transparent { background: rgba(255,255,255,0); box-shadow: none; }
#main-header.scrolled   { background: #7d3d23; box-shadow: 0 0 7px rgba(0,0,0,0.1); }

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
}

/* Logo */
.logo-wrap a { display: flex; align-items: center; }
.logo-wrap img { max-height: 56px; width: auto; }

/* Navigation */
#main-nav { display: flex; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0; padding: 0;
}
.nav-list > li {
    position: relative;
}
.nav-list > li > a {
    display: block;
    padding: 0 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 66px;
    text-decoration: none;
    transition: opacity 0.2s;
    font-family: 'Poppins', sans-serif;
}
.nav-list > li > a:hover,
.nav-list > li.current > a { opacity: 0.85; }

/* Submenu */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #7d3d23;
    min-width: 180px;
    z-index: 999;
    list-style: none;
    margin: 0; padding: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.submenu li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
}
.submenu li:last-child a { border-bottom: none; }
.submenu li a:hover { background: rgba(0,0,0,0.15); }
.has-submenu:hover .submenu { display: block; }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1010;
}
.mobile-menu-btn span {
    display: block;
    width: 26px; height: 2px;
    background: #fff;
    transition: all 0.3s;
}

/* =============================================
   HERO SECTION (split background)
   ============================================= */
.hero-section {
    background-image: linear-gradient(90deg, #222222 64%, #7d3d23 64%);
    display: flex;
    align-items: center;
    padding-top: 8vw;
}
.hero-inner {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 54px 0;
}
.hero-text { flex: 0 0 50%; max-width: 50%; color: #fff; }
.hero-text h4 {
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.6em;
    padding-bottom: 8px;
}
.hero-text h1 { font-size: 80px; color: #fff; text-transform: uppercase; line-height: 1.1em; padding-bottom: 16px; }
.hero-text p { color: #aaaaaa; font-size: 15px; margin-bottom: 24px; }
.hero-image { flex: 0 0 50%; max-width: 50%; }
.hero-image img { width: 100%; border-radius: 2px; box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    padding: 0.3em 1em;
    line-height: 1.7em;
    border: 2px solid currentColor;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
}
.btn-light {
    color: #fff;
    border-color: #fff;
}
.btn-light:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
    padding: 0.3em 2em 0.3em 0.7em;
    border-color: transparent;
}
.btn-dark {
    color: #7d3d23;
    border-color: #7d3d23;
}
.btn-dark:hover {
    background: rgba(125,61,35,0.1);
    color: #7d3d23;
    padding: 0.3em 2em 0.3em 0.7em;
    border-color: transparent;
}
.btn-white-outline {
    color: #fff;
    border-color: #fff;
    font-size: 14px;
}
.btn-white-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.3em 2em 0.3em 0.7em;
    border-color: transparent;
}

/* Hero CTA Button – matches original Divi .et_pb_button_0 */
.btn-hero {
    display: inline-block;
    color: #fff;
    border: none;
    border-radius: 0;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    background-color: #7d3d23;
    padding: 16px 36px 16px 22px;
    box-shadow: 0px 12px 18px -6px rgba(125,61,35,0.48);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, padding 0.2s ease;
}
.btn-hero::after {
    content: ' →';
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}
.btn-hero:hover {
    background-color: #000;
    color: #fff;
    padding: 16px 40px 16px 26px;
}

/* =============================================
   PARALLAX SECTIONS (Products)
   ============================================= */
.parallax-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-top: 5px solid #fff;
    border-bottom: 5px solid #fff;
}
.parallax-bg {
    position: absolute;
    inset: -60px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.parallax-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.parallax-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 1 / 1.3;
    padding: 0 10% 50px;
    border-right: 5px solid #fff;
    cursor: pointer;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(250,250,250,0) 1%, rgba(0,0,0,0.51) 78%, rgba(0,0,0,0.8) 100%);
    transition: none;
}
.parallax-card:last-child { border-right: none; }
.parallax-card:hover {
    background-image: radial-gradient(circle at center, rgba(125,61,35,0.75) 20%, #7d3d23 20%);
    background-color: #fff;
    background-size: 10px 10px;
    background-repeat: repeat;
}
.parallax-card h2 {
    color: #fff;
    font-size: 36px;
    line-height: 1.2em;
    padding-bottom: 6px;
}
.parallax-card h2 a { color: #fff; }
.parallax-card:hover h2 a { text-decoration: underline; }
.parallax-card p { color: rgba(255,255,255,0.85); font-style: italic; margin: 0; font-size: 13px; }

.parallax-content.parallax-section-full { grid-template-columns: 1fr; }
.parallax-card.parallax-card-full {
    aspect-ratio: auto;
    min-height: 350px;
    border-right: none;
}

/* =============================================
   PAGE CONTENT SECTIONS
   ============================================= */
.page-hero {
    background-image: linear-gradient(90deg, #222222 64%, #7d3d23 64%);
    padding-top: 66px;
}
.page-hero-inner {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 54px 0;
    min-height: 60vh;
}
.page-hero-text { flex: 0 0 50%; max-width: 50%; color: #fff; }
.page-hero-text h3 {
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    text-transform: none;
    font-style: italic;
    padding-bottom: 6px;
}
.page-hero-text h1 { font-size: 48px; color: #fff; padding-bottom: 14px; }
.page-hero-text p { color: rgba(255,255,255,0.9); }
.page-hero-image { flex: 0 0 50%; max-width: 50%; }
.page-hero-image img { width: 100%; box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

/* Page title banner (Datenschutz, Impressum etc.) */
.page-title-banner {
    background: #222;
    padding: 80px 0 40px;
}
.page-title-banner h1 { color: #fff; }

/* Content section */
.content-section {
    background: #fff;
    padding: 60px 0;
}
.content-inner {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
.content-text { flex: 0 0 55%; }
.content-gallery { flex: 0 0 45%; }
.content-text strong { font-weight: 600; }
.content-text ul {
    list-style: disc;
    padding-left: 1.2em;
    padding-bottom: 1em;
    line-height: 26px;
}
.content-full-width { width: 80%; max-width: 1080px; margin: 0 auto; }

/* =============================================
   GALLERY GRID
   ============================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
.gallery-grid img:hover { opacity: 0.85; }
.gallery-grid-wide {
    grid-template-columns: repeat(4, 1fr);
}

/* =============================================
   REFERENZEN GALLERY GROUPS
   ============================================= */
.ref-group { margin-bottom: 60px; }
.ref-group h2 { margin-bottom: 20px; font-size: 26px; }

/* =============================================
   BLOG
   ============================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.blog-card {
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.blog-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 16px; padding-bottom: 6px; }
.blog-card-body p { font-size: 13px; color: #666; }
.blog-card-body .blog-meta { font-size: 12px; color: #999; margin-bottom: 8px; }
.blog-card-body a.read-more {
    font-size: 13px;
    color: #7d3d23;
    font-weight: 500;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer { }

.footer-main {
    position: relative;
    background:
        radial-gradient(circle at center, rgba(34,34,34,0.75) 0%, #222222 70%),
        url('../images/flammkuchen-und-wein-bg.jpeg.webp') center/cover no-repeat;
    background-color: #2a2e40;
    padding: 0;
    overflow: hidden;
}

.footer-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Ubuntu', sans-serif;
    font-size: 24vw;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    pointer-events: none;
    line-height: 0;
    letter-spacing: 20px;
    filter: blur(5px);
    mix-blend-mode: overlay;
    user-select: none;
}

.footer-inner {
    position: relative;
    z-index: 1;
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 60px 0 0;
}

.footer-contact-sublabel {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #edbb5f;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 2em;
    margin: 0;
}
.footer-contact-label {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 38px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.4em;
}

.footer-columns {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding-bottom: 40px;
}
.footer-form-col { flex: 0 0 55%; }
.footer-address-col {
    flex: 0 0 40%;
    color: #fff;
    padding: 40px;
    background: #7d3d23;
    box-shadow: 0 70px 120px -42px rgba(0,0,0,0.15);
    transition: box-shadow 300ms ease;
}
.footer-address-col:hover {
    box-shadow: 0 70px 160px -42px rgba(0,0,0,0.15);
}
.footer-address-col .company-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    color: #edbb5f;
    margin: 0 0 4px;
}
.footer-address-col h3 {
    font-size: 50px;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2em;
}
.footer-address-col p { color: rgba(255,255,255,0.9); margin-bottom: 4px; }
.footer-address-col a { color: rgba(255,255,255,0.9); text-decoration: underline; }
.footer-address-col a:hover { color: #fff; }

/* Footer address bar – full width */
.footer-address-bar {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 16px 85px;
    text-align: center;
}
.footer-address-bar p { color: #fff; font-size: 13px; font-weight: 300; margin: 0; }

/* Footer bottom */
.footer-bottom {
    background: #222;
    padding: 0;
}
.footer-bottom-inner {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 19px 15px;
    border-top: 1px solid #fff;
}
.footer-credits, .footer-links {
    font-size: 13px;
    color: #fff;
}
.footer-credits a, .footer-links a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #fff;
}
.footer-credits a:hover, .footer-links a:hover { opacity: 0.8; }
.footer-links { display: flex; gap: 16px; }

/* =============================================
   CONTACT FORM (in footer)
   ============================================= */
.contact-form label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 4px;
    font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 3px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: #fff; }
.contact-form select option { background: #333; color: #fff; }
.form-group { margin-bottom: 14px; }
.form-row { display: flex; gap: 14px; }
.form-group.half { flex: 1; }
.form-group small { font-size: 11px; color: rgba(255,255,255,0.6); display: block; margin-top: 3px; }
.btn-submit {
    background: transparent;
    border: 1px solid #fff;
    border-radius: 3px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 28px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-submit:hover:not(:disabled) { background: #fff; color: #7d3d23; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-submit { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 16px; margin-top: 4px; }
.form-success { background: rgba(255,255,255,0.15); color: #fff; padding: 12px 16px; border-radius: 3px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.3); }
.form-error { background: rgba(200,0,0,0.2); color: #fff; padding: 12px 16px; border-radius: 3px; margin-bottom: 16px; }

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 0;
    background: #3a3a3a;
    color: #fff;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s, background 0.2s;
    z-index: 500;
    user-select: none;
}
.scroll-to-top.visible { opacity: 1; }
.scroll-to-top:hover { background: #901e1e; }

/* =============================================
   DATENSCHUTZ / IMPRESSUM
   ============================================= */
.legal-content { line-height: 1.8em; }
.legal-content h2 { margin-top: 30px; font-size: 20px; }
.legal-content p { margin-bottom: 12px; }
.legal-content strong { font-weight: 600; }

/* =============================================
   LEISTUNGEN OVERVIEW CARDS
   ============================================= */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding-top: 10px;
}
.leistung-card {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    min-height: 320px;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
}
.leistung-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.leistung-card:hover .leistung-card-bg { transform: scale(1.04); }
.leistung-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.leistung-card-body {
    position: relative;
    z-index: 1;
    padding: 24px;
    width: 100%;
}
.leistung-card-body h2 { color: #fff; font-size: 28px; padding-bottom: 4px; }
.leistung-card-body p { color: rgba(255,255,255,0.85); font-style: italic; margin: 0; }
.leistung-card-body a { color: #fff; }

/* =============================================
   KUKKI SECTION
   ============================================= */
.kukki-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 20px;
}
.kukki-product img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}
.kukki-product p {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 980px) {
    body { font-size: 14px; }

    #main-header { height: 60px; }
    .header-container { height: 60px; }

    #main-nav { display: none; }
    #main-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; right: 0;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: #fff;
        z-index: 1005;
        padding: 70px 0 40px;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        transform: rotateY(0deg);
    }
    .nav-list { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
    .nav-list > li { width: 100%; }
    .nav-list > li > a {
        color: #7d3d23;
        line-height: 1;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.04);
        font-size: 15px;
    }
    .nav-list > li > a:hover { background: #7d3d23; color: #fff; opacity: 1; }
    .submenu {
        display: block;
        position: static;
        background: rgba(0,0,0,0.04);
        box-shadow: none;
    }
    .submenu li a { color: #7d3d23; padding-left: 35px; }
    .submenu li a:hover { background: #7d3d23; color: #fff; }
    .has-submenu:hover .submenu { display: block; }

    .mobile-menu-btn { display: flex; }
    #mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        z-index: 1004;
    }
    #mobile-overlay.active { display: block; }

    /* Hero */
    .hero-section {
        background-image: linear-gradient(-180deg, #222222 64%, #7d3d23 64%);
        align-items: flex-start;
        min-height: auto;
    }
    .hero-inner {
        flex-direction: column;
        width: 90%;
        padding: 40px 0;
    }
    .hero-text, .hero-image { flex: none; max-width: 100%; width: 100%; }
    .hero-text h1 { font-size: 36px; }
    .hero-text h4 { font-size: 12px; }

    /* Page hero */
    .page-hero { }
    .page-hero-inner {
        flex-direction: column;
        width: 90%;
        padding: 40px 0;
        min-height: auto;
    }
    .page-hero-text, .page-hero-image { flex: none; max-width: 100%; width: 100%; }
    .page-hero-text h1 { font-size: 36px; }

    .parallax-content { grid-template-columns: 1fr; width: 100%; max-width: 100%; }
    .parallax-card { aspect-ratio: auto; min-height: 220px; padding: 20px 6% 34px; }
    .parallax-card h2 { font-size: 26px; }
    .parallax-bg { background-attachment: scroll; }

    .content-inner { flex-direction: column; width: 90%; gap: 30px; }
    .content-text, .content-gallery { flex: none; width: 100%; }
    .content-full-width { width: 90%; }

    .footer-inner { width: 90%; }
    .footer-bottom-inner { width: 90%; flex-direction: column; text-align: center; }
    .footer-columns { flex-direction: column; gap: 30px; }
    .footer-form-col, .footer-address-col { flex: none; width: 100%; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid-wide { grid-template-columns: repeat(2, 1fr); }

    .leistungen-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .kukki-products { grid-template-columns: repeat(2, 1fr); }

    .container { width: 90%; }
    .section { padding: 40px 0; }
    .page-title-banner { padding: 80px 0 30px; }
}

@media (max-width: 640px) {
    h1 { font-size: 30px; }
    h2 { font-size: 22px; }
    .hero-text h1 { font-size: 28px; }
    .page-hero-text h1 { font-size: 28px; }
    .footer-contact-label { font-size: 26px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .kukki-products { grid-template-columns: 1fr; }
    .footer-bottom-inner { gap: 12px; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}
