/* ========================================================================
   OSCHWALD Vorlagen – Bausteine der Privatkunden-Seiten
   (Bodenbelaege, Wohnideen, Seiten/Referenzen/Ueber uns)
   Haengt ab von vorlagen-sektionen.css. Gescopet auf .oschwald-privat; der
   Wrapper traegt z. B. "oschwald-b2b oschwald-privat oschwald-boden".
   Bisher stand dieser Teil als Kopie in bodenbelaege.css (.oschwald-boden),
   wohnideen.css (.oschwald-wohnen) und seiten.css (.oschwald-seite).
   ======================================================================== */

/* ===== HERO =====
   Das Bild kommt pro Seite als Custom Property am <section>:
   <section class="hero" style="--hero-bild: url('/wp-content/uploads/...');">
   Ohne eigenes Bild gilt --hero-bild-standard aus der Gruppen-CSS. */
.oschwald-privat .hero {
    min-height: 66vh;
    background:
        linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.42) 55%, rgba(0,0,0,0.12) 100%),
        var(--hero-bild, var(--hero-bild-standard));
    background-size: cover;
    background-position: var(--hero-position, center);
}

.oschwald-privat .hero-inner {
    grid-template-columns: 1fr;
}

.oschwald-privat .hero-content {
    max-width: 720px;
}

.oschwald-privat .hero-subtitle {
    max-width: 620px;
}

.oschwald-privat .hero-subtitle a {
    color: var(--white);
    text-decoration: underline;
}

/* ===== FLIESSTEXT in Inhaltsbloecken ===== */
.oschwald-privat .rich h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--text-dark);
}

.oschwald-privat .rich h3:first-child {
    margin-top: 0;
}

.oschwald-privat .rich p {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 16px;
}

.oschwald-privat .rich h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 20px 0 8px;
    color: var(--text-dark);
}

.oschwald-privat .rich ol,
.oschwald-privat .rich ul:not(.check-liste) {
    margin: 0 0 20px;
    padding-left: 1.4em;
    color: var(--text-medium);
    line-height: 1.6;
}

.oschwald-privat .rich ol li,
.oschwald-privat .rich ul:not(.check-liste) li {
    margin-bottom: 8px;
}

.oschwald-privat .rich p strong,
.oschwald-privat .rich li strong {
    color: var(--text-dark);
}

.oschwald-privat .rich a:not(.btn),
.oschwald-privat .faq-body a,
.oschwald-privat .intro-text a,
.oschwald-privat .leistung-card a,
.oschwald-privat .reference-content p a {
    color: var(--oschwald-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.oschwald-privat .rich a:not(.btn):hover,
.oschwald-privat .faq-body a:hover,
.oschwald-privat .intro-text a:hover,
.oschwald-privat .leistung-card a:hover {
    color: var(--oschwald-green-dark);
}

/* Liste mit gruenen Haken */
.oschwald-privat .check-liste {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oschwald-privat .check-liste li {
    position: relative;
    padding-left: 32px;
    color: var(--text-medium);
    line-height: 1.6;
}

.oschwald-privat .check-liste li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: url('/wp-content/uploads/assets/heroicons/check-circle.svg') center / contain no-repeat;
    filter: invert(42%) sepia(15%) saturate(1200%) hue-rotate(50deg) brightness(95%) contrast(90%);
}

/* ===== INHALTSBLOCK: Text + Bild =====
   <section class="inhalt [inhalt--grau] [inhalt--bild-links]"> */
.oschwald-privat .inhalt {
    padding: clamp(40px, 8vw, 80px) 24px;
    background: var(--white);
}

.oschwald-privat .inhalt--grau {
    background: var(--bg-light);
}

.oschwald-privat .inhalt-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.oschwald-privat .inhalt-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(32px, 5vw, 60px);
    align-items: start;
}

.oschwald-privat .inhalt-grid > *,
.oschwald-privat .intro-grid > * {
    /* Grid-Spalten duerfen schmaler werden als breite Tabellen darin */
    min-width: 0;
}

.oschwald-privat .inhalt-grid--mittig {
    align-items: center;
}

.oschwald-privat .inhalt--bild-links .inhalt-grid {
    grid-template-columns: 0.9fr 1.1fr;
}

.oschwald-privat .inhalt--bild-links .inhalt-bild {
    order: -1;
}

.oschwald-privat .inhalt-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.oschwald-privat .inhalt-unten {
    margin-top: clamp(32px, 5vw, 48px);
}

.oschwald-privat .inhalt-schmal {
    max-width: 820px;
    margin: 0 auto;
}

.oschwald-privat .inhalt-bild {
    position: sticky;
    top: 120px;
}

.oschwald-privat .inhalt-bild img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.oschwald-privat .inhalt-bild figcaption {
    font-size: 13px;
    color: var(--text-medium);
    margin-top: 10px;
    text-align: center;
}

/* ===== TABELLE ===== */
.oschwald-privat .tabelle-wrap {
    overflow-x: auto;
    margin: 8px 0 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    -webkit-overflow-scrolling: touch;
}

.oschwald-privat .tabelle {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    background: var(--white);
    font-size: 15px;
    margin: 0;
}

.oschwald-privat .tabelle th,
.oschwald-privat .tabelle td {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: auto;
}

.oschwald-privat .tabelle th {
    background: var(--oschwald-green);
    color: var(--white);
    font-weight: 600;
    text-align: left;
    padding: 14px 18px;
    border: none;
}

.oschwald-privat .tabelle td {
    padding: 14px 18px;
    color: var(--text-medium);
    border: none;
    border-bottom: 1px solid #ececec;
    vertical-align: top;
    line-height: 1.5;
}

.oschwald-privat .tabelle tr:last-child td {
    border-bottom: none;
}

.oschwald-privat .tabelle tbody tr:nth-child(even) td {
    background: #fafbf8;
}

.oschwald-privat .tabelle td:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== KARTEN mit Link (Bodenarten, Weiterlesen) ===== */
.oschwald-privat a.bodenart-card {
    color: inherit;
    text-decoration: none;
}

.oschwald-privat a.bodenart-card:hover h3 {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.oschwald-privat .bodenart-mehr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--oschwald-green);
    font-weight: 600;
    font-size: 14px;
}

.oschwald-privat .bodenart-mehr::after {
    content: '\2192';
    transition: transform 0.2s ease;
}

.oschwald-privat a.bodenart-card:hover .bodenart-mehr::after {
    transform: translateX(4px);
}

.oschwald-privat .bodenarten--grau {
    background: var(--bg-light);
}

.oschwald-privat .bodenarten--grau .bodenart-card {
    background: var(--white);
}

.oschwald-privat .bodenarten-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.oschwald-privat .bodenarten-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.oschwald-privat .bodenart-content p:last-child {
    margin-bottom: 0;
}

/* Leistungs-Karten: 2 oder 4 Spalten */
.oschwald-privat .leistungen-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.oschwald-privat .leistungen-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.oschwald-privat .leistungen--weiss {
    background: var(--white);
}

.oschwald-privat .leistungen--weiss .leistung-card {
    background: var(--bg-light);
    box-shadow: none;
}

/* Prozess: 4 Schritte, mit Modifier 3 oder 5 */
.oschwald-privat .prozess-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 20px;
}

.oschwald-privat .prozess-timeline--3 {
    grid-template-columns: repeat(3, 1fr);
}

.oschwald-privat .prozess-timeline--5 {
    grid-template-columns: repeat(5, 1fr);
}

/* ===== GALERIE mit Lightbox ===== */
.oschwald-privat .galerie {
    padding: clamp(40px, 8vw, 80px) 24px;
    background: var(--white);
}

.oschwald-privat .galerie--grau {
    background: var(--bg-light);
}

.oschwald-privat .galerie-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.oschwald-privat .galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.oschwald-privat .galerie-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.oschwald-privat .galerie-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.oschwald-privat .galerie-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
}

.oschwald-privat .galerie-item a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.oschwald-privat .galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.oschwald-privat .galerie-item a:hover img {
    transform: scale(1.05);
}

.oschwald-privat .galerie-item figcaption,
.oschwald-privat .inhalt-bild figcaption {
    font-style: normal;
}

.oschwald-privat .galerie-item figcaption {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.45;
}

.oschwald-privat .galerie-item figcaption strong {
    display: block;
    color: var(--text-dark);
    font-size: 15px;
    margin-bottom: 2px;
}

.oschwald-privat .bildnachweis {
    font-size: 12px;
    color: var(--text-medium);
    margin-top: 16px;
    text-align: center;
}

/* Lightbox (wird per JS erzeugt) */
:is(.boden-lightbox, .wohnen-lightbox, .seite-lightbox) {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

:is(.boden-lightbox, .wohnen-lightbox, .seite-lightbox).offen {
    display: flex;
}

:is(.boden-lightbox, .wohnen-lightbox, .seite-lightbox) img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

:is(.boden-lightbox-text, .wohnen-lightbox-text, .seite-lightbox-text) {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 15px;
    padding: 0 60px;
}

:is(.boden-lightbox, .wohnen-lightbox, .seite-lightbox) button {
    position: absolute;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

:is(.boden-lightbox, .wohnen-lightbox, .seite-lightbox) button:hover {
    background: rgba(255,255,255,0.25);
}

:is(.boden-lightbox, .wohnen-lightbox, .seite-lightbox) .lb-zu { top: 20px; right: 20px; }
:is(.boden-lightbox, .wohnen-lightbox, .seite-lightbox) .lb-zurueck { left: 20px; top: 50%; transform: translateY(-50%); }
:is(.boden-lightbox, .wohnen-lightbox, .seite-lightbox) .lb-vor { right: 20px; top: 50%; transform: translateY(-50%); }

/* ===== VIDEO (Borlabs-Content-Blocker) ===== */
.oschwald-privat .video-box {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    background: #000;
}

.oschwald-privat .video-box iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

.oschwald-privat .video-box .brlbs-cmpnt-container {
    aspect-ratio: 16 / 9;
}

/* Selbst gehostete Videos (MP4 aus der Mediathek) */
.oschwald-privat .video-box video {
    display: block;
    width: 100%;
    height: auto;
}

.oschwald-privat .video-box--hoch {
    max-width: 360px;
    margin: 0 auto;
}

.oschwald-privat .video-box--hoch iframe,
.oschwald-privat .video-box--hoch .brlbs-cmpnt-container {
    aspect-ratio: 9 / 16;
}

/* ===== MARKEN-LEISTE ===== */
.oschwald-privat .marken-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    align-items: center;
    margin-top: 32px;
}

.oschwald-privat .marken-grid img {
    width: 100%;
    max-width: 160px;
    height: 70px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.oschwald-privat .marken-grid img:hover {
    filter: none;
    opacity: 1;
}

/* ===== ZITAT ===== */
.oschwald-privat .zitat {
    margin: 0;
    padding: 28px 32px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    gap: 20px;
    align-items: center;
}

.oschwald-privat .zitat img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--oschwald-green-light);
    flex-shrink: 0;
}

.oschwald-privat .zitat p {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px;
    line-height: 1.4;
}

.oschwald-privat .zitat cite {
    font-style: normal;
    font-size: 14px;
    color: var(--text-medium);
}

/* ===== FAKTEN-LEISTE (Zahlen) ===== */
.oschwald-privat .fakten {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.oschwald-privat .fakt {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.oschwald-privat .fakt strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--oschwald-green);
    line-height: 1.2;
}

.oschwald-privat .fakt span {
    font-size: 14px;
    color: var(--text-medium);
}

/* ===== REFERENZEN: Link zur Referenzseite ===== */
.oschwald-privat .reference-link {
    margin-top: 4px;
}

.oschwald-privat .reference-link::after {
    content: '\2192';
    transition: transform 0.2s ease;
}

.oschwald-privat .reference-link:hover::after {
    transform: translateX(4px);
}

.oschwald-privat .references-mehr {
    text-align: center;
    margin-top: 8px;
}

/* ===== FORMULAR =====
   Die Formulare der Bodenbelag-Seiten nutzen Feldgroesse "mittel" (60 %).
   Im Kontaktkasten sollen sie die volle Breite nutzen. */
.oschwald-privat div.wpforms-container-full .wpforms-form input.wpforms-field-medium,
.oschwald-privat div.wpforms-container-full .wpforms-form select.wpforms-field-medium,
.oschwald-privat div.wpforms-container-full .wpforms-form textarea.wpforms-field-medium,
.oschwald-privat div.wpforms-container-full .wpforms-form .wpforms-field-row.wpforms-field-medium {
    max-width: 100%;
}

/* ===== BEWERTUNGEN ===== */
.oschwald-privat .reviews-placeholder {
    text-align: left;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .oschwald-privat .inhalt-grid,
    .oschwald-privat .inhalt--bild-links .inhalt-grid {
        grid-template-columns: 1fr;
    }

    .oschwald-privat .inhalt--bild-links .inhalt-bild {
        order: 0;
    }

    .oschwald-privat .inhalt-bild {
        position: static;
        max-width: 640px;
    }

    .oschwald-privat .bodenarten-grid--4,
    .oschwald-privat .leistungen-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .oschwald-privat .galerie-grid--4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .oschwald-privat .marken-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .oschwald-privat .prozess-timeline,
    .oschwald-privat .prozess-timeline--5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .oschwald-privat .hero {
        min-height: 0;
    }

    .oschwald-privat .bodenarten-grid--4,
    .oschwald-privat .bodenarten-grid--2,
    .oschwald-privat .leistungen-grid--2,
    .oschwald-privat .leistungen-grid--4 {
        grid-template-columns: 1fr;
    }

    .oschwald-privat .galerie-grid,
    .oschwald-privat .galerie-grid--4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .oschwald-privat .galerie-item figcaption {
        padding: 10px 12px;
        font-size: 13px;
    }

    .oschwald-privat .prozess-timeline,
    .oschwald-privat .prozess-timeline--3,
    .oschwald-privat .prozess-timeline--5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .oschwald-privat .fakten {
        grid-template-columns: repeat(2, 1fr);
    }

    .oschwald-privat .zitat {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    :is(.boden-lightbox, .wohnen-lightbox, .seite-lightbox) .lb-zurueck,
    :is(.boden-lightbox, .wohnen-lightbox, .seite-lightbox) .lb-vor {
        top: auto;
        bottom: 60px;
        transform: none;
    }
}

@media (max-width: 480px) {
    .oschwald-privat .galerie-grid,
    .oschwald-privat .galerie-grid--2,
    .oschwald-privat .galerie-grid--4 {
        grid-template-columns: 1fr;
    }

    .oschwald-privat .prozess-timeline,
    .oschwald-privat .prozess-timeline--3,
    .oschwald-privat .prozess-timeline--5 {
        grid-template-columns: 1fr;
    }

    .oschwald-privat .marken-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================================================
   WOHNIDEEN und SEITEN: Teamfoto, Galerie, Tags
   Gilt nur fuer .oschwald-wohnen und .oschwald-seite, nicht fuer die
   Bodenbelag-Seiten (bisher als Kopie in wohnideen.css und seiten.css).
   ======================================================================== */

/* ===== TEAM-FOTO im Beratungs-Kasten (statt rundem Personenbild) ===== */
:is(.oschwald-wohnen, .oschwald-seite) .cta-contact--team {
    width: 340px;
}

:is(.oschwald-wohnen, .oschwald-seite) .team-foto {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid var(--oschwald-green-light);
}

/* ===== TEAM-FOTO im Kontaktbereich ===== */
:is(.oschwald-wohnen, .oschwald-seite) .contact-team {
    margin: 0;
}

:is(.oschwald-wohnen, .oschwald-seite) .contact-team img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 16px;
}

:is(.oschwald-wohnen, .oschwald-seite) .contact-team figcaption {
    font-style: normal;
    text-align: left;
}

:is(.oschwald-wohnen, .oschwald-seite) .contact-team h4 {
    font-size: 12px;
    color: var(--text-medium);
    margin-bottom: 4px;
}

:is(.oschwald-wohnen, .oschwald-seite) .contact-team h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

:is(.oschwald-wohnen, .oschwald-seite) .contact-team p {
    font-size: 14px;
    color: var(--text-medium);
    margin: 0;
}

@media (max-width: 1024px) {
    :is(.oschwald-wohnen, .oschwald-seite) .cta-contact--team {
        width: 100%;
        max-width: 420px;
    }
}

/* Grosse Bildergalerien (4 Spalten) auf dem Handy zweispaltig lassen,
   sonst werden Seiten mit 20 Raumbildern sehr lang. */
@media (max-width: 480px) {
    :is(.oschwald-wohnen, .oschwald-seite) .galerie-grid--4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Tags auf weissen Karten (grauer Abschnitt) brauchen einen eigenen Hintergrund */
:is(.oschwald-wohnen, .oschwald-seite) .bodenarten--grau .bodenart-tag {
    background: var(--bg-light);
}
