/* NS FAQ Custom Styles für BBW Lasertechnik */

/* Fragezeilen im BBW-Design (ersetzt Blau-Grau und Plus-Symbol des Plugins).
   Das Plugin setzt das Symbol nur per CSS (em:before) und beim Aufklappen die
   Klasse .ns-faq-active - daher reicht dieses Override, Plugin und Templates
   bleiben unveraendert. */

/* Zeile: weiss, kantig, feine Linie (bei vielen Zeilen ruhiger als Schatten);
   Schatten nur fuer die geoeffnete Frage und beim Ueberfahren.
   Drei Klassen tief, um die spaeter geladene Plugin-Regel
   .ns-faq-solid .ns-faq-title (padding, margin-right: 20px) zu schlagen. */
.ns-faq-list-wrap .ns-faq-list .ns-faq-title {
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5;
    border-left: 3px solid #e5e5e5;
    box-shadow: none;
    margin: 0 0 8px 0;
    padding: 12px 18px 12px 52px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ns-faq-list .ns-faq-title:hover,
.ns-faq-list .ns-faq-active > .ns-faq-title {
    border-left-color: #e73628;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.ns-faq-list .ns-faq-title-text h2 {
    color: #303030;
}

/* Schatten der Zeilen nicht abschneiden: die inneren Huellen bekamen frueher
   overflow:hidden gegen Ueberlaeufe. Lange Woerter bricht word-break weiterhin um,
   die aeussere .container (15px Innenabstand) begrenzt den Schatten. */
.ns-faq-list-wrap .ns-faq-list,
.ns-faq-list-wrap .ns-faq-category-content,
.ns-faq-list-wrap .ns-faq-wrap {
    overflow: visible;
}

/* Symbol: roter Chevron ">" statt Plus, dreht sich beim Aufklappen nach unten */
.ns-faq-list .ns-faq-title .ns-faq-icon-wrap {
    background-color: transparent !important;
    top: 50%;
    margin-top: -17px;
}
.ns-faq-list .ns-faq-title .ns-faq-icon-wrap em {
    top: 50%;
    color: #e73628;
    font-size: 15px;
    line-height: 1;
    transform: translate(-50%, -50%);
}
.ns-faq-list .ns-faq-blocks .ns-faq-title em:before,
.ns-faq-list .ns-faq-blocks .ns-faq-active .ns-faq-title em:before {
    content: "\f054" !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    display: inline-block;
    transition: transform .2s ease;
}
.ns-faq-list .ns-faq-blocks .ns-faq-active .ns-faq-title em:before {
    transform: rotate(90deg);
}

/* Antwort: Textfarbe der Seite statt Blau-Grau des Plugins; haengt aufgeklappt
   als eine Karte an der Frage (gleiche rote Kante) */
.ns-faq-list .ns-faq-body {
    color: #4d4d4d;
    padding: 4px 18px 18px 52px;
}
.ns-faq-list-wrap .ns-faq-list .ns-faq-active > .ns-faq-title {
    margin-bottom: 0;
    border-bottom-color: transparent;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.ns-faq-list .ns-faq-body > :last-child {
    margin-bottom: 0;
}
.ns-faq-list .ns-faq-active > .ns-faq-body {
    position: relative;
    margin-bottom: 8px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-top: 0;
    border-left: 3px solid #e73628;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

/* Bootstrap Row negative Margins für FAQ-Bereich überschreiben */
.ns-faq-list-wrap .container .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
}

/* Container Overflow beheben */
.ns-faq-list-wrap .container {
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.ns-faq-list-wrap {
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.ns-faq-list {
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

.ns-faq-category-content {
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* Overflow-Probleme beheben */
.ns-faq-wrap {
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

.ns-faq-title {
    overflow: hidden;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

.ns-faq-title a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.ns-faq-title-text {
    overflow: hidden;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    width: calc(100% - 50px);
}

.ns-faq-title-text h2 {
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 767px) {
    .ns-faq-title-text h2 {
        font-size: 16px;
    }
}

.ns-faq-body {
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

/* Content List Overflow */
.ns-faq-body .content_list {
    overflow: hidden;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
}

.ns-faq-body .content_list li {
    overflow: hidden;
    word-wrap: break-word;
    margin-bottom: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.ns-faq-body p {
    overflow: hidden;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

/* Padding anpassen für bessere Darstellung */
.ns-faq-body {
    padding: 15px 15px 20px 15px;
}

/* Frueher: graues Feld verkuerzt (width/margin-right mit !important) - entfaellt,
   Masse und Abstaende stehen jetzt oben im Block "Fragezeilen im BBW-Design". */

/* Vertikale Zentrierung des Texts in der Fragezeile */
.ns-faq-solid .ns-faq-title a {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

/* Kein Unterstrich bei Hover */
.ns-faq-solid .ns-faq-title a:hover,
.ns-faq-solid .ns-faq-title a:focus {
    text-decoration: none !important;
}

/* Responsive: Bei kleineren Bildschirmen */
@media (max-width: 767px) {
    .ns-faq-body {
        padding: 10px 10px 15px 10px;
    }
    
    .ns-faq-list-wrap .ns-faq-list .ns-faq-title {
        padding: 10px 12px 10px 46px;
    }
    .ns-faq-list .ns-faq-body {
        padding: 4px 12px 16px 46px;
    }
    
    .ns-faq-title-text {
        width: calc(100% - 50px);
    }
}

