/*
Theme Name: Motomation Design 2026
Author: Markus Freyt
Version: 1.2
*/

:root {
    --primary-blue: #0054a6;
    --dark-blue: #003366;
    --light-grey: #f8f9fa;
    --white: #ffffff;
    --text-gray: #555;
    --border-color: #ddd;
    --page-max-width: 1440px;
    --header-height: 80px;
}

/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #999;
    color: #333;
    line-height: 1.6;
}

/* Fix for WordPress Admin Bar */
body.admin-bar header {
    top: 32px;
}

.page-wrapper {
    max-width: var(--page-max-width);
    background-color: var(--white);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.2);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;

}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Typography & Headings --- */
h2 {
    margin-bottom: 20px;
}

h4 {
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-top: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-blue);
    padding-left: 12px;
    font-size: 1.1rem;
}

h5 {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
}

p,
a {
    font-size: 1.3rem;
}

/* --- Header & Navigation --- */
header {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5%;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

/* Navigation Menu */
#nav-menu {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
    margin-right: 30px;
}

.nav-list {
    background: var(--white);
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2000;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-list li a:hover {
    color: var(--primary-blue);
}

/* Dropdown / Sub-Menu */
.nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-top: 3px solid var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 2000;
    opacity: 0;
}

.nav-list li:hover>.sub-menu {
    opacity: 1;
    background: var(--white);
    visibility: visible;
}

.nav-list .sub-menu li a {
    padding: 10px 10px;
    display: block;
    color: var(--text-gray);
    text-transform: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-list .sub-menu li a:hover {
    background-color: var(--light-grey);
    color: var(--primary-blue);
    padding-left: 15px;
}

.nav-list .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.nav-list .sub-menu li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
}

/* Search & Contact Button */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f2f2f2;
    padding: 6px 15px;
    border-radius: 25px;
    border: 1px solid #ddd;
    transition: background 0.3s;
}

.search-bar:focus-within {
    background: #fff;
    border-color: var(--primary-blue);
}

.search-bar i {
    color: #888;
    margin-right: 8px;
    font-size: 0.9rem;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    width: 100px;
    transition: width 0.3s;
}

.search-bar input:focus {
    width: 160px;
}

.btn-contact {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
}

.btn-contact:hover {
    background: var(--dark-blue);
    transform: translateY(-1px);
}

/* --- Contact Form --- */
/* Container and Spacing */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

.wpcf7-form p {
    margin-bottom: 20px;
}

/* Label Styling */
.wpcf7-form label {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444;
    display: block;
    margin-bottom: 8px;
}

/* Input & Textarea Styling */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

/* Focus State */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #0056b3; /* Your brand blue */
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 86, 179, 0.1);
}

/* Submit Button */
.wpcf7-submit {
    width: auto;
    min-width: 150px;
    background-color: #0056b3;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: block;
}

.wpcf7-submit:hover {
    background-color: #004494;
}

.wpcf7-submit:active {
    transform: scale(0.98);
}

/* Response Messages (Success/Error) */
.wpcf7-response-output {
    margin-top: 20px !important;
    padding: 12px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    border: 2px solid transparent !important;
}

.wpcf7-mail-sent-ok { /* Success Message */
    border-color: #46b450 !important;
    background-color: #f2faf3;
}

.wpcf7-validation-errors { /* Error Message */
    border-color: #dc3232 !important;
    background-color: #fff8f8;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .wpcf7-submit {
        width: 100%;
    }
}

/* --- Main Content & Page Templates --- */
main {
    flex-grow: 1;
}

.entry-content {
    padding: 20px 3% 100px;
    background: var(--white);
}

.home .entry-content {
    background: #eeeeee;
}

.entry-content h2 {
    text-transform: uppercase;
    color: var(--dark-blue);
    font-size: 2.2rem;
}

.entry-content h3 {
    margin-top: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--dark-blue);
    font-size: 1.2rem;
}

.entry-content p {
    margin-top: 20px;
}

.entry-content p strong {
    color: var(--dark-blue);
    font-size: 1.2rem;
}

.content-page {
    background-color: white;
    padding: 60px 5% 100px;
    z-index: 500;
}

.content-page h2 {
    text-transform: uppercase;
    color: var(--dark-blue);
    font-size: 2.2rem;
}


.search-results h2 a {
    text-transform: uppercase;
    color: var(--dark-blue);
    font-size: 1.2rem;
    text-decoration: none;
}

.search-item {
    padding-bottom: 40px;
}

.search-item .entry-summary {
    margin-bottom: 20px !important;
}

.read-more,
.wp-block-button__link.wp-element-button {

    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
}

.stage {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.year-box {
    background-color: var(--light-grey);
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expandable-box {
    border: 0px !important;
}

/* --- Gutenberg & WordPress Blocks Styling --- */

/* AutoTeach */
.wp-block-group {
    margin-left: 20px !important;
    font-size: 1.3rem;
}

.wp-block-group ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-top: 10px;
}

.wp-block-group ul li {
    position: relative;
    padding-left: 30px !important;
    /* Platz für das Icon */
    margin-bottom: 12px;
    color: #333;
    /* Textfarbe (kontrastreich) */
    line-height: 1.4;
    display: block !important;
}

.wp-block-group ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='grey' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.wp-block-list {
    margin-left: 20px !important;
    font-size: 1.3rem;
}

 ul.wp-block-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='grey' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}


/* Welcome Box (WP Quote Transform) */
.wp-block-quote.is-layout-flow {
    max-width: 1100px;
    margin: -80px auto 40px;
    background: #214b9b;
    color: white;
    padding: 50px;
    position: relative;
    z-index: 10;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: none;
}

.wp-block-quote.motomation-tab.is-layout-flow {
    margin: -20px auto 40px -20px !important;
    background: none !important;
    text-align:left !important;
    box-shadow: none !important;
    padding: 20px !important;
    
}

.advgb-tabs-wrapper {
    width: 100% !important;
    border-left: 0px !important;
}

.advgb-tab-button {
    font-size: 20px !important;
}

.wp-block-quote.is-layout-flow p {
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
    font-style: normal;
}

.wp-block-quote.is-layout-flow h2 {
    display: block;
    color: white;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 2rem;
    letter-spacing: 1.5px;
    font-weight: bold;
    font-style: normal;
}

/* Image Card Styling */
.wp-block-image {
    margin-top: 20px;
    margin-bottom: 20px;
}

figure.wp-block-image.size-full {
    background: var(--white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border-bottom: 5px solid transparent;
    margin-bottom: 30px !important;
    position: relative;
    object-fit: cover;
}

figure.wp-block-image.size-full:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-bottom: 5px solid var(--primary-blue);
    transform: translateY(-8px);
}

figure.wp-block-image.size-full img {
    width: 100%;
    display: block;
    transition: transform 0.7s ease;
    object-fit: cover;
}

figure.wp-block-image.size-full:hover img {
    transform: scale(1.05);
}

figure.wp-block-image.size-full figcaption {
    padding: 30px 25px;
    background: var(--white);
    color: var(--text-gray);
    line-height: 1.7;
    text-align: left;
    margin: 0;

}

figure.wp-block-image.size-full figcaption::first-line {
    font-weight: bold;
    color: var(--dark-blue);
}

figcaption strong {
    font-size: 2rem;
    color: var(--dark-blue);
}

/* Remove underline and set color for the link wrapping the caption */
.wp-block-column a:has(.wp-element-caption),
.wp-block-column a:has(.wp-element-caption) .wp-element-caption {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    color: var(--text-gray);
    /* Matches your original text color variable */
}

/* Optional: Keep the link behavior only for the image, or define a hover */
.wp-block-column a:has(.wp-element-caption):hover .wp-element-caption {
    text-decoration: none !important;
    color: var(--text-gray);
    /* Keeps it from changing color on hover */
}

/* Force 4 columns to stay in one row on Desktop */
/* --- Core Products: Single Row Layout --- */

/* --- Core Products Section Styling --- */

/* Force 4 columns in 1 row on Desktop */
.product-row-force {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    margin-bottom: 50px !important;
}

/* Equal column widths and layout behavior */
.product-row-force > .wp-block-column {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    display: flex;
}

/* Card container link */
.card-link {
    text-decoration: none !important;
    display: flex;
    width: 100%;
}

.product-row-force figure.wp-block-image {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    margin: 0 !important;
    height: 100%;
    border: 1px solid #eee; /* Optional: adds subtle card definition */
}

/* Image scaling to square aspect ratio */
.product-row-force figure img {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Text area (Figcaption) - Matches Support Cards Typography */
.product-row-force figcaption {
    padding: 20px !important;
    text-align: left !important;
    line-height: 1.6;
    color: #333333;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Bold Title inside Figcaption */
.product-row-force figcaption strong {
    margin-bottom: 20px !important;
}

/* "Read More" Button Styling */
.product-row-force .read-more {
    margin-top: 20px; /* Pushes button to bottom of card */
    align-self: flex-start;
    background-color: #004a99; /* Adjust to match your theme blue */
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.card-link:hover .read-more {
    background-color: #003366;
}

/* --- Mobile Responsiveness --- */

/* Tablets: 2x2 Grid */
@media (max-width: 1024px) {
    .product-row-force {
        flex-wrap: wrap !important;
    }
    .product-row-force > .wp-block-column {
        flex: 1 1 calc(50% - 10px) !important;
    }
}

/* Phones: Stacked 1x1 */
@media (max-width: 600px) {
    .product-row-force > .wp-block-column {
        flex: 1 1 100% !important;
    }
}


/* Decorative Badge on Cards 
figure.wp-block-image.size-full::after {
    content: "\f005";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 265px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 5;
    transition: transform 0.3s ease;
}

figure.wp-block-image.size-full:hover::after {
    transform: rotate(90deg);
} */

figure a img {
    text-align: center;
    margin: 0 auto;
    display: block;
}

/* --- General Plugin Overrides --- */
#rc-anchor-container {
    display: none;
}

/* --- WooCommerce Shop & Product Layout --- */

.subcategory-title {
      font-family: 'Segoe UI', Roboto, Arial, sans-serif !important;
      font-size: 1.8rem !important;
      text-transform: none !important;
      
}

.thumbnail-container-right {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.category-top-thumbnail {
    max-width: 200px; /* Or your preferred desktop size */
    z-index: 10;
}

.category-top-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Size (Screens smaller than 768px) */
@media (max-width: 767px) {
    .category-top-thumbnail {
        max-width: 100px; /* This makes it smaller on phones */
    }
}

.term-description {
    margin-bottom: 50px;
}




.woocommerce-ordering {
    display: none;
}

.woocommerce .woocommerce-result-count {
    padding: 20px 0;
    font-weight: bold;
}

.woocommerce-tabs,
.woocommerce-Tabs-panel {
    padding-top: 0px;
}

.woocommerce ul.products li.product .button {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
}

.wp-block-button__link {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
}



/* WPGallery Slider Adjustment */

#wpgs-gallery,
.wcgs-woocommerce-product-gallery {
    width: 600px !important;
    max-width: 600px !important;
}

/* Bild nach oben schieben */
.wcgs-carousel .wcgs-slider-image img {
    width: 100% !important;
    height: 100% !important;
    /* Beispielhöhe für das Karussell */
    object-fit: cover !important;
    object-position: center top !important;
    /* Richtet das Bild am oberen Rand aus */
}

.wcgs-slider-image {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


.woocommerce-product-details__short-description {
    margin-bottom: 50px !important;
    font-size: 1.3rem;
}

.woocommerce-product-details__short-description ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-top: 10px;
}

.woocommerce-product-details__short-description ul li {
    position: relative;
    padding-left: 30px !important;
    /* Platz für das Icon */
    margin-bottom: 12px;
    color: #333;
    /* Textfarbe (kontrastreich) */
    line-height: 1.4;
    display: block !important;
}

.woocommerce-product-details__short-description ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='grey' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.product_meta .posted_in {
    font-size: 1.3rem;
}

/* Woocommerce Tabs Adjustment */

.woocommerce-tabs,
.wc-tabs-wrapper,
#tab-description {
    display: block !important;
    clear: both !important;
    /* Beendet Floats vom Slider/Features darüber */
    float: none !important;
    margin-top: 60px !important;
    /* Erhöhter Wert zum Testen */
    position: relative !important;
    top: 40px !important;
    /* Schiebt es physisch nach unten */
    font-size: 1.1rem;
}

.woocommerce-tabs .panel {
    margin-top: 20px !important;
}

.woocommerce div.product .woocommerce-tabs h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-tabs h3 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-tabs ul li {
    margin-left: 20px;
}


section.related.products {
    margin-top: 100px !important;
}

section.related.products h2 {
    font-size: 1.2rem;
}


/* --- WooCommerce Breadcrumbs --- */
.custom-breadcrumb-wrapper {
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #777;
}

.woocommerce-breadcrumb {
    padding: 0;
    margin: 0;
}

.woocommerce-breadcrumb a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s;
    font-size: .92em
}

.woocommerce-breadcrumb a:hover {
    color: var(--dark-blue);
}

.woocommerce-breadcrumb .breadcrumb-separator {
    margin: 0 8px;
    color: #ccc;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .woocommerce-breadcrumb {
        position: relative;
        top: -20px;
        left: 10px;
    }
}



/* --- Footer --- */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 0 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 0 5% 60px;
}

.footer-logo {
    height: 45px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-column h4 {
    color: #999aaa;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-column p a {
    color: #ccc;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-column a {
    font-size: 0.9rem;
    color: var(--white);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    background-color: #111;
    border-top: 1px solid #333;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #777;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    margin-right: 20px;
}

.footer-bottom-links a:hover {
    color: #fff;
}



/* --- Responsive Design & Media Queries --- */

/* Mobile Toggle Button */
.menu-toggle {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    height: 40px;
    /* Ensure height */
    width: 40px;
    /* Ensure width */
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    /* Visible color */
    border-radius: 2px;
    transition: 0.3s;
}


/* Tablet/Desktop Breakpoint (1024px) */
@media (max-width: 1024px) {

    /* Hide the original side-actions */
    .header-actions.desktop-only {
        display: none;
    }

    /* Show the actions inside the menu */
    .mobile-only-actions {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
        width: 100%;
        /* Verhindert, dass die Suchbar den Fokus erzwingt und scrollt */
        order: 10;
    }

    #nav-menu {
        display: none;
        /* Standardmäßig aus */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - var(--header-height));
        background-color: var(--white);

        /* FIX: Wir nutzen padding-top, um sicherzustellen, dass oben Platz ist */
        padding: 20px 5% 80px 5%;

        z-index: 999;
        overflow-y: auto !important;

        /* Unterbindet das automatische Springen/Animieren */
        scroll-behavior: auto !important;
        overscroll-behavior: contain;
    }

    /* Wenn aktiv, erzwingen wir die Anzeige OBEN */
    #nav-menu.active {
        display: block !important;
        /* Block ist oft stabiler gegen Autoscolling als Flex */
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        /* Lücke etwas kleiner für bessere Übersicht */
        display: flex;
        order: 1;
        /* Menüpunkte kommen ZUERST */
    }

    /* Ensure links are visible and styled for mobile */
    .nav-list li a {
        font-size: 1.1rem;
        display: block;
        padding: 12px 0;

    }

    /* Submenüs auf Mobile anzeigen & Optik verbessern */
    .nav-list .sub-menu {
        display: block !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding-left: 20px !important;
        margin: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        border: 0 !important;
        padding: 0px;
    }

    .nav-list .sub-menu li a {
        font-size: 1rem;
        text-transform: none;
        border-bottom: none;
        padding: 8px 0;
    }

    .mobile-only-actions .search-bar form {
        display: flex !important;
        align-items: center;
        width: 100%;
        background: var(--light-grey);
        padding: 10px 15px;
        border-radius: 5px;
    }

    .mobile-only-actions .search-bar input {
        border: none !important;
        background: transparent !important;
        width: 100% !important;
        outline: none;
        padding: 0;
        margin: 0;
        font-size: 16px !important;
        /* Verhindert Auto-Zoom bei iPhone/Samsung */
    }

    .menu-toggle {
        display: flex;
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 1025px) {
    .mobile-only-actions {
        display: none;
    }
}

/* Mobile Optimierung für die Welcome-Headline */
@media (max-width: 768px) {
    .wp-block-quote.is-layout-flow {
        margin: -40px 15px 30px;
        /* Weniger negativer Einzug oben, damit es nicht das Bild überlappt */
        padding: 30px 20px;
        /* Kompakteres Padding */
    }

    .wp-block-quote.is-layout-flow h2 {
        font-size: 1.4rem !important;
        /* Deutlich kleiner für Mobile */
        letter-spacing: 1px;
        line-height: 1.2;
    }

    .wp-block-quote.is-layout-flow p {
        font-size: 0.95rem;
        /* Optional: Text darunter auch leicht anpassen */
    }
}

/* Footer Tablet/Mobile Breakpoints */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Volle Breite für Produktbilder auf Mobilgeräten erzwingen */
/* Erzwungene Korrektur für feste Pixelwerte auf Mobile */
@media screen and (max-width: 768px) {

    /* Wir nutzen "html body", um die Priorität gegenüber dem Plugin zu erhöhen */
    html body #wpgs-gallery,
    html body .wcgs-woocommerce-product-gallery {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        /* Sicherheitshalber */
        height: auto !important;
        /* Verhindert Verzerrungen */
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Falls die Bilder innerhalb des Sliders auch festgesetzt sind */
    .wcgs-slider-image img {
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {

    /* Container for the tab list */
    .woocommerce-tabs ul.tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        scrollbar-width: none;
        /* Hide scrollbar for Firefox */
        border-bottom: 1px solid #ddd;
        padding-bottom: 0;
    }

    .woocommerce-tabs ul.tabs li::before,
    .woocommerce-tabs ul.tabs li::after {
        display: none !important;
        border: none !important;
    }

    /* Hide scrollbar for Chrome/Safari */
    .woocommerce-tabs ul.tabs::-webkit-scrollbar {
        display: none;
    }

    /* Individual Tab Styling */
    .woocommerce-tabs ul.tabs li {
        flex: 0 0 auto;
        /* Prevent tabs from shrinking */
        margin: 0 !important;
        border: none !important;
        border-radius: none !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .woocommerce-tabs ul.tabs li a {
        display: block;
        padding: 15px 20px !important;
        white-space: nowrap;
        /* Keep text on one line */
        font-size: 14px;
        text-transform: uppercase;
        font-weight: 600;
        color: #666;
    }

    /* Active Tab indicator */
    .woocommerce-tabs ul.tabs li.active a {
        color: #000;
        border-bottom: 2px solid var(--primary-blue);
        /* Or your brand color */
    }

    /* Ensure the panel content feels integrated */
    .woocommerce-tabs .panel {
        padding: 20px 10px !important;
        border: none !important;
    }
}