/* Ready4Web Fragen & Antworten – Schuhhaus Rauh */
.r4w-faq {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: inherit;
    color: var(--r4w-faq-text, #34383a);
    box-sizing: border-box;
}

.r4w-faq *,
.r4w-faq *::before,
.r4w-faq *::after {
    box-sizing: border-box;
}

.r4w-faq__group + .r4w-faq__group {
    margin-top: clamp(32px, 5vw, 56px);
}

.r4w-faq__topic {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0;
    font-family: inherit;
    font-size: var(--r4w-faq-topic-size, 24px);
    line-height: 1.25;
    font-weight: 600;
    color: var(--r4w-faq-text, #34383a);
}

.r4w-faq__topic > span {
    width: 34px;
    height: 4px;
    flex: 0 0 34px;
    border-radius: 999px;
    background: var(--r4w-faq-accent, #e30613);
}

.r4w-faq__item {
    position: relative;
    margin: 0 0 10px;
    overflow: clip;
    border: 1px solid var(--r4w-faq-border, #dddddd);
    border-radius: var(--r4w-faq-radius, 10px);
    background: var(--r4w-faq-surface, #ffffff);
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.r4w-faq__item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--r4w-faq-accent, #e30613);
    opacity: 0;
    transition: opacity .2s ease;
}

.r4w-faq__item.is-open {
    border-color: color-mix(in srgb, var(--r4w-faq-accent, #e30613) 35%, var(--r4w-faq-border, #dddddd));
    background: var(--r4w-faq-surface-open, #f7f7f7);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.r4w-faq__item.is-open::before {
    opacity: 1;
}

.r4w-faq__question-heading {
    margin: 0 !important;
    padding: 0 !important;
    font: inherit;
}

.r4w-faq__question {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 16px 18px 16px 20px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: var(--r4w-faq-text, #34383a);
    font-family: inherit;
    font-size: var(--r4w-faq-question-size, 18px);
    line-height: 1.4;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.r4w-faq__question:hover {
    color: var(--r4w-faq-accent, #e30613);
}

.r4w-faq__question:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--r4w-faq-accent, #e30613) 35%, transparent);
    outline-offset: -3px;
}

.r4w-faq__question-text {
    min-width: 0;
}

.r4w-faq__icon {
    position: relative;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 1px solid var(--r4w-faq-border, #dddddd);
    border-radius: 50%;
    background: #fff;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.r4w-faq__icon::before,
.r4w-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--r4w-faq-accent, #e30613);
    transform: translate(-50%, -50%);
    transition: transform .2s ease, opacity .2s ease;
}

.r4w-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.r4w-faq__item.is-open .r4w-faq__icon {
    border-color: var(--r4w-faq-accent, #e30613);
    background: var(--r4w-faq-accent, #e30613);
}

.r4w-faq__item.is-open .r4w-faq__icon::before,
.r4w-faq__item.is-open .r4w-faq__icon::after {
    background: #fff;
}

.r4w-faq__item.is-open .r4w-faq__icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
}

.r4w-faq__answer {
    height: auto;
    overflow: visible;
    opacity: 1;
    border-top: 1px solid transparent;
    transition:
        height .38s cubic-bezier(.22, 1, .36, 1),
        opacity .24s ease,
        border-color .24s ease;
    will-change: height, opacity;
}

.r4w-faq__item.is-open .r4w-faq__answer {
    border-top-color: var(--r4w-faq-border, #dddddd);
}

.r4w-faq__answer[hidden] {
    display: none !important;
}

.r4w-faq__answer-inner {
    padding: 18px 68px 22px 20px;
    color: var(--r4w-faq-muted, #6d7275);
    font-family: inherit;
    font-size: var(--r4w-faq-answer-size, 16px);
    line-height: 1.7;
}

.r4w-faq__answer-inner > :first-child { margin-top: 0 !important; }
.r4w-faq__answer-inner > :last-child { margin-bottom: 0 !important; }
.r4w-faq__answer-inner p { margin-top: 0; margin-bottom: 1em; }
.r4w-faq__answer-inner a { color: var(--r4w-faq-accent, #e30613); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.r4w-faq__answer-inner img { max-width: 100%; height: auto; }
.r4w-faq__answer-inner video { max-width: 100%; height: auto; }
.r4w-faq__answer-inner iframe { max-width: 100%; }
.r4w-faq__answer-inner figure { max-width: 100%; margin-left: 0; margin-right: 0; }
.r4w-faq__answer-inner .wp-block-video video { width: 100%; }
.r4w-faq__answer-inner table { max-width: 100%; }

.r4w-faq__empty {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--r4w-faq-border, #dddddd);
    border-radius: var(--r4w-faq-radius, 10px);
    color: var(--r4w-faq-muted, #6d7275);
}

@media (max-width: 767px) {
    .r4w-faq__group + .r4w-faq__group { margin-top: 34px; }
    .r4w-faq__topic { gap: 10px; margin-bottom: 12px; font-size: min(var(--r4w-faq-topic-size, 24px), 22px); }
    .r4w-faq__topic > span { width: 26px; flex-basis: 26px; }
    .r4w-faq__item { margin-bottom: 8px; }
    .r4w-faq__question { min-height: 54px; gap: 12px; padding: 14px 14px 14px 16px; font-size: min(var(--r4w-faq-question-size, 18px), 17px); }
    .r4w-faq__icon { width: 28px; height: 28px; flex-basis: 28px; }
    .r4w-faq__answer-inner { padding: 16px; font-size: min(var(--r4w-faq-answer-size, 16px), 16px); line-height: 1.65; }
}

@media (prefers-reduced-motion: reduce) {
    .r4w-faq__item,
    .r4w-faq__item::before,
    .r4w-faq__icon,
    .r4w-faq__icon::before,
    .r4w-faq__icon::after,
    .r4w-faq__answer { transition: none !important; }
}

/* Weitere Hilfen / PDF-Downloads */
.r4w-downloads {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: inherit;
    color: var(--r4w-faq-text, #34383a);
    box-sizing: border-box;
}

.r4w-downloads *,
.r4w-downloads *::before,
.r4w-downloads *::after {
    box-sizing: border-box;
}

.r4w-downloads__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: var(--r4w-faq-topic-size, 24px);
    line-height: 1.25;
    font-weight: 600;
    color: var(--r4w-faq-text, #34383a);
}

.r4w-downloads__heading > span {
    width: 34px;
    height: 4px;
    flex: 0 0 34px;
    border-radius: 999px;
    background: var(--r4w-faq-accent, #e30613);
}

.r4w-downloads__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.r4w-downloads__card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--r4w-faq-border, #dddddd);
    border-radius: var(--r4w-faq-radius, 10px);
    background: var(--r4w-faq-surface, #ffffff);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.r4w-downloads__card:hover {
    border-color: color-mix(in srgb, var(--r4w-faq-accent, #e30613) 32%, var(--r4w-faq-border, #dddddd));
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.r4w-downloads__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--r4w-faq-surface-open, #f7f7f7);
    border-bottom: 1px solid var(--r4w-faq-border, #dddddd);
}

.r4w-downloads__image {
    display: block;
    width: 100%;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
}

.r4w-downloads__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
}

.r4w-downloads__title {
    margin: 0 0 9px !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: min(var(--r4w-faq-question-size, 18px), 16px);
    line-height: 1.35;
    font-weight: 600;
    color: var(--r4w-faq-text, #34383a);
}

.r4w-downloads__description {
    width: 100%;
    margin: 0 0 14px;
    color: var(--r4w-faq-muted, #6d7275);
    font-family: inherit;
    font-size: min(var(--r4w-faq-answer-size, 16px), 14px);
    line-height: 1.55;
}

.r4w-downloads__description > :first-child { margin-top: 0 !important; }
.r4w-downloads__description > :last-child { margin-bottom: 0 !important; }
.r4w-downloads__description p { margin-top: 0; margin-bottom: .9em; }
.r4w-downloads__description a { color: var(--r4w-faq-accent, #e30613); }

.r4w-downloads__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    margin-top: auto;
    padding: 9px 12px;
    border: 1px solid var(--r4w-faq-accent, #e30613);
    border-radius: calc(var(--r4w-faq-radius, 10px) - 2px);
    background: var(--r4w-faq-accent, #e30613);
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 600;
    text-decoration: none !important;
    transition: filter .2s ease, transform .2s ease;
}

.r4w-downloads__button:hover {
    color: #fff !important;
    filter: brightness(.92);
}

.r4w-downloads__button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--r4w-faq-accent, #e30613) 35%, transparent);
    outline-offset: 3px;
}

.r4w-downloads__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 1180px) {
    .r4w-downloads__grid { gap: 14px; }
    .r4w-downloads__content { padding: 15px; }
    .r4w-downloads__title { font-size: min(var(--r4w-faq-question-size, 18px), 15.5px); }
    .r4w-downloads__description { font-size: min(var(--r4w-faq-answer-size, 16px), 13.5px); }
}

@media (max-width: 980px) {
    .r4w-downloads__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .r4w-downloads__content { padding: 17px; }
    .r4w-downloads__title { font-size: min(var(--r4w-faq-question-size, 18px), 16px); }
    .r4w-downloads__description { font-size: min(var(--r4w-faq-answer-size, 16px), 14px); }
}

@media (max-width: 767px) {
    .r4w-downloads__heading { gap: 10px; margin-bottom: 12px !important; font-size: min(var(--r4w-faq-topic-size, 24px), 22px); }
    .r4w-downloads__heading > span { width: 26px; flex-basis: 26px; }
    .r4w-downloads__grid { grid-template-columns: 1fr; gap: 12px; }
    .r4w-downloads__content { padding: 17px 16px 18px; }
    .r4w-downloads__title { font-size: min(var(--r4w-faq-question-size, 18px), 16px); }
    .r4w-downloads__description { font-size: min(var(--r4w-faq-answer-size, 16px), 14px); }
    .r4w-downloads__button { width: 100%; min-height: 44px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .r4w-downloads__card,
    .r4w-downloads__button { transition: none !important; }
}
