/*
Theme Name: Balzer
Version: 2.0.0
*/

html, body { margin: 0; padding: 0; }
body { font-family: 'Quicksand', sans-serif; overflow-x: hidden; }

/* ===== Header Basis & Transparenz ===== */
header.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99999;
    height: 110px;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    align-items: center;
}

header.site-header.scrolled {
    background: #ffffff !important;
    height: 85px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px; /* Mehr Platz für Desktop */
    width: 92%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== Logo Steuerung (Fix gegen doppeltes Logo) ===== */
.site-branding .logo {
    width: 170px;
    height: auto;
    transition: all 0.3s ease;
}

header:not(.scrolled) .logo-dark { display: none !important; }
header:not(.scrolled) .logo-white { display: block !important; }

header.scrolled .logo-white { display: none !important; }
header.scrolled .logo-dark { display: block !important; }

header.scrolled .logo { width: 130px; }

/* ===== Desktop Nav & Socials ===== */
.nav-toggle { display: none !important; } /* Desktop-Sperre */

.primary-nav { display: flex; align-items: center; }
.nav-menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }

/* Menü Farbe im transparenten Zustand (Oben) */
.nav-menu a {
    text-decoration: none;
    font-weight: 700;
    color: #ffffff !important;
    font-size: 16px;
    text-transform: uppercase;
    transition: color 0.3s;
}

/* Menü Farbe im gescrollten Zustand (Beige) */
header.site-header.scrolled .nav-menu a {
    color: #111 !important;
}

/* Hover Effekt */
.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: #C6B084 !important;
}

/* Hover Effekt wenn bereits gescrollt (z.B. dunkler für Feedback) */
header.site-header.scrolled .nav-menu a:hover {
    color: #C6B084 !important;
}

.header-socials { display: flex; gap: 18px; margin-left: 35px; }
.header-socials a { color: #fff; font-size: 18px; transition: 0.3s; }
header.scrolled .header-socials a { color: #C6B084 !important; }

/* ===== Mobil-Optimierung (max 950px) ===== */
@media (max-width: 950px) {
    header.site-header {
        height: 80px;
        background: transparent !important;
    }

    header.site-header.scrolled { background: #fff !important; }
    header.site-header.scrolled .nav-toggle span {
        background: #C6B084;
    }

    /* Logo mobil kleiner */
    .site-branding .logo { width: 115px !important; }

    /* Hamburger Linien-Design */
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 45px; height: 45px;
        background: transparent !important;
        border: none !important;
        z-index: 100001;
    }

    .nav-toggle span {
        width: 30px; height: 3px;
        background: #ffffff;
        transition: 0.3s ease;
        border-radius: 4px;
    }

    /* Animation zum X */
    body.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

    /* Nav Overlay mit Slide-Down Effekt */
    .primary-nav {
        position: fixed !important; /* Wichtig: Überschreibt Elementor */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        height: 100vh;
        width: 100vw;
        display: flex !important; /* Muss flex sein für Ausrichtung */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 100000;

        /* Unsichtbar im Startzustand */
        opacity: 0;
        visibility: hidden;
        pointer-events: none; /* Klicks gehen durch, wenn zu */
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.nav-open .primary-nav {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important; /* Klicks wieder erlauben */
        transform: translateY(0) !important;
    }

    body.nav-open .nav-toggle span {
        background: #111 !important;
    }

    .nav-menu { flex-direction: column; text-align: center; gap: 25px; }
    .nav-menu a { color: #111 !important; font-size: 24px; }

    .header-socials { margin: 40px 0 0 0; }
    .header-socials a { color: #C6B084 !important; font-size: 28px; }
}
/* ===== Footer ===== */
/* Footer: einheitliche Farbe für Text + Links + Icons */
.site-footer,
.site-footer a,
.site-footer .footer-right,
.site-footer .footer-links a,
.site-footer .footer-social a,
.site-footer .footer-social i,
.site-footer .footer-social svg {
    color: #C6B084 !important;
    fill: #C6B084 !important; /* falls SVG Icons */
}
.site-footer{
    background:#000;
    color:#C6B084;
    padding: 22px 0;
}

.site-footer a{
    color: inherit;
    text-decoration: none;
}

.site-footer .wrap.footer-wrap{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 28px;
}

.footer-left,
.footer-right{
    flex: 1 1 35%;
}

.footer-center{
    flex: 0 0 auto;
    display:flex;
    justify-content:center;
    align-items:center;
}

.footer-social{
    display:flex;
    align-items:center;
    gap: 18px;
    margin-bottom: 14px;
}

.footer-social .social{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    opacity: .95;
}

.footer-social .social:hover{
    opacity: 1;
    transform: translateY(-1px);
}

.footer-links{
    display:flex;
    gap: 18px;
    font-size: 16px;
    letter-spacing: .2px;
}

.footer-links a:hover{
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-logo{
    height: 70px;
    width: auto;
    display:block;
}

.footer-right{
    text-align:right;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: .2px;
}

.footer-right a:hover{
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 900px){
    .site-footer .wrap.footer-wrap{
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .footer-right{
        text-align:left;
    }
    .footer-center{
        justify-content:flex-start;
    }
}/* ===== Footer Mobile Reihenfolge & Zentrierung ===== */
@media (max-width: 900px){

    /* Alles zentrieren */
    .site-footer .wrap.footer-wrap{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    /* Reihenfolge: Logo, Social, Adresse, Links */
    .footer-center{ order: 1; justify-content: center; width: 100%; }
    .footer-logo{ height: 64px; margin: 0 auto; }

    .footer-social{
        order: 2;
        justify-content: center;
        width: 100%;
        margin: 6px 0 0 0;
    }

    .footer-right{
        order: 3;
        text-align: center;
        width: 100%;
    }

    .footer-left{
        order: 4;
        width: 100%;
    }

    .footer-links{
        justify-content: center;
        width: 100%;
        margin-top: 6px;
    }
}
/* 404 Seite */
.error-hero {
    min-height: calc(100vh - 0px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin: 0;
}

.error-overlay {
    background: rgba(0, 0, 0, 0.42);
    padding: 40px 30px;
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 720px;
    box-sizing: border-box;
}

.error-overlay h1 {
    margin: 0 0 12px;
    font-size: clamp(48px, 10vw, 90px);
    line-height: 1;
}

.error-overlay p {
    margin: 0 0 24px;
    font-size: clamp(18px, 3vw, 24px);
    line-height: 1.4;
}

.error-button {
    display: inline-block;
    padding: 14px 26px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.error-button:hover {
    opacity: 0.9;
}

/* Weiße Abstände entfernen */
body.error404 {
    margin: 0;
}

body.error404 #page,
body.error404 .site,
body.error404 .wrap,
body.error404 main,
body.error404 .content,
body.error404 .site-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Falls der Footer direkt anschließen soll */
body.error404 .error-hero {
    margin-bottom: 0 !important;
}

/* Mobil */
@media (max-width: 767px) {
    .error-hero {
        min-height: 70vh;
        padding: 30px 16px;
        background-position: center center;
    }

    .error-overlay {
        padding: 28px 20px;
    }

    .error-button {
        width: 100%;
        max-width: 280px;
    }
}