/* =========================================================
   PURE YOU CARE – FAQ
========================================================= */

.pyc-faq-page {
    background: #ffffff;
}


/* =========================================================
   HERO
========================================================= */

.pyc-faq-hero {
    padding:
        clamp(5rem, 9vw, 9rem)
        0
        clamp(3.5rem, 6vw, 6rem);

    background:
        linear-gradient(
            135deg,
            var(--cloud) 0%,
            #ffffff 70%
        );
}

.pyc-faq-hero h2 {
    max-width: 760px;

    margin:
        0
        0
        1.5rem;

    color: var(--cyan-navy);

    font-size:
        clamp(
            4rem,
            8vw,
            7.4rem
        );

    line-height: 0.88;
}

.pyc-faq-hero__intro {
    max-width: 720px;

    margin: 0;

    color: var(--slate-gray);

    font-size:
        clamp(
            1.05rem,
            1.4vw,
            1.25rem
        );

    line-height: 1.65;
}


/* =========================================================
   CONTENT
========================================================= */

.pyc-faq-content {
    padding:
        clamp(3rem, 6vw, 6rem)
        0
        clamp(5rem, 8vw, 8rem);
}


/* =========================================================
   SEARCH
========================================================= */

.pyc-faq-search-wrap {
    max-width: 1040px;

    margin-bottom:
        clamp(
            3.5rem,
            6vw,
            6rem
        );
}

.pyc-faq-search__label {
    display: block;

    margin-bottom: 0.65rem;

    color: var(--cyan-navy);

    font-family: var(--font-headline);
    font-size:
        clamp(
            1.5rem,
            2vw,
            2rem
        );

    line-height: 1;
    text-transform: uppercase;
}

.pyc-faq-search {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 72px;

    border-bottom:
        2px solid
        var(--cyan-navy);

    background: #ffffff;
}

.pyc-faq-search:focus-within {
    border-bottom-color:
        var(--pure-teal);
}

.pyc-faq-search__icon {
    flex: 0 0 auto;

    width: 48px;

    color: var(--pure-teal);

    font-size: 1.8rem;
    line-height: 1;
}

.pyc-faq-search__input {
    flex: 1 1 auto;

    min-width: 0;

    padding:
        1.15rem
        1rem
        1.15rem
        0;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--cyan-navy);

    font-family: var(--font-body);
    font-size:
        clamp(
            1rem,
            1.25vw,
            1.15rem
        );
}

.pyc-faq-search__input::placeholder {
    color:
        rgba(
            107,
            114,
            128,
            0.78
        );
}

.pyc-faq-search__clear {
    flex: 0 0 auto;

    margin-left: 1rem;
    padding: 0.55rem 0;

    border: 0;

    background: transparent;

    color: var(--pure-teal);

    font-size: 0.78rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;

    cursor: pointer;
}

.pyc-faq-search__clear:hover {
    color: var(--deep-teal);
}

.pyc-faq-search__status {
    min-height: 1.5rem;

    margin:
        0.65rem
        0
        0;

    color: var(--slate-gray);

    font-size: 0.9rem;
}


/* =========================================================
   LAYOUT
========================================================= */

.pyc-faq-layout {
    display: grid;

    grid-template-columns:
        minmax(220px, 0.34fr)
        minmax(0, 1.66fr);

    align-items: start;

    gap:
        clamp(
            3rem,
            7vw,
            7rem
        );
}


/* =========================================================
   TOPIC NAV
========================================================= */

.pyc-faq-topics {
    position: sticky;
    top: 110px;

    display: flex;
    flex-direction: column;

    border-top:
        1px solid
        rgba(
            10,
            44,
            51,
            0.14
        );
}

.pyc-faq-topics__eyebrow {
    padding:
        1rem
        0
        0.85rem;

    color: var(--slate-gray);

    font-size: 0.78rem;

    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.pyc-faq-topics__link {
    padding:
        0.7rem
        0;

    border-bottom:
        1px solid
        rgba(
            10,
            44,
            51,
            0.10
        );

    color: var(--cyan-navy);

    font-size: 0.96rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.pyc-faq-topics__link:hover {
    padding-left: 0.4rem;

    color: var(--pure-teal);
}


/* =========================================================
   SECTIONS
========================================================= */

.pyc-faq-sections {
    min-width: 0;
}

.pyc-faq-section {
    scroll-margin-top: 120px;

    margin-bottom:
        clamp(
            4rem,
            7vw,
            7rem
        );
}

.pyc-faq-section__header {
    margin-bottom: 1.7rem;
}



/* =========================================================
   FAQ ITEMS
========================================================= */

.pyc-faq-items {
    border-top:
        1px solid
        rgba(
            10,
            44,
            51,
            0.16
        );
}

.pyc-faq-item {
    border-bottom:
        1px solid
        rgba(
            10,
            44,
            51,
            0.16
        );
}

.pyc-faq-item__heading {
    margin: 0;
}

.pyc-faq-item__question {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        42px;

    align-items: center;

    width: 100%;

    gap: 1.5rem;

    padding:
        1.45rem
        0;

    border: 0;

    background: transparent;

    color: var(--cyan-navy);

    font-family: var(--font-body);
    font-size:
        clamp(
            1.05rem,
            1.4vw,
            1.22rem
        );

    font-weight: 650;
    line-height: 1.38;

    text-align: left;

    cursor: pointer;

    transition:
        color 0.2s ease;
}

.pyc-faq-item__question:hover {
    color: var(--pure-teal);
}

.pyc-faq-item__plus {
    position: relative;

    display: block;

    width: 32px;
    height: 32px;

    justify-self: end;
}

.pyc-faq-item__plus::before,
.pyc-faq-item__plus::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 18px;
    height: 2px;

    background: var(--pure-teal);

    transform:
        translate(
            -50%,
            -50%
        );

    transition:
        transform 0.25s ease;
}

.pyc-faq-item__plus::after {
    transform:
        translate(
            -50%,
            -50%
        )
        rotate(90deg);
}

.pyc-faq-item.is-open
.pyc-faq-item__plus::after {
    transform:
        translate(
            -50%,
            -50%
        )
        rotate(0deg);
}

.pyc-faq-item__answer-inner {
    max-width: 820px;

    padding:
        0
        4.5rem
        1.65rem
        0;
}

.pyc-faq-item__answer-inner p {
    margin: 0;

    color: var(--slate-gray);

    font-size: 1rem;
    line-height: 1.72;
}


/* Suchtreffer subtil hervorheben */
.pyc-faq-item:not([hidden]).is-open {
    background:
        linear-gradient(
            90deg,
            rgba(
                195,
                228,
                233,
                0.18
            ) 0%,
            rgba(
                195,
                228,
                233,
                0
            ) 72%
        );
}


/* =========================================================
   EMPTY STATE
========================================================= */

.pyc-faq-empty {
    padding:
        clamp(
            2.5rem,
            5vw,
            4.5rem
        );

    border:
        1px solid
        rgba(
            10,
            44,
            51,
            0.12
        );

    background: var(--cloud);
}

.pyc-faq-empty h2 {
    max-width: 700px;
}

.pyc-faq-empty p {
    max-width: 620px;

    color: var(--slate-gray);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .pyc-faq-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .pyc-faq-topics {
        position: static;

        display: flex;
        flex-direction: row;

        gap: 0.75rem;

        overflow-x: auto;

        padding-bottom: 0.5rem;

        border-top: 0;

        scrollbar-width: none;
    }

    .pyc-faq-topics::-webkit-scrollbar {
        display: none;
    }

    .pyc-faq-topics__eyebrow {
        display: none;
    }

    .pyc-faq-topics__link {
        flex: 0 0 auto;

        padding:
            0.65rem
            0.9rem;

        border:
            1px solid
            rgba(
                10,
                44,
                51,
                0.12
            );

        background: #ffffff;
    }

    .pyc-faq-topics__link:hover {
        padding-left: 0.9rem;
    }

}


@media (max-width: 600px) {

    .pyc-faq-hero {
        padding:
            4rem
            0
            3rem;
    }

    .pyc-faq-hero h2 {
        font-size:
            clamp(
                3.3rem,
                17vw,
                5.2rem
            );
    }

    .pyc-faq-search {
        min-height: 64px;
    }

    .pyc-faq-search__icon {
        width: 38px;
    }

    .pyc-faq-search__clear {
        max-width: 72px;

        font-size: 0.68rem;
        line-height: 1.15;
    }

    .pyc-faq-section {
        margin-bottom: 4rem;
    }

    .pyc-faq-item__question {
        grid-template-columns:
            minmax(0, 1fr)
            32px;

        gap: 0.8rem;

        padding:
            1.25rem
            0;

        font-size: 1.02rem;
    }

    .pyc-faq-item__plus {
        width: 28px;
        height: 28px;
    }

    .pyc-faq-item__answer-inner {
        padding:
            0
            2rem
            1.4rem
            0;
    }

}


/* =========================================================
   FAQ – EINLEITUNG WIE IM TEAM-ARCHIV
========================================================= */

.pyc-faq-intro {
    background: var(--cloud);
}


/*
 * Die Überschrift übernimmt bewusst die bestehende
 * section-header-Typografie des Themes – genau wie
 * im Team-Archiv.
 */
.pyc-faq-intro .section-header {
    max-width: 760px;
}


.pyc-faq-intro .section-header h2 {
    margin-bottom: 1rem;
}


.pyc-faq-intro .section-header > p:last-child {
    max-width: 680px;
}


/*
 * Der FAQ-Inhalt schließt direkt und ruhig an die
 * Archive-Einleitung an.
 */
.pyc-faq-content {
    padding-top:
        clamp(
            3rem,
            5vw,
            5rem
        );
}


/* =========================================================
   FAQ – H2 OPTISCH WIE DIE H1 IM TEAM-ARCHIV
   Semantisch bleibt es eine H2.
========================================================= */

.pyc-faq-intro .section-header h2 {
    margin: 0 0 0.5em;

    font-family: var(--font-headline);

    font-size:
        clamp(
            2.6rem,
            4vw,
            3.8rem
        );

    line-height: 1.05;

    letter-spacing: 0.004em;

    text-transform: uppercase;

    color: var(--deep-teal);
}


/* =========================================================
   FAQ – HEADER EXAKT WIE "UNSER TEAM" IM TEAM-ARCHIV
========================================================= */

/*
 * Keine eigene FAQ-Hintergrundfarbe:
 * die vorhandene Klasse section--light übernimmt
 * exakt den gleichen Abschnittsstil wie im Team-Archiv.
 */
.pyc-faq-intro {
    background: unset;
}


/* Exakt dieselbe Breite und Zentrierung wie .section-header */
.pyc-faq-intro .section-header {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
}


/*
 * Bleibt semantisch H2, sieht aber exakt aus wie
 * die H1 "Unser Team" im Team-Archiv.
 */
.pyc-faq-intro .section-header h2 {
    margin: 0 0 0.5em;

    font-family: var(--font-headline);

    font-size:
        clamp(
            2.6rem,
            4vw,
            3.8rem
        );

    line-height: 1.05;

    letter-spacing: 0.004em;

    text-transform: uppercase;

    color: var(--deep-teal);
}


/* Beschreibung ebenfalls wie im Team-Archiv */
.pyc-faq-intro .section-header > p:last-child {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}


/* =========================================================
   FAQ – SUCHFUNKTION IM HEADER
========================================================= */

.pyc-faq-intro .section-header {
    max-width: 760px;
}


/* Suche sitzt jetzt direkt unter dem Introtext */
.pyc-faq-search-wrap--header {
    width: 100%;
    max-width: 760px;

    margin:
        2rem
        auto
        0;

    text-align: left;
}


.pyc-faq-search-wrap--header
.pyc-faq-search__label {
    margin-bottom: 0.55rem;

    color: var(--cyan-navy);
}


.pyc-faq-search-wrap--header
.pyc-faq-search {
    min-height: 64px;

    padding:
        0
        1rem;

    border:
        1px solid
        rgba(
            10,
            44,
            51,
            0.16
        );

    border-radius: 0;

    background: #ffffff;

    box-shadow:
        0 12px 30px
        rgba(
            10,
            44,
            51,
            0.05
        );
}


.pyc-faq-search-wrap--header
.pyc-faq-search:focus-within {
    border-color: var(--pure-teal);

    box-shadow:
        0 0 0 2px
        rgba(
            7,
            155,
            171,
            0.10
        );
}


.pyc-faq-search-wrap--header
.pyc-faq-search__status {
    margin-bottom: 0;
}


/* Da die Suche jetzt oben sitzt, kann der Inhaltsbereich
   etwas näher an die Themen-Navigation rücken. */
.pyc-faq-content {
    padding-top:
        clamp(
            2.5rem,
            4vw,
            4rem
        );
}


@media (max-width: 600px) {

    .pyc-faq-search-wrap--header {
        margin-top: 1.5rem;
    }


    .pyc-faq-search-wrap--header
    .pyc-faq-search {
        min-height: 58px;

        padding:
            0
            0.8rem;
    }

}
