/* ===== Rugbyunion FAQ – Frontend-Styles v1.1.0 ============================
   Vereinsfarben: #db261e (Rot) | #01923f (Grün) | #1c1b17 (Dunkel)
   Design 1:1 wie Marktplatz-Plugin: Full-Bleed, Hero-Banner, SVG-Dreiecke
   ========================================================================= */

/* ── CSS-Variablen ──────────────────────────────────────────────────────── */
.rufaq-wrap {
    --black:    #1c1b17;
    --black2:   #252521;
    --rot:      #db261e;
    --gruen:    #01923f;
    --gruen-h:  #02b34d;
    --white:    #ffffff;
    --text:     #ececec;
    --muted:    #9a9a92;
    --border:   #3a3a34;
}

/* ── Full-Bleed: aus Theme-Container ausbrechen ─────────────────────────── */
.rufaq-wrap {
    font-family:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background:   var(--black) !important;
    color:        var(--text);
    font-size:    15px;
    line-height:  1.6;
    width:        100vw !important;
    position:     relative;
    left:         50%;
    margin-left:  -50vw !important;
    overflow-x:   hidden;
}

/* ── Hero-Banner (exakt wie Marktplatz) ─────────────────────────────────── */
.rufaq-hero {
    position:            relative;
    background-size:     cover;
    background-position: center 35%;
    background-repeat:   no-repeat;
    min-height:          300px;
    display:             flex;
    align-items:         center;
    justify-content:     center;
    overflow:            hidden;
    padding:             110px 24px 70px;
}

.rufaq-hero::before {
    content:    '';
    position:   absolute;
    inset:      0;
    background: rgba(20, 19, 16, 0.35);
    z-index:    1;
}

/* SVG-Dreiecke */
.rufaq-hero-overlay {
    position:       absolute;
    inset:          0;
    width:          100%;
    height:         100%;
    z-index:        2;
    pointer-events: none;
}

/* Text über den Dreiecken */
.rufaq-hero-content {
    position:   relative;
    z-index:    3;
    text-align: center;
    max-width:  700px;
}

.rufaq-hero-content h1 {
    font-family:    'Anton', sans-serif !important;
    font-size:      3rem !important;
    font-weight:    400 !important;
    line-height:    1.05 !important;
    letter-spacing: 0.01em !important;
    color:          #ffffff !important;
    background:     transparent !important;
    text-shadow:    0 2px 16px rgba(0,0,0,0.6) !important;
    margin:         0 !important;
    padding:        0 !important;
    text-transform: uppercase !important;
}

.rufaq-hero-content p {
    font-size:   1rem !important;
    color:       rgba(255,255,255,0.85) !important;
    margin-top:  10px !important;
    font-style:  italic !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6) !important;
}

/* ── FAQ-Inhaltsbereich ─────────────────────────────────────────────────── */
.rufaq-body {
    max-width: 860px;
    margin:    0 auto;
    padding:   48px 24px 70px;
}

/* ── Akkordeon-Liste ─────────────────────────────────────────────────────── */
.rufaq-accordion {
    list-style: none !important;
    margin:     0 !important;
    padding:    0 !important;
}

/* ── Einzelnes FAQ-Item ─────────────────────────────────────────────────── */
.rufaq-item {
    border-bottom: 1px solid var(--border) !important;
    background:    transparent !important;
    margin:        0 !important;
    padding:       0 !important;
}

.rufaq-item:first-child {
    border-top: 1px solid var(--border) !important;
}

/* ── Frage / Button ─────────────────────────────────────────────────────── */
.rufaq-wrap .rufaq-question {
    display:         flex !important;
    justify-content: space-between !important;
    align-items:     center !important;
    width:           100% !important;
    padding:         20px 0 !important;
    background:      transparent !important;
    border:          none !important;
    border-radius:   0 !important;
    cursor:          pointer !important;
    text-align:      left !important;
    color:           #ffffff !important;
    font-family:     'Inter', sans-serif !important;
    font-size:       1.05rem !important;
    font-weight:     600 !important;
    line-height:     1.4 !important;
    box-shadow:      none !important;
    text-transform:  none !important;
    letter-spacing:  normal !important;
    transition:      color 0.2s ease;
}

.rufaq-wrap .rufaq-question:hover,
.rufaq-wrap .rufaq-question:focus-visible {
    color:      var(--rot) !important;
    background: transparent !important;
    outline:    none !important;
    box-shadow: none !important;
}

.rufaq-wrap .rufaq-question[aria-expanded="true"] .rufaq-question-text {
    color: var(--rot) !important;
}

/* ── Icon (Plus / Minus) ────────────────────────────────────────────────── */
.rufaq-icon {
    display:         flex !important;
    flex-shrink:     0 !important;
    align-items:     center !important;
    justify-content: center !important;
    width:           28px !important;
    height:          28px !important;
    margin-left:     16px !important;
    border-radius:   50% !important;
    border:          2px solid rgba(255,255,255,0.35) !important;
    background:      transparent !important;
    transition:      border-color 0.2s ease, background 0.2s ease;
    position:        relative;
}

.rufaq-icon::before,
.rufaq-icon::after {
    content:    '' !important;
    position:   absolute;
    background: #ffffff !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.rufaq-icon::before { width: 12px; height: 2px; }
.rufaq-icon::after  { width: 2px;  height: 12px; }

.rufaq-wrap .rufaq-question[aria-expanded="true"] .rufaq-icon {
    border-color: var(--rot) !important;
    background:   var(--rot) !important;
}

.rufaq-wrap .rufaq-question[aria-expanded="true"] .rufaq-icon::before,
.rufaq-wrap .rufaq-question[aria-expanded="true"] .rufaq-icon::after {
    background: #ffffff !important;
}

.rufaq-wrap .rufaq-question[aria-expanded="true"] .rufaq-icon::after {
    transform: rotate(90deg);
    opacity:   0;
}

/* ── Antwort-Bereich ────────────────────────────────────────────────────── */
.rufaq-answer {
    overflow:   hidden !important;
    max-height: 0;
    transition: max-height 0.35s ease;
    background: transparent !important;
}

.rufaq-answer[hidden] {
    display: block !important;
}

.rufaq-answer-inner {
    padding:     4px 0 24px 0 !important;
    color:       #cccccc !important;
    font-family: 'Inter', sans-serif !important;
    font-size:   0.97rem !important;
    line-height: 1.75 !important;
    background:  transparent !important;
}

.rufaq-answer-inner p         { margin: 0 0 12px !important; color: #cccccc !important; }
.rufaq-answer-inner p:last-child { margin-bottom: 0 !important; }
.rufaq-answer-inner a         { color: var(--rot) !important; text-decoration: underline !important; text-underline-offset: 2px; transition: color 0.2s ease; }
.rufaq-answer-inner a:hover   { color: #ff4a40 !important; }
.rufaq-answer-inner ul,
.rufaq-answer-inner ol        { padding-left: 22px !important; margin: 0 0 12px !important; color: #cccccc !important; }
.rufaq-answer-inner li        { margin-bottom: 6px !important; color: #cccccc !important; }
.rufaq-answer-inner strong,
.rufaq-answer-inner b         { color: #ffffff !important; }

/* ── Leer-Meldung ───────────────────────────────────────────────────────── */
.rufaq-empty {
    text-align:  center;
    padding:     60px 24px;
    color:       var(--muted) !important;
    font-style:  italic !important;
    font-family: 'Inter', sans-serif !important;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media ( max-width: 640px ) {
    .rufaq-hero-content h1 { font-size: 2rem !important; }
    .rufaq-hero            { padding: 80px 16px 50px; }
    .rufaq-body            { padding: 28px 16px 40px; }
    .rufaq-wrap .rufaq-question { font-size: 0.97rem !important; }
}
