/* =========================================
   VARGA WEBDESIGN – FAQ
========================================= */

.vwfaq {
    --vwfaq-edge: clamp(28px, 5.5vw, 96px);

    position: relative;
    width: 100%;
    background: var(--vw-color-background);
    isolation: isolate;
}

.vwfaq,
.vwfaq * {
    box-sizing: border-box;
}

.vwfaq__shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding:
        clamp(42px, 4vw, 64px)
        var(--vwfaq-edge)
        clamp(84px, 7vw, 120px);
}


/* =========================================
   SEITENKOPF
========================================= */

.vwfaq__intro {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 0 42px;
    padding: 12px 0 12px 28px;
}

.vwfaq__intro::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--vw-color-primary);
    content: "";
}

.vwfaq__intro-label {
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: var(--vw-color-heading-soft);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.vwfaq__intro-title {
    max-width: 1080px;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--vw-color-heading);
    font-size: clamp(44px, 4.2vw, 66px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.vwfaq__intro-text {
    max-width: 780px;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    color: var(--vw-color-text);
    font-size: 16px;
    line-height: 1.68;
}


/* =========================================
   FAQ-LISTE
========================================= */

.vwfaq__list {
    width: 100%;
    display: grid;
    gap: 17px;
}

.vwfaq__item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(8, 123, 211, 0.1);
    border-radius: 18px;
    background: var(--vw-color-surface);
    box-shadow: 0 12px 30px rgba(16, 24, 39, 0.045);
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.vwfaq__item::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 3;
    height: 4px;
    background: var(--vw-color-primary);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.vwfaq__item:hover {
    border-color: rgba(8, 123, 211, 0.24);
    box-shadow: 0 18px 42px rgba(16, 24, 39, 0.075);
    transform: translateY(-2px);
}

.vwfaq__item[open] {
    border-color: rgba(8, 123, 211, 0.32);
    box-shadow: 0 22px 50px rgba(16, 24, 39, 0.085);
}

.vwfaq__item[open]::before {
    transform: scaleX(1);
}


/* =========================================
   FRAGEN
========================================= */

.vwfaq__question {
    min-height: 92px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 20px;
    padding: 21px 26px;
    color: var(--vw-color-heading);
    cursor: pointer;
    list-style: none;
    transition: background-color 220ms ease;
}

.vwfaq__question::-webkit-details-marker {
    display: none;
}

.vwfaq__question::marker {
    content: "";
}

.vwfaq__item[open] .vwfaq__question {
    background:
        linear-gradient(
            90deg,
            rgba(8, 123, 211, 0.06),
            rgba(255, 255, 255, 0)
        );
}

.vwfaq__number {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(8, 123, 211, 0.09);
    border-radius: 13px;
    background: var(--vw-color-primary-soft);
    color: var(--vw-color-primary);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(8, 123, 211, 0.04);
    transition:
        color 220ms ease,
        background-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.vwfaq__question-text {
    min-width: 0;
    color: inherit;
    font-size: clamp(18px, 1.3vw, 21px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.018em;
    transition: color 220ms ease;
}

.vwfaq__toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border: 1px solid var(--vw-color-border);
    border-radius: 50%;
    background: var(--vw-color-surface);
    color: var(--vw-color-primary);
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    transition:
        color 220ms ease,
        background-color 220ms ease,
        border-color 220ms ease,
        transform 300ms var(--vw-ease-soft);
}

.vwfaq__question:hover .vwfaq__number,
.vwfaq__item[open] .vwfaq__number {
    color: var(--vw-color-surface);
    background: var(--vw-color-primary);
    box-shadow: 0 10px 24px rgba(8, 123, 211, 0.2);
    transform: translateY(-2px);
}

.vwfaq__item[open] .vwfaq__question-text {
    color: var(--vw-color-primary);
}

.vwfaq__item[open] .vwfaq__toggle {
    border-color: var(--vw-color-primary);
    background: var(--vw-color-primary);
    color: var(--vw-color-surface);
    transform: rotate(45deg);
}


/* =========================================
   ANTWORTEN
========================================= */

.vwfaq__answer {
    overflow: hidden;
}

.vwfaq__answer-inner {
    margin: 0 26px 0 96px;
    padding: 0 64px 27px 0;
    border-top: 1px solid var(--vw-color-border);
}

.vwfaq__answer p {
    max-width: 980px;
    margin: 21px 0 0;
    color: var(--vw-color-text);
    font-size: 16px;
    line-height: 1.72;
}


/* =========================================
   CTA
========================================= */

.vwfaq__contact {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 42px;
    margin-top: clamp(48px, 5vw, 72px);
    padding: clamp(34px, 3.5vw, 50px) clamp(30px, 4vw, 58px);
    border: 1px solid rgba(8, 123, 211, 0.14);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 10% 30%,
            rgba(8, 123, 211, 0.075),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            var(--vw-color-primary-soft) 0%,
            var(--vw-color-surface) 72%
        );
    box-shadow: var(--vw-shadow-card);
}

.vwfaq__contact-content {
    min-width: 0;
}

.vwfaq__contact-eyebrow {
    margin: 0 0 12px !important;
    color: var(--vw-color-heading-soft);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.vwfaq__contact-title {
    margin: 0 !important;
    color: var(--vw-color-heading);
    font-size: clamp(28px, 2.25vw, 40px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.vwfaq__contact-text {
    max-width: 760px;
    margin: 14px 0 0 !important;
    color: var(--vw-color-text);
    font-size: 16px;
    line-height: 1.65;
}

.vwfaq__contact-button {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 15px 24px;
    border: 1px solid var(--vw-color-primary);
    border-radius: 10px;
    color: var(--vw-color-surface);
    background: var(--vw-color-primary);
    box-shadow: 0 14px 30px rgba(8, 123, 211, 0.2);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.vwfaq__contact-button:hover,
.vwfaq__contact-button:focus-visible {
    color: var(--vw-color-surface);
    background: var(--vw-color-primary-dark);
    border-color: var(--vw-color-primary-dark);
    box-shadow: 0 18px 38px rgba(8, 123, 211, 0.28);
    transform: translateY(-3px);
}

.vwfaq__contact-button:focus-visible {
    outline: 3px solid rgba(8, 123, 211, 0.2);
    outline-offset: 4px;
}

.vwfaq__contact-arrow {
    font-size: 19px;
    line-height: 1;
    transition: transform 180ms ease;
}

.vwfaq__contact-button:hover .vwfaq__contact-arrow,
.vwfaq__contact-button:focus-visible .vwfaq__contact-arrow {
    transform: translateX(4px);
}


/* =========================================
   ANIMATIONEN
========================================= */

.vwfaq__item.vwfaq-is-opening .vwfaq__answer-inner {
    animation: vwfaqAnswerContentIn 680ms 100ms var(--vw-ease-soft) both;
}

.vwfaq__item.vwfaq-is-closing .vwfaq__answer-inner {
    opacity: 0;
    transform: translate3d(0, -7px, 0);
    transition:
        opacity 360ms ease,
        transform 440ms ease;
}

@keyframes vwfaqAnswerContentIn {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes vwfaqItemRise {
    0% {
        opacity: 0;
        transform: translate3d(0, 36px, 0) scale(0.997);
    }

    30% {
        opacity: 0.28;
    }

    70% {
        opacity: 0.85;
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

html.vwfaq-js
.vwfaq
.vwfaq__item:not(.vwfaq-item-enter):not(.vwfaq-item-done) {
    opacity: 0;
    transform: translate3d(0, 36px, 0) scale(0.997);
}

.vwfaq__item.vwfaq-item-enter {
    animation-name: vwfaqItemRise;
    animation-duration: 1350ms;
    animation-delay: var(--vwfaq-item-delay, 0ms);
    animation-timing-function: var(--vw-ease-enter);
    animation-fill-mode: both;
}

.vwfaq__item.vwfaq-item-done {
    opacity: 1;
}


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

@media (max-width: 980px) {
    .vwfaq {
        --vwfaq-edge: 32px;
    }

    .vwfaq__contact {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .vwfaq__contact-button {
        width: fit-content;
    }
}

@media (max-width: 820px) {
    .vwfaq__question {
        min-height: 84px;
        grid-template-columns: 44px minmax(0, 1fr) 38px;
        gap: 15px;
        padding: 19px 20px;
    }

    .vwfaq__number {
        width: 44px;
        height: 44px;
    }

    .vwfaq__toggle {
        width: 38px;
        height: 38px;
    }

    .vwfaq__answer-inner {
        margin-left: 79px;
        padding-right: 20px;
    }
}

@media (max-width: 720px) {
    .vwfaq {
        --vwfaq-edge: 18px;
    }

    .vwfaq__shell {
        padding-top: 30px;
        padding-bottom: 76px;
    }

    .vwfaq__intro {
        margin-bottom: 34px;
        padding: 8px 0 8px 20px;
    }

    .vwfaq__intro::before {
        top: 8px;
        bottom: 8px;
    }

    .vwfaq__intro-label {
        margin-bottom: 9px !important;
        font-size: 11px;
    }

    .vwfaq__intro-title {
        font-size: clamp(36px, 10vw, 48px);
    }

    .vwfaq__intro-text {
        margin-top: 14px !important;
        font-size: 15.5px;
    }

    .vwfaq__list {
        gap: 13px;
    }

    .vwfaq__question {
        min-height: 82px;
        grid-template-columns: 42px minmax(0, 1fr) 36px;
        gap: 13px;
        padding: 18px;
    }

    .vwfaq__number {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .vwfaq__question-text {
        font-size: 17px;
    }

    .vwfaq__toggle {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .vwfaq__answer-inner {
        margin-right: 18px;
        margin-left: 73px;
        padding-right: 0;
        padding-bottom: 23px;
    }

    .vwfaq__answer p {
        margin-top: 17px;
        font-size: 15px;
    }

    .vwfaq__contact {
        margin-top: 42px;
        padding: 30px 24px;
        border-radius: 17px;
    }

    .vwfaq__contact-title {
        font-size: clamp(27px, 8vw, 34px);
    }

    .vwfaq__contact-button {
        width: 100%;
        white-space: normal;
    }
}

@media (max-width: 460px) {
    .vwfaq__question {
        grid-template-columns: 36px minmax(0, 1fr) 34px;
        gap: 10px;
        padding: 16px 14px;
    }

    .vwfaq__number {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }

    .vwfaq__toggle {
        width: 34px;
        height: 34px;
    }

    .vwfaq__answer-inner {
        margin-right: 14px;
        margin-left: 60px;
    }
}


/* =========================================
   REDUZIERTE BEWEGUNG
========================================= */

@media (prefers-reduced-motion: reduce) {
    .vwfaq__item,
    .vwfaq__item::before,
    .vwfaq__number,
    .vwfaq__toggle,
    .vwfaq__contact-button,
    .vwfaq__contact-arrow {
        animation: none !important;
        transition: none !important;
    }

    .vwfaq__item:hover,
    .vwfaq__question:hover .vwfaq__number,
    .vwfaq__contact-button:hover,
    .vwfaq__contact-button:focus-visible,
    .vwfaq__contact-button:hover .vwfaq__contact-arrow,
    .vwfaq__contact-button:focus-visible .vwfaq__contact-arrow {
        transform: none !important;
    }
}


/* =========================================
   EINHEITLICHER HINTERGRUND
========================================= */

body:has(.vwfaq) #primary,
body:has(.vwfaq) .content-area,
body:has(.vwfaq) .site-main,
body:has(.vwfaq) .entry-content,
body:has(.vwfaq) .entry-content-wrap,
.vwfaq,
.vwfaq::before {
    background-color: var(--vw-color-background) !important;
    background-image: none !important;
}

@media (min-width: 1025px) {
    .vwfaq::before {
        position: absolute;
        top: -24px;
        right: 0;
        left: 0;
        height: 24px;
        content: "";
        pointer-events: none;
        z-index: -1;
    }
}
//* =========================================
   FAQ – INTRO- UND KONTAKT-ANIMATION
   extra ruhige Variante
========================================= */

/* Blauer Seitenstrich */

.vwfaq__intro::before {
    transform: scaleY(0);
    transform-origin: top;
    animation: vwfaqIntroLineIn 1350ms 180ms var(--vw-ease-soft) forwards;
}


/* Label, Überschrift und Beschreibung */

.vwfaq__intro-label,
.vwfaq__intro-title,
.vwfaq__intro-text {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    animation-name: vwfaqIntroContentIn;
    animation-timing-function: var(--vw-ease-enter);
    animation-fill-mode: forwards;
}

.vwfaq__intro-label {
    animation-duration: 1250ms;
    animation-delay: 260ms;
}

.vwfaq__intro-title {
    animation-duration: 1650ms;
    animation-delay: 430ms;
}

.vwfaq__intro-text {
    animation-duration: 1500ms;
    animation-delay: 680ms;
}

@keyframes vwfaqIntroLineIn {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes vwfaqIntroContentIn {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}


/* =========================================
   UNTERER KONTAKTBEREICH
========================================= */

html.vwfaq-js
.vwfaq
.vwfaq__contact:not(.vwfaq-contact-visible) {
    opacity: 0;
    transform: translate3d(0, 44px, 0) scale(0.997);
}

.vwfaq__contact.vwfaq-contact-enter {
    opacity: 0;
    transform: translate3d(0, 44px, 0) scale(0.997);
    transition:
        opacity 1800ms var(--vw-ease-enter),
        transform 2050ms var(--vw-ease-enter);
    will-change: opacity, transform;
}

.vwfaq__contact.vwfaq-contact-enter
.vwfaq__contact-content {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 1500ms 260ms var(--vw-ease-enter),
        transform 1750ms 260ms var(--vw-ease-enter);
}

.vwfaq__contact.vwfaq-contact-enter
.vwfaq__contact-button {
    opacity: 0;
    transform: translate3d(0, 15px, 0);
    transition:
        opacity 1400ms 500ms var(--vw-ease-enter),
        transform 1650ms 500ms var(--vw-ease-enter),
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.vwfaq__contact.vwfaq-contact-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    will-change: auto;
}

.vwfaq__contact.vwfaq-contact-visible
.vwfaq__contact-content,
.vwfaq__contact.vwfaq-contact-visible
.vwfaq__contact-button {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}


/* Button-Hover nach dem Einblenden */

.vwfaq__contact.vwfaq-contact-visible
.vwfaq__contact-button:hover,
.vwfaq__contact.vwfaq-contact-visible
.vwfaq__contact-button:focus-visible {
    transform: translateY(-3px);
}


/* =========================================
   REDUZIERTE BEWEGUNG
========================================= */

@media (prefers-reduced-motion: reduce) {
    .vwfaq__intro::before,
    .vwfaq__intro-label,
    .vwfaq__intro-title,
    .vwfaq__intro-text {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    html.vwfaq-js
    .vwfaq
    .vwfaq__contact,
    .vwfaq__contact-content,
    .vwfaq__contact-button {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}