@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400&family=Manrope:wght@400&display=swap');

/* ==========================================================================
    1. GLOBAL DEFAULTS & FONTS
    ========================================================================== */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    margin: 0;
}

/* ==========================================================================
   HERO TYPOGRAPHY
   ========================================================================== */
.hero {
    --hero-heading-white: #ffffff;
    --hero-heading-red: #890000;
    --hero-subtext-color: #890000;
    --hero-gradient-height: 40%;
    --hero-gradient-color: #ffffff;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--hero-gradient-height);
    background: linear-gradient(to bottom, transparent 0%, var(--hero-gradient-color) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero h1 {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 64px !important;
    line-height: 1.3;
    max-width: 862px;
    margin: 0 auto;
    color: var(--hero-heading-white) !important;
}

.hero .brand-red {
    color: var(--hero-heading-red) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 400 !important;
}

.hero-subtext {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 400 !important;
    font-size: 28px !important;
    line-height: 1.4;
    max-width: 720px;
    margin: 0 auto;
    color: var(--hero-subtext-color) !important;
}

@media (min-width: 1024px) {
    .hero {
        height: 861px !important;
        min-height: 861px;
    }
}

@media (max-width: 768px) {

    #contact {
        padding-bottom: 20px !important;
        margin-bottom: 0 !important;
    }

    .contact-section {
        padding-bottom: 10px;
        margin-bottom: 0;
    }
    .hero {
        height: 330px !important;
        min-height: 330px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-size: cover;
        background-position: center;
        margin-bottom: 0 !important;
    }

    .hero h1 {
        font-size: 26px !important;
    }

    .hero-subtext {
        font-size: 14px !important;
    }
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ==========================================================================
   2. LEISTUNGEN GRID FIXES
   ========================================================================== */
body:is(.page-leistungen, .page-projekte) .vp-portfolio__item-meta-category,
body:is(.page-leistungen, .page-projekte) .vp-portfolio__item-meta-date,
body:is(.page-leistungen, .page-projekte) .vp-portfolio__item-meta-author {
    display: none;
}

body:is(.page-leistungen, .page-projekte) .vp-portfolio__item-meta,
body:is(.page-leistungen, .page-projekte) .vp-portfolio__item-meta-title {
    margin-top: 0 !important;
}

body.page-projekte .page-title,
body.page-projekte .archive-title,
body.page-projekte .entry-title {
    display: none !important;
}

body:is(.page-leistungen, .page-projekte) #main.site-main {
    padding-top: 0 !important;
}

/* Category pages (Türen & Fenster, Wintergarten & Geländer, Heizung & Sanitär): background + header spacing */
html:has(body.page-turen-fenster),
html:has(body.page-wintergarten-gelander),
html:has(body.page-heizung-sanitar) {
    background: #F5F5F5 !important;
}

body:is(.page-turen-fenster, .page-wintergarten-gelander, .page-heizung-sanitar),
body:is(.page-turen-fenster, .page-wintergarten-gelander, .page-heizung-sanitar) .site-main,
body:is(.page-turen-fenster, .page-wintergarten-gelander, .page-heizung-sanitar) .page-content,
body:is(.page-turen-fenster, .page-wintergarten-gelander, .page-heizung-sanitar) .page-content .container,
body:is(.page-turen-fenster, .page-wintergarten-gelander, .page-heizung-sanitar) #main .container,
body:is(.page-turen-fenster, .page-wintergarten-gelander, .page-heizung-sanitar) .wp-block-visual-portfolio {
    background: #F5F5F5 !important;
    background-color: #F5F5F5 !important;
}

body:is(.page-turen-fenster, .page-wintergarten-gelander, .page-heizung-sanitar) #main.site-main {
    padding-top: 46px !important; /* 30% smaller than 66px */
}

@media (max-width: 768px) {
    body:is(.page-turen-fenster, .page-wintergarten-gelander, .page-heizung-sanitar) #main.site-main {
        padding-top: 8px !important; /* ~70% smaller than 28px */
    }
}

body:is(.page-leistungen, .page-projekte) .page-content > .vp-filter,
body:is(.page-leistungen, .page-projekte) .vp-filter {
    margin-top: 40px !important;
}

@media (max-width: 768px) {
    body:is(.page-leistungen, .page-projekte) .page-content > .vp-filter,
    body:is(.page-leistungen, .page-projekte) .vp-filter {
        margin-top: 20px !important;
    }
}

body:is(.page-leistungen, .page-projekte) .vp-portfolio__item-img-wrap,
body:is(.page-leistungen, .page-projekte) .vp-portfolio__item-img,
body:is(.page-leistungen, .page-projekte) .vp-portfolio__item,
body:is(.page-leistungen, .page-projekte) figure.vp-portfolio__item {
    margin-bottom: 0 !important;
}

body:is(.page-leistungen, .page-projekte) .vp-portfolio__item-img-wrap {
    line-height: 0 !important;
}

body:is(.page-leistungen, .page-projekte) .vp-portfolio__item-meta,
body:is(.page-leistungen, .page-projekte) .vp-portfolio__item-meta-title {
    margin: 0 !important;
    padding: 0 !important;
}

body:is(.page-leistungen, .page-projekte) .vp-portfolio__item-img-wrap + .vp-portfolio__item-meta {
    margin-top: 0 !important;
}

body:is(.page-leistungen, .page-projekte) .vp-portfolio:not(.vp-portfolio__ready) .vp-portfolio__items-wrap,
body:is(.page-leistungen, .page-projekte) .vp-portfolio:not(.vp-portfolio__ready) .vp-portfolio__layout-elements,
body:is(.page-leistungen, .page-projekte) .vp-portfolio:not(.vp-portfolio__ready) .vp-portfolio__thumbnails-wrap {
    opacity: 1;
    visibility: visible;
}

/* Force Hide Categories/Meta in Visual Portfolio (keep titles) */
.vp-portfolio__layout-elements.vp-portfolio__layout-elements-top.vp-portfolio__layout-elements-align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 18px;
    gap: 8px;
}
.vp-portfolio__layout-elements.vp-portfolio__layout-elements-top.vp-portfolio__layout-elements-align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 18px;
    gap: 8px;
}
.vp-portfolio__item .vp-portfolio__item-categories,
.vp-portfolio__item-meta-category,
.vp-portfolio__item-meta-date,
.vp-portfolio__item-meta-author {
    display: none !important;
}

.services-section .services-header h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: #1a1a1a;
}

.services-section .services-header p {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    color: #A6AFB5;
    max-width: 537px;
    margin: 0 auto;
}
.vp-portfolio, 
.vp-portfolio__items {
    max-width: 1200px !important;    
    margin-left: auto !important;    
    margin-right: auto !important;   
    width: 90% !important; 
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Portfolio item / overlay size: desktop 473×386, mobile 200×165 (all categories) */
.vp-portfolio__item-img-wrap {
    width: 473px;
    height: 386px;
    flex-shrink: 0;
    flex-grow: 0;
}
.vp-portfolio__item-img-wrap .vp-portfolio__item-img {
    width: 100%;
    height: 100%;
}
.vp-portfolio__item-img-wrap .vp-portfolio__item-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
}
.vp-portfolio__item-overlay {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Portfolio item title (post name) under each card: Manrope bold, close to image */
.vp-portfolio__item-meta,
.vp-portfolio__item-meta-title {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 700 !important;
    margin-top: -6px !important; /* 10px higher than before (was 4px) */
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.vp-portfolio__item-meta-title {
    font-size: 1.04em !important; /* 30% bigger than previous 0.8em (web) */
}
.vp-portfolio__item-img-wrap + .vp-portfolio__item-meta {
    margin-top: -6px !important;
}
.vp-portfolio__item-meta a:hover,
.vp-portfolio__item-meta-title a:hover,
.vp-portfolio__item:hover .vp-portfolio__item-meta-title {
    color: #890000 !important;
}

@media (max-width: 768px) {
    .vp-portfolio__item-meta-title {
        font-size: 0.65em !important; /* 30% bigger than previous 0.5em (mobile) */
    }
    .vp-portfolio__item-meta,
    .vp-portfolio__item-meta-title {
        margin-top: -8px !important; /* 10px higher than before (was 2px) */
    }
    .vp-portfolio__item-img-wrap + .vp-portfolio__item-meta {
        margin-top: -8px !important;
    }

    .vp-portfolio__item-img-wrap {
        width: 260px;
        height: 165px;
    }
    .vp-portfolio__item-img-wrap .vp-portfolio__item-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    .vp-portfolio__layout-elements.vp-portfolio__layout-elements-top.vp-portfolio__layout-elements-align-center {
        margin-top: -35px !important;
    }

    body:is(.page-leistungen, .page-projekte) .vp-portfolio__items-wrap,
    body:is(.page-leistungen, .page-projekte) .vp-portfolio__layout-elements,
    body:is(.page-leistungen, .page-projekte) .vp-portfolio__thumbnails-wrap {
        opacity: 1;
        visibility: visible;
    }

    body:is(.page-leistungen, .page-projekte) .vp-portfolio__item-img {
        overflow: hidden;
        margin-bottom: 0 !important;
    }
}

/* Red Filter Buttons */
.vp-filter__item a {
    border: 2px solid #890000 !important;
    color: #1a1a1a !important;
    padding: 10px 25px !important;
    text-transform: uppercase;
    font-weight: bold;
}
.vp-filter__item.vp-filter__item-active a, 
.vp-filter__item a:hover {
    background-color: #890000 !important;
    color: white !important;
}
.vp-filter {
    justify-content: center !important;
    margin-bottom: 40px !important;
}

/* Hide the "All" filter button on every category / portfolio filter */
.vp-filter__item:has(a[data-vp-filter="*"]) {
    display: none !important;
}

/* Previous/Next Category nav: mobile = below filter; desktop = at end of posts (via order) */
.vp-mobile-category-nav {
    display: none;
}

/* Desktop: nav after posts (moved by JS), height 58px, white arrows */
@media (min-width: 769px) {
    .wp-block-visual-portfolio.alignwide .vp-portfolio .vp-mobile-category-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 24px;
        margin-bottom: 16px;
        width: 100%;
    }
    .wp-block-visual-portfolio.alignwide .vp-portfolio .vp-mobile-category-nav .vp-mobile-category-nav__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: #890000;
        border: none;
        border-radius: 2px;
        color: #ffffff;
        font-family: 'Manrope', sans-serif;
        font-weight: 400;
        font-size: 18px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        padding: 8px 14px;
        height: 58px;
        min-height: 58px;
        cursor: pointer;
    }
    .wp-block-visual-portfolio.alignwide .vp-portfolio .vp-mobile-category-nav .vp-mobile-category-nav__label {
        display: inline-flex;
        align-items: center;
    }
    .wp-block-visual-portfolio.alignwide .vp-portfolio .vp-mobile-category-nav .vp-mobile-category-nav__prev .vp-mobile-category-nav__label::before {
        content: '←';
        margin-right: 6px;
        font-size: 14px;
        line-height: 1;
        color: #ffffff;
    }
    .wp-block-visual-portfolio.alignwide .vp-portfolio .vp-mobile-category-nav .vp-mobile-category-nav__next .vp-mobile-category-nav__label::after {
        content: '→';
        margin-left: 6px;
        font-size: 14px;
        line-height: 1;
        color: #ffffff;
    }
}

@media (max-width: 768px) {
    .vp-mobile-category-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        background: transparent;
        min-height: 28px;
        padding: 0;
        margin-bottom: 16px;
        overflow: visible;
    }

    /* Two separate buttons, each with its own red background */
    .vp-mobile-category-nav__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: #890000;
        border: none;
        border-radius: 2px;
        color: #ffffff;
        font-family: 'Manrope', sans-serif;
        font-size: 6px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        padding: 6px 10px;
        height: 25px;
        min-height: 25px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        overflow: visible;
        box-sizing: border-box;
    }

    .vp-mobile-category-nav__prev {
        transform: translate(0, -10px);
    }

    .vp-mobile-category-nav__next {
        transform: translate(0, -10px);
    }

    .vp-mobile-category-nav__label {
        white-space: nowrap;
        overflow: visible;
        line-height: 1.2;
        display: inline-flex;
        align-items: center;
    }

    /* Prev: small left arrow at the beginning of the text */
    .vp-mobile-category-nav__prev .vp-mobile-category-nav__label::before {
        content: '←';
        margin-right: 4px;
        font-size: 10px;
        line-height: 1;
        opacity: 1;
    }

    /* Next: small right arrow at the end of the text */
    .vp-mobile-category-nav__next .vp-mobile-category-nav__label::after {
        content: '→';
        margin-left: 4px;
        font-size: 10px;
        line-height: 1;
        opacity: 1;
    }
}

/* ==========================================================================
   3. FOOTER STYLES
   ========================================================================== */
.site-footer {
    background-color: #ffffff;
    padding: 60px 20px 0 20px;
    border-top: 1px solid #eaeaea;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.brand-dark { font-size: 28px; font-weight: 700; color: #1a1a1a; }
.brand-red { font-size: 28px; font-weight: 700; color: #D32F2F; }
.footer-tagline { color: #888; font-size: 14px; margin-top: 15px; line-height: 1.5; max-width: 250px; }

.footer-col h4, .legal-heading {
    font-size: 16px; color: #1a1a1a; font-weight: 600;
    margin-bottom: 15px; margin-top: 0; text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a, .footer-col p {
    color: #666; text-decoration: none; font-size: 14px;
    line-height: 1.6; margin: 0;
}
.footer-col p { margin-bottom: 10px; }
.footer-col a:hover { color: #D32F2F; text-decoration: underline; }

.copyright-bar {
    border-top: 1px solid #f0f0f0; padding: 20px 0; margin-top: 20px;
}
.copyright-content { max-width: 1200px; margin: 0 auto; }
.copyright-content p { color: #999; font-size: 13px; margin: 0; }

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 30px;
    }
}

footer,
.site-footer,
.footer-wrapper {
    margin-top: 0 !important;
    border-top: none !important;
    background-color: #ffffff !important;
}

/* ==========================================================================
   4. SERVICES SECTION (Fixed Dimensions)
   ========================================================================== */

#services {
    background-color: #f5f5f5;
}

#why-us .why-tagline,
#why-us .why-tagline span {
    color: #890000;
}

#why-us .why-tagline svg,
#why-us .why-tagline svg * {
    fill: none !important;
    stroke: #890000 !important;
}

/* The Container - Force 3 Columns on Desktop */
.swipe-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    display: grid !important; /* Force Grid */
    grid-template-columns: repeat(3, 1fr) !important; /* 3 Equal Columns */
    gap: 30px;
    align-items: start;
}

/* The Card - Exact Width from Figma */
.swipe-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 32px; /* Figma Radius */
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    height: 100%; /* Make them equal height */
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .swipe-card {
        width: 320px;
        height: 196px;
        position: relative;
        padding-top: 20px;
        padding-bottom: 36px;
    }

    .swipe-card .icon-box {
        margin-top: -6px;
        margin-bottom: 0;
    }

    .swipe-card h3 {
        font-family: "Manrope", sans-serif !important;
        font-weight: 700 !important;
        font-size: 19.3px !important;
        margin-top: 8px !important;
    }

    .swipe-card p {
        font-family: "Manrope", sans-serif !important;
        font-weight: 400 !important;
        color: #A6AFB5 !important;
        font-size: 13.9px !important;
        margin-top: -6px !important;
    }

    .swipe-card .arrow-btn {
        position: absolute;
        left: 50%;
        bottom: -20px;
        transform: translateX(-50%);
        margin: 0;
    }
}

.services-header h2 span {
    color: #890000;
}

.icon-box {
    border-color: #890000;
}

.icon-box svg {
    stroke: #890000;
}

.swipe-card h3 { 
    margin-top: 20px; 
    font-size: 18px; 
    font-weight: 600;
}

.swipe-card p { 
    color: #666; 
    font-size: 14px; 
    line-height: 1.5; 
    margin-bottom: 25px;
}

/* THE RED BUTTON - EXACT FIGMA DIMENSIONS */
.arrow-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #890000; /* Brand Red */
    width: 87px; /* Desktop width */
    height: 41px; /* Exact Height */
    margin: 0 auto;
    border-radius: 0; /* Sharp corners per design */
    transition: background 0.3s ease;
}

.arrow-btn:hover {
    background-color: #6f0000;
}

.arrow-btn svg {
    width: 26px; /* Larger arrow icon */
    height: 26px;
}

/* MOBILE VIEW - SWIPEABLE */
@media (max-width: 768px) {
    .services-section .services-header h2,
    .services-section h2,
    .section-title {
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.3;
        color: #000000;
        text-align: center;
        margin: 0 auto 10px auto;
    }

    .services-section .services-header p,
    .section-desc,
    .section-description {
        font-size: 8px !important;
        color: #A6AFB5 !important;
        line-height: 1.4;
        max-width: 230px;
        text-align: center;
        margin: 0 auto 20px auto !important;
    }

    #services,
    .services-section {
        margin-top: 33px !important;
        padding-top: 0 !important;
        padding-bottom: 14px;
    }

    #why-us {
        padding-top: 36.2px;
    }

    #why-us .why-header,
    #why-us .why-tagline {
        margin-top: 0;
    }

    #why-us .why-tagline,
    #why-us .why-tagline span {
        color: #890000;
    }

    #why-us .why-tagline svg,
    #why-us .why-tagline svg * {
        fill: none !important;
        stroke: #890000 !important;
    }

    .swipe-container,
    .services-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        gap: 10px;
        padding-left: 88px;
        padding-right: 20px;
        padding-top: 0 !important;
        margin-top: 0 !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .services-header {
        margin-bottom: 38px !important;
    }

    .swipe-container::-webkit-scrollbar,
    .services-container::-webkit-scrollbar {
        display: none;
    }

    .swipe-card,
    .service-card {
        flex: 0 0 219.73px;
        width: 219.73px;
        min-width: 219.73px;
        height: 134.48px;
        border-radius: 22px;
        position: relative;
        overflow: visible;
        padding: 8px 10px 22px;
        scroll-snap-align: start;
    }

    .swipe-card .icon-box {
        width: 32px;
        height: 32px;
        margin: 0 auto 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #890000;
        border-radius: 50%;
    }

    .swipe-card .icon-box svg {
        width: 18px;
        height: 18px;
    }

    .swipe-card h3 {
        font-size: 10px;
        line-height: 1.3;
        margin: 4px 0 3px;
    }

    .swipe-card p {
        font-size: 8px;
        line-height: 1.35;
        margin: 0;
    }

    .swipe-card .arrow-btn,
    .service-card .arrow-btn {
        position: absolute;
        left: 50%;
        bottom: -14px;
        transform: translateX(-50%);
        z-index: 2;
        width: 60px;
        height: 28px;
    }

    .arrow-btn,
    .service-btn {
        width: 88px;
        height: 41px;
    }

    .why-features {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
    }

    .why-features::-webkit-scrollbar {
        display: none;
    }

    .why-feature-item {
        min-width: 42vw;
        flex-shrink: 0;
        margin-right: 15px;
        white-space: normal;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }

    .why-feature-item .feature-icon {
        width: 40px;
        height: 40px;
        margin: 0 0 15px 0;
    }

    .why-feature-item svg,
    .why-feature-item svg * {
        fill: #890000 !important;
        stroke: #890000 !important;
    }

    .why-feature-item h3 {
        font-family: 'Manrope', sans-serif;
        font-size: 15px;
        font-weight: 700;
        margin: 0 0 5px 0;
        color: #1A1A1A;
    }

    .why-feature-item p {
        font-family: 'Manrope', sans-serif;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.4;
        color: #666666;
        margin: 0;
    }

    #services,
    #why-us,
    #about,
    #projects {
        background-color: #F5F5F5;
    }
}

/* ==========================================================================
   5. ABOUT SECTION (UEBER UNS)
   ========================================================================== */

#about {
    background-color: #f5f5f5;
    padding: 27px 0 80px;
}

#about .container {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.about-header {
    margin: 0 auto 30px;
}

.about-pretitle,
.projects-pretitle {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #890000;
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pretitle-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.about-pretitle span,
.projects-pretitle span {
    color: #890000;
}

.about-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 42px;
    line-height: 1.2;
    margin: 0 0 30px;
    color: #1a1a1a;
}

.about-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.mission-section {
    margin-top: 22px;
}

.missions-title {
    font-size: 16px;
    color: #6b1b1b;
    margin: 0 0 16px;
    font-weight: 600;
}

.missions-grid {
    display: grid;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

.mission-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.mission-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.text-red {
    color: #890000;
}

@media (min-width: 1024px) {
    #why-us .why-tagline span {
        font-family: "Manrope", sans-serif;
        font-weight: 600;
    }

    #why-us .why-header h2 {
        font-family: "Manrope", sans-serif;
        font-weight: 400;
        font-size: 32px;
    }

    #why-us .why-header p {
        font-family: "Manrope", sans-serif;
        font-weight: 400;
        font-size: 18px;
        color: #2F4252;
    }

    #why-us .why-feature-item h3 {
        font-family: "Manrope", sans-serif;
        font-weight: 700;
        color: #4E4E4E;
    }

    #why-us .why-feature-item p {
        font-family: "Manrope", sans-serif;
        font-weight: 400;
        font-size: 13px;
        color: #4E4E4E;
    }

    .missions-grid .mission-card p {
        font-family: "Manrope", sans-serif;
        font-weight: 400;
        font-size: 21.39px;
        color: #4E4E4E;
    }

    .projects-pretitle {
        font-family: "Manrope", sans-serif;
        font-weight: 500;
    }

    .projects-header-row h2 {
        font-family: "Manrope", sans-serif;
        font-weight: 400;
        font-size: 32px;
    }
}

@media (min-width: 992px) {
    #about {
        padding: 27px 0 90px;
    }

    .missions-title {
        font-size: 18px;
    }

    .missions-grid {
        max-width: 781px;
    }

    .mission-card {
        width: 781px;
        min-height: 120px;
    }
}

@media (max-width: 768px) {
    .about-header {
        margin-bottom: 20px;
    }

    .about-pretitle {
        font-size: 12px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .about-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .about-text {
        font-size: 15px;
        line-height: 1.5;
        text-align: center;
    }

    .missions-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .missions-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px !important;
    }

    .mission-card {
        width: 284px !important;
        min-height: 43px;
        background-color: #ffffff !important;
        border-radius: 7.3px !important;
        box-shadow: 1.5px 1.5px 5.1px rgba(0, 0, 0, 0.16) !important;
        padding: 7.6px 8.7px !important;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 6px auto !important;
        gap: 4px;
    }

    .mission-card p {
        font-family: 'Manrope', sans-serif;
        font-weight: 400 !important;
        font-size: 8px !important;
        line-height: 140% !important;
        color: #4e4e4e !important;
        width: 258px !important;
        text-align: left;
    }
}

/* ==========================================================================
   6. PROJECTS SECTION (UNSERE PROJEKTE)
   ========================================================================== */

#projects {
    background-color: #ffffff;
    padding: 90px 0 100px;
}

#projects .container {
    max-width: 1100px;
}

#projects .brand-red {
    color: #890000;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.projects-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.projects-header-row h2 {
    font-size: 30px;
    line-height: 1.2;
    margin: 0;
    color: #3a2b2b;
    font-weight: 600;
}

#projects .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #890000;
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    white-space: nowrap;
    text-decoration: none;
}

#projects .btn-primary:hover {
    background-color: #6d0000;
}

#projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

#projects .project-item {
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
}

#projects .project-item:nth-child(1),
#projects .project-item:nth-child(2) {
    grid-column: span 3;
    aspect-ratio: 3 / 2;
}

#projects .project-item:nth-child(3),
#projects .project-item:nth-child(4),
#projects .project-item:nth-child(5) {
    grid-column: span 2;
    aspect-ratio: 1 / 1;
}

#projects .project-item a {
    display: block;
    width: 100%;
    height: 100%;
}

#projects .project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    border: 2px solid #ffffff;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #projects {
        padding: 70px 0 0 !important;
        margin-bottom: 0 !important;
    }

    .projects-header-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 22px;
    }

    .projects-header-row h2 {
        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .projects-pretitle {
        font-size: 9px;
        white-space: nowrap;
    }

    #projects .btn-primary {
        padding: 12px 25px;
        font-size: 16px;
        border-radius: 0;
    }

    #projects .projects-grid {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 10px !important;
        width: 296px !important;
        margin: 0 auto !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }

    #projects .project-item {
        height: 97px !important;
        border-radius: 0 !important;
        overflow: hidden;
        margin: 0 !important;
    }

    #projects .project-item:nth-child(1),
    #projects .project-item:nth-child(2) {
        grid-column: span 3 !important;
    }

    #projects .project-item:nth-child(3),
    #projects .project-item:nth-child(4),
    #projects .project-item:nth-child(5) {
        grid-column: span 2 !important;
    }

    #projects .project-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .contact-section {
        padding-top: 19px !important;
        margin-top: 0 !important;
    }
}

/* ==========================================================================
   7. CONTACT SECTION (NEHMEN SIE KONTAKT AUF)
   ========================================================================== */

.contact-section {
    padding: 80px 0;
    background-color: #ffffff;
    margin-bottom: 0 !important;
    padding-bottom: 80px;
}

.contact-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.contact-section .contact-text {
    flex: 1;
    text-align: left;
}

.contact-section .contact-pretitle {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: #890000;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}

.contact-section .contact-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 42px;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.contact-section .contact-subtext {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 30px;
}

.contact-section .contact-subtext .text-red {
    color: #890000;
}

.contact-section .contact-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.contact-section .contact-subtitle {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #890000;
    margin: 0 0 20px;
    text-align: left;
}

.contact-section .contact-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-section .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #890000;
    color: #890000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-section .contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-section .contact-label {
    font-weight: 700;
    color: #1a1a1a;
}

.contact-section .contact-email {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    color: #A6AFB5;
}

.contact-section .contact-image {
    flex: 1;
}

.contact-section .contact-image img {
    width: 486px;
    height: 506px;
    display: block;
    object-fit: cover;
    border-radius: 0;
}

@media (max-width: 768px) {

    .contact-section .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-section .contact-title {
        font-size: 28px;
    }

    .contact-section .contact-text {
        text-align: left;
    }

    .contact-section .contact-box {
        align-items: flex-start;
    }

    .contact-section .contact-row {
        justify-content: flex-start;
    }

    .contact-section .contact-subtitle {
        text-align: left;
        color: #890000;
    }

    .contact-section .contact-image img {
        width: 100%;
        height: auto;
    }
}

/* --- HOMEPAGE-ONLY MOBILE HEADER PRECISION --- */
@media (max-width: 768px) {
    /* 1. Force Header to be Transparent and Floating on Load */
    body.home .site-header, 
    body.home header.elementor-header {
        background-color: transparent !important;
        background: transparent !important;
        position: absolute !important;
        top: 27px !important; /* 52px - 25px */
        left: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        z-index: 9999 !important;
    }
    /* 2. Style the Logo Wrapper */
    body.home .site-header .site-logo-img,
    body.home .site-header .custom-logo-link {
        background: transparent !important;
        padding-left: 49px !important; /* Align with the 49px site line */
    }
    /* 3. The Square Hamburger Button (#D9D9D9) */
    body.home .elementor-menu-toggle,
    body.home .menu-toggle {
        background-color: #D9D9D9 !important;
        width: 38.05px !important;
        height: 38.05px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 0 !important; /* Square as per design */
        margin-right: 20px !important;
        padding: 0 !important;
    }
    /* Ensure the actual hamburger icon (the lines) is black */
    body.home .elementor-menu-toggle i,
    body.home .menu-toggle span {
        color: #000000 !important;
        background-color: #000000 !important;
    }
    /* 4. Sticky State: Switch to Dark Blue on Scroll */
    /* Note: Replace '.elementor-sticky--effects' if your theme uses a different class for scrolled headers */
    body.home .elementor-sticky--effects,
    body.home .is-sticky .site-header {
        background-color: #e9e8e8 !important;
        position: fixed !important;
        top: 0 !important;
        transition: all 0.3s ease-in-out !important;
    }

    body.home.is-sticky .site-header,
    body.home.is-sticky header.elementor-header {
        background-color: #e9e8e8 !important;
        position: fixed !important;
        top: 0 !important;
    }

    body.home.is-sticky .site-header__inner {
        background-color: #e9e8e8 !important;
    }

    body.home .page {
        padding-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .site-nav__panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 50vh;
        background: #e9e8e8;
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.2s ease;
        z-index: 9998;
    }

    .site-nav__panel.is-open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav__panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 20px 12px 49px;
    }

    .site-nav__panel-title {
        display: inline-flex;
        align-items: center;
    }

    .site-nav__close {
        width: 38.05px;
        height: 38.05px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #d9d9d9;
        border: none;
        border-radius: 0;
        font-size: 22px;
        line-height: 1;
        color: #000000;
        cursor: pointer;
    }

    .site-nav__list {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        background: transparent;
        box-shadow: none;
        width: auto;
        height: calc(50vh - 72px);
        padding: 8px 20px 24px 49px;
        margin: 0;
        border-radius: 0;
        gap: 16px;
    }

    .site-nav__list a {
        color: #1a1a1a;
        font-weight: 600;
    }
}

@media (min-width: 769px) {
    .site-nav__panel-header {
        display: none;
    }
}

/* =========================================
   POST CATEGORY BACK BUTTON
   ========================================= */
body.single .product-page-wrapper {
    padding-top: calc(60px + 36px);
}

.post-category-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #890000;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    height: 36px;
    padding: 0 16px 0 12px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    gap: 8px;
    margin: 0;
    width: auto;
    align-self: flex-start;
}

.post-category-back:hover {
    color: #ffffff;
}

.post-category-back__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.post-category-back__icon svg {
    width: 18px;
    height: 18px;
}

.post-category-back__text {
    white-space: nowrap;
}

.post-category-back {
    justify-content: flex-start;
}


@media (max-width: 768px) {
    body.single .product-page-wrapper {
        padding-top: calc(60px + 36px);
    }

    .post-category-back {
        width: auto;
        height: 26px;
        padding: 0 8px;
        font-size: 10px;
        gap: 6px;
        margin-bottom: 10px;
    }


    .post-category-back__icon,
    .post-category-back__icon svg {
        width: 14px;
        height: 14px;
    }
}

/* =========================================
   VISUAL PORTFOLIO BUTTON STYLES
/* --- MINIMAL STYLE FILTER BUTTONS --- */
.vp-filter.vp-filter__style-minimal .vp-filter__item a {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 58px !important;
    padding: 0 30px !important;
    gap: 16px !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em !important;
    line-height: 100% !important;
    border: 3px solid #890000 !important;
    background-color: transparent !important;
    color: #000000 !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
}

.vp-filter.vp-filter__style-minimal .vp-filter__item.vp-filter__item-active a,
.vp-filter.vp-filter__style-minimal .vp-filter__item a:hover {
    background-color: #890000 !important;
    color: #ffffff !important;
}

.vp-filter.vp-filter__style-minimal {
    gap: 49px !important;
    justify-content: center !important;
}

@media (max-width: 768px) {
    .vp-filter.vp-filter__style-minimal .vp-filter__item a,
    .vp-filter.vp-filter__style-minimal .vp-filter__item.vp-filter__item-active a {
        height: 25px !important;
        padding: 0 9px !important;
        gap: 3px !important;
        font-size: 5.5px !important;
        line-height: 1 !important;
        border-width: 1px !important;
        border-color: #890000 !important;
        background-color: transparent !important;
        color: #000 !important;
    }
    .vp-filter.vp-filter__style-minimal .vp-filter__item.vp-filter__item-active a,
    .vp-filter.vp-filter__style-minimal .vp-filter__item a:hover {
        background-color: #890000 !important;
        color: #fff !important;
    }
    .vp-filter.vp-filter__style-minimal {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }
}
   ========================================= */
/* --- DESKTOP STYLES (Default) --- */
/* Filter Buttons (e.g., "All", "Fenster") */
.vp-filter.vp-filter__style-default .vp-filter__item a,
.vp-filter__item a {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 58px !important;
    padding: 0 30px !important;
    gap: 16px !important;

    /* Typography */
    font-family: 'Manrope', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em !important;
    line-height: 100% !important;

    /* Styling: Inactive State */
    border: 3px solid #890000 !important;
    background-color: transparent !important;
    color: #000000 !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
}

/* Active Filter Button */
.vp-filter.vp-filter__style-default .vp-filter__item.vp-filter__item-active a,
.vp-filter.vp-filter__style-default .vp-filter__item a:hover,
.vp-filter__item.vp-filter__item-active a,
.vp-filter__item a:hover {
    background-color: #890000 !important;
    color: #ffffff !important;
}

/* Navigation/Pagination Buttons (Next/Prev/Load More) */
.vp-pagination__item a,
.vp-pagination__load-more {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 58px !important;
    padding: 0 30px !important;
    background-color: #890000 !important;
    color: #ffffff !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 18px !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Filter Container Gap */
.vp-filter {
    gap: 49px !important;
    justify-content: center !important;
}

/* --- MOBILE STYLES (Max Width 768px) --- */
@media (max-width: 768px) {
    /* Filter Buttons */
    .vp-filter.vp-filter__style-default .vp-filter__item a,
    .vp-filter.vp-filter__style-default .vp-filter__item.vp-filter__item-active a {
        height: 25px !important;
        padding: 0 9px !important;
        gap: 3px !important;
        font-size: 5.5px !important;
        line-height: 1 !important;
        border-width: 1px !important;
        border-color: #890000 !important;
        background-color: transparent !important;
        color: #000 !important;
    }

    /* Active Filter Button (Mobile) */
    .vp-filter.vp-filter__style-default .vp-filter__item.vp-filter__item-active a,
    .vp-filter.vp-filter__style-default .vp-filter__item a:hover {
        background-color: #890000 !important;
        color: #fff !important;
    }

    /* Navigation Buttons */
    .vp-pagination__item a,
    .vp-pagination__load-more {
        height: 25.1px !important;
        padding: 0 12.8px !important;
        font-size: 8px !important;
    }

    /* Filter Container Gap */
    .vp-filter.vp-filter__style-default {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }
}