/*
 * Haeufige Fragen - Page-spezifische Styles
 *
 * Basis-Styles (Hero, Fonts, Responsive) kommen aus hybrid-pages.css.
 * Hier nur FAQ-spezifische Formatierung.
 *
 * Strategie: #primary bleibt full-width (Astra page-builder Modus).
 * Zentrierung ueber den inneren .haeufige-fragen-content Wrapper,
 * der von Astra nicht angefasst wird.
 *
 * Akkordeon: Native <details>/<summary> (kein JS noetig).
 * Content ist sofort im DOM — Google sieht alles.
 *
 * @package Natur-Luftballons
 * @since 1.0
 */

/* ===================================================================
   HERO MIT FRAGEZEICHEN-BALLON
   Absolut positioniert rechts im Hero (wie Baumi auf /unsere-idee/).
   Auf Mobile ausgeblendet.
   =================================================================== */

.faq-hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 250px;
}

.faq-hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}


/* ===================================================================
   CONTENT-WRAPPER (Zentrierung)
   #primary bleibt full-width (Astra page-builder).
   .haeufige-fragen-content uebernimmt max-width + Zentrierung.
   =================================================================== */

.haeufige-fragen-content {
    font-family: "Nunito", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}


/* ===================================================================
   INTRO-ABSATZ
   =================================================================== */

.faq-intro {
    font-family: "Nunito", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #374151;
    line-height: 1.8;
    margin: 0 0 2rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
}


/* ===================================================================
   FAQ-SEKTIONEN
   =================================================================== */

.faq-section {
    margin-bottom: 2.5rem;
}

.faq-section:last-child {
    margin-bottom: 0;
}

.faq-section h2 {
    font-family: "Nunito", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #62BC66;
}


/* ===================================================================
   FAQ-AKKORDEON (<details>/<summary>)
   =================================================================== */

.faq-item {
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item[open] {
    border-color: #62BC66;
}

.faq-item summary {
    font-family: "Nunito", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #333333;
    padding: 1rem 3rem 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    line-height: 1.5;
    -webkit-user-select: none;
    user-select: none;
}

/* Custom + / - Indicator */
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: #62BC66;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: "\2212"; /* Minus-Zeichen */
}

/* Default-Marker entfernen (Cross-Browser) */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    display: none;
    content: "";
}

/* Hover-Effekt */
.faq-item summary:hover {
    background: #f9fafb;
}

/* Focus-Styles (Barrierefreiheit) */
.faq-item summary:focus-visible {
    outline: 2px solid #62BC66;
    outline-offset: -2px;
    border-radius: 5px;
}


/* ===================================================================
   FAQ-ANTWORTEN
   =================================================================== */

.faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
    border-top: 1px solid #e1e5e9;
}

.faq-answer p,
.faq-answer li {
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #374151;
    line-height: 1.8;
}

.faq-answer p {
    margin: 0.75rem 0 0 0;
}

.faq-answer p:first-child {
    margin-top: 1rem;
}

.faq-answer ul {
    margin: 0.5rem 0 0.75rem 1.5rem;
    padding: 0;
}

.faq-answer li {
    margin-bottom: 0.4rem;
}


/* ===================================================================
   HERVORHEBUNGEN
   =================================================================== */

.haeufige-fragen-content .highlight {
    color: #62BC66;
    font-weight: 600;
}


/* ===================================================================
   LINKS
   =================================================================== */

.haeufige-fragen-content a {
    color: #62BC66;
    text-decoration: none;
    transition: color 0.2s ease;
}

.haeufige-fragen-content a:hover {
    color: #4fa853;
    text-decoration: underline;
}


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

@media (max-width: 768px) {
    .faq-hero-image {
        display: none;
    }

    .haeufige-fragen-content {
        padding: 1.5rem 1rem;
    }

    .faq-intro {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .faq-section {
        margin-bottom: 2rem;
    }

    .faq-section h2 {
        font-size: 1.3rem;
    }

    .faq-item summary {
        font-size: 1rem;
        padding: 0.875rem 2.5rem 0.875rem 1rem;
    }

    .faq-item summary::after {
        right: 1rem;
        font-size: 1.3rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .haeufige-fragen-content {
        padding: 1rem 0.75rem;
    }

    .faq-section h2 {
        font-size: 1.2rem;
    }

    .faq-item summary {
        font-size: 0.95rem;
        padding: 0.75rem 2.25rem 0.75rem 0.875rem;
    }

    .faq-item summary::after {
        right: 0.875rem;
    }

    .faq-answer {
        padding: 0 0.875rem 0.875rem 0.875rem;
    }

    .faq-answer p,
    .faq-answer li {
        font-size: 0.95rem;
    }
}
