/**
 * Marke Teaser Styles
 * Brand teaser module with image, logo, and call-to-action
 * 
 * @package Gustoso Child Theme
 * @since 1.0
 */

/* Main Container */
.gustoso-marke-teaser {
    width: 100%;
    overflow: hidden;
}

/* Inner Container */
.gustoso-marke-teaser__container {
    display: flex;
    align-items: stretch;
    min-height: 400px;
}

/* Image Column - Left Side (1/3 width) */
.gustoso-marke-teaser__image-column {
    flex: 0 0 33.333%;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.gustoso-marke-teaser__image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.gustoso-marke-teaser__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content Column - Right Side (2/3 width) */
.gustoso-marke-teaser__content-column {
    flex: 0 0 66.667%;
    min-width: 0;
    background-color: var(--bg-color, #324158);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--text-color, #ffffff);
}

/* Logo */
.gustoso-marke-teaser__logo {
    margin-bottom: 30px;
}

.gustoso-marke-teaser__logo-image {
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
}

/* Divider Line */
.gustoso-marke-teaser__divider {
    width: 100%;
    max-width: 200px;
    height: 1px;
    background-color: var(--divider-color, #ffffff);
    margin-bottom: 40px;
    opacity: 0.3;
}

/* Call to Action */
.gustoso-marke-teaser__cta {
    margin-top: 0;
    text-align: center;
}

.gustoso-marke-teaser__cta:hover .gustoso-marke-teaser__cta-text::before {
    background: transparent;
    color: white;
}

.gustoso-marke-teaser__cta-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color, #ffffff);
    transition: all 0.3s ease;
}

.gustoso-marke-teaser__cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #324158;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.gustoso-marke-teaser__cta-button::before {
    content: "→";
    font-size: 18px;
    line-height: 1;
    color: #ffffff;
    display: block;
}

.gustoso-marke-teaser__cta-link:hover .gustoso-marke-teaser__cta-button {
    background: transparent !important;
    color: #324158 !important;
}

.gustoso-marke-teaser__cta-link:hover .gustoso-marke-teaser__cta-button::before {
    color: #324158 !important;
}


.gustoso-marke-teaser__cta-text {
    font-family: 'Ysabeau Infant', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.5;
    color: var(--text-color, #ffffff);
    padding-left: 0;
}

/* Image Right Layout */
.gustoso-marke-teaser--image-right .gustoso-marke-teaser__container {
    flex-direction: row-reverse;
}

.gustoso-marke-teaser--image-right .gustoso-marke-teaser__content-column {
    align-items: flex-end;
    text-align: right;
}

.gustoso-marke-teaser--image-right .gustoso-marke-teaser__divider {
    margin-left: auto;
}

/* Description Text - Hidden by default, shown only in light mode */
.gustoso-marke-teaser__description {
    display: none;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color, #ffffff);
    margin-bottom: 30px;
    text-align: center;
}

/* Light Mode Styles */
.gustoso-marke-teaser--light {
    background-color: transparent;
}

.gustoso-marke-teaser--light .gustoso-marke-teaser__container {
    background-color: #ffffff;
    border: 1px solid #92A9CD;
    border-radius: 0;
    padding: 60px 50px;
    min-height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hide image in light mode */
.gustoso-marke-teaser--light .gustoso-marke-teaser__image-column {
    display: none !important;
}

/* Light mode content column */
.gustoso-marke-teaser--light .gustoso-marke-teaser__content-column {
    flex: 1 1 100% !important;
    width: 100%;
    background-color: transparent !important;
    padding: 0 !important;
    align-items: center !important;
    text-align: center;
}

/* Logo in light mode - black */
.gustoso-marke-teaser--light .gustoso-marke-teaser__logo {
    margin-bottom: 30px;
    text-align: center;
    height: 77px
}

.gustoso-marke-teaser--light .gustoso-marke-teaser__logo-image {
    max-height: 70px;
    filter: none !important; /* Keep logo black, no blue filter */
    width: auto;
    height: auto;
}

/* Description in light mode - black, visible */
.gustoso-marke-teaser--light .gustoso-marke-teaser__description {
    display: block !important;
    color: #2d3748 !important;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: center;
}

/* All text elements in light mode should be black */
.gustoso-marke-teaser--light,
.gustoso-marke-teaser--light p,
.gustoso-marke-teaser--light span,
.gustoso-marke-teaser--light div {
    color: #2d3748 !important;
}

/* CTA link text - use same as normal mode */
.gustoso-marke-teaser--light .gustoso-marke-teaser__cta-link {
    color: var(--text-color, #ffffff);
}

/* Button in light mode - dark blue with white arrow */
.gustoso-marke-teaser--light .gustoso-marke-teaser__cta-button {
    background-color: #324158 !important;
    border: 1px solid #324158 !important;
}

.gustoso-marke-teaser--light .gustoso-marke-teaser__cta-button:hover {
    background-color: transparent !important;
}

/* Divider in light mode - light blue */
.gustoso-marke-teaser--light .gustoso-marke-teaser__divider {
    width: 70%;
    max-width: 400px;
    background-color: #92A9CD !important;
    margin: 0 auto 30px auto;
    opacity: 1;
    height: 1px;
}

/* CTA in light mode - Same as normal mode */
.gustoso-marke-teaser--light .gustoso-marke-teaser__cta {
    margin-top: 0;
    text-align: center;
}

.gustoso-marke-teaser--light .gustoso-marke-teaser__cta-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color, #ffffff);
    transition: all 0.3s ease;
}

.gustoso-marke-teaser--light .gustoso-marke-teaser__cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #324158;
    border: 1px solid #324158 !important;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.gustoso-marke-teaser--light .gustoso-marke-teaser__cta-button::before {
    content: "→";
    font-size: 18px;
    line-height: 1;
    color: #ffffff;
    display: block;
    transition: color 0.3s ease;
}

.gustoso-marke-teaser--light .gustoso-marke-teaser__cta-link:hover .gustoso-marke-teaser__cta-button {
    background-color: transparent !important;
}

.gustoso-marke-teaser--light .gustoso-marke-teaser__cta-link:hover .gustoso-marke-teaser__cta-button::before {
    color: #324158 !important;
}

.gustoso-marke-teaser--light .gustoso-marke-teaser__cta-text {
    font-family: 'Ysabeau Infant', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.5;
    color: var(--text-color, #ffffff);
    padding-left: 0;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.3s ease;
}

.gustoso-marke-teaser--light .gustoso-marke-teaser__cta-link:hover .gustoso-marke-teaser__cta-text {
    border-bottom: 1px dotted currentColor;
}

/* Remove any pseudo-elements from light mode CTA text */
.gustoso-marke-teaser--light .gustoso-marke-teaser__cta-text::before,
.gustoso-marke-teaser--light .gustoso-marke-teaser__cta-text::after {
    display: none !important;
    content: none !important;
}

/* Marken Section Specific Styles */
.marken-section .gustoso-marke-teaser {
    height: auto;
}

.marken-section .gustoso-marke-teaser__container {
    flex-direction: row !important;
    min-height: 230px;
    align-items: center;
}

/* Square image in marken section */
.marken-section .gustoso-marke-teaser__image-column {
    flex: 0 0 165px !important;
    height: 165px;
}

.marken-section .gustoso-marke-teaser__image-wrapper {
    height: 100%;
}

.marken-section .gustoso-marke-teaser__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content column in marken section */
.marken-section .gustoso-marke-teaser__content-column {
    flex: 1 !important;
    padding: 40px 50px !important;
    background-color: transparent !important;
    align-items: flex-start !important;
}

/* Logo styling in marken section */
.marken-section .gustoso-marke-teaser__logo {
    margin-bottom: 20px;
}

.marken-section .gustoso-marke-teaser__logo-image {
    max-height: 60px;
    filter: brightness(0) invert(1); /* Makes logo white */
}

/* Divider in marken section */
.marken-section .gustoso-marke-teaser__divider {
    width: 100%;
    max-width: 400px;
    margin-bottom: 25px;
    opacity: 0.5;
}

/* CTA in marken section */
.marken-section .gustoso-marke-teaser__cta {
    margin-top: 0;
}

.marken-section .gustoso-marke-teaser__cta-link {
    gap: 15px;
}

.marken-section .gustoso-marke-teaser__cta-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #ffffff !important;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.marken-section .gustoso-marke-teaser__cta-button::before {
    content: "→";
    font-size: 18px;
    line-height: 1;
    color: #28303B;
    display: block;
}

.marken-section .gustoso-marke-teaser__cta-link:hover .gustoso-marke-teaser__cta-button {
    background-color: transparent !important;
}

.marken-section .gustoso-marke-teaser__cta-link:hover .gustoso-marke-teaser__cta-button::before {
    color: #ffffff !important;
}

.marken-section .gustoso-marke-teaser__cta-text {
    font-family: 'Ysabeau Infant', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    color: #ffffff !important;
    padding-left: 0;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.3s ease;
}

.marken-section .gustoso-marke-teaser__cta-link:hover .gustoso-marke-teaser__cta-text {
    border-bottom: 1px dotted currentColor;
}

.marken-section .gustoso-marke-teaser__cta-text::before,
.marken-section .gustoso-marke-teaser__cta-text::after {
    display: none !important;
    content: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gustoso-marke-teaser__logo-image {
        max-height: 60px;
    }
    
    .gustoso-marke-teaser__cta-button {
        width: 45px;
        height: 45px;
    }
    
    .gustoso-marke-teaser__cta-text {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    /* 16px spacing between marke teasers on mobile */
    .gustoso-marke-teaser {
        margin-bottom: 16px !important;
    }
    
    .gustoso-marke-teaser:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Marken section mobile adjustments - keep horizontal layout */
    .marken-section .gustoso-marke-teaser__container {
        flex-direction: row !important;
        min-height: auto;
    }
    
    .marken-section .gustoso-marke-teaser__image-column {
        flex: 0 0 40% !important;
        height: auto;
        min-height: 150px;
    }
    
    .marken-section .gustoso-marke-teaser__content-column {
        flex: 1 !important;
        padding: 15px 15px !important;
    }
    
    .marken-section .gustoso-marke-teaser__logo {
        margin-bottom: 10px;
    }
    
    .marken-section .gustoso-marke-teaser__logo-image {
        max-height: 35px;
    }
    
    .marken-section .gustoso-marke-teaser__divider {
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .marken-section .gustoso-marke-teaser__cta-text {
        font-size: 14px !important;
    }
    
    .marken-section .gustoso-marke-teaser__cta-button {
        width: 30px;
        height: 30px;
    }
    
    .marken-section .gustoso-marke-teaser__cta-button::before {
        font-size: 14px;
    }
    
    /* General marke teaser mobile - keep horizontal layout */
    .gustoso-marke-teaser__container {
        flex-direction: row !important;
        min-height: auto;
    }
    
    .gustoso-marke-teaser__image-column {
        flex: 0 0 40% !important;
        height: auto;
        min-height: auto;
    }
    
    .gustoso-marke-teaser__content-column {
        flex: 1 !important;
        padding: 25px 20px !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    .gustoso-marke-teaser--image-right .gustoso-marke-teaser__container {
        flex-direction: row-reverse !important;
    }
    
    .gustoso-marke-teaser--image-right .gustoso-marke-teaser__content-column {
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    .gustoso-marke-teaser--image-right .gustoso-marke-teaser__divider {
        margin-left: 0;
    }
    
    .gustoso-marke-teaser__logo {
        margin-bottom: 20px;
    }
    
    .gustoso-marke-teaser__logo-image {
        max-height: 50px;
    }
    
    .gustoso-marke-teaser__divider {
        margin-bottom: 20px;
        max-width: 200px;
    }
    
    .gustoso-marke-teaser__cta-button {
        width: 40px;
        height: 40px;
    }
    
    .gustoso-marke-teaser__cta-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* Marken section small mobile - keep horizontal layout */
    .marken-section .gustoso-marke-teaser__container {
        flex-direction: row !important;
        min-height: 150px;
    }
    
    .marken-section .gustoso-marke-teaser__image-column {
        flex: 0 0 35% !important;
        min-height: 150px;
    }
    
    .marken-section .gustoso-marke-teaser__content-column {
        padding: 20px 15px !important;
        margin-top: -39px;
    }
    
    .marken-section .gustoso-marke-teaser__logo-image {
        max-height: 40px;
    }
    
    .marken-section .gustoso-marke-teaser__divider {
        margin-bottom: 12px;
    }
    
    .marken-section .gustoso-marke-teaser__cta-text {
        font-size: 14px !important;
    }
    
    .marken-section .gustoso-marke-teaser__cta-button {
        width: 32px;
        height: 32px;
    }
    
    .marken-section .gustoso-marke-teaser__cta-button::before {
        font-size: 14px;
    }
    
    /* General marke teaser small mobile - keep horizontal layout */
    .gustoso-marke-teaser__container {
        flex-direction: row !important;
        min-height: 150px;
    }
    
    .gustoso-marke-teaser__image-column {
        flex: 0 0 35% !important;
        min-height: 150px;
    }
    
    .gustoso-marke-teaser__content-column {
        padding: 20px 15px !important;
    }
    
    .gustoso-marke-teaser--image-right .gustoso-marke-teaser__container {
        flex-direction: row-reverse !important;
    }
    
    .gustoso-marke-teaser__logo-image {
        max-height: 40px;
    }
    
    .gustoso-marke-teaser__divider {
        max-width: 150px;
        margin-bottom: 15px;
    }
    
    .gustoso-marke-teaser__cta-link {
        gap: 12px;
    }
    
    .gustoso-marke-teaser__cta-button {
        width: 36px;
        height: 36px;
    }
    
    .gustoso-marke-teaser__cta-text {
        font-size: 14px;
    }
}

.vc_section.marken-section .vc_separator {
    margin-bottom: 0 !important;
    margin-top: 2em !important;
}

.vc_section.marken-section .vc_sep_holder {
    display: none !important;
}

.vc_section.marken-section .vc_separator.vc_separator_align_center h4 {
    color: #ffffff !important;
    padding: 0;
    font-size: 24px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .vc_section.marken-section .vc_separator.vc_separator_align_center {
        justify-content: center !important;
    }
    
    .vc_section.marken-section .vc_separator.vc_separator_align_center h4 {
        text-align: center !important;
        flex: none !important;
        width: auto !important;
    }
}