/* GW FAQ — frontend styles. Uses theme CSS variables defined in gutscheinwerft theme. */

.gw-faq {
    --gw-faq-radius: 12px;
    --gw-faq-border: #e2e8ee;
    --gw-faq-card-bg: #fff;
    --gw-faq-card-shadow: 0 2px 12px rgba(27, 61, 95, 0.08);
    --gw-faq-accent: var(--color-navy, #1B3D5F);
    --gw-faq-accent-soft: rgba(27, 61, 95, 0.06);
    --gw-faq-text: var(--color-body-text, #1B3D5F);
    --gw-faq-muted: var(--color-text-muted, #5a7a96);

    color: var(--gw-faq-text);
    font-family: var(--font-primary, sans-serif);
    max-width: var(--container-max, 1400px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 24px);
}

.gw-faq__section {
    margin: 48px 0;
}

.gw-faq__section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gw-faq-accent);
    margin: 0 0 24px;
}

/* ------- Hero ------- */
.gw-faq__hero {
    background: var(--color-navy, #1B3D5F);
    color: #fff;
    border-radius: var(--gw-faq-radius);
    padding: 64px 32px;
    margin: 32px 0;
    text-align: center;
    position: relative;
    overflow: visible;
}

.gw-faq__hero-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.gw-faq__hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 24px;
    color: #fff;
}

.gw-faq__search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 100px;
    padding: 6px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
}

.gw-faq__search-icon {
    color: var(--gw-faq-muted);
    display: flex;
    margin-right: 12px;
}

.gw-faq__search-input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px 0;
    font-size: 1rem;
    background: transparent;
    color: var(--gw-faq-text);
    font-family: inherit;
}

.gw-faq__search-input:focus {
    box-shadow: none;
}

.gw-faq__live-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--gw-faq-radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    text-align: left;
    overflow: hidden;
    max-height: 480px;
    overflow-y: auto;
    z-index: 10;
}

.gw-faq__live-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gw-faq-border);
    color: var(--gw-faq-text);
    text-decoration: none;
    transition: background .15s;
}

.gw-faq__live-row:last-child { border-bottom: 0; }
.gw-faq__live-row:hover { background: var(--gw-faq-accent-soft); }

.gw-faq__live-question { flex: 1; font-size: 0.95rem; }
.gw-faq__live-question mark { background: rgba(245, 166, 35, 0.3); color: inherit; padding: 0 2px; }
.gw-faq__live-arrow { color: var(--gw-faq-muted); flex-shrink: 0; }

.gw-faq__no-live-results {
    padding: 20px;
    color: var(--gw-faq-muted);
    text-align: center;
}

/* ------- Cluster grid ------- */
.gw-faq__clusters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gw-faq__cluster-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
    background: var(--gw-faq-card-bg);
    border: 1px solid var(--gw-faq-border);
    border-radius: var(--gw-faq-radius);
    text-decoration: none;
    color: var(--gw-faq-text);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

.gw-faq__cluster-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--gw-faq-card-shadow);
    border-color: var(--gw-faq-accent);
    color: var(--gw-faq-text);
}

.gw-faq__cluster-card.is-active {
    border-color: var(--gw-faq-accent);
    background: var(--gw-faq-accent-soft);
}

.gw-faq__cluster-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gw-faq__cluster-icon img {
    max-width: 100%;
    max-height: 100%;
}

.gw-faq__cluster-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--gw-faq-accent);
}

.gw-faq__cluster-teaser {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gw-faq-muted);
    margin: 0;
}

/* ------- International / regions ------- */
.gw-faq__regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.gw-faq__region-card {
    padding: 20px 24px;
    background: var(--gw-faq-card-bg);
    border: 1px solid var(--gw-faq-border);
    border-radius: var(--gw-faq-radius);
    text-decoration: none;
    color: var(--gw-faq-text);
    text-align: center;
    font-weight: 500;
    transition: background .15s, border-color .15s;
}

.gw-faq__region-card:hover {
    background: var(--gw-faq-accent-soft);
    border-color: var(--gw-faq-accent);
    color: var(--gw-faq-accent);
}

.gw-faq__region-card.is-active {
    background: var(--gw-faq-accent);
    color: #fff;
    border-color: var(--gw-faq-accent);
}

/* ------- Sub-clusters layout ------- */
.gw-faq__sub-clusters-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 768px) {
    .gw-faq__sub-clusters-grid { grid-template-columns: 1fr; }
}

.gw-faq__sub-clusters-sidebar {
    background: var(--gw-faq-card-bg);
    border: 1px solid var(--gw-faq-border);
    border-radius: var(--gw-faq-radius);
    overflow: hidden;
    position: sticky;
    top: 24px;
}

.gw-faq__country-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gw-faq__country-item {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gw-faq-border);
    color: var(--gw-faq-text);
    text-decoration: none;
    transition: background .15s;
}

.gw-faq__country-item:last-child { border-bottom: 0; }
.gw-faq__country-item:hover { background: var(--gw-faq-accent-soft); color: var(--gw-faq-text); }

.gw-faq__country-item.is-active {
    background: var(--gw-faq-accent-soft);
    color: var(--gw-faq-accent);
    font-weight: 500;
    border-left: 3px solid var(--gw-faq-accent);
    padding-left: 17px;
}

.gw-faq__sub-prompt {
    color: var(--gw-faq-muted);
    padding: 16px;
}

/* ------- Accordion (recent / questions / search results) ------- */
.gw-faq__accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gw-faq__accordion--bordered {
    border: 1px solid var(--gw-faq-border);
    border-radius: var(--gw-faq-radius);
    overflow: hidden;
    gap: 0;
}

.gw-faq__accordion--bordered .gw-faq__accordion-item {
    border: 0;
    border-bottom: 1px solid var(--gw-faq-border);
    border-radius: 0;
    background: #fff;
}

.gw-faq__accordion--bordered .gw-faq__accordion-item:last-child {
    border-bottom: 0;
}

.gw-faq__accordion-item.is-highlighted {
    background: rgba(245, 166, 35, 0.08);
    box-shadow: inset 3px 0 0 var(--color-btn-cta, #F5A623);
}

.gw-faq__accordion-item.is-highlighted > .gw-faq__accordion-question {
    color: var(--gw-faq-accent);
}

.gw-faq__accordion-item {
    background: var(--gw-faq-card-bg);
    border: 1px solid var(--gw-faq-border);
    border-radius: var(--gw-faq-radius);
    overflow: hidden;
}

.gw-faq__accordion-question {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 500;
    color: var(--gw-faq-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    transition: background .15s;
}

.gw-faq__accordion-question::-webkit-details-marker { display: none; }

.gw-faq__accordion-question mark {
    background: rgba(245, 166, 35, 0.3);
    color: inherit;
    padding: 0 2px;
}

.gw-faq__accordion-question:hover { background: var(--gw-faq-accent-soft); }

.gw-faq__accordion-arrow {
    color: var(--gw-faq-accent);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform .2s;
    flex-shrink: 0;
}

details[open] > .gw-faq__accordion-question .gw-faq__accordion-arrow {
    transform: rotate(90deg);
}

.gw-faq__accordion-answer {
    padding: 0 20px 20px;
    color: var(--gw-faq-text);
    line-height: 1.6;
}

.gw-faq__accordion-answer mark {
    background: rgba(245, 166, 35, 0.3);
    color: inherit;
    padding: 0 2px;
}

/* ------- Search results header ------- */
.gw-faq__search-header { margin-bottom: 24px; }
.gw-faq__search-count { color: var(--gw-faq-muted); margin: 4px 0 0; }

.gw-faq__no-results {
    padding: 32px;
    text-align: center;
    color: var(--gw-faq-muted);
}

/* ------- Breadcrumb / nav ------- */
.gw-faq__breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.gw-faq__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid;
    background: transparent;
    cursor: pointer;
    line-height: 1.4;
}

.gw-faq__btn--back {
    color: var(--gw-faq-muted);
    border-color: var(--gw-faq-muted);
}
.gw-faq__btn--back:hover {
    color: #fff;
    background: var(--gw-faq-muted);
}

.gw-faq__btn--home {
    color: var(--gw-faq-accent);
    border-color: var(--gw-faq-accent);
}
.gw-faq__btn--home:hover {
    color: #fff;
    background: var(--gw-faq-accent);
}
