/* =========================================================
   PURE YOU CARE – SINGLE LEISTUNG

   Diese Datei enthält nur Regeln, die nicht bereits in
   style.css vorhanden sind.

   Wiederverwendet aus style.css werden u. a.:
   - Root-Farben und Designvariablen
   - .container
   - h1 / h2 / h3
   - .section / .section--light
   - .section-header
   - .leistung-eyebrow / .standort-eyebrow / .cta-eyebrow
   - .service-card
   - .btn-primary / .btn-secondary
   - .team-grid
   - .pyc-team-card und alle Unterklassen
========================================================= */


/* =========================================================
   BASIS
========================================================= */

.pyc-leistung-single {
    overflow: hidden;
}


/* =========================================================
   HERO – 21:9 / VOLLFLÄCHIGES TITELBILD
========================================================= */

.pyc-leistung-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: var(--aqua-mist);
}


.pyc-leistung-hero__image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}


.pyc-leistung-hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}


/*
 * Aqua Mist liegt über der linken Textspalte und läuft
 * in der bewusst leeren rechten Spalte weich aus.
 */
.pyc-leistung-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(195, 228, 233, 0.99) 0%,
        rgba(195, 228, 233, 0.99) 38%,
        rgba(195, 228, 233, 0.94) 47%,
        rgba(195, 228, 233, 0.72) 57%,
        rgba(195, 228, 233, 0.42) 67%,
        rgba(195, 228, 233, 0.16) 76%,
        rgba(195, 228, 233, 0.00) 84%
    );
}


.pyc-leistung-hero--no-image::after {
    background: linear-gradient(
        90deg,
        var(--aqua-mist) 0%,
        rgba(195, 228, 233, 0.55) 100%
    );
}


.pyc-leistung-hero > .container {
    position: relative;
    z-index: 2;
    height: 100%;
}


.pyc-leistung-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    width: 100%;
    height: 100%;
}


.pyc-leistung-hero__content {
    grid-column: 1;
    max-width: 580px;
    padding-right: 2rem;
}


.pyc-leistung-hero__intro {
    max-width: 34rem;
}


.pyc-leistung-hero__intro p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   INFOLEISTE
   Optik der Karten kommt aus .service-card in style.css.
========================================================= */

.pyc-leistung-info {
    position: relative;
    z-index: 5;
    margin-top: -48px;
}


.pyc-leistung-info__grid {
    display: grid;
    grid-template-columns:
        minmax(210px, 0.75fr)
        minmax(210px, 0.75fr)
        minmax(420px, 1.5fr);
    gap: 18px;
}


.pyc-leistung-info-card {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 17px;
}


.pyc-leistung-info-card__icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--cloud);
    color: var(--pure-teal);
}


.pyc-leistung-info-card__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.pyc-leistung-info-card__content {
    min-width: 0;
}


.pyc-leistung-info-card__content > span {
    display: block;
    margin-bottom: 5px;
    color: var(--slate-gray);
    font-size: 0.76rem;
}


.pyc-leistung-info-card__content > strong {
    display: block;
    color: var(--deep-teal);
}


.pyc-leistung-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}


.pyc-leistung-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--cloud);
    color: var(--deep-teal);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
}


/* =========================================================
   WAS IST?
   Die Mitarbeiterkarte selbst verwendet das bestehende
   globale Design aus style.css:
   .pyc-team-card
   .pyc-team-card__media
   .pyc-team-card__image
   .pyc-team-card__content
   .pyc-team-card__name

   Die Rollen-/Berufsbezeichnung wird in der PHP nicht
   ausgegeben.

   Desktop:
   Mitarbeiterkarte links / Überschrift + Text rechts

   Beim Umbruch:
   Überschrift
   Mitarbeiterkarte
   Text
========================================================= */

.pyc-leistung-wasist__grid {
    display: grid;
    gap: 1.5rem clamp(2rem, 4vw, 4rem);
    align-items: start;
}


.pyc-leistung-wasist__grid--with-card {
    grid-template-columns:
        minmax(220px, 260px)
        minmax(0, 1fr);

    grid-template-areas:
        "card header"
        "card text";
}


.pyc-leistung-wasist__grid--no-image {
    grid-template-columns: 1fr;

    grid-template-areas:
        "header"
        "text";
}


.pyc-leistung-wasist__header {
    grid-area: header;
    min-width: 0;
}


.pyc-leistung-wasist__header .section-header {
    max-width: none;
    margin: 0;
    text-align: left;
}


/*
 * Nur Position und maximale Breite der bestehenden
 * Mitarbeiterkarte werden hier festgelegt.
 * Die komplette Kartenoptik kommt aus style.css.
 */
.pyc-leistung-wasist__team-card {
    grid-area: card;
    width: 100%;
    max-width: 260px;
    justify-self: start;
}


.pyc-leistung-wasist__text {
    grid-area: text;
    min-width: 0;
    max-width: none;
    margin: 0;
}


.pyc-leistung-wasist__text p:last-child {
    margin-bottom: 0;
}


/* Ohne passende Mitarbeiterkarte bleibt der Bereich zentriert. */
.pyc-leistung-wasist__grid--no-image {
    max-width: 900px;
    margin: 0 auto;
}


.pyc-leistung-wasist__grid--no-image
.pyc-leistung-wasist__header
.section-header {
    max-width: 600px;
    margin: 0 auto 0.5rem;
    text-align: center;
}


/* =========================================================
   WAS IST? – UMBRUCH
   Reihenfolge: Überschrift -> Mitarbeiterkarte -> Text
========================================================= */

@media (max-width: 800px) {

    .pyc-leistung-wasist__grid--with-card {
        grid-template-columns: 1fr;

        grid-template-areas:
            "header"
            "card"
            "text";

        gap: 1.75rem;
    }


    .pyc-leistung-wasist__grid--with-card
    .pyc-leistung-wasist__header
    .section-header {
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }


    .pyc-leistung-wasist__team-card {
        width: min(100%, 260px);
        margin: 0 auto;
        justify-self: center;
    }


    .pyc-leistung-wasist__text {
        width: 100%;
    }

}


@media (max-width: 520px) {

    .pyc-leistung-wasist__grid--with-card {
        gap: 1.5rem;
    }

}


/* =========================================================
   ANWENDUNGSBEREICHE
   Section-Hintergrund und Kartenoptik kommen aus style.css.
========================================================= */

.pyc-leistung-anwendungen__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}


.pyc-leistung-anwendung {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}


.pyc-leistung-anwendung__icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--cloud);
    color: var(--pure-teal);
}


.pyc-leistung-anwendung__icon svg {
    width: 45px;
    height: 45px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.pyc-leistung-anwendung__label {
    color: var(--deep-teal);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}


/* =========================================================
   STANDORTE
   Grid, Kartenbasis, Typografie und Eyebrow kommen
   aus der globalen style.css.
========================================================= */

.pyc-leistung-standort-card {
    display: flex;
    flex-direction: column;
    min-height: 180px;
    color: inherit;
    text-decoration: none;
}


.pyc-leistung-standort-card:hover {
    color: inherit;
}


.pyc-leistung-standort-card h3 {
    margin-bottom: 1.5rem;
}







/* =========================================================
   CTA
   Button, Eyebrow und H2-Basis kommen aus style.css.
========================================================= */

.pyc-leistung-cta__inner {
    position: relative;
    overflow: hidden;
    padding: 3rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(
        135deg,
        var(--pure-teal),
        var(--deep-teal)
    );
}


.pyc-leistung-cta__content {
    max-width: 720px;
}


.pyc-leistung-cta .cta-eyebrow {
    color: rgba(255, 255, 255, 0.75);
}


.pyc-leistung-cta h2 {
    color: #ffffff;
}


.pyc-leistung-cta p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.88);
}


.pyc-leistung-cta .btn-secondary {
    flex: 0 0 auto;
    gap: 0.75rem;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .pyc-leistung-anwendungen__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 900px) {

    /* 21:9 bleibt Desktop-Layout; mobil bestimmt der Inhalt die Höhe. */
    .pyc-leistung-hero {
        aspect-ratio: auto;
        min-height: 520px;
    }

    .pyc-leistung-hero::after {
        background: linear-gradient(
            90deg,
            rgba(195, 228, 233, 0.99) 0%,
            rgba(195, 228, 233, 0.97) 48%,
            rgba(195, 228, 233, 0.72) 66%,
            rgba(195, 228, 233, 0.28) 84%,
            rgba(195, 228, 233, 0.00) 100%
        );
    }

    .pyc-leistung-hero__grid {
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 0.28fr);
        min-height: 520px;
    }

    .pyc-leistung-hero__content {
        padding: 3.5rem 1.5rem 3.5rem 0;
    }

    .pyc-leistung-info {
        margin-top: -28px;
    }

    .pyc-leistung-info__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pyc-leistung-info-card--abrechnung {
        grid-column: 1 / -1;
    }

    .pyc-leistung-cta__inner {
        padding: 2.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .pyc-leistung-hero {
        min-height: 500px;
    }

    .pyc-leistung-hero__grid {
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 0.18fr);
        min-height: 500px;
    }

    .pyc-leistung-hero__content {
        padding: 3rem 0.75rem 3rem 0;
    }

    .pyc-leistung-info__grid {
        grid-template-columns: 1fr;
    }

    .pyc-leistung-info-card--abrechnung {
        grid-column: auto;
    }

    .pyc-leistung-info-card {
        min-height: auto;
    }

    .pyc-leistung-anwendungen__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .pyc-leistung-anwendung {
        min-height: 160px;
        gap: 14px;
    }

    .pyc-leistung-anwendung__icon {
        width: 64px;
        height: 64px;
    }

    .pyc-leistung-anwendung__icon svg {
        width: 36px;
        height: 36px;
    }
.pyc-leistung-standort + .pyc-leistung-standort {
        padding-top: 3rem;
    }
.pyc-leistung-cta__inner {
        padding: 2.25rem 1.5rem;
        gap: 1.75rem;
    }

    .pyc-leistung-cta .btn-secondary {
        width: 100%;
        justify-content: space-between;
    }

}


@media (max-width: 380px) {

    .pyc-leistung-anwendungen__grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   STANDORTKARTEN – TITELBILD
========================================================= */

.pyc-leistung-standort-card {
    padding: 0;
    overflow: hidden;
}


.pyc-leistung-standort-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--aqua-mist);
}


.pyc-leistung-standort-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.35s ease;
}


.pyc-leistung-standort-card:hover
.pyc-leistung-standort-card__image img {
    transform: scale(1.035);
}


.pyc-leistung-standort-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.4rem;
}

/* =========================================================
   STANDORTE – 3 SPALTEN
========================================================= */

.pyc-leistung-standort-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/*
 * Das Bild passt sich immer exakt an die Kartenbreite an.
 * Die Höhe ergibt sich automatisch aus 16:9.
 */
.pyc-leistung-standort-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
}


.pyc-leistung-standort-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}


/* Kleinere Tablets: 2 Standorte nebeneinander */
@media (max-width: 700px) {

    .pyc-leistung-standort-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* Smartphone: 1 Standort pro Reihe */
@media (max-width: 520px) {

    .pyc-leistung-standort-grid {
        grid-template-columns: minmax(0, 1fr);
    }

}

/* =========================================================
   FIX – STANDORTGRID GEGEN GLOBALE .services-grid-REGELN
   Die zentrale style.css setzt .services-grid teilweise
   wieder auf 2 Spalten. Diese spezifischere Regel gewinnt.
========================================================= */

.services-grid.pyc-leistung-standort-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}


/*
 * Standortkarten eckig.
 * Der vorhandene Schatten aus .service-card bleibt erhalten.
 */
.services-grid.pyc-leistung-standort-grid
.pyc-leistung-standort-card {
    border-radius: 0;
}


/* Tablet */
@media (max-width: 700px) {

    .services-grid.pyc-leistung-standort-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}


/* Smartphone */
@media (max-width: 520px) {

    .services-grid.pyc-leistung-standort-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

}

/* =========================================================
   FIX – STANDORTBILD OHNE INNENRAND
========================================================= */

.service-card.pyc-leistung-standort-card {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 0;
}


.service-card.pyc-leistung-standort-card
.pyc-leistung-standort-card__image {
    width: 100%;
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex: 0 0 auto;
}


.service-card.pyc-leistung-standort-card
.pyc-leistung-standort-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center center;
}


.service-card.pyc-leistung-standort-card
.pyc-leistung-standort-card__content {
    padding: 1.4rem;
}

/* =========================================================
   STANDORTKARTEN – UNTEREN ABSTAND REDUZIEREN
========================================================= */

.services-grid.pyc-leistung-standort-grid {
    align-items: start;
}

.service-card.pyc-leistung-standort-card {
    align-self: start;
}

.pyc-leistung-standort-card h3 {
    margin-bottom: 0;
}

.pyc-leistung-standort-card__content {
    flex: 0 0 auto;

    padding:
        1.2rem
        1.4rem
        1.1rem;
}

/* =========================================================
   STANDORTE – ÜBERSCHRIFT BREITER
========================================================= */

.pyc-leistung-standorte-section .section-header {
    max-width: 900px;
}

