/* ========================================
   TYPO3 Textpic Layout 14 - CTA Banner
   Bild als Background, zentrierter Text + Button
   ======================================== */

/* Container */
.frame-layout-13.frame-type-textpic {
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Textpic Wrapper - Fixe Höhe */
.frame-layout-13 .ce-textpic {
    position: relative;
    height: 595px;
    max-width: 1672px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-radius: 8px;
    overflow: hidden;
}

/* ========================================
   Bild als Hintergrund - NICHT ANSCHNEIDEN
   ======================================== */

.frame-layout-13 .ce-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.frame-layout-13 .ce-outer,
.frame-layout-13 .ce-inner,
.frame-layout-13 .ce-row,
.frame-layout-13 .ce-column {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.frame-layout-13 .ce-gallery figure {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.frame-layout-13 .ce-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}


/* ========================================
   Content (Text + Button) - Zentriert
   ======================================== */

.frame-layout-13 .ce-bodytext {
    position: relative;
    z-index: 3; /* Über Bild und Overlay */
    text-align: center;
    color: #ffffff;
    padding: 60px 40px 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   Text Styling
   ======================================== */

/* Headline (erstes <p> oder kann auch <h2> sein) */
.frame-layout-13 .ce-bodytext h2 {
    font-size: 2.25rem;
    font-weight: 200;
    line-height: 1.2;
    margin: 0 0 24px 0;
    color: #ffffff;
}

/* "wie hausgemacht" fett und weiß */
.frame-layout-13 .ce-bodytext p:first-child strong {
    font-weight: 500;
    color: #ffffff;
}

/* Zweiter Paragraph - Subline */
.frame-layout-13 .ce-bodytext p:nth-child(2) {
    font-size: 1.25rem;
    font-weight: 200;
    line-height: 1.5;
    margin: 0 0 32px 0;
    color: #ffffff;
}

/* Dritter Paragraph mit Link - verstecken */
.frame-layout-13 .ce-bodytext p:nth-child(3) {
    margin: 0;
}

/* ========================================
   Button Styling
   ======================================== */

.frame-layout-13 .ce-bodytext a {
    display: inline-block;
    background: #e73331;
    color: #ffffff;
    padding: 11px 48px;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e73331;
}

.frame-layout-13 .ce-bodytext a:hover {
    color: #FFFFFF;
    background-color: transparent;
    border-color: #FFFFFF;
}


/* ========================================
   Responsive - Desktop
   ======================================== */

@media (max-width: 1672px) {
    /* Container bleibt bei voller Breite */
    .frame-layout-13 .ce-textpic {
        max-width: 100%;
        height: 595px;
    }
}

@media (max-width: 1400px) {
    .frame-layout-13 .ce-textpic {
        height: 520px;
    }

    .frame-layout-13 .ce-bodytext {
        max-width: 800px;
    }

    .frame-layout-13 .ce-bodytext p:first-child {
        font-size: 2.25rem;
    }
}

@media (max-width: 1200px) {
    .frame-layout-13 .ce-textpic {
        height: 450px;
    }

    .frame-layout-13 .ce-bodytext {
        padding: 60px 40px;
        max-width: 700px;
    }

    .frame-layout-13 .ce-bodytext p:first-child {
        font-size: 2rem;
    }

    .frame-layout-13 .ce-bodytext p:nth-child(2) {
        font-size: 1.125rem;
    }
}

/* ========================================
   Responsive - Tablet
   ======================================== */

@media (max-width: 991px) {
    .frame-layout-13 .ce-textpic {
        height: 400px;
    }

    .frame-layout-13 .ce-bodytext {
        padding: 50px 30px;
    }

    .frame-layout-13 .ce-bodytext p:first-child {
        font-size: 1.875rem;
        margin-bottom: 20px;
    }

    .frame-layout-13 .ce-bodytext p:nth-child(2) {
        font-size: 1.0625rem;
        margin-bottom: 28px;
    }

    .frame-layout-13 .ce-bodytext a {
        padding: 14px 40px;
        font-size: 1.0625rem;
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */

@media (max-width: 768px) {


    .frame-layout-13 .ce-textpic {
        height: 450px;
    }

    /* Bild besser positionieren */
    .frame-layout-13 .ce-gallery img {
        object-fit: cover;
        object-position: center center;
    }

    .frame-layout-13 .ce-bodytext {
        padding: 50px 30px;
    }

    .frame-layout-13 .ce-bodytext h2 {
        font-size: 1.75rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .frame-layout-13 .ce-bodytext p:nth-child(2) {
        font-size: 1.0625rem;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .frame-layout-13 .ce-bodytext a {
        padding: 14px 40px;
        font-size: 1.125rem;
    }

}

@media (max-width: 576px) {
    .frame-layout-13 .ce-textpic {
        height: 400px;
        border-radius: 0;
    }

    /* Bild noch besser positionieren */
    .frame-layout-13 .ce-gallery img {
        object-fit: cover;
        object-position: center 40%;
    }

    .frame-layout-13 .ce-bodytext {
        padding: 40px 20px;
    }

    .frame-layout-13 .ce-bodytext h2 {
        font-size: 1.5rem;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .frame-layout-13 .ce-bodytext p:nth-child(2) {
        font-size: 1rem;
        margin-bottom: 24px;
        line-height: 1.5;
    }

    .frame-layout-13 .ce-bodytext a {
        padding: 14px 36px;
        font-size: 1.0625rem;
        min-width: 200px;
    }
}


/* ========================================
   Print
   ======================================== */

@media print {
    .frame-layout-13 .ce-textpic {
        height: 400px;
        page-break-inside: avoid;
    }

    .frame-layout-13 .ce-gallery::after {
        background: rgba(0, 0, 0, 0.1);
    }

    .frame-layout-13 .ce-bodytext {
        padding: 40px 20px;
    }

    .frame-layout-13 .ce-bodytext a {
        border: 2px solid #e73331;
        box-shadow: none;
    }
}

/* ========================================
   Accessibility
   ======================================== */

/* Focus State für Button */
.frame-layout-13 .ce-bodytext a:focus {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .frame-layout-13 .ce-bodytext a {
        transition: none;
    }

    .frame-layout-13 .ce-bodytext a:hover {
        transform: none;
    }
}