/* ==========================================================
   STRETCHFOLIENPROFI – Produktdetail-Komponenten V6
   Nur auf spezialisierten Produktdetailseiten eingebunden.
   Ziel: ruhig, kompakt, B2B, Kauf-Fokus bleibt beim Hauptartikel.
   ========================================================== */

/* ==========================================================
   1. PRODUKTBESCHREIBUNG + BERATUNG
   ========================================================== */

.sfp-machine-related {
    width: 100%;
}

.sfp-product-detail-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.sfp-product-detail-row > [class*="col-"] {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.sfp-product-description-col .tab-content {
    width: 100%;
    color: #59635c;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
}

/* Beschreibung optisch an die Grossmengenbox angleichen.
   Gleicher Innenabstand sorgt dafuer, dass die erste Textzeile links
   auf derselben Hoehe wie "Sie benoetigen groessere Mengen?" beginnt. */
.sfp-product-description-col .tab-pane {
    padding: 18px 20px 20px 20px;
    color: #59635c;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
}

.sfp-product-description-col .tab-pane > :first-child {
    margin-top: 0;
}

/* Erste Produkt-Ueberschrift im Beschreibungstext wie die Beratungs-Ueberschrift. */
.sfp-product-description-col .tab-pane > strong:first-child,
.sfp-product-description-col .tab-pane > b:first-child,
.sfp-product-description-col .tab-pane > h2:first-child,
.sfp-product-description-col .tab-pane > h3:first-child,
.sfp-product-description-col .tab-pane > h4:first-child,
.sfp-product-description-col .tab-pane > p:first-child > strong:first-child,
.sfp-product-description-col .tab-pane > p:first-child > b:first-child {
    color: #203d60;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.sfp-product-description-col .tab-pane > p:first-child {
    margin-bottom: 10px;
}

/* Rechter Bereich: zwei klar getrennte Karten.
   Auf Desktop startet er auf Hoehe des Beschreibung-Inhaltsrahmens
   (also unterhalb der Tabs). */
.sfp-product-advice-col {
    /* Hoehe der kompakten Tabzeile links: Boxkante fluchtet mit Beschreibungsrahmen. */
    padding-top: 31px;
}

.sfp-product-advice-stack {
    width: 100%;
}

.sfp-product-advice-box {
    width: 100%;
    overflow: hidden;
    border: 1px solid #d8e0e6;
    border-radius: 3px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(36, 72, 103, 0.06);
}

.sfp-product-advice-box + .sfp-product-advice-box {
    margin-top: 18px;
}

/* Grossmengen bleibt der einzige primaere CTA im rechten Bereich.
   Das bestehende SFP-Inquiry-Modul behaelt seine vertraute Proportion. */
.sfp-product-inquiry-box .sfp-product-inquiry,
.sfp-product-inquiry-box .sfp-product-inquiry--embedded {
    min-height: 172px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.sfp-product-inquiry-box .sfp-product-inquiry-text {
    padding: 18px 20px;
}

.sfp-product-inquiry-box .sfp-product-inquiry-image,
.sfp-product-inquiry-box .sfp-product-inquiry-image img {
    min-height: 172px;
}

/* Vertrauensbox: feste Hoehe auf Desktop.
   Sie wird NICHT auf die Hoehe der linken Produktbeschreibung gestreckt. */
.sfp-product-trust-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    height: 205px;
    min-height: 205px;
    max-height: 205px;
    padding: 18px 20px;
    border: 1px solid #c9d2da;
    box-sizing: border-box;
}

.sfp-product-advice-title {
    margin: 0 0 7px 0;
    color: #244867;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.sfp-product-trust-box p {
    margin: 0 0 9px 0;
    color: #4b535a;
    font-size: 13px;
    line-height: 1.45;
}

.sfp-product-advice-list {
    margin: 8px 0 10px 0;
    padding: 0;
    list-style: none;
}

.sfp-product-advice-list li {
    position: relative;
    margin: 0 0 4px 0;
    padding-left: 19px;
    color: #3e4b54;
    font-size: 13px;
    line-height: 1.35;
}

.sfp-product-advice-list li:before {
    position: absolute;
    top: 0;
    left: 0;
    color: #438548;
    content: "\2713";
    font-weight: 700;
}

.sfp-product-advice-list--compact {
    margin-bottom: 8px;
}

.sfp-product-advice-contact {
    margin-top: 5px;
    padding-top: 9px;
    border-top: 1px solid #edf0f2;
}

.sfp-product-advice-contact a {
    display: inline-block;
    margin: 0 13px 3px 0;
    color: #244867;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.sfp-product-advice-contact a:hover,
.sfp-product-advice-contact a:focus {
    color: #A3481B;
    text-decoration: underline;
}

/* ==========================================================
   2. EMPFEHLUNGEN – BEWUSST NACHGELAGERT
   ========================================================== */

.sfp-machine-recommendations {
    clear: both;
    margin-top: 50px;
    padding-top: 2px;
}

.sfp-product-slider {
    clear: both;
    margin: 0 0 26px 0;
    padding: 15px 16px 17px 16px;
    border: 1px solid #e0e5e9;
    background: #f6f7f8;
}

.sfp-product-slider-head {
    margin: 0 0 12px 0;
}

.sfp-product-slider-title {
    margin: 0;
    color: #244867;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.sfp-product-slider-line {
    width: 56px;
    height: 3px;
    margin-top: 5px;
    background: #A3481B;
}

.sfp-product-slider-intro {
    margin: 6px 0 0 0;
    color: #6a737a;
    font-size: 12px;
    line-height: 1.4;
}

/* Shell enthaelt ausschliesslich die Kartenzeile; Pfeile liegen seitlich mittig. */
.sfp-product-slider-shell {
    position: relative;
}

.sfp-product-slider--has-controls .sfp-product-slider-shell {
    padding-right: 34px;
    padding-left: 34px;
}

.sfp-product-slider-viewport {
    position: relative;
    overflow: hidden;
}

.sfp-product-slider-track {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 2px;
    -webkit-transition: -webkit-transform .24s ease;
    transition: transform .24s ease;
    will-change: transform;
}


.sfp-product-slider-item {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 calc((100% - 42px) / 4);
    flex: 0 0 calc((100% - 42px) / 4);
    min-width: 0;
    scroll-snap-align: start;
}

/* ==========================================================
   3. KOMPAKTE PRODUKTKARTE
   ========================================================== */

.sfp-product-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
    min-height: 228px;
    overflow: hidden;
    border: 1px solid #dce2e6;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(36, 72, 103, 0.06);
    -webkit-transition: border-color .15s ease, box-shadow .15s ease;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.sfp-product-card:hover {
    border-color: #bdc9d2;
    box-shadow: 0 4px 10px rgba(36, 72, 103, 0.09);
}

.sfp-product-card-image {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 108px;
    padding: 9px;
    background: #ffffff;
    text-decoration: none;
}

.sfp-product-card-image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 92px;
    margin: auto;
    border: 0;
    object-fit: contain;
}

.sfp-product-card-body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 8px 9px 9px 9px;
    border-top: 1px solid #eef1f3;
}

.sfp-product-card-title {
    display: -webkit-box;
    min-height: 34px;
    max-height: 34px;
    margin: 0 0 7px 0;
    overflow: hidden;
    color: #244867;
    font-size: 11.5px;
    line-height: 1.45;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sfp-product-card-title a {
    color: #244867;
    text-decoration: none;
}

.sfp-product-card-title a:hover,
.sfp-product-card-title a:focus {
    color: #A3481B;
    text-decoration: underline;
}

.sfp-product-card-price {
    margin: 1px 0 3px 0;
    color: #222222;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
}

.sfp-product-card-price span {
    margin-left: 2px;
    color: #59636c;
    font-size: 11px;
    font-weight: 600;
}

.sfp-product-card-meta {
    margin: 0 0 8px 0;
    color: #8a939a;
    font-size: 10px;
    line-height: 1.3;
}

.sfp-product-card-button {
    display: block;
    margin-top: auto;
    padding: 6px 8px;
    background: #244867;
    color: #ffffff !important;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
}

.sfp-product-card-button:hover,
.sfp-product-card-button:focus {
    background: #17384f;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ==========================================================
   4. SEITLICHE NAVIGATION – CSS-ONLY AUF DESKTOP
   ========================================================== */

.sfp-product-slider-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.sfp-product-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    padding: 0;
    border: 1px solid #aeb9c2;
    border-radius: 50%;
    background: #ffffff;
    color: #244867;
    font-size: 23px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(36, 72, 103, 0.08);
    -webkit-transition: border-color .15s ease, background-color .15s ease, color .15s ease;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.sfp-product-slider-prev {
    left: 0;
}

.sfp-product-slider-next {
    right: 0;
}

.sfp-product-slider-arrow:hover,
.sfp-product-slider-arrow:focus {
    border-color: #244867;
    background: #244867;
    color: #ffffff;
    outline: 0;
}

/* Startzustand: erste vier Produkte. */
.sfp-product-slider-toggle:not(:checked) ~ .sfp-product-slider-shell .sfp-product-slider-prev {
    visibility: hidden;
    pointer-events: none;
}

/* Zweite Position: letzte Produkte. */
.sfp-product-slider-toggle:checked ~ .sfp-product-slider-shell .sfp-product-slider-next {
    visibility: hidden;
    pointer-events: none;
}

.sfp-product-slider--count-5 .sfp-product-slider-toggle:checked ~ .sfp-product-slider-shell .sfp-product-slider-track {
    -webkit-transform: translateX(calc(-25% - 3.5px));
    transform: translateX(calc(-25% - 3.5px));
}

.sfp-product-slider--count-6plus .sfp-product-slider-toggle:checked ~ .sfp-product-slider-shell .sfp-product-slider-track {
    -webkit-transform: translateX(calc(-50% - 7px));
    transform: translateX(calc(-50% - 7px));
}

/* ==========================================================
   5. BERATUNGSABSCHNITT – LANDINGPAGE-OPTIK
   ========================================================== */

.sfp-consulting-section {
    clear: both;
    margin: 44px 0 56px 0;
}

.sfp-consulting-section-header {
    margin-bottom: 0;
}

/* Beratungsabschluss nutzt exakt die gleiche H2-Hierarchie wie die Slider. */
.sfp-consulting-section .sfp-section-title {
    margin: 0;
    color: #244867;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.sfp-consulting-section .sfp-section-line {
    width: 56px;
    height: 3px;
    margin-top: 5px;
    background: #A3481B;
}

.sfp-consulting-intro {
    margin: 6px 0 17px 0;
    color: #6a737a;
    font-size: 12px;
    line-height: 1.4;
}

.sfp-consulting-banner {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e0e5e9;
    background: #f3f4f4;
}

.sfp-consulting-banner a,
.sfp-consulting-banner img {
    display: block;
    width: 100%;
}

.sfp-consulting-banner a {
    text-decoration: none;
}

.sfp-consulting-banner img {
    height: auto;
    border: 0;
}

/* ==========================================================
   6. RESPONSIVE
   ========================================================== */

@media (max-width: 991px) {
    .sfp-product-detail-row > [class*="col-"] {
        display: block;
    }

    .sfp-product-advice-col {
        padding-top: 0;
    }

    .sfp-product-advice-stack {
        margin-top: 20px;
    }

    .sfp-product-trust-box {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .sfp-machine-recommendations {
        margin-top: 36px;
    }

    /* Tablet/Mobil: native horizontale Bedienung statt CSS-Umschalter. */
    .sfp-product-slider--has-controls .sfp-product-slider-shell {
        padding-right: 0;
        padding-left: 0;
    }

    .sfp-product-slider-arrow,
    .sfp-product-slider-toggle {
        display: none !important;
    }

    .sfp-product-slider-track {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-transform: none !important;
        transform: none !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sfp-product-slider-track::-webkit-scrollbar {
        display: none;
    }

    .sfp-product-slider-item {
        -ms-flex: 0 0 calc((100% - 14px) / 2);
        flex: 0 0 calc((100% - 14px) / 2);
        scroll-snap-align: start;
    }
}

@media (max-width: 767px) {
    .sfp-product-description-col .tab-content,
    .sfp-product-description-col .tab-pane {
        font-size: 15px;
    }

    .sfp-product-inquiry-box .sfp-product-inquiry,
    .sfp-product-inquiry-box .sfp-product-inquiry--embedded,
    .sfp-product-inquiry-box .sfp-product-inquiry-image,
    .sfp-product-inquiry-box .sfp-product-inquiry-image img {
        min-height: 0;
    }

    .sfp-product-trust-box {
        min-height: 0;
        padding: 15px;
    }

    .sfp-machine-recommendations {
        margin-top: 30px;
    }

    .sfp-product-slider {
        margin-bottom: 20px;
        padding: 15px 12px 16px 12px;
    }

    .sfp-product-slider-title {
        font-size: 17px;
    }

    .sfp-product-slider-intro {
        font-size: 12px;
    }

    .sfp-product-slider-item {
        -ms-flex: 0 0 86%;
        flex: 0 0 86%;
    }

    .sfp-product-card {
        min-height: 228px;
    }

    .sfp-product-card-image {
        height: 118px;
    }

    .sfp-product-card-image img {
        max-height: 100px;
    }

    .sfp-consulting-section {
        margin-top: 32px;
        margin-bottom: 38px;
    }

    .sfp-consulting-intro {
        font-size: 13px;
    }
}

/* ==========================================================
   V7 – VERTIKALE ACHSEN IM MASCHINENSTRETCHFOLIEN-LAYOUT
   Produktkopf: 3 / 4 / 5 Bootstrap-Spalten.
   Dadurch beginnt die Mengenbox bei 7/12 (= 58,33 %) und liegt
   exakt auf einer Flucht mit der rechten Beratungs-/Anfragespalte.

   Die Vorteilsleiste übernimmt dieselben Achsen: 3 / 4 / 5.
   Nur Desktop; Tablet/Mobil behalten die bestehende Stapelung.
   ========================================================== */
@media (min-width: 992px) {
    .sfp-product-benefits {
        grid-template-columns: 3fr 4fr 5fr;
    }

    .sfp-product-benefit,
    .sfp-product-benefit:first-child,
    .sfp-product-benefit:last-child {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* ==========================================================
   V8 – RUHIGERE ACHSEN, NAVIGATION UND TAB-TYPOGRAFIE
   Nur Maschinenstretchfolie; reine Darstellungsanpassung.
   ========================================================== */

/* 1) Vorteilsleiste wieder bewusst symmetrisch: 3 gleich breite Spalten. */
@media (min-width: 992px) {
    .sfp-product-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sfp-product-benefit,
    .sfp-product-benefit:first-child,
    .sfp-product-benefit:last-child {
        padding-left: 22px;
        padding-right: 22px;
    }
}

/* 2) Produktkopf links/rechts mit dem Innenabstand der Breadcrumb-/Infobereiche harmonisieren.
      Keine Aenderung an Preis-, Mengen- oder Warenkorb-Logik. */
@media (min-width: 992px) {
    #details:has(.sfp-product-detail--maschinenstretchfolie) .sfp-product-detail--maschinenstretchfolie {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

/* 4) Beschreibung / Datenblaetter wie die uebrigen SFP-Abschnittsueberschriften:
      dunkelblau, fett, aktiver Tab mit orangener Linie statt grosser blauer Flaeche. */
.sfp-product-description-col .nav-tabs {
    margin-bottom: 0;
    border-bottom: 1px solid #d8e0e6;
}

.sfp-product-description-col .nav-tabs > li {
    margin-bottom: -1px;
}

.sfp-product-description-col .nav-tabs > li > a,
.sfp-product-description-col .nav-tabs > li > a:hover,
.sfp-product-description-col .nav-tabs > li > a:focus,
.sfp-product-description-col .nav-tabs > li.active > a,
.sfp-product-description-col .nav-tabs > li.active > a:hover,
.sfp-product-description-col .nav-tabs > li.active > a:focus {
    position: relative;
    margin-right: 30px;
    padding: 0 0 11px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #244867;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.sfp-product-description-col .nav-tabs > li.active > a::after {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 2px;
    background: #a3481b;
    content: "";
}

.sfp-product-description-col .nav-tabs > li:not(.active) > a {
    color: #566b7c;
    font-weight: 600;
}

/* 5) Uneinheitlich gepflegte Alt-Beschreibungen:
      Wenn die erste Textzeile nicht als <strong>/<h*> markiert wurde,
      wird zumindest die erste sichtbare Zeile optisch wie eine Produkt-Unterueberschrift behandelt.
      Bestehende echte Ueberschriften bleiben durch die bisherigen Regeln erhalten. */
.sfp-product-description-col .tab-pane::first-line,
.sfp-product-description-col .tab-pane > p:first-child::first-line,
.sfp-product-description-col .tab-pane > div:first-child::first-line {
    color: #203d60;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

@media (max-width: 767px) {
    .sfp-product-description-col .nav-tabs > li > a,
    .sfp-product-description-col .nav-tabs > li > a:hover,
    .sfp-product-description-col .nav-tabs > li > a:focus,
    .sfp-product-description-col .nav-tabs > li.active > a,
    .sfp-product-description-col .nav-tabs > li.active > a:hover,
    .sfp-product-description-col .nav-tabs > li.active > a:focus {
        margin-right: 20px;
        font-size: 16px;
    }
}

/* ==========================================================
   V9 – EINHEITLICHE TYPOGRAFIE UND DURCHGEHENDE SEITENACHSEN
   Maschinenstretchfolie בלבד; reine Darstellungsanpassung.
   ========================================================== */

/* 1) Artikelname oben: gleiche Überschriften-Hierarchie wie Mengenstaffel,
      Beratungsboxen und weitere Produktdetail-Überschriften. */
.sfp-product-detail--maschinenstretchfolie #productTitle {
    margin-top: 0;
    margin-bottom: 14px;
}

.sfp-product-detail--maschinenstretchfolie #productTitle > span[itemprop="name"] {
    display: block;
    margin: 0 0 5px 0;
    color: #244867;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.sfp-product-detail--maschinenstretchfolie #productTitle > .text-muted {
    display: block;
    margin: 0;
    color: #7d8790;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
}

/* 2) Beschreibung / Spezifikation kompakter:
      gleiche Schriftgröße wie die übrigen Detail-Überschriften. */
.sfp-product-description-col .nav-tabs {
    padding-left: 20px;
    padding-right: 20px;
}

.sfp-product-description-col .nav-tabs > li > a,
.sfp-product-description-col .nav-tabs > li > a:hover,
.sfp-product-description-col .nav-tabs > li > a:focus,
.sfp-product-description-col .nav-tabs > li.active > a,
.sfp-product-description-col .nav-tabs > li.active > a:hover,
.sfp-product-description-col .nav-tabs > li.active > a:focus {
    margin-right: 28px;
    padding-bottom: 10px;
    font-size: 16px;
    line-height: 1.3;
}

/* 4) Einheitlicher linker UND rechter Seitenabstand durch alle
      Maschinenstretchfolien-Bereiche.
      Der rechte Rand läuft damit von Mengenbox/Vorteilen bis zu den
      unteren Beratungs- und Empfehlungsblöcken auf einer Achse. */
@media (min-width: 992px) {
    .sfp-product-detail--maschinenstretchfolie {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .sfp-product-benefits {
        width: auto;
        margin-left: 15px;
        margin-right: 15px;
        box-sizing: border-box;
    }

    .sfp-product-detail-row {
        margin-left: 0;
        margin-right: 0;
    }

    .sfp-machine-recommendations,
    .sfp-consulting-section {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* 5) Auf kleinen Displays keine unnötigen zusätzlichen Einzüge. */
@media (max-width: 767px) {
    .sfp-product-description-col .nav-tabs {
        padding-left: 15px;
        padding-right: 15px;
    }

    .sfp-product-description-col .nav-tabs > li > a,
    .sfp-product-description-col .nav-tabs > li > a:hover,
    .sfp-product-description-col .nav-tabs > li > a:focus,
    .sfp-product-description-col .nav-tabs > li.active > a,
    .sfp-product-description-col .nav-tabs > li.active > a:hover,
    .sfp-product-description-col .nav-tabs > li.active > a:focus {
        margin-right: 20px;
        font-size: 15px;
    }
}

/* ==========================================================
   V14 – BEREINIGUNG BERATUNGSBEREICH
   Wichtig: Dieses Stylesheet wird nur beim Maschinenstretchfolien-
   Template geladen. Deshalb werden die Beratungsboxen direkt ueber
   ihre Klassen gesteuert. Die wirkungslosen V10-V12-Overrides mit
   einem nicht vorhandenen .sfp-product-detail--...-Ancestor wurden
   vollstaendig entfernt.
   ========================================================== */

/* ==========================================================
   V13 – ARTIKELNAVIGATION WIEDER ROXIVE-STANDARD
   Alle SFP-Achsen-/Grid-/Flex-Aenderungen am detailsItemsPager wurden
   entfernt. Einzige Abweichung vom RoxIVE-Original:
   "Artikel X von Y" bleibt unsichtbar, seine Bootstrap-Spalte bleibt
   jedoch im Layout erhalten. Dadurch bleiben Uebersicht, Zurueck und
   naechster Artikel exakt an ihren originalen Positionen.
   ========================================================== */
@media (min-width: 768px) {
    #details:has(.sfp-product-detail--maschinenstretchfolie)
    #detailsItemsPager > .col-xs-3:nth-child(3) {
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* ==========================================================
   V15 – HANDSTRETCHFOLIE
   Nutzt bewusst dieselbe ruhige Detailseiten-Hierarchie wie
   Maschinenstretchfolie, ohne deren kg-/Preislogik zu uebernehmen.
   ========================================================== */

.sfp-hand-related,
.sfp-universal-related {
    width: 100%;
}

.sfp-hand-recommendations,
.sfp-universal-recommendations {
    clear: both;
    margin-top: 50px;
    padding-top: 2px;
}

/* Artikelname oben: gleiche Typografie wie im Maschinenlayout. */
.sfp-product-detail--handstretchfolie #productTitle,
.sfp-product-detail--universal #productTitle {
    margin-top: 0;
    margin-bottom: 14px;
}

.sfp-product-detail--handstretchfolie #productTitle > span[itemprop="name"],
.sfp-product-detail--universal #productTitle > span[itemprop="name"] {
    display: block;
    margin: 0 0 5px 0;
    color: #244867;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.sfp-product-detail--handstretchfolie #productTitle > .text-muted,
.sfp-product-detail--universal #productTitle > .text-muted {
    display: block;
    margin: 0;
    color: #7d8790;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
}

/* Einheitliche Seitenachsen fuer Handstretchfolie und Universal. */
@media (min-width: 992px) {
    .sfp-product-detail--handstretchfolie,
    .sfp-product-detail--universal {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .sfp-hand-recommendations,
    .sfp-universal-recommendations,
    .sfp-hand-related .sfp-consulting-section,
    .sfp-universal-related .sfp-consulting-section {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* RoxIVE-Artikelnavigation beibehalten; nur "Artikel X von Y" ausblenden. */
@media (min-width: 768px) {
    #details:has(.sfp-product-detail--handstretchfolie)
    #detailsItemsPager > .col-xs-3:nth-child(3),
    #details:has(.sfp-product-detail--universal)
    #detailsItemsPager > .col-xs-3:nth-child(3) {
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (max-width: 991px) {
    .sfp-hand-recommendations,
    .sfp-universal-recommendations {
        margin-top: 36px;
    }
}

@media (max-width: 767px) {
    .sfp-hand-recommendations,
    .sfp-universal-recommendations {
        margin-top: 30px;
    }
}

/* ==========================================================
   V16 – GEMEINSAME BUYBOX: HANDSTRETCHFOLIE / STRETCHMASCHINEN / UNIVERSAL
   Gleiche visuelle Hierarchie wie Maschinenstretchfolie.
   Die Einheit selbst kommt weiterhin aus der gemeinsamen productmain-Logik.
   ========================================================== */

.sfp-product-detail--handstretchfolie .information,
.sfp-product-detail--universal .information,
.sfp-product-detail--stretchmaschinen .information {
    padding: 14px;
    border: 1px solid #d6dde3;
    border-radius: 3px;
    background: #f4f6f7;
    box-shadow: 0 2px 8px rgba(36, 72, 103, 0.05);
}

.sfp-product-detail--handstretchfolie .sfp-tier-title,
.sfp-product-detail--universal .sfp-tier-title,
.sfp-product-detail--stretchmaschinen .sfp-tier-title {
    margin: 0 0 8px;
    color: #244867;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
}

.sfp-product-detail--handstretchfolie .sfp-tier-title small,
.sfp-product-detail--universal .sfp-tier-title small,
.sfp-product-detail--stretchmaschinen .sfp-tier-title small {
    color: #66717d;
    font-size: 13px;
    font-weight: 400;
}

.sfp-product-detail--handstretchfolie .sfp-tier-scroll,
.sfp-product-detail--universal .sfp-tier-scroll,
.sfp-product-detail--stretchmaschinen .sfp-tier-scroll {
    width: 100%;
}

.sfp-product-detail--handstretchfolie .sfp-tier-table,
.sfp-product-detail--universal .sfp-tier-table,
.sfp-product-detail--stretchmaschinen .sfp-tier-table {
    width: 100%;
    margin: 0 0 10px;
    border: 1px solid #d5dde7;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 12px;
}

.sfp-product-detail--handstretchfolie .sfp-tier-table th,
.sfp-product-detail--universal .sfp-tier-table th,
.sfp-product-detail--stretchmaschinen .sfp-tier-table th,
.sfp-product-detail--handstretchfolie .sfp-tier-table td,
.sfp-product-detail--universal .sfp-tier-table td,
.sfp-product-detail--stretchmaschinen .sfp-tier-table td {
    padding: 7px;
    border-right: 1px solid #dce2e8;
    border-bottom: 1px solid #dce2e8;
    vertical-align: middle;
}

.sfp-product-detail--handstretchfolie .sfp-tier-table th,
.sfp-product-detail--universal .sfp-tier-table th,
.sfp-product-detail--stretchmaschinen .sfp-tier-table th {
    color: #334760;
    background: #f8fafc;
    font-weight: 700;
}

.sfp-product-detail--handstretchfolie .sfp-tier-table th:last-child,
.sfp-product-detail--universal .sfp-tier-table th:last-child,
.sfp-product-detail--stretchmaschinen .sfp-tier-table th:last-child,
.sfp-product-detail--handstretchfolie .sfp-tier-table td:last-child,
.sfp-product-detail--universal .sfp-tier-table td:last-child,
.sfp-product-detail--stretchmaschinen .sfp-tier-table td:last-child {
    border-right: 0;
}

.sfp-product-detail--handstretchfolie .sfp-tier-table tr:last-child td,
.sfp-product-detail--universal .sfp-tier-table tr:last-child td,
.sfp-product-detail--stretchmaschinen .sfp-tier-table tr:last-child td {
    border-bottom: 0;
}

.sfp-product-detail--handstretchfolie .sfp-tier-table tbody tr,
.sfp-product-detail--universal .sfp-tier-table tbody tr,
.sfp-product-detail--stretchmaschinen .sfp-tier-table tbody tr {
    cursor: pointer;
}

.sfp-product-detail--handstretchfolie .sfp-tier-table tbody tr:hover,
.sfp-product-detail--universal .sfp-tier-table tbody tr:hover,
.sfp-product-detail--stretchmaschinen .sfp-tier-table tbody tr:hover,
.sfp-product-detail--handstretchfolie .sfp-tier-table tr.sfp-selected,
.sfp-product-detail--universal .sfp-tier-table tr.sfp-selected,
.sfp-product-detail--stretchmaschinen .sfp-tier-table tr.sfp-selected {
    background: #eaf3fb;
}

.sfp-product-detail--handstretchfolie .sfp-tier-table tr.sfp-popular,
.sfp-product-detail--universal .sfp-tier-table tr.sfp-popular,
.sfp-product-detail--stretchmaschinen .sfp-tier-table tr.sfp-popular {
    background: #fff8dc;
}

.sfp-product-detail--handstretchfolie .sfp-tier-main,
.sfp-product-detail--universal .sfp-tier-main,
.sfp-product-detail--stretchmaschinen .sfp-tier-main {
    display: block;
    font-weight: 700;
}

.sfp-product-detail--handstretchfolie .sfp-tier-sub,
.sfp-product-detail--universal .sfp-tier-sub,
.sfp-product-detail--stretchmaschinen .sfp-tier-sub {
    display: block;
    color: #66717d;
    font-size: 11px;
    line-height: 1.35;
}

.sfp-product-detail--handstretchfolie .sfp-saving,
.sfp-product-detail--universal .sfp-saving,
.sfp-product-detail--stretchmaschinen .sfp-saving {
    display: block;
    color: #438548;
    font-weight: 700;
}

.sfp-product-detail--handstretchfolie .sfp-popular-label,
.sfp-product-detail--universal .sfp-popular-label,
.sfp-product-detail--stretchmaschinen .sfp-popular-label {
    display: inline-block;
    margin-top: 3px;
    padding: 2px 6px;
    border: 1px solid #d4a958;
    border-radius: 10px;
    color: #79530f;
    background: #fffaf0;
    font-size: 9px;
    line-height: 1.25;
    white-space: nowrap;
}

.sfp-product-detail--handstretchfolie .deliverytime,
.sfp-product-detail--universal .deliverytime,
.sfp-product-detail--stretchmaschinen .deliverytime {
    margin-top: 10px;
}

/* Warenkorbzeile wie bei Maschinenstretchfolie, Eingabe bleibt Rollenanzahl. */
.sfp-product-detail--handstretchfolie .tobasketFunction,
.sfp-product-detail--universal .tobasketFunction,
.sfp-product-detail--stretchmaschinen .tobasketFunction,
.sfp-product-detail--handstretchfolie .tobasketFunction .input-group,
.sfp-product-detail--universal .tobasketFunction .input-group,
.sfp-product-detail--stretchmaschinen .tobasketFunction .input-group {
    width: 100% !important;
    max-width: 100% !important;
}

.sfp-product-detail--handstretchfolie .tobasketFunction .input-group,
.sfp-product-detail--universal .tobasketFunction .input-group,
.sfp-product-detail--stretchmaschinen .tobasketFunction .input-group {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    table-layout: auto;
}

.sfp-product-detail--handstretchfolie .tobasketFunction #amountToBasket,
.sfp-product-detail--universal .tobasketFunction #amountToBasket,
.sfp-product-detail--stretchmaschinen .tobasketFunction #amountToBasket {
    display: block;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 78px;
    flex: 0 0 78px;
    width: 78px;
    min-width: 78px;
    height: 40px;
    box-sizing: border-box;
    border-radius: 3px 0 0 3px;
}

.sfp-product-detail--handstretchfolie .tobasketFunction .input-group-btn,
.sfp-product-detail--universal .tobasketFunction .input-group-btn,
.sfp-product-detail--stretchmaschinen .tobasketFunction .input-group-btn {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 165px;
}

.sfp-product-detail--handstretchfolie #toBasket,
.sfp-product-detail--universal #toBasket,
.sfp-product-detail--stretchmaschinen #toBasket {
    display: block;
    width: 100% !important;
    min-width: 165px;
    height: 40px;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 0 3px 3px 0;
    background: #244867;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
}

.sfp-product-detail--handstretchfolie #toBasket:hover,
.sfp-product-detail--universal #toBasket:hover,
.sfp-product-detail--stretchmaschinen #toBasket:hover,
.sfp-product-detail--handstretchfolie #toBasket:focus,
.sfp-product-detail--universal #toBasket:focus,
.sfp-product-detail--stretchmaschinen #toBasket:focus {
    background: #17384f;
}

/* Desktop: Handstretchfolie ebenfalls 3 / 4 / 5 Spalten.
   Die eigentliche Spaltenverteilung kommt aus productmain.tpl;
   hier werden nur Bild- und Buybox-Proportionen ruhig gehalten. */
@media (min-width: 992px) {
    .sfp-product-detail--handstretchfolie .picture,
    .sfp-product-detail--universal .picture,
    .sfp-product-detail--stretchmaschinen .picture {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        min-height: 320px;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        border: 0;
        background: #ffffff;
    }

    .sfp-product-detail--handstretchfolie .picture img,
    .sfp-product-detail--universal .picture img,
    .sfp-product-detail--stretchmaschinen .picture img {
        width: auto;
        max-width: 100%;
        max-height: 390px;
        object-fit: contain;
    }

    .sfp-product-detail--handstretchfolie .otherPictures,
    .sfp-product-detail--universal .otherPictures,
    .sfp-product-detail--stretchmaschinen .otherPictures {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .sfp-product-detail--handstretchfolie .information,
    .sfp-product-detail--universal .information,
    .sfp-product-detail--stretchmaschinen .information {
        padding: 12px;
    }

    .sfp-product-detail--handstretchfolie .sfp-tier-title,
    .sfp-product-detail--universal .sfp-tier-title,
    .sfp-product-detail--stretchmaschinen .sfp-tier-title {
        font-size: 16px;
    }

    .sfp-product-detail--handstretchfolie .sfp-tier-title small,
    .sfp-product-detail--universal .sfp-tier-title small,
    .sfp-product-detail--stretchmaschinen .sfp-tier-title small {
        font-size: 12px;
    }

    .sfp-product-detail--handstretchfolie .sfp-tier-scroll,
    .sfp-product-detail--universal .sfp-tier-scroll,
    .sfp-product-detail--stretchmaschinen .sfp-tier-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sfp-product-detail--handstretchfolie .sfp-tier-table,
    .sfp-product-detail--universal .sfp-tier-table,
    .sfp-product-detail--stretchmaschinen .sfp-tier-table {
        min-width: 430px;
        font-size: 11px;
    }

    .sfp-product-detail--handstretchfolie .tobasketFunction #amountToBasket,
    .sfp-product-detail--universal .tobasketFunction #amountToBasket,
    .sfp-product-detail--stretchmaschinen .tobasketFunction #amountToBasket {
        -ms-flex-preferred-size: 72px;
        flex-basis: 72px;
        width: 72px;
        min-width: 72px;
    }

    .sfp-product-detail--handstretchfolie .tobasketFunction .input-group-btn,
    .sfp-product-detail--universal .tobasketFunction .input-group-btn,
    .sfp-product-detail--stretchmaschinen .tobasketFunction .input-group-btn,
    .sfp-product-detail--handstretchfolie #toBasket,
    .sfp-product-detail--universal #toBasket,
    .sfp-product-detail--stretchmaschinen #toBasket {
        min-width: 150px;
    }

    .sfp-product-detail--handstretchfolie #toBasket,
    .sfp-product-detail--universal #toBasket,
    .sfp-product-detail--stretchmaschinen #toBasket {
        padding-left: 5px;
        padding-right: 5px;
        font-size: 13px;
    }
}
/* ==========================================================
   V17 – GEMEINSAME PRODUKTDETAIL-CSS / MASCHINENSTRETCHFOLIE BUYBOX
   Sicherheitsmigration: exakt die bereits bewährten Buybox-Regeln aus
   sfp-custom.css. Die bisherigen Regeln dürfen bis nach Frontend-Abnahme
   dort zusätzlich verbleiben. Keine optische Änderung beabsichtigt.
   ========================================================== */
.sfp-product-detail--maschinenstretchfolie .information{padding:14px;border:1px solid #e5eaf0;border-radius:5px;background:linear-gradient(135deg,#f5f8fc,#edf2f8);box-shadow:0 4px 14px rgba(32,61,96,.07)}
.sfp-product-detail--maschinenstretchfolie .sfp-tier-title{margin:0 0 8px;color:#203d60;font-size:17px;font-weight:700}
.sfp-product-detail--maschinenstretchfolie .sfp-tier-title small{font-size:13px;font-weight:400}
.sfp-product-detail--maschinenstretchfolie .sfp-tier-table{width:100%;margin:0 0 10px;border:1px solid #d5dde7;border-collapse:collapse;background:#fff;font-size:12px}
.sfp-product-detail--maschinenstretchfolie .sfp-tier-table th,.sfp-product-detail--maschinenstretchfolie .sfp-tier-table td{padding:7px;border-right:1px solid #dce2e8;border-bottom:1px solid #dce2e8;vertical-align:middle}
.sfp-product-detail--maschinenstretchfolie .sfp-tier-table th{color:#334760;background:#f8fafc;font-weight:700}
.sfp-product-detail--maschinenstretchfolie .sfp-tier-table th:last-child,.sfp-product-detail--maschinenstretchfolie .sfp-tier-table td:last-child{border-right:0}
.sfp-product-detail--maschinenstretchfolie .sfp-tier-table tr:last-child td{border-bottom:0}
.sfp-product-detail--maschinenstretchfolie .sfp-tier-table tbody tr{cursor:pointer}
.sfp-product-detail--maschinenstretchfolie .sfp-tier-table tbody tr:hover,.sfp-product-detail--maschinenstretchfolie .sfp-tier-table tr.sfp-selected{background:#eaf3fb}
.sfp-product-detail--maschinenstretchfolie .sfp-tier-table tr.sfp-popular{background:#fff8dc}
.sfp-product-detail--maschinenstretchfolie .sfp-tier-main{display:block;font-weight:700}
.sfp-product-detail--maschinenstretchfolie .sfp-tier-sub{display:block;color:#66717d;font-size:11px}
.sfp-product-detail--maschinenstretchfolie .sfp-saving{color:#438548;font-weight:700}
.sfp-product-detail--maschinenstretchfolie .sfp-popular-label{display:inline-block;margin-top:3px;padding:2px 6px;border:1px solid #d4a958;border-radius:10px;color:#79530f;background:#fffaf0;font-size:9px;white-space:nowrap}
.sfp-product-detail--maschinenstretchfolie .deliverytime{margin-top:10px}
.sfp-product-detail--maschinenstretchfolie .tobasketFunction{display:block;width:100%;max-width:100%}
.sfp-product-detail--maschinenstretchfolie .tobasketFunction .input-group{display:flex!important;width:100%!important;max-width:100%!important;table-layout:auto}
.sfp-product-detail--maschinenstretchfolie .sfp-amount-field{position:relative;display:block;flex:0 0 84px;width:84px;min-width:84px;height:40px}
.sfp-product-detail--maschinenstretchfolie .sfp-amount-field #amountToBasket{display:block;box-sizing:border-box;width:100%;height:40px;padding:6px 28px 6px 9px;border-radius:3px 0 0 3px}
.sfp-product-detail--maschinenstretchfolie .sfp-amount-unit{position:absolute;top:0;right:7px;z-index:4;display:flex;align-items:center;height:40px;border:0;background:transparent;color:#59636e;font-size:13px;font-weight:600;line-height:40px;pointer-events:none;white-space:nowrap}
.sfp-product-detail--maschinenstretchfolie .tobasketFunction .input-group-btn{display:flex!important;flex:1 1 auto!important;width:auto!important;min-width:165px}
.sfp-product-detail--maschinenstretchfolie #toBasket{display:block;width:100%!important;min-width:165px;height:40px;box-sizing:border-box;padding:8px 8px;border-radius:0 3px 3px 0;background:#294a70;font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:clip}

@media(max-width:1199px){
    .sfp-product-detail--maschinenstretchfolie .sfp-amount-field{flex-basis:78px;width:78px;min-width:78px}
    .sfp-product-detail--maschinenstretchfolie .sfp-amount-field #amountToBasket{padding-left:7px;padding-right:25px}
    .sfp-product-detail--maschinenstretchfolie .sfp-amount-unit{right:5px;font-size:12px}
    .sfp-product-detail--maschinenstretchfolie .tobasketFunction .input-group-btn,.sfp-product-detail--maschinenstretchfolie #toBasket{min-width:165px}
    .sfp-product-detail--maschinenstretchfolie #toBasket{font-size:14px;padding-left:6px;padding-right:6px}
}
@media(max-width:767px){
    .sfp-product-detail--maschinenstretchfolie .sfp-tier-table{font-size:11px}
}
@media(max-width:480px){
    .sfp-product-detail--maschinenstretchfolie .sfp-amount-field{flex-basis:76px;width:76px;min-width:76px}
    .sfp-product-detail--maschinenstretchfolie .tobasketFunction .input-group-btn,.sfp-product-detail--maschinenstretchfolie #toBasket{min-width:160px}
    .sfp-product-detail--maschinenstretchfolie #toBasket{font-size:13px;padding-left:5px;padding-right:5px}
}


/* ==========================================================
   STRETCHFOLIENPROFI – Stretchmaschinen Zusatzregeln (integriert)
   Ehemals sfp-stretchmaschinen-detail.css; jetzt Bestandteil der
   gemeinsamen sfp-productdetail-components.css.
   ========================================================== */

/* Stretchmaschinen verwenden auf Desktop dieselben ruhigen Achsen
   und Titelproportionen wie die Folien-Produktdetails. */
@media (min-width: 992px) {
    .sfp-product-detail--stretchmaschinen {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    #details:has(.sfp-product-detail--stretchmaschinen)
    #detailsItemsPager > .col-xs-3:nth-child(3) {
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

.sfp-product-detail--stretchmaschinen #productTitle {
    margin-top: 0;
    margin-bottom: 14px;
}

.sfp-product-detail--stretchmaschinen #productTitle > span[itemprop="name"] {
    display: block;
    margin: 0 0 5px 0;
    color: #244867;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.sfp-product-detail--stretchmaschinen #productTitle > .text-muted {
    display: block;
    margin: 0;
    color: #7d8790;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
}

/* Beratungsbanner aus dem Stretchmaschinen-Bereich – als ruhige,
   klickbare Produktdetail-Variante. */
.sfp-stretchmachine-consulting-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 205px;
    overflow: hidden;
    border-radius: 5px;
    background: #304d6e;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(36,72,103,.10);
}

.sfp-stretchmachine-consulting-card:hover,
.sfp-stretchmachine-consulting-card:focus {
    color: #ffffff;
    text-decoration: none;
}

.sfp-stretchmachine-consulting-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1 1 64%;
    flex-direction: column;
    justify-content: center;
    padding: 28px 32px;
}

.sfp-stretchmachine-consulting-title {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
}

.sfp-stretchmachine-consulting-text {
    display: block;
    max-width: 620px;
    font-size: 16px;
    line-height: 1.45;
}

.sfp-stretchmachine-consulting-button {
    display: inline-block;
    align-self: flex-start;
    margin-top: 16px;
    padding: 10px 18px;
    border-radius: 4px;
    background: #ffffff;
    color: #244867;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.sfp-stretchmachine-consulting-image {
    position: relative;
    display: flex;
    flex: 0 0 36%;
    align-items: flex-end;
    justify-content: center;
    min-width: 250px;
    overflow: hidden;
}

.sfp-stretchmachine-consulting-image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 220px;
    margin: 0 auto;
    object-fit: contain;
    object-position: bottom center;
}

@media (max-width: 767px) {
    .sfp-stretchmachine-consulting-card {
        min-height: 0;
        flex-direction: column;
    }

    .sfp-stretchmachine-consulting-copy {
        padding: 20px;
    }

    .sfp-stretchmachine-consulting-title {
        font-size: 20px;
    }

    .sfp-stretchmachine-consulting-text {
        font-size: 14px;
    }

    .sfp-stretchmachine-consulting-image {
        flex-basis: auto;
        min-width: 0;
        min-height: 150px;
    }

    .sfp-stretchmachine-consulting-image img {
        max-height: 180px;
    }
}

/* Telefonnummer neben dem CTA im Stretchmaschinen-Beratungsbanner. */
.sfp-stretchmachine-consulting-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
.sfp-stretchmachine-consulting-actions .sfp-stretchmachine-consulting-button { margin-top: 0; }
.sfp-stretchmachine-consulting-phone {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.70);
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .sfp-stretchmachine-consulting-actions { align-items: flex-start; gap: 9px; }
    .sfp-stretchmachine-consulting-phone { font-size: 13px; }
}


/* ==========================================================
   V4 – STRETCHMASCHINEN-BERATUNGSBANNER: TELEFON KLICKBAR
   Optik bleibt unveraendert. Der Banner-Link liegt als Flaeche
   im Hintergrund; Anfrage-Button und Telefonnummer sind echte,
   getrennte Links. So ist tel: auch mobil sauber bedienbar.
   ========================================================== */
.sfp-stretchmachine-consulting-mainlink {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    text-decoration: none;
}

.sfp-stretchmachine-consulting-copy,
.sfp-stretchmachine-consulting-image {
    pointer-events: none;
}

.sfp-stretchmachine-consulting-actions {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.sfp-stretchmachine-consulting-button,
.sfp-stretchmachine-consulting-phone,
.sfp-stretchmachine-consulting-button:hover,
.sfp-stretchmachine-consulting-button:focus,
.sfp-stretchmachine-consulting-phone:hover,
.sfp-stretchmachine-consulting-phone:focus {
    text-decoration: none;
}

.sfp-stretchmachine-consulting-button:hover,
.sfp-stretchmachine-consulting-button:focus {
    background: #ffffff;
    color: #244867;
    outline: 0;
}

.sfp-stretchmachine-consulting-phone:hover,
.sfp-stretchmachine-consulting-phone:focus {
    color: #ffffff;
    border-color: #ffffff;
    outline: 0;
}

@media (max-width: 767px) {
    .sfp-stretchmachine-consulting-phone {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        box-sizing: border-box;
    }
}
