/* ==========================================================================
   HEINZBIKES: SIDE-BY-SIDE LAYOUT (.is-besides) - FINAL FLEX-FIX
   ========================================================================== */
/* 1. NUR FÜR MOBILE (bis 767px) */
@media only screen and (max-width: 47.98em) {
    .home-block.is-besides {
        height: auto !important;

        /* Wir überschreiben das System-Padding NUR auf Mobile */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: block !important;
    }

    .home-block.is-besides .aspect-ratio-box__inner {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 40px 20px !important;
        gap: 20px;

        /* Neutralisiert Zentrierungs-Offsets der main.css auf Mobile */
        top: 0 !important;
        transform: none !important;
    }
}

/* 3. DESKTOP-LOGIK (Ab 48em / 768px) */
@media only screen and (min-width: 48em) {
    .home-block.is-besides {
        height: auto !important;

        /* WICHTIG: Setzt das Padding-Top auf den Systemwert zurück */
    }

    .home-block.is-besides .aspect-ratio-box__inner {
        position: absolute !important;
        top: 0 !important;

        /* Wichtig für die Zentrierung im System-Container */
        left: 0;
        height: 100% !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 30px !important;
        padding: 20px 20px 20px 20px !important;
        transform: none !important;
    }

    .home-block.is-besides .banner-column-left,
    .home-block.is-besides .banner-column-right {
        flex: 0 1 auto !important;
    }

    .home-block.is-besides .banner-column-left {
        max-width: 700px;
    }

    .home-block.is-besides .banner-column-right {
        max-width: 450px;
        text-align: left;
    }

    .home-block.is-besides .button-stack {
        align-items: flex-start;
    }
}

/* 4. PRODUKTBILD */
.home-block.is-besides .product-image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

@media only screen and (min-width: 64em) {
    .home-block.is-besides .product-image-wrapper img {
        max-width: 600px;
    }
}

/* 5. TYPOGRAFIE */
.home-block.is-besides .heading-1 {
    margin-bottom: 5px !important;
    line-height: 1.1 !important;
    font-size: 2.6rem;
}

@media only screen and (min-width: 48em) {
    .home-block.is-besides .heading-1 {
        font-size: 3.5rem;
    }
}

.home-block.is-besides .heading-2 {
    margin-bottom: 25px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    font-size: 1.7rem;
}

@media only screen and (min-width: 48em) {
    .home-block.is-besides .heading-2 {
        font-size: 1.8rem;
    }
}

.heading-6 {
    font-size: 2.5rem;
    text-align: center;
    color: #fff;
    text-transform: none;
    font-weight: 600;
    padding-bottom: 9px;
}

.heading-6--dark {
    color: var(--color-secondary);
}

@media only screen and (min-width: 48em) {
    .heading-6 {
        font-size: 2.5rem;
    }
}

/* 6. BUTTONS */
.home-block.is-besides .button-stack {
    display: flex;
    flex-direction: column;
    gap: 12px !important;
    align-items: center;
}

.home-block.is-besides .button-stack .btn-primary-box,
.home-block.is-besides .button-stack .btn-secondary-outline {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important;
    line-height: 1 !important;
    width: 100%;
    max-width: 250px;
    padding: 12px 20px !important;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.8rem;
    transition: all 0.2s ease;
}

.home-block.is-besides .btn-primary-box {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border: 2px solid var(--color-primary) !important;
}

.home-block.is-besides .btn-secondary-outline {
    border: 2px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    background: transparent !important;
}

.home-block.is-besides .button-stack a:hover {
    filter: brightness(1.1);
    transform: scale(1.03);
}

.arrow--white {
    border-color: white;
}

/* BUTTONS for 3 col desing */
.three-col-block .btn-primary-box,
.three-col-block .btn-secondary-outline {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important;
    line-height: 1 !important;
    padding: 12px 10px !important;
    margin: 5px 10px 5px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.8rem;
    transition: all 0.2s ease;
}

.three-col-block .btn-primary-box {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border: 2px solid var(--color-primary) !important;
}

.three-col-block .btn-secondary-outline {
    border: 2px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    background: transparent !important;
}

.three-col-block a:hover {
    filter: brightness(1.1);
    transform: scale(1.03);
}

/* two cols */
/* ==========================================================================
   HEINZBIKES: SPLIT-LAYOUT (Isoliert & Sicher)
   Gilt NUR für <section class="... split-layout">
   ========================================================================== */
/* 1. BASIS: Die Section selbst */
.home-block.is-besides.split-layout {
    height: auto !important;
    padding: 0 !important;
    margin-top: 20px;
    background: transparent !important;
}

.home-block.is-besides.split-layout .aspect-ratio-box__inner {
    position: relative !important;
    height: auto !important;
    padding: 0 !important;
    display: block !important;

    /* Reset für System-Zentrierung */
    top: 0 !important;
    transform: none !important;
}

/* 2. DER SPLIT-CONTAINER (Spezifisch gekapselt) */
.home-block.is-besides.split-layout .split-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

@media only screen and (min-width: 48em) {
    .home-block.is-besides.split-layout .split-container {
        flex-direction: row !important;
        height: 600px;

        /* Deine gewünschte Desktop-Höhe */
        gap: 10px;
    }
}

/* 3. DIE EINZELNEN HÄLFTEN (Spezifisch gekapselt) */
.home-block.is-besides.split-layout .banner-half {
    flex: 1;
    background-size: cover;
    background-position: center;
    display: flex;

    /* ÄNDERUNG: Startet oben statt mittig */
    align-items: flex-start;
    justify-content: center;

    /* Abstand vom oberen Rand der Section bis zur Headline/Bild */
    padding: 80px 20px !important;
    position: relative;
    overflow: hidden;
}

@media only screen and (min-width: 48em) {
    .home-block.is-besides.split-layout .banner-half {
        padding: 0;
        height: 100%;
    }
}

/* 4. INHALT INNERHALB DER HÄLFTEN */
.home-block.is-besides.split-layout .banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
    z-index: 5;
}

.home-block.is-besides.split-layout .product-image-wrapper img {
    max-width: 380px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
}

.home-block.is-besides.split-layout .text-content .heading-1 {
    font-size: 2.2rem !important;
    margin-bottom: 5px !important;
}

.home-block.is-besides.split-layout .text-content .heading-2 {
    font-size: 1.4rem !important;
    margin-bottom: 25px !important;
}

/* 5. HOVER EFFEKT */
@media only screen and (min-width: 48em) {
    .home-block.is-besides.split-layout .banner-half::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.1);
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .home-block.is-besides.split-layout .banner-half:hover::before {
        opacity: 0;
    }
}
