/* ==========================================================================
   SAPOR-Elemente (WPBakery): Marke, Prinzip, Spender, Team
   Wird nur auf Seiten geladen, die eines der Elemente enthalten – unabhängig
   vom Schalter „Vorschau/Für alle“ (der gilt für die seitenweite Gestaltung
   in redesign.css). Selektoren mit „:root body“ haben dieselbe Stärke wie
   „body.sapor-rd“, damit die Regeln auch mit eingeschaltetem Redesign greifen.
   ========================================================================== */

:root body :is(.sapor-rd-marke, .sapor-rd-prinzip, .sapor-rd-spender, .sapor-rd-team) {
    --rd-text: #161616;
    --rd-grau: #5f5f5f;
    --rd-linie: #e2ddd5;
    --rd-flaeche: #f3efe9;
    --rd-kopf: "Oswald", sans-serif;
    --rd-lauf: "Open Sans", sans-serif;
    --rd-rand: clamp(20px, 4vw, 56px);
}

/* --------------------------------------------------------------------------
   5b. Startseite: Markenaufbau (Vorlage cs, 01.12.2026) unter dem Laufband.
       Ersetzt im Redesign den bisherigen Waterless-Kachelblock (.sapor-wl),
       damit Hand/Hair/Body/Home nicht doppelt erscheinen.
   -------------------------------------------------------------------------- */
:root body.sapor-hat-marke .sapor-wl { display: none !important; }

:root body .sapor-rd-marke {
    padding: clamp(48px, 7vw, 96px) var(--rd-rand) clamp(40px, 6vw, 80px);
    background: #fff;
    position: relative;
    z-index: 2;
}

:root body .sapor-rd-marke .sapor-rd-marke__in { max-width: 1100px; margin: 0 auto; }

:root body .edgtf-content .sapor-rd-marke p { margin: 0; }

:root body .sapor-rd-marke .sapor-rd-marke__kopf {
    background: #000;
    color: #fff;
    border-radius: 18px;
    padding: clamp(28px, 4vw, 48px) 24px;
    text-align: center;
}

:root body .sapor-rd-marke .sapor-rd-marke__name {
    font: 700 clamp(34px, 4vw, 52px)/1.22 var(--rd-kopf);
    letter-spacing: .04em;
    color: #fff;
}

:root body .sapor-rd-marke .sapor-rd-marke__claim {
    margin-top: 6px !important;
    font: 700 clamp(22px, 2.4vw, 32px)/1.2 var(--rd-kopf);
    text-transform: uppercase;
    color: #fff;
}

:root body .sapor-rd-marke .sapor-rd-marke__unter {
    margin-top: 12px !important;
    font: 400 16px/1.5 var(--rd-lauf);
    color: #cfcfcf;
}

/* Äste vom Kopf zu den vier Bereichen */
:root body .sapor-rd-marke .sapor-rd-marke__aeste {
    position: relative;
    height: 40px;
    margin: 0 12.5%;
    border-top: 1px solid #000;
    transform: translateY(20px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

:root body .sapor-rd-marke .sapor-rd-marke__aeste::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -21px;
    height: 20px;
    border-left: 1px solid #000;
}

:root body .sapor-rd-marke .sapor-rd-marke__aeste span {
    border-left: 1px solid #000;
    height: 20px;
}

:root body .sapor-rd-marke .sapor-rd-marke__aeste span:last-child {
    position: absolute;
    right: 0;
    top: 0;
}

:root body .sapor-rd-marke .sapor-rd-marke__bereiche {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

:root body .sapor-rd-marke a.sapor-rd-marke__bereich {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 30px 14px 26px;
    border-radius: 18px;
    color: #000 !important;
    text-decoration: none !important;
    text-align: center;
    transition: transform .25s ease;
}

:root body .sapor-rd-marke a.sapor-rd-marke__bereich:hover,
:root body .sapor-rd-marke a.sapor-rd-marke__bereich:focus-visible { transform: translateY(-3px); }

:root body .sapor-rd-marke .sapor-rd-marke__bereich--hand { background: #e6dfd2; }
:root body .sapor-rd-marke .sapor-rd-marke__bereich--hair { background: #d6e6ee; }
:root body .sapor-rd-marke .sapor-rd-marke__bereich--body { background: #eac7b5; }
:root body .sapor-rd-marke .sapor-rd-marke__bereich--home { background: #dce0cb; }

:root body .sapor-rd-marke .sapor-rd-marke__bereich svg {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
    fill: none;
    stroke: #000;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:root body .sapor-rd-marke .sapor-rd-marke__bereich strong {
    font: 700 clamp(24px, 2.2vw, 30px)/1.22 var(--rd-kopf);
    text-transform: uppercase;
}

:root body .sapor-rd-marke .sapor-rd-marke__bereich span { font: 400 16px/1.4 var(--rd-lauf); }

:root body .sapor-rd-marke .sapor-rd-marke__bereich em {
    margin-top: 8px;
    font: 500 14px/1.3 var(--rd-kopf);
    font-style: normal;
    letter-spacing: .06em;
    text-transform: uppercase;
}

:root body .sapor-rd-marke .sapor-rd-marke__technik {
    margin-top: 16px;
    padding: 22px 20px;
    border: 1px solid #000;
    border-radius: 18px;
    text-align: center;
}

:root body .sapor-rd-marke .sapor-rd-marke__zweige {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

:root body .sapor-rd-marke .sapor-rd-marke__zweig {
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--rd-flaeche);
}

:root body .sapor-rd-marke .sapor-rd-marke__titel {
    font: 700 clamp(19px, 1.7vw, 23px)/1.2 var(--rd-kopf);
    text-transform: uppercase;
    color: #000;
}

:root body .sapor-rd-marke .sapor-rd-marke__liste {
    margin-top: 6px !important;
    font: 400 16px/1.5 var(--rd-lauf);
    color: var(--rd-text);
}

@media (max-width: 767px) {
    :root body .sapor-rd-marke .sapor-rd-marke__aeste { display: none; }
    :root body .sapor-rd-marke .sapor-rd-marke__bereiche { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
    :root body .sapor-rd-marke a.sapor-rd-marke__bereich { padding: 22px 10px 20px; }
    :root body .sapor-rd-marke .sapor-rd-marke__bereich span { font-size: 14px; }
    :root body .sapor-rd-marke .sapor-rd-marke__bereich em { font-size: 12px; }
    :root body .sapor-rd-marke .sapor-rd-marke__technik,
    :root body .sapor-rd-marke .sapor-rd-marke__zweige { margin-top: 12px; }
    :root body .sapor-rd-marke .sapor-rd-marke__zweige { grid-template-columns: 1fr; gap: 12px; }
    :root body .sapor-rd-marke .sapor-rd-marke__liste { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    :root body .sapor-rd-marke a.sapor-rd-marke__bereich { transition: none; }
}

/* --------------------------------------------------------------------------
   5c. Startseite: Prinzip-, Spender- und Teambereich (Prototyp 30.11.2026,
       ohne Kennzeile über der Überschrift). Ersetzen den Textblock nach dem
       Laufband, das Produktraster und „Team Klack“.
       Schrift wie im Rest der Seite: Überschrift wie h2 (Oswald 700, bis 80 px,
       Zeilenabstand 1,22), Text Open Sans 18 px, Auszeichnungen Oswald 700 ohne
       Sperrung (wie h4–h6 bei Manon).
   -------------------------------------------------------------------------- */
:root body .sapor-rd-prinzip,
:root body .sapor-rd-spender,
:root body .sapor-rd-team {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: clamp(64px, 8vw, 120px) var(--rd-rand);
}

:root body .sapor-rd-prinzip__in,
:root body .sapor-rd-spender__in,
:root body .sapor-rd-team__in { max-width: 1300px; margin: 0 auto; }

:root body .edgtf-content :is(.sapor-rd-prinzip, .sapor-rd-spender, .sapor-rd-team) p { margin: 0; max-width: none; }

:root body .sapor-rd-kopfzeile {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: clamp(36px, 4vw, 56px);
}

:root body .sapor-rd-kopfzeile__rechts { display: grid; gap: 22px; justify-items: start; }

:root body .edgtf-content :is(.sapor-rd-prinzip, .sapor-rd-spender, .sapor-rd-team) .sapor-rd-titel {
    margin: 0;
    font: 700 clamp(40px, 5.4vw, 80px)/1.22 var(--rd-kopf);
    text-transform: uppercase;
    color: #000;
    text-wrap: balance;
}

:root body .edgtf-content :is(.sapor-rd-prinzip, .sapor-rd-spender, .sapor-rd-team) .sapor-rd-lead {
    max-width: 52ch;
    font: 400 18px/1.62 var(--rd-lauf);
    color: var(--rd-text);
}

/* „Alle Produkte →“: wie die kleinen Oswald-Zeilen der Seite (h6), mit Strich darunter */
:root body :is(.sapor-rd-prinzip, .sapor-rd-spender, .sapor-rd-team) .sapor-rd-pfeil {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 4px;
    border-bottom: 2px solid currentColor;
    font: 700 17px/1.3 var(--rd-kopf);
    letter-spacing: normal;
    text-transform: uppercase;
    text-decoration: none !important;
    color: #000;
}

:root body :is(.sapor-rd-prinzip, .sapor-rd-spender, .sapor-rd-team) .sapor-rd-pfeil::after { content: "→"; transition: transform .25s; }
:root body :is(.sapor-rd-prinzip, .sapor-rd-spender, .sapor-rd-team) a.sapor-rd-pfeil:hover::after { transform: translateX(5px); }

/* Prinzip: drei Schritte mit Flaky */
:root body .sapor-rd-prinzip__schritte {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

:root body .sapor-rd-prinzip__schritt {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 28px 32px;
    background: var(--rd-flaeche);
    transition: border-radius .4s;
}

:root body .sapor-rd-prinzip__schritt:hover { border-radius: 28px; }

:root body .sapor-rd-prinzip__bild { display: block; aspect-ratio: 1; margin: -8px -8px 4px; overflow: hidden; }
:root body .sapor-rd-prinzip__bild img { display: block; width: 100%; height: 100% !important; object-fit: contain; mix-blend-mode: multiply; }

:root body .sapor-rd-prinzip__nr { font: 700 17px/1.3 var(--rd-kopf); color: var(--rd-grau); }

:root body .edgtf-content .sapor-rd-prinzip .sapor-rd-prinzip__name {
    margin: 0;
    font: 700 clamp(27px, 2.4vw, 34px)/1.22 var(--rd-kopf);
    text-transform: uppercase;
    color: #000;
}

:root body .edgtf-content .sapor-rd-prinzip__schritt p { font: 400 18px/1.62 var(--rd-lauf); color: var(--rd-text); max-width: 34ch; }

/* Spender nebeneinander (Anzahl aus --rd-spalten), Namen immer sichtbar */
:root body .sapor-rd-spender__raster {
    display: grid;
    grid-template-columns: repeat(var(--rd-spalten, 5), minmax(0, 1fr));
    gap: 14px;
}

:root body .sapor-rd-spender__karte {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    color: #000;
    text-decoration: none !important;
}

:root body .sapor-rd-spender__bild {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--rd-flaeche);
    transition: border-radius .4s;
}

:root body .sapor-rd-spender__bild img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

:root body .sapor-rd-spender__karte:hover .sapor-rd-spender__bild { border-radius: 24px; }
:root body .sapor-rd-spender__karte:hover .sapor-rd-spender__bild img { transform: scale(1.04); }

/* Name wie h4 der Seite */
:root body .sapor-rd-spender__name {
    display: block;
    font: 700 27px/1.28 var(--rd-kopf);
    text-transform: uppercase;
    color: #000;
}

/* Team & Ort: großes Foto links, Text, Zeichnungen und Anschrift rechts */
:root body .sapor-rd-team__in {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

:root body .sapor-rd-team__foto { overflow: hidden; }
:root body .sapor-rd-team__foto img { display: block; width: 100%; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; }

:root body .edgtf-content .sapor-rd-team__text .sapor-rd-lead { margin-top: 22px; }

:root body .sapor-rd-team__leute {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

:root body .sapor-rd-team__person { display: grid; gap: 4px; }

:root body .sapor-rd-team__portrait {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--rd-linie);
    margin-bottom: 8px;
}

:root body .sapor-rd-team__portrait img { display: block; width: 100%; height: 100% !important; object-fit: cover; }

/* Name wie h5, Funktion wie Fließtext */
:root body .sapor-rd-team__person strong { font: 700 22px/1.28 var(--rd-kopf); text-transform: uppercase; color: #000; }
:root body .sapor-rd-team__person strong + span { font: 400 16px/1.5 var(--rd-lauf); color: var(--rd-grau); }

:root body .sapor-rd-team__adresse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--rd-linie);
    font: 400 16px/1.62 var(--rd-lauf);
    color: var(--rd-text);
}

/* „Besuch“/„Kontakt“ wie h6 der Seite */
:root body .sapor-rd-team__adresse b {
    display: block;
    margin-bottom: 6px;
    font: 700 17px/1.3 var(--rd-kopf);
    text-transform: uppercase;
    color: #000;
}

:root body .sapor-rd-team__adresse a:not(.sapor-rd-pfeil) { color: inherit; text-decoration: none; }
:root body .sapor-rd-team__adresse .sapor-rd-pfeil { margin-top: 12px; }

@media (max-width: 1100px) {
    :root body .sapor-rd-spender__raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    :root body .sapor-rd-spender__raster[style*="--rd-spalten: 4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    :root body .sapor-rd-kopfzeile,
    :root body .sapor-rd-team__in,
    :root body .sapor-rd-prinzip__schritte { grid-template-columns: 1fr; }
    :root body .sapor-rd-prinzip__bild { max-width: 360px; }
}

@media (max-width: 640px) {
    :root body .sapor-rd-spender__raster,
    :root body .sapor-rd-spender__raster[style*="--rd-spalten: 4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
    :root body .sapor-rd-spender__name { font-size: 21px; }
    :root body .edgtf-content :is(.sapor-rd-prinzip, .sapor-rd-spender, .sapor-rd-team) .sapor-rd-titel { font-size: clamp(32px, 9.6vw, 44px); }
    :root body .edgtf-content :is(.sapor-rd-prinzip, .sapor-rd-spender, .sapor-rd-team) .sapor-rd-lead,
    :root body .edgtf-content .sapor-rd-prinzip__schritt p { font-size: 16px; }
    :root body .sapor-rd-prinzip__schritte { gap: 12px; }
    :root body .sapor-rd-prinzip__schritt {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        grid-template-rows: auto auto 1fr;
        column-gap: 16px;
        row-gap: 4px;
        padding: 16px;
    }
    :root body .sapor-rd-prinzip__bild { grid-row: 1 / 4; margin: 0; align-self: start; }
    :root body .edgtf-content .sapor-rd-prinzip .sapor-rd-prinzip__name { font-size: 24px; }
    :root body .edgtf-content .sapor-rd-prinzip__schritt p { font-size: 15px; line-height: 1.55; }
    :root body .sapor-rd-team__adresse { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    :root body :is(.sapor-rd-spender__bild, .sapor-rd-spender__bild img, .sapor-rd-prinzip__schritt) { transition: none; }
}


/* --------------------------------------------------------------------------
   Videobereich („Play“) der Startseite: Hintergrundbild über die ganze Breite,
   mittig. Die Regel stand bisher als <style> im Raw-HTML des Waterless-Blocks
   (DE-Einleitungsabschnitt). Der Abschnitt ist auf der neuen Startseite durch
   „SAPOR Marke + Prinzip“ ersetzt – deshalb steht sie jetzt hier, unverändert.
   -------------------------------------------------------------------------- */
.edgtf-parallax-row-holder[data-parallax-bg-image*="sapor-waterless-flocken-logo"] {
    background-size: cover !important;
    background-position: center center !important;
}
