/*
 * STIERS Startseite — Tablet und Desktop
 *
 * Diese Datei wird ausschließlich auf der Startseite und mit
 * media="screen and (min-width: 768px)" eingebunden. Die mobile 402-px-
 * Figma-Fassung in rework.css bleibt dadurch vollständig unangetastet.
 */

/* ── Startseitenspezifische Tablet-/Desktop-Basis ──────────────── */
body.home {
    padding-bottom: 0;
}

/* Hero: eigenes 16:9-Motiv, Text auf der ruhigen linken Bildhälfte. */
body.home .rw-hero {
    height: clamp(700px, 86svh, 900px);
    min-height: 700px;
}

body.home .rw-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(1,1,1,.56) 0%, rgba(1,1,1,.24) 38%, rgba(1,1,1,0) 69%),
        linear-gradient(0deg, rgba(1,1,1,.54) 0%, rgba(1,1,1,0) 35%);
}

body.home .rw-hero-img {
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

body.home .rw-hero-top {
    top: clamp(145px, 19svh, 190px);
    right: auto;
    left: clamp(40px, 7vw, 112px);
    width: min(47vw, 680px);
    padding: 0;
}

body.home .rw-h1 {
    max-width: 680px;
    color: rgba(255,255,255,.94);
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: .035em;
}

body.home .rw-h1 .rw-hspan {
    max-width: 400px;
    margin-bottom: 18px;
    color: rgba(255,255,255,.7);
    font-size: 13px;
    line-height: 1.55;
}

body.home .rw-hero-bottom {
    right: auto;
    bottom: clamp(56px, 8svh, 86px);
    left: clamp(40px, 7vw, 112px);
    width: min(45vw, 510px);
    height: auto;
    padding: 0;
    text-align: left;
}

body.home .rw-hero-label {
    width: auto;
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px;
    letter-spacing: .1em;
}

body.home .rw-hero-sub {
    width: auto;
    height: auto;
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: 13px;
    line-height: 1.65;
}

body.home .rw-hero-bottom .rw-btn {
    flex-direction: row;
    justify-content: flex-start;
    width: auto;
    height: auto;
    margin: 22px 0 0;
    padding: 5px 0;
    gap: 12px;
}

body.home .rw-hero-bottom .rw-btn img {
    width: 24px;
    height: 24px;
}

/* Vertrauensleiste */
body.home .rw-trustbar {
    height: 92px;
    overflow: visible;
}

body.home .rw-trustbar-inner {
    width: min(calc(100% - 64px), 1120px);
    max-width: 1120px;
    height: 92px;
    padding: 16px 0;
    gap: 20px;
}

body.home .rw-trustbar-item {
    flex-direction: row;
    justify-content: center;
    width: auto;
    max-width: none;
    height: auto;
    gap: 12px;
    font-size: 10px;
    text-align: left;
}

body.home .rw-trustbar-item img {
    width: 34px;
    height: 34px;
    flex: none;
}

/* Warum STIERS */
body.home .rw-grid-sec {
    height: auto;
    overflow: visible;
}

body.home .rw-grid-sec .rw-inner {
    padding-top: 104px;
    padding-bottom: 116px;
}

body.home .rw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 58px;
}

body.home .rw-grid-tile {
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0 0 14px;
    text-align: left;
}

body.home .rw-grid-imgwrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

body.home .rw-grid-kicker,
body.home .rw-grid-h,
body.home .rw-grid-p {
    height: auto;
    min-height: 0;
    padding-right: 0;
    padding-left: 0;
}

body.home .rw-grid-kicker {
    margin: 18px 0 7px;
}

body.home .rw-grid-h {
    margin: 0;
    font-size: 15px;
}

body.home .rw-grid-p {
    max-width: 440px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
}

/* Die mobile Figma-Korrektur rueckt nur diese eine kurze Ueberschrift ein.
 * Im breiteren Raster beginnen alle vier Titel an derselben linken Kante. */
body.home .rw-grid-tile:nth-child(3) .rw-grid-h {
    padding-right: 0;
    padding-left: 0;
    text-align: left;
}

/* Produktkollektion: Tablet 2×2, ohne mobile Fixhöhen. */
body.home .rw-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    width: min(calc(100% - 64px), 1280px);
    height: auto;
    margin: 0 auto;
    padding: 104px 0 124px;
    overflow: visible;
    box-sizing: border-box;
}

body.home .rw-products > .rw-inner {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    height: auto;
    padding: 0 0 30px;
}

body.home .rw-products .rw-h2 {
    height: auto;
}

body.home .rw-products > .rw-pcard:first-of-type {
    margin-top: 0;
}

body.home .rw-pcard,
body.home .rw-pcard:last-of-type {
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
}

body.home .rw-pcard-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: #101010;
    border: 1px solid rgba(255,255,255,.08);
}

body.home .rw-pcard-imgwrap,
body.home .rw-pcard-imgwrap img {
    width: 100%;
    height: auto;
}

body.home .rw-pcard-imgwrap img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

body.home .rw-pcard-body,
body.home .rw-pcard:last-of-type .rw-pcard-body {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    height: auto;
    min-height: 390px;
    padding: 24px;
}

body.home .rw-pcard-toprow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    height: auto;
    align-items: start;
}

body.home .rw-pcard-name,
body.home .rw-pcard-ml,
body.home .rw-pcard-price,
body.home .rw-pcard-tax,
body.home .rw-pcard-price--out {
    width: auto;
    height: auto;
    line-height: inherit;
}

body.home .rw-pcard-name {
    white-space: normal;
}

body.home .rw-pcard-priceblock {
    width: auto;
    min-width: 110px;
}

body.home .rw-pcard-price--out {
    align-self: start;
    justify-self: end;
}

body.home .rw-pcard-claim {
    margin-top: 18px;
}

body.home .rw-pcard-desc {
    font-size: 12.5px;
    line-height: 1.6;
}

body.home .rw-pcard .rw-checks {
    margin-bottom: 12px;
}

body.home .rw-pcard-buyrow,
body.home .rw-pcard--out .rw-pcard-buyrow {
    position: static;
    width: 100%;
    height: auto;
    margin-top: auto;
    padding-top: 22px;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

body.home .rw-pcard-buyrow .rw-pcard-meta,
body.home .rw-pcard-buyrow .rw-btn {
    width: auto;
    padding-top: 0;
}

body.home .rw-pcard-buyrow .rw-pcard-meta {
    flex: 1 1 auto;
}

body.home .rw-pcard-buyrow .rw-btn {
    flex: 0 0 auto;
    height: 48px;
    padding: 13px 22px;
}

body.home .rw-pcard-notify {
    position: static;
    width: 100%;
    height: 48px;
    margin: 12px 0 0;
}

/* Drei Schritte als lesbare horizontale Sequenz. */
body.home .rw-ritual {
    height: auto;
    overflow: visible;
    background: #0b0a09;
}

body.home .rw-ritual .rw-inner {
    padding-top: 104px;
    padding-bottom: 112px;
}

body.home .rw-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px;
    margin: 62px 0 0;
}

body.home .rw-step {
    display: block;
    min-height: 220px;
    padding: 28px 0 0;
    border-top: 1px solid rgba(255,255,255,.2);
}

body.home .rw-step > * {
    transform: none;
}

body.home .rw-step-num {
    display: block;
    width: auto;
    margin-bottom: 34px;
    font-size: 62px;
    color: rgba(255,255,255,.2);
}

body.home .rw-step-h {
    margin-bottom: 9px;
    font-size: 14px;
}

body.home .rw-step-p {
    max-width: 330px;
    color: rgba(255,255,255,.58);
    font-size: 13px;
    line-height: 1.65;
}

/* Kundenstimmen */
body.home .rw-proof {
    height: auto;
    overflow: visible;
}

body.home .rw-proof .rw-inner {
    padding-top: 104px;
    padding-bottom: 112px;
}

body.home .rw-proof .rw-h2 {
    margin: 0 0 56px;
}

body.home .rw-proof-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 860px;
    margin: 0 auto;
}

body.home .rw-proof-card {
    width: 100%;
    height: auto;
    min-height: 154px;
    padding: 28px 32px;
    gap: 24px;
    border-radius: 2px;
}

body.home .rw-proof-quote {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.65;
}

/* Rückgabeversprechen + Inhaltsstoffe als Split-Layout. */
body.home .rw-risiko {
    height: auto;
    overflow: visible;
    background: #0b0a09;
}

body.home .rw-risiko .rw-inner {
    /* rework.css setzt fuer diese Sektion max-width:402px und height:874px mit
       Spezifitaet (0,2,0). Solange die gemeinsame Basis auf body.home gescoped
       war, fing sie beides ab; das ungescopte .rw-inner (0,1,0) tut es nicht
       mehr. Ohne diese Ruecksetzung bleibt die Sektion eine 402-px-Spalte und
       das Zutatenbild wird bei 768 px um 121 px beschnitten. */
    max-width: none;
    height: auto;
    display: grid;
    grid-template:
        "heading image" auto
        "copy    image" auto
        "checks  image" 1fr
        / minmax(250px, .8fr) minmax(390px, 1.2fr);
    column-gap: clamp(32px, 6vw, 90px);
    min-height: 760px;
    padding-top: 92px;
    padding-bottom: 92px;
}

body.home .rw-risiko .rw-h2 {
    grid-area: heading;
    align-self: end;
    margin: 0 0 34px;
    text-align: left;
}

body.home .rw-risiko-p {
    grid-area: copy;
    max-width: 390px;
    margin: 0 0 38px;
    font-size: 13px;
    line-height: 1.75;
    text-align: left;
}

body.home .rw-ing-imgwrap {
    position: relative;
    inset: auto;
    grid-area: image;
    align-self: center;
    width: min(100%, 520px);
    margin: 0 auto;
}

body.home .rw-ing-img {
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
}

body.home .rw-ing-imgwrap .rw-ing-item {
    width: 31%;
    max-width: 145px;
}

body.home .rw-ing-imgwrap .rw-ing-item--1 {
    top: 38.9%;
    left: 3%;
}

body.home .rw-ing-imgwrap .rw-ing-item--2 {
    top: 43%;
    right: 6%;
    left: auto;
}

body.home .rw-ing-imgwrap .rw-ing-item--3 {
    top: 64.9%;
    left: 5.5%;
}

body.home .rw-ing-imgwrap .rw-ing-item--4 {
    top: 69%;
    right: 5%;
    left: auto;
}

body.home .rw-ing-imgwrap .rw-ing-name,
body.home .rw-ing-imgwrap .rw-ing-role {
    height: auto;
}

body.home .rw-risiko .rw-checks {
    position: static;
    grid-area: checks;
    align-self: start;
    width: auto;
    margin: 0;
}

body.home .rw-risiko .rw-checks li {
    font-size: 13px;
    line-height: 1.7;
}

/* FAQ */
body.home .rw-faq,
body.home .rw-faq:has(details[open]) {
    height: auto;
    overflow: visible;
}

body.home .rw-faq .rw-inner {
    max-width: 1040px;
    padding-top: 112px;
    padding-bottom: 116px;
}

body.home .rw-faq-list {
    gap: 0;
    margin-top: 62px;
}

body.home .rw-faq-item {
    border-top: 1px solid rgba(255,255,255,.12);
}

body.home .rw-faq-item:last-child {
    border-bottom: 1px solid rgba(255,255,255,.12);
}

body.home .rw-faq-q {
    min-height: 0;
    padding: 24px 48px;
    font-size: 14px;
    line-height: 1.6;
}

body.home .rw-faq-q::before {
    top: 35px;
    width: 28px;
}

body.home .rw-faq-a {
    max-width: 800px;
    padding: 0 48px 28px;
    font-size: 13px;
    line-height: 1.75;
}

/* Abschluss: Hochformatmotiv als Bildhälfte statt verlustreichem Vollbild-Crop. */
body.home .rw-final {
    display: grid;
    grid-template-columns: minmax(330px, 1fr) minmax(390px, .9fr);
    height: auto;
    min-height: 720px;
}

body.home .rw-final-imgwrap {
    position: relative;
    inset: auto;
    grid-column: 1;
    height: auto;
    min-height: 720px;
}

body.home .rw-final-imgwrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center bottom;
}

body.home .rw-final-fade {
    top: 0;
    bottom: 0;
    height: auto;
    background: linear-gradient(90deg, rgba(1,1,1,0) 68%, rgba(1,1,1,1) 100%);
}

body.home .rw-final-inner {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: auto;
    max-width: none;
    padding: 72px clamp(42px, 6vw, 92px) 100px clamp(32px, 5vw, 78px);
    text-align: left;
}

body.home .rw-final-sub {
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.75;
}

body.home .rw-final-badges {
    width: 100%;
    height: auto;
    margin: 38px 0;
    gap: 16px;
}

body.home .rw-final-badges li {
    align-items: center;
    text-align: center;
}

body.home .rw-final .rw-btn {
    width: 100%;
    max-width: 520px;
    margin: 0 0 12px;
    box-sizing: border-box;
}

body.home .rw-final-inner > .rw-btn:nth-of-type(1),
body.home .rw-final-inner > .rw-btn:nth-of-type(2) {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

/* Footer */
body.home footer.wp-block-group {
    margin-bottom: 108px;
}

/* Kaufleiste und Warenkorb bleiben erreichbar, blockieren aber keinen Inhalt. */
body.home .rw-sticky {
    right: auto;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    width: min(calc(100% - 48px), 720px);
    padding: 10px 12px 10px 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 44px;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
}

body.home .rw-sticky.stiers-home-sticky-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Breiter Desktop ab 1100 px ─────────────────────────────────── */
@media (min-width: 1100px) {
    body.home .rw-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }

    body.home .rw-grid-imgwrap img {
        aspect-ratio: 4 / 5;
    }

    body.home .rw-pcard-panel {
        display: grid;
        grid-template-columns: minmax(220px, .9fr) minmax(300px, 1.1fr);
    }

    body.home .rw-pcard-imgwrap,
    body.home .rw-pcard-imgwrap img {
        height: 100%;
    }

    body.home .rw-pcard-imgwrap img {
        aspect-ratio: auto;
    }

    body.home .rw-pcard-body,
    body.home .rw-pcard:last-of-type .rw-pcard-body {
        min-height: 450px;
    }

    body.home .rw-proof-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }
}

/* Große Desktops: etwas mehr Raum im Hero, ohne die Bildkomposition zu ändern. */
@media (min-width: 1500px) {
    body.home .rw-hero {
        min-height: 820px;
    }

    body.home .rw-products {
        max-width: 1400px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home .rw-sticky {
        transition: none;
    }
}
