/*
 Theme Name:     Twenty Twenty-Five Child (MWD)
 Theme URI:      https://mein-webentwickler.de
 Description:    Starter-Child-Theme für Kundenprojekte von mein-webentwickler.de auf Basis von Twenty Twenty-Five.
 Author:         Sebastian Bauer
 Author URI:     https://mein-webentwickler.de
 Template:       twentytwentyfive
 Version:        1.3.0
 License:        GNU General Public License v2 or later
 License URI:    http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =================================================================
   INHALTSVERZEICHNIS
   1. Basis & Resets
   2. Fluid Typography & Globale Texte
   3. Header & Navigation (inkl. Mobile Menü)
   4. Footer
   5. Buttons & Formulare (inkl. CF7 Custom Checkboxen)
   6. Custom Blocks (Bands, Slider, Accordion, Slanted Line)
   7. Blog, News Grid & Galerien
   8. Produkt-Katalog & Single Product Page
   9. Produkttabellen & Sticky Nav
   10. Sidebar (Kontakt-Widget & Kategorien)
   11. Sticky Contact CTA (Mobile)
   ================================================================= */


.mwd-product-manufacturer,
.mwd-product-stock-delivery {
    display:none;
}






/* =================================================================
   1. BASIS & RESETS
   ================================================================= */
html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 100px;
}

html, body {
    max-width: 100%;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.wp-site-blocks {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

body {
    color: var(--wp--preset--color--accent-4);
}

main .entry-content > div {
    margin: 0 15% 0 15% !important;
}

main .entry-content > div.wp-block-mwd-core-slider,
main .entry-content > div.fullWidthGreyBand {
    margin: 0 !important;
}

.page-template-page-no-title main .entry-content > div:nth-child(2n) {
    border-bottom: none;
}

.Apple-converted-space {
    display: none !important;
}


/* =================================================================
   2. FLUID TYPOGRAPHY & GLOBALE TEXTE
   ================================================================= */
body p, body li, body td, body th {
    font-size: clamp(1rem, 1vw + 0.75rem, 1.125rem) !important;
    line-height: 1.6 !important;
}

body h1, body .wp-block-heading h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    color: var(--wp--preset--color--base) !important;
    font-weight: bold;
}

body h2, body .wp-block-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.75rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
    color: var(--wp--preset--color--base) !important;
}
main h2 { font-weight: bold; }

body h3, body .wp-block-heading h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 0.8em !important;
}
body.page-template main h3 { font-weight: bold; }
body h3.mwd-grid-title { font-size: 1.3em !important; }

body h4, body .wp-block-heading h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
    line-height: 1.4 !important;
    margin-bottom: 0.8em !important;
}

body h5, body .wp-block-heading h5 {
    font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
    line-height: 1.4 !important;
}

body h6, body .wp-block-heading h6 {
    font-size: clamp(1rem, 1.5vw, 1.1rem) !important;
    line-height: 1.5 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mwd-ref-title { line-height: 1.2em; }
body.page-template main h3.mwd-ref-title { font-size: 1.2em; }
.mwd-ref-content { text-align: center; }

/* Gutenberg Font-Klassen */
:root body .has-small-font-size { font-size: 0.875rem !important; }
:root body .has-medium-font-size { font-size: clamp(1.1rem, 1.5vw, 1.25rem) !important; }
:root body .has-large-font-size { font-size: clamp(1.25rem, 2vw, 1.5rem) !important; }
:root body .has-x-large-font-size { font-size: clamp(1.5rem, 3vw, 2.25rem) !important; }
:root body .has-xx-large-font-size { font-size: clamp(2rem, 5vw, 3.5rem) !important; }

/* Ausnahmen für UI (statische 16px) */
body .wp-block-button__link,
body header .wp-block-navigation-item__content,
body header .wp-block-navigation-item__label,
body p, body footer a, body footer span, 
body footer h3, body footer .has-medium-font-size,
body .mwd-qc-text {
    font-size: 1rem !important;
}


.entry-content p,
.entry-content p span,
.entry-content p font,
.entry-content li,
.entry-content li span,
.entry-content li font,
.entry-content td,
.entry-content td span,
.entry-content td font {
    font-size: clamp(1rem, 1vw + 0.75rem, 1.125rem) !important;
    line-height: 1.6 !important;
}

/* Wichtig: Buttons, Icons und das Inhaltsverzeichnis davor schützen! */
.entry-content .wp-block-button__link,
.entry-content .wp-block-button__link span,
.entry-content i,
.entry-content .fas,
.entry-content .fab,
.entry-content .far,
.entry-content .mwd-sticky-link span {
    font-size: inherit !important;
}

/* =================================================================
   3. HEADER & NAVIGATION
   ================================================================= */
header.wp-block-template-part {
    position: sticky !important;
    top: 0;
    z-index: 99999;
    background-color: #ffffff; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); 
}

.admin-bar header.wp-block-template-part { top: 32px !important; }

/* Navigation Hover-Effekte (Desktop) */
.wp-block-navigation .wp-block-navigation-item__content {
    padding: 5px;
    display: flex !important;
    align-items: center !important;
}

.wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item {
    display: flex !important;
    align-items: center !important;
}

.wp-block-navigation .wp-block-navigation-submenu__toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

.wp-block-navigation .wp-block-navigation__submenu-icon svg {
    margin-top: 0 !important;
    vertical-align: middle !important;
}

.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item.has-child:hover > .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item.has-child:focus-within > .wp-block-navigation-item__content {
    background-color: var(--wp--preset--color--accent-4) !important;
    color: #ffffff !important;
    border-radius: 4px; 
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.wp-block-navigation-item:hover a,
.wp-block-navigation-item:hover .wp-block-navigation__submenu-icon { color: var(--wp--preset--color--white) !important; }
.wp-block-navigation-item:hover .wp-block-navigation-item a { color: var(--wp--preset--color--base) !important; }
.wp-block-navigation-item:hover .wp-block-navigation-item:hover a { color: var(--wp--preset--color--white) !important; }

/* Desktop Untermenü */
.wp-block-navigation__submenu-container {
    background-color: #575756 !important; 
    border-radius: 4px; 
    padding: 10px 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    color: #ffffff !important; 
    padding: 10px 20px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
    color: #f9b000 !important;
    background-color: rgba(255, 255, 255, 0.05) !important; 
}
.wp-block-navigation-submenu__toggle:hover svg { fill: #f9b000 !important; }

/* Mobile Overlay Background */
.wp-block-navigation__responsive-container.is-menu-open { background-color: #ffffff !important; }

/* Menü Breakpoints & Strukturierung */
@media (max-width: 1300px) {
    .wp-block-navigation .wp-block-navigation-item__content {
        padding: 5px 8px !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 1250px) {
    .wp-block-navigation .wp-block-navigation-item { width: auto; }
}

@media (max-width: 1100px) {
    .wp-block-site-logo img { max-width: 220px !important; }
    .wp-block-navigation .wp-block-navigation-item__content {
        padding: 5px 6px !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 930px) {
    header { width: 100%; border: none; }
}

@media (min-width: 801px) {
    .wp-block-navigation .wp-block-navigation__container {
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        row-gap: 10px;
    }
}

/* Erzwungener Hamburger-Menü Breakpoint */
@media (max-width: 800px) {
    .wp-block-navigation__responsive-container-open { display: flex !important; }
    .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
}

/* Mobiles Menü Override (Linksbündig & Eingerückt) */
html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}

html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    gap: 0 !important; 
}

html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    padding-left: 25px !important;
    padding-top: 8px !important; 
    padding-bottom: 8px !important;
}

html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding-left: 15px !important; 
    margin-left: 25px !important;
    border-left: 2px solid var(--wp--preset--color--base) !important;
    width: 100% !important;
}

html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
    margin-left: auto !important;
    width: auto !important;
    padding-right: 25px !important;
}


/* =================================================================
   4. FOOTER
   ================================================================= */
footer {
    border-left: none;
    border-right: none;
    background-color: #575756 !important;
}

footer.wp-block-group {
    background-color: #575756 !important; 
    color: #ffffff !important;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    padding-top: 6rem !important; 
    padding-bottom: 4rem !important;
    margin-top: -2rem !important; 
}

footer > .wp-block-columns {
    max-width: 1300px;
    margin: 0 auto;
}

footer.wp-block-group p,
footer.wp-block-group h3,
footer.wp-block-group strong,
footer.wp-block-group span {
    color: #ffffff !important;
}

footer.wp-block-group a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer.wp-block-group a:hover { color: #f9b000 !important; }

footer.wp-block-group p {
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
    line-height: 1.4;
}

body footer p, body footer a, body footer span, 
body footer h3, body footer .has-medium-font-size {
    margin-bottom: 0.5rem !important;
}

footer.wp-block-group .wp-block-navigation__container {
    gap: 5px !important;
    margin-top: 10px !important;
}

footer.wp-block-group .wp-block-social-links {
    margin-top: 20px !important;
    gap: 15px !important;
}

.wp-block-social-links .wp-social-link svg {
    height: 3em;
    width: 3em;
}

footer.wp-block-group .wp-social-link-anchor svg {
    transition: transform 0.3s ease, fill 0.3s ease;
}

footer.wp-block-group .wp-social-link-anchor:hover svg {
    fill: #f9b000 !important;
    transform: scale(1.1);
}

footer .wp-block-navigation-item__content { text-align: right; }

.footerLasRow { margin-top: 0 !important; }
body footer .footerLasRow { margin-bottom: 0 !important; }

.footerLasRow a,
p.footerLasRow.has-base-color {
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.5s !important;
}

.footerLasRow a:hover { color: var(--wp--preset--color--base) !important; }

/* Footer Breakpoints */
@media (max-width: 1260px) {
    footer.wp-block-group { border-left-width: 20px; border-right-width: 20px; }
    footer .footer-logo { width: 100%; }
    footer .footer-column2, footer .footer-column3, footer .footer-column4 { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 1000px) {
    footer .wp-block-group.alignfull.is-content-justification-center { display: flex !important; flex-direction: column !important; }
    footer .wp-block-group.alignfull.is-content-justification-center > .wp-block-group:first-child { width: 100% !important; text-align: center; margin-bottom: 40px; }
    footer .wp-block-group.alignfull.is-content-justification-center > .wp-block-group:first-child .wp-block-button__link { margin: 0 auto; }
    footer .wp-block-group.alignfull.is-content-justification-center > .wp-block-group:nth-child(2) {
        width: 50% !important; display: flex !important; flex-direction: row !important;
        justify-content: space-between !important; flex-wrap: wrap !important;
    }
    footer .wp-block-group.alignfull.is-content-justification-center > .wp-block-group:nth-child(2) > .wp-block-group,
    footer .wp-block-navigation__container,
    .wp-site-blocks footer .wp-block-navigation .wp-block-navigation__container li.wp-block-navigation-item {
        width: 100% !important;
    }
    footer .wp-block-heading,
    .wp-site-blocks footer .wp-block-navigation .wp-block-navigation__container li.wp-block-navigation-item .wp-block-navigation-item__content { text-align: center; }
}

@media (max-width: 850px) {
    footer .footer-column2, footer .footer-column3, footer .footer-column4, footer nav ul { width: 100%; }
    footer .wp-block-navigation-item__content, footer p.has-text-align-right { text-align: center; }
}

@media (max-width: 700px) {
    footer .wp-block-group.alignfull.is-content-justification-center > .wp-block-group:nth-child(2) { flex-direction: column !important; }
    footer .wp-block-group.alignfull.is-content-justification-center > .wp-block-group:nth-child(2) > .wp-block-group { width: 100% !important; margin-bottom: 30px; }
    footer .wp-block-group.alignfull.is-content-justification-space-between { flex-direction: column !important; text-align: center; gap: 10px; }
}


/* =================================================================
   5. BUTTONS & FORMULARE (CF7)
   ================================================================= */
.ff-btn-submit, .mweFullWidthButton, .wp-block-button, .wp-block-button a, 
.mwd-download-item .wp-block-button__link, .wc-block-components-checkout-place-order-button, 
:root :where(.wp-element-button, .wp-block-button__link), .wp-block-latest-posts__list .wp-block-latest-posts__read-more {
    background-color: var(--wp--preset--color--contrast) !important;
}

.wp-block-button__link { max-width: var(--wp--style--global--content-size); }

@media (max-width: 700px) {
    .entry-content .wp-block-button a { display: block; text-align: center; }
}

input[type="submit"] {
    background-color: var(--wp--preset--color--contrast) !important;
    border-radius: 4px;
    border-width: 0;
    color: var(--wp--preset--color--mwd-surface);
    font-family: inherit;
    padding: var(--wp--preset--spacing--mwd-space-s) var(--wp--preset--spacing--mwd-space-m);
    width: 100%;
    font-size: 1em;
    transition: all 0.5s !important;
}

input[type="submit"]:hover {
    background-color: var(--wp--preset--color--accent-1) !important;
    cursor: pointer;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="url"], input[type="password"], input[type="search"], input[type="date"], select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--wp--preset--color--mwd-light-gray, #EAEAEA);
    border-radius: 4px;
    background-color: var(--wp--preset--color--mwd-surface, #FFFFFF);
    color: var(--wp--preset--color--mwd-text, #333333);
    font-size: var(--wp--preset--font-size--mwd-s, 1rem);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--mwd-secondary, #4A7C59);
    box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.2);
}

textarea { min-height: 150px; resize: vertical; }

/* Custom Form Styles */
.mwd-contact-form .mwd-form-row { margin-bottom: var(--wp--preset--spacing--mwd-space-m, 1.5rem); }
.mwd-contact-form .mwd-form-row label {
    display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--wp--preset--color--mwd-primary, #2C3E50);
}

.mwd-request-form fieldset { border: 1px solid #eee; padding: 20px; margin-bottom: 30px; border-radius: 5px; }
.mwd-request-form legend { font-weight: bold; padding: 0 10px; color: var(--wp--preset--color--mwd-accent-2); font-size: 1.1em; }
.mwd-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 15px; }
.mwd-col-half { flex: 1 1 calc(50% - 10px); min-width: 250px; }
.mwd-full { margin-bottom: 15px; }
.mwd-request-form label { display: block; font-size: 0.9em; margin-bottom: 5px; font-weight: 600; }
.mwd-request-form input:not([type="checkbox"]), .mwd-request-form select, .mwd-request-form textarea {
    width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 3px;
}
.mwd-acceptance { margin: 20px 0; font-size: 0.9em; }
.mwd-submit input { background-color: #f9b000; color: #fff; border: none; padding: 15px 30px; font-weight: bold; cursor: pointer; border-radius: 4px; }
.mwd-submit input:hover { background-color: #e3000b; }
.mwd-file-desc { display: block; font-size: 0.8em; color: #666; margin-bottom: 5px; font-weight: normal; }

/* CF7 Custom Checkboxen (Zentriert & Vergrößert) */
.mwd-request-form input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px !important;
    height: 22px !important;
    border: 2px solid #ccc !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    margin-right: 12px !important;
    margin-top: 0 !important; 
    margin-bottom: 0 !important;
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
}

.mwd-request-form input[type="checkbox"]:checked {
    background-color: var(--wp--preset--color--base) !important;
    border-color: var(--wp--preset--color--base) !important;
}

.mwd-request-form input[type="checkbox"]:checked::before {
    content: "";
    width: 12px;
    height: 12px;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    background-color: #fff;
}

.mwd-request-form .wpcf7-list-item label {
    display: flex !important;
    align-items: center !important; 
    cursor: pointer;
    margin-bottom: 8px;
    line-height: 1 !important;
}

.mwd-request-form .wpcf7-list-item-label {
    padding-top: 0 !important; 
    line-height: 1.4 !important; 
}

.mwd-request-form .wpcf7-checkbox .wpcf7-list-item {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 25px;
    margin-bottom: 10px;
}


/* =================================================================
   6. CUSTOM BLOCKS (Bands, Slider, Accordion, Slanted Line)
   ================================================================= */
.wp-block-columns p > a {
    text-decoration: none; border-bottom: 1px solid transparent; transition: all 0.5s;
}
.wp-block-columns p > a:hover { border-bottom: 1px solid var(--wp--preset--color--contrast); }
.wp-block-columns p > a:after {
    content: ''; display: inline-block; width: 10px; height: 10px;
    border-top: 2px solid var(--wp--preset--color--accent-4);
    border-right: 2px solid var(--wp--preset--color--accent-4);
    transform: rotate(45deg); 
}
.wp-block-columns p > a:hover:after {
    border-top: 2px solid var(--wp--preset--color--contrast);
    border-right: 2px solid var(--wp--preset--color--contrast);
}

/* Farbige Akzente & Button-Overrides */
.mwdColoredAccent { position: relative; z-index: 1; }
.mwdColoredAccent::before {
    content: ''; position: absolute; left: calc(50% - 50vw); width: 100vw; top: 20%; height: 140px; 
    background-color: #9B6E4A; opacity: 0.15; z-index: -1; 
}

.leistungButtonRed .wp-block-button { background-color: var(--wp--preset--color--accent-1) !important; }
.leistungButtonBlue .wp-block-button { background-color: var(--wp--preset--color--accent-2) !important; }
.leistungButtonGreen .wp-block-button { background-color: var(--wp--preset--color--accent-3) !important; }
.leistungButtonYellow .wp-block-button { background-color: var(--wp--preset--color--base) !important; }

.leistungButtonRed .wp-block-button a, .leistungButtonBlue .wp-block-button a,
.leistungButtonGreen .wp-block-button a, .leistungButtonYellow .wp-block-button a {
    background-color: transparent !important; padding-top: 0 !important; padding-bottom: 0 !important; min-height: 3.25em !important;
}

.leistungButtonRed .wp-block-button:hover, .leistungButtonBlue .wp-block-button:hover,
.leistungButtonGreen .wp-block-button:hover, .leistungButtonYellow .wp-block-button:hover {
    background-color: var(--wp--preset--color--accent-5) !important;
}

.wp-block-column a.gb-text {
    width: 100%; text-align: center; align-self: center; justify-content: center;
    box-sizing: border-box; transition: all 0.5s;
    border: 1px solid rgb(107, 119, 141);
    background-color: transparent;
    color: rgb(107, 119, 141);
}
.wp-block-column a.gb-text:hover { 
    background-color: var(--wp--preset--color--base) !important; 
    color: #fff;
}

/* Full Width Bands */
.fullWidthGreyBand, .fullWidthYellowBand {
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    padding-top: 10rem !important; padding-bottom: 10rem !important; color: #fff;
}

.fullWidthGreyBand.has-accent-4-background-color { background-color: var(--wp--preset--color--contrast) !important; }
.fullWidthGreyBand h2 { color: var(--wp--preset--color--base); }
.fullWidthGreyBand h3, .fullWidthGreyBand h4, .fullWidthGreyBand p { color: #fff; }

.fullWidthGreyBand p > a { color: #fff; text-decoration: none; transition: all 0.5s; border-bottom: 1px solid transparent; }
.fullWidthGreyBand p > a:hover { border-bottom: 1px solid #fff; }
.fullWidthGreyBand p > a:after {
    content: ''; display: inline-block; width: 10px; height: 10px;
    border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); 
}
.fullWidthGreyBand p > a:hover:after { border-top: 2px solid #fff; border-right: 2px solid #fff; }

.fullWidthGreyBand .wp-block-mwd-core-service-gallery { max-width: 1300px !important; }
.fullWidthGreyBand .wp-block-mwd-core-service-item { border: none; box-shadow: none; background-color: transparent; }
.fullWidthGreyBand .wp-block-mwd-core-service-item .wp-block-button { display: none; }

.fullWidthYellowBand.has-base-color { background-color: var(--wp--preset--color--base) !important; margin: 0 !important; }
.fullWidthYellowBand h1, .fullWidthYellowBand h2, .fullWidthYellowBand h3,
.fullWidthYellowBand h4, .fullWidthYellowBand h5, .fullWidthYellowBand h6,
.fullWidthYellowBand p, .fullWidthYellowBand a { color: #fff !important; }

.fullWidthYellowBand > .wp-block-columns { max-width: 1300px; }
.fullWidthYellowBand .wp-block-column a.gb-text { 
    border: 1px solid #fff; 
    background-color: var(--wp--preset--color--base) !important; 
}
.fullWidthYellowBand .wp-block-column a.gb-text:hover { background-color: rgba(0,0,0,0.8) !important; }

/* Service Items */
.wp-block-mwd-core-service-item { min-width: 25%; background: #fff; }
.wp-block-mwd-core-service-gallery .wp-block-mwd-core-service-item .wp-block-button a {
    border-left: 10px; border-right: 10px; min-height: 3em; line-height: 3em;
}
.wp-block-mwd-core-service-gallery .wp-block-mwd-core-service-item .service-text {
    margin-block-start: 0px; margin-block-end: 5px; border-bottom: 20px solid transparent !important; display: inline-block !important;
}

.leistungTechnischeBuerstenHover h4::before, .leistungMedizinischeBuerstenHover h4:before,
.leistungHaushaltsBuerstenHover h4:before, .leistungBuerstenzubehoerHover h4:before {
    content: ''; display: block; width: 100%; border-right: 30px solid transparent; border-left: 30px solid transparent;
    border-bottom: 2px solid #ccc; padding-bottom: 20px; margin-bottom: 30px; box-sizing: border-box;
}

/* Slanted Line */
main .entry-content > div.mwd-divider-wrap, .mwd-divider-wrap {
    width: 100%; height: 120px; position: relative; overflow: hidden; margin: 0 !important;
}
.mwd-slanted-line {
    position: absolute; width: 150%; left: -25%; bottom: 10px; height: 2px;
    background-color: #d1d1d1; transform: rotate(-3deg); transform-origin: left bottom;
    filter: drop-shadow(0px -3px 2px rgba(0,0,0,0.1)) drop-shadow(0px -10px 10px rgba(0,0,0,0.05));
    box-sizing: border-box;
}

/* Slider */
.wp-block-mwd-core-slide .slide-content-wrapper { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.noslidetext .slide-content, .noTextOverlayInSlider .slide-content { display: none !important; }
.fixedSliderHeightSoloPic .wp-block-mwd-core-slide { height: 350px; }
@media (max-width: 520px) { .wp-block-mwd-core-slide .slide-text { display: none !important; } }

/* Accordion */
.mwd-faq-accordion h3 { font-size: 1.1em !important; margin-bottom: 0px !important; }

@media (min-width: 992px) {
    #qurema_leistungen .wp-block-accordion { display: grid; grid-template-columns: 350px 1fr; column-gap: 50px; row-gap: 0; align-items: start; }
    #qurema_leistungen .wp-block-accordion-item { display: contents; }
    #qurema_leistungen .wp-block-accordion-heading { grid-column: 1; margin-bottom: 15px !important; }
    #qurema_leistungen .wp-block-accordion-heading__toggle { width: 100%; text-align: left; background: #f4f4f4; border: none; padding: 20px; transition: all 0.3s ease; border-left: 4px solid transparent; cursor: pointer; }
    #qurema_leistungen .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle { background: #9B6E4A; color: #fff; border-left: 4px solid #292929; }
    #qurema_leistungen .wp-block-accordion-panel { grid-column: 2; grid-row: 1 / span 10; display: none; padding: 0 !important; border: none !important; }
    #qurema_leistungen .wp-block-accordion-item.is-open .wp-block-accordion-panel { display: block; animation: mwdFadeIn 0.5s ease; }
}
@keyframes mwdFadeIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 991px) { 
    #qurema_leistungen .wp-block-accordion-heading__toggle { width: 100%; justify-content: space-between; } 
    #qurema_leistungen .wp-block-accordion-panel[inert], #qurema_leistungen .wp-block-accordion-panel[aria-hidden="true"],
    #qurema_leistungen .wp-block-accordion-panel {
        display: block !important; max-height: 0; opacity: 0; overflow: hidden; 
        padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important;
        transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out;
    }
    #qurema_leistungen .wp-block-accordion-item.is-open .wp-block-accordion-panel {
        max-height: 1500px; opacity: 1; padding-top: 15px !important; padding-bottom: 15px !important;
    }
}


/* =================================================================
   7. BLOG, NEWS GRID & GALERIEN
   ================================================================= */
.wp-block-post-featured-image { min-height: 600px; object-fit: cover; }

/* News Grid (Modern Card Layout) */
.wp-block-post-template.columns-3 { gap: 30px !important; }
.wp-block-post { display: flex; flex-direction: column; height: 100%; }

.wp-block-post > .wp-block-group {
    display: flex; flex-direction: column; flex-grow: 1; background-color: #ffffff;
    border: 1px solid #eeeeee; border-radius: 6px; overflow: hidden; padding: 0 !important; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wp-block-post > .wp-block-group:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); }

.wp-block-post-featured-image { width: 100%; aspect-ratio: 16 / 9; margin: 0 !important; overflow: hidden; min-height: 200px; }
.wp-block-post-featured-image img {
    width: 100%; height: 100%; object-fit: cover !important; object-position: center !important; display: block; transition: transform 0.5s ease; 
}
.wp-block-post > .wp-block-group:hover .wp-block-post-featured-image img { transform: scale(1.05); }

.wp-block-post > .wp-block-group > h2, .wp-block-post > .wp-block-group > .wp-block-post-date { padding-left: 25px; padding-right: 25px; margin-bottom: 10px; }
.wp-block-post > .wp-block-group > h2 { margin-top: 25px; font-size: 1.25rem !important; line-height: 1.3; }
.wp-block-post > .wp-block-group > h2 a { color: #575756 !important; text-decoration: none; transition: color 0.2s ease; }
.wp-block-post > .wp-block-group > h2 a:hover { color: #f9b000 !important; }

.wp-block-post-date { font-size: 0.85rem; color: #888888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.wp-block-post-excerpt { padding-left: 25px; padding-right: 25px; padding-bottom: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.wp-block-post-excerpt__excerpt { color: #666666; font-size: 0.95rem; line-height: 1.5; margin-bottom: 20px; }
.wp-block-post-excerpt__more-text { margin-top: auto; width: 100%; margin-bottom: 0 !important; }
.wp-block-post-excerpt__more-link {
    display: block; width: 100%; text-align: center;
    background-color: var(--wp--preset--color--contrast) !important;
    color: #ffffff !important; padding: 15px 20px; font-weight: bold;
    text-decoration: none !important; text-transform: uppercase; font-size: 0.9rem;
    letter-spacing: 0.5px; border-radius: 4px; box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.wp-block-post-excerpt__more-link:hover {
    background-color: var(--wp--preset--color--base) !important;
    color: #ffffff !important;
}

/* Spezifische Blog-Regeln */
body.blog .wp-block-column > .has-link-color { padding-bottom: 0; }
body.blog .wp-block-column > .has-link-color .wp-block-post-excerpt__excerpt { margin-bottom: 0; }
body.blog .wp-block-column > .taxonomy-category { display: none; }
body.blog .wp-block-column > .wp-block-read-more { margin-bottom: 10px; }

.wp-block-query-is-layout-flow .wp-block-column-is-layout-flow h2 { font-size: 1.3em !important; }
.wp-block-query-is-layout-flow .wp-block-column-is-layout-flow .wp-block-post-excerpt { padding-left: 0; }
.wp-block-query-is-layout-flow .wp-block-column-is-layout-flow .wp-block-read-more {
    display: block; box-sizing: border-box; border: 1px solid #333; width: 98%;
    text-align: center; padding: 5px; transition: all 0.5s;
}
.wp-block-query-is-layout-flow .wp-block-columns-is-layout-flex { padding-block-end: 1.2rem; }
.wp-block-query-is-layout-flow .wp-block-column-is-layout-flow .wp-block-read-more:hover { background-color: #333; color: #fff; }

/* Animated Gallery (Crossfade/No-Crop) */
.wp-block-gallery.mwd-animated-gallery { display: flex !important; flex-wrap: wrap; gap: 15px; align-items: flex-start; }
.mwd-gallery-stage { width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden; border-radius: 4px; margin-bottom: 15px; background-color: transparent; }
.mwd-gallery-stage img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.6s ease-in-out; z-index: 1; }
.mwd-gallery-stage img.is-visible { opacity: 1; z-index: 2; }

.wp-block-gallery.mwd-animated-gallery .wp-block-image {
    flex: 1 1 calc(33.333% - 15px); max-width: calc(33.333% - 10px); margin: 0 !important; cursor: pointer;
    transition: filter 0.3s ease, opacity 0.3s ease; opacity: 0.6; filter: grayscale(100%);
}
.wp-block-gallery.mwd-animated-gallery .wp-block-image:hover, .wp-block-gallery.mwd-animated-gallery .wp-block-image.is-active { opacity: 1; filter: grayscale(0%); }
.wp-block-gallery.mwd-animated-gallery .wp-block-image.is-active { outline: 2px solid #f9b000; outline-offset: 2px; border-radius: 2px; }

@media (max-width: 767px) {
    .gb-element-94d37144 { grid-template-columns: 1fr 3fr !important; }
    .wp-block-gallery.mwd-animated-gallery .wp-block-image { flex: 1 1 calc(50% - 15px); max-width: calc(50% - 7.5px); }
}

/* Lightbox Galerie (Projekte) */
#qurema_projekte { background-color: #f4f4f4; border-top-left-radius: 40px; border-top-right-radius: 40px; }
.mwd-gallery { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 5px; padding: 40px 0; position: relative; z-index: 1; }
@media (min-width: 768px) { .mwd-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .mwd-gallery { grid-template-columns: repeat(4, 1fr); } }

.mwd-gallery::before { content: ''; position: absolute; top: 0; left: calc(50% - 50vw); width: 100vw; height: 100%; background-color: #f4f4f4; z-index: -1; }
.mwd-gallery button, .mwd-gallery .wp-lightbox-overlay { display: none !important; pointer-events: none !important; }
.mwd-gallery figure { margin: 0 !important; padding: 0 !important; border-radius: 4px; overflow: hidden; }
.mwd-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover !important; display: block; cursor: pointer; transition: transform 0.4s ease; }
.mwd-gallery img:hover { transform: scale(1.05); }

#mwd-simple-lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999999; display: none; align-items: center; justify-content: center; }
#mwd-sl-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(5px); cursor: pointer; }
#mwd-sl-img { position: relative; z-index: 2; max-width: 90vw; max-height: 85vh; border: 3px solid #fff; border-radius: 4px; box-shadow: 0 0 30px rgba(0,0,0,0.8); }
.mwd-sl-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 60px; color: #fff; cursor: pointer; padding: 20px; user-select: none; z-index: 3; transition: color 0.2s; }
#mwd-sl-prev { left: 20px; }
#mwd-sl-next { right: 20px; }
#mwd-sl-close { position: absolute; top: 20px; right: 30px; font-size: 60px; color: #fff; cursor: pointer; z-index: 3; line-height: 1; transition: color 0.2s; }
.mwd-sl-nav:hover, #mwd-sl-close:hover { color: #9B6E4A; }


/* =================================================================
   8. PRODUKT-KATALOG & SINGLE PRODUCT PAGE
   ================================================================= */
p.subheader { margin-top: 0; font-size: 1.3em !important; }

#schellenbergerQualitaet { background-color: rgba(51, 51, 51, 0.2); box-sizing: border-box; border: 15px solid transparent; }

.mwd-product-grid .mwd-grid-item h3 { font-size: 1.5em; margin-bottom: 10px; }

/* Produkt-Katalog Karten (Zeilenumbruch & Button-Positionierung) */
.mwd-grid-content .mwd-grid-title,
.mwd-grid-content .mwd-grid-title a {
    white-space: normal !important; 
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto; 
    line-height: 1.3;
}

.mwd-grid-content .mwd-grid-more {
    display: block !important; width: 100%; text-align: center;
    background-color: var(--wp--preset--color--contrast) !important; color: #ffffff !important;
    padding: 15px 20px; font-weight: bold; text-decoration: none !important;
    text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px;
    border-radius: 4px; box-sizing: border-box; margin-top: auto !important; 
    transition: background-color 0.3s ease, color 0.3s ease;
}
.mwd-grid-content .mwd-grid-more:hover {
    background-color: var(--wp--preset--color--base) !important; color: #ffffff !important;
}

/* Single Product Page Container */
.mwd_product-template-default .wp-block-mwd-core-slider { min-height: 40vh; }
.mwd_product-template-default .mwd-product-layout { margin-top: 25px !important; }

.fixedSliderHeightSoloPic .wp-block-mwd-core-slide {
    height: 400px !important; background-size: cover !important; 
    background-position: center center !important; background-repeat: no-repeat !important;
}

.mwd-single-product-container {
    background-color: #ffffff; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
    padding: 50px; margin-top: 0px; margin-bottom: 40px; position: relative; z-index: 10;
}

.mwd-single-product-container > .mwd-product-top { margin-bottom: 0px !important; }
.mwd-single-product-container > .mwd-product-bottom { margin-top: 0px !important; }

@media (max-width: 768px) {
    .mwd-single-product-container { padding: 25px; margin-top: -30px; }
}

/* Produkt Top-Bereich */
.mwd-product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

@media (max-width: 950px) {
    .mwd-product-top { grid-template-columns: 1fr; gap: 30px; }
}

.mwd-product-images {
    border: 1px solid #eeeeee; border-radius: 6px; padding: 30px; background-color: #fcfcfc; text-align: center;
}

.mwd-main-image img {
    max-width: 100%; height: auto; border-radius: 4px; object-fit: contain; mix-blend-mode: multiply; 
}

.mwd-product-title {
    font-size: clamp(2rem, 3vw, 2.5rem) !important; margin-top: 0 !important; margin-bottom: 20px !important;
    color: var(--wp--preset--color--contrast) !important; line-height: 1.2 !important;
}

.mwd-stock.in-stock {
    display: inline-block; background-color: #e9fbe5; color: #005f27; padding: 6px 15px; border-radius: 20px;
    font-size: 0.85rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 25px;
}

.mwd-product-short-desc { font-size: 1.05rem; color: #555555; line-height: 1.6; margin-bottom: 25px; }

.mwd-read-more-link {
    display: inline-block; color: var(--wp--preset--color--base) !important; font-weight: bold;
    text-decoration: none !important; margin-top: 10px; transition: color 0.3s ease;
}
.mwd-read-more-link:hover { color: var(--wp--preset--color--contrast) !important; }

/* Kategorien-Tabelle im Produkt-Kopf */
.mwd-specs-table { width: 100%; border-top: 1px solid #eeeeee; margin-top: 30px; padding-top: 20px; }
.mwd-specs-table th { text-align: left; width: 30%; color: #888888; font-weight: normal; padding: 8px 0; border: none !important; }
.mwd-specs-table td { font-weight: bold; color: #333333; border: none !important; }

/* Untere Bereiche (Beschreibung, Hersteller, Anfrage) */
.mwd-product-bottom, .mwd-product-manufacturer, .mwd-product-inquiry {
    margin-top: 60px; padding-top: 50px; border-top: 1px solid #eeeeee;
}

.mwd-product-bottom h2, .mwd-product-manufacturer h2, .mwd-product-inquiry h2 {
    font-size: 1.8rem !important; margin-bottom: 30px !important; color: var(--wp--preset--color--contrast) !important;
}

.mwd-manufacturer-details {
    background-color: #f9f9f9; padding: 30px; border-radius: 6px; border-left: 4px solid var(--wp--preset--color--base); 
    font-size: 1rem; line-height: 1.6;
}
.mwd-manufacturer-details strong { font-size: 1.1rem; color: #333333; }

.mwd-product-inquiry input:not([type="checkbox"]),
.mwd-product-inquiry select,
.mwd-form-submit .wpcf7-submit {
    min-height: 50px !important; box-sizing: border-box !important;
}

.mwd-form-submit .wpcf7-submit {
    padding: 12px 20px !important; font-size: 1rem !important; display: flex;
    align-items: center; justify-content: center; width: 100%; 
}

/* Große Monitore (Single Product) */
@media (max-width: 1400px) {
    body.single-mwd_product .wp-site-blocks .mwd-product-layout { margin: 0 30px 0 30px !important; }
    body.single-mwd_product .mwd-product-layout .is-layout-flex { gap: var(--wp--preset--spacing--30); }
    body.single-mwd_product .mwd-product-layout .mwd-product-images { padding: 0 !important; background-color: transparent; }
    body.single-mwd_product .mwd-product-layout .mwd-product-top { gap: 30px; grid-template-columns: 1fr 2fr; }
}


/* =================================================================
   9. PRODUKTTABELLEN & STICKY NAV
   ================================================================= */
.mwd-product-description .wp-block-table {
    overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 2.5rem;
    border: 1px solid #e5e5e5; border-radius: 4px;
}
.mwd-product-description .wp-block-table table { width: 100%; min-width: 800px; border-collapse: collapse; }
.mwd-hidden-row { display: none !important; }

/* Dynamisches Suchfeld */
.mwd-table-search-wrapper { margin-bottom: 15px; position: relative; width: 100%; }
.mwd-table-search-wrapper input {
    width: 100%; padding: 12px 15px 12px 45px; border: 2px solid #eee; border-radius: 4px;
    font-size: 16px; font-family: inherit; transition: all 0.3s ease; box-sizing: border-box; 
}
.mwd-table-search-wrapper input:focus { border-color: #f9b000; outline: none; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.mwd-table-search-wrapper::before {
    content: ""; position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; background-repeat: no-repeat; background-position: center; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888888' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' /%3E%3C/svg%3E");
}

/* Tabellen Buttons & Aktion-Zellen */
#betreff_product_name, #betreff_product_url { display: none !important; }
.mwd-add-btn {
    background: #f5f5f5; border: 1px solid #ddd; color: #555; border-radius: 4px; padding: 8px 12px;
    cursor: pointer; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; white-space: nowrap; width: 100%; max-width: 150px; margin-left: 10px;
}
.mwd-add-btn:hover:not(.active) { background: #e3000b; color: #fff; border-color: #e3000b; }
.mwd-add-btn.active { background: #005f27; color: #fff; border-color: #005f27; }

.mwd-product-description .wp-block-table td:first-child { display: flex; justify-content: space-between; align-items: center; }
body.single-mwd_product .mwd-product-layout .mwd-is-flat td:first-child { padding-right: 5px; }

/* Produkttabelle: Desktop-Ansicht (Volle Tabelle) */
@media screen and (min-width: 1351px) {
    .mwd-product-description .wp-block-table td:first-child { display: table-cell; }
    .mwd-add-btn { float: right; }
    .mwd-product-description .wp-block-table tbody.mwd-is-flat tr > td,
    .mwd-product-description .wp-block-table tbody.mwd-is-flat tr > th { transition: background-color 0.15s ease-in-out; }
    .mwd-product-description .wp-block-table tbody.mwd-is-flat tr:hover > td,
    .mwd-product-description .wp-block-table tbody.mwd-is-flat tr:hover > th { background-color: #f0f0f0 !important; }
}

/* Produkttabelle: Grid-Box-Layout ab 1350px */
@media screen and (max-width: 1350px) {
    .mwd-product-description .wp-block-table { border: none; overflow-x: visible; background: transparent; }
    .mwd-product-description .wp-block-table table { min-width: 100%; display: block; }
    .mwd-product-description .wp-block-table tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; width: 100%; }
    .mwd-product-description .wp-block-table tr:first-child { display: none; }
    
    .mwd-product-description .wp-block-table tr {
        display: block; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); padding: 20px; margin-bottom: 0; 
    }
    
    .mwd-product-description .wp-block-table td {
        display: flex; justify-content: flex-start; align-items: flex-start; padding: 6px 0; text-align: left; 
        font-size: 15px; color: #333; border: none; border-bottom: 1px solid #aaa;
    }
    
    .mwd-product-description .wp-block-table td:first-child {
        border: 1px solid #aaa; margin-bottom: 12px; padding-left: 12px; font-size: 16px; font-weight: 700;
    }
    
    .mwd-product-description .wp-block-table td::before {
        content: attr(data-label); font-weight: 600; text-align: left; color: #777; font-size: 14px; width: 130px; flex-shrink: 0; margin-right: 15px;
    }
}

/* Sticky Produkt-Navigation */
.mwd-sticky-nav {
    position: fixed; right: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 15px; z-index: 999999; 
}
.mwd-sticky-link {
    background: #ffffff; color: #333; border: 2px solid #e5e5e5; border-radius: 50%; width: 55px; height: 55px;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-decoration: none !important; transition: all 0.3s ease; font-size: 20px; position: relative;
}
.mwd-sticky-link:hover { background: #e3000b; color: #fff; border-color: #e3000b; transform: translateY(-3px); }
.mwd-sticky-text { display: none; }

.mwd-inquiry-badge {
    position: absolute; top: -5px; right: -5px; background-color: #e3000b; color: #fff; font-size: 12px; font-weight: bold;
    width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); border: 2px solid #fff;
}
.mwd-sticky-link.has-items { border-color: #e3000b; animation: mwd-pulse 2s infinite; }
.mwd-sticky-link.has-items i { color: #e3000b; }

@keyframes mwd-pulse {
    0% { box-shadow: 0 0 0 0 rgba(227, 0, 11, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(227, 0, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 0, 11, 0); }
}

@media screen and (min-width: 769px) {
    .mwd-sticky-link:hover i, .mwd-sticky-link.has-items:hover i { color: #ffffff !important; }
}

@media screen and (max-width: 768px) {
    .mwd-sticky-nav {
        top: auto; bottom: 0; right: 0; left: 0; transform: none; flex-direction: row; justify-content: space-around;
        background: #fff; padding: 10px 0; box-shadow: 0 -4px 15px rgba(0,0,0,0.1); border-top: 1px solid #e5e5e5; gap: 0;
    }
    .mwd-sticky-link { border-radius: 8px; width: 33%; height: auto; padding: 5px; border: none; box-shadow: none; flex-direction: column; gap: 6px; background: transparent; font-size: 22px; }
    .mwd-sticky-link:hover { background: transparent; transform: none; }
    .mwd-sticky-text { display: block; font-size: 11px; font-weight: 600; color: #555; }
    .mwd-sticky-link:hover .mwd-sticky-text { color: #e3000b; }
    .mwd-inquiry-badge { top: 0px; right: 25%; }
    #footer { padding-bottom: 80px; }
    .mwd-sticky-link:hover i, .mwd-sticky-link.has-items:hover i { color: #e3000b !important; }
}


/* =================================================================
   10. SIDEBAR (Kontakt-Widget & Kategorien)
   ================================================================= */

/* 1. Sidebar Nav (Produkte) */
.mwd-nav-products a { display: flex !important; align-items: flex-start !important; gap: 10px; line-height: 1.4; }
.mwd-nav-products a i { margin-top: 4px; flex-shrink: 0; }

/* 2. Kontakt-Block Sidebar (Kompakt & Zentriert) */
.schellenbergerContactSidebar {
    background-color: #fcfcfc; border: 1px solid #eeeeee; border-radius: 8px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.schellenbergerContactSidebar > p:first-child strong {
    display: block; font-size: 1.1rem; color: var(--wp--preset--color--contrast); border-bottom: 2px solid var(--wp--preset--color--base);
    padding-bottom: 12px; margin-bottom: 15px !important;
}

.schellenbergerContactSidebar .wp-block-columns {
    margin-top: 0 !important; margin-bottom: 8px !important; gap: 15px !important; align-items: center !important; flex-wrap: nowrap !important;
}

.schellenbergerContactSidebar .wp-block-column[style*="flex-basis:20px"] {
    flex-basis: 30px !important; display: flex; justify-content: center;
}

.schellenbergerContactSidebar .wp-block-mwd-core-icon { padding: 0 !important; }
.schellenbergerContactSidebar i { color: var(--wp--preset--color--base) !important; font-size: 1.2rem !important; width: 20px; text-align: center; }
.schellenbergerContactSidebar .wp-block-column:not([style*="flex-basis:20px"]) { margin-top: 0 !important; }
.schellenbergerContactSidebar p { margin: 0 !important; font-size: 0.95rem !important; line-height: 1.3 !important; color: var(--wp--preset--color--accent-4); }

.schellenbergerContactSidebar a { color: var(--wp--preset--color--contrast) !important; text-decoration: none !important; transition: color 0.2s ease; }
.schellenbergerContactSidebar a:hover { color: var(--wp--preset--color--base) !important; }

/* Ausrichtung bei zweizeiliger Adresse */
.schellenbergerContactSidebar .wp-block-columns:nth-child(2) { align-items: flex-start !important; }
.schellenbergerContactSidebar .wp-block-columns:nth-child(2) i { margin-top: 4px; }

/* Pfeile in Sidebar entfernen */
.mwd-sidebar-contact p > a:after,
.schellenbergerContactSidebar p > a:after,
ul.wp-block-categories-list li.cat-item a:after { display: none !important; }
.mwd-sidebar-contact p > a,
.schellenbergerContactSidebar p > a { border-bottom: none !important; padding-right: 0 !important; }

/* 3. Kategorien: Full-Width Buttons */
ul.wp-block-categories-list.wp-block-categories {
    display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 20px 0; list-style-type: none !important;
}

ul.wp-block-categories-list li.cat-item { margin: 0 !important; padding: 0 !important; width: 100% !important; }

ul.wp-block-categories-list li.cat-item a {
    display: block; width: 100%; background-color: #fcfcfc; color: var(--wp--preset--color--contrast) !important;
    padding: 12px 20px; border-radius: 6px; text-decoration: none !important; font-size: 0.95rem !important; font-weight: 600;
    border: 1px solid #eeeeee; box-sizing: border-box; transition: all 0.2s ease-in-out;
}

ul.wp-block-categories-list li.cat-item a:hover {
    background-color: var(--wp--preset--color--base) !important; border-color: var(--wp--preset--color--base) !important;
    color: #ffffff !important; padding-left: 25px; 
}

ul.wp-block-categories-list li.current-cat a {
    background-color: var(--wp--preset--color--contrast) !important; color: #ffffff !important;
    border-color: var(--wp--preset--color--contrast) !important;
}


/* =================================================================
   11. STICKY CONTACT CTA (Mobile / Floating Action Button)
   ================================================================= */
.mwd-sticky-cta {
    position: fixed; bottom: 30px; left: 30px; background-color: var(--wp--preset--color--contrast); color: #ffffff !important;
    padding: 15px 25px; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 9999; font-weight: bold;
    text-decoration: none !important; display: flex; align-items: center; gap: 10px; transition: transform 0.3s ease, background-color 0.3s ease;
}
.mwd-sticky-cta:hover { transform: translateY(-5px); background-color: var(--wp--preset--color--accent-1); }

@media (max-width: 768px) {
    .mwd-sticky-cta { bottom: 20px; left: 20px; padding: 12px 20px; font-size: 0.9em; }
}

.wp-block-mwd-core-slider {
    background-color:transparent;
}