/**
 * Dropship-Optimierer: Darstellung auf der Produktseite.
 *
 * Zwei Aufgaben:
 *  1. Die Spezifikationstabelle wieder als normale Tabelle darstellen. Das
 *     Produkttemplate dreht Tabellen per CSS-Grid in die Horizontale - gebaut
 *     fuer die breiten Lieferantentabellen mit den Merkmalen als Spalten.
 *     Unsere Tabellen sind bereits zweispaltig, die Drehung macht sie kaputt.
 *  2. Das Q&A-Akkordeon.
 */

/* ============================================================
   1. Spezifikationstabelle
   ============================================================ */

.product-long-description table.nfds-spec-table {
    display: table !important;
    grid-auto-flow: initial !important;
    grid-auto-columns: initial !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    overflow-x: visible !important;
    table-layout: fixed !important;
}

.product-long-description table.nfds-spec-table thead,
.product-long-description table.nfds-spec-table tbody {
    display: table-row-group !important;
}

.product-long-description table.nfds-spec-table thead {
    display: table-header-group !important;
}

.product-long-description table.nfds-spec-table tr {
    display: table-row !important;
    grid-template-columns: none !important;
    position: static !important;
    box-shadow: none !important;
    background: transparent !important;
}

.product-long-description table.nfds-spec-table th,
.product-long-description table.nfds-spec-table td {
    display: table-cell !important;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    vertical-align: top !important;
    text-align: left !important;
    padding: 11px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    line-height: 1.55 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
}

/* Merkmalspalte */
.product-long-description table.nfds-spec-table th {
    width: 34% !important;
    background: #fafafa !important;
    font-weight: 600 !important;
    color: #313d4d !important;
}

.product-long-description table.nfds-spec-table td {
    background: #fff !important;
    color: #555 !important;
}

/* Kopfzeile */
.product-long-description table.nfds-spec-table thead th {
    background: #313d4d !important;
    color: #fff !important;
    font-weight: 600 !important;
    letter-spacing: .02em !important;
    border-bottom: 0 !important;
}

.product-long-description table.nfds-spec-table tbody tr:last-child th,
.product-long-description table.nfds-spec-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.product-long-description table.nfds-spec-table tbody tr:hover th {
    background: #f2f5f0 !important;
}

.product-long-description table.nfds-spec-table tbody tr:hover td {
    background: #fbfcfa !important;
}

@media (max-width: 600px) {
    .product-long-description table.nfds-spec-table th,
    .product-long-description table.nfds-spec-table td {
        padding: 9px 10px !important;
        font-size: .92rem !important;
    }
    .product-long-description table.nfds-spec-table th {
        width: 42% !important;
    }
}

/* ============================================================
   2. Q&A-Akkordeon

   Das Produkttemplate arbeitet durchgaengig mit !important, deshalb hier
   ebenfalls - sonst greift zum Beispiel das Padding der Fragezeile nicht.
   ============================================================ */

body .nfds-faq {
    margin: 48px 0 8px !important;
}

body .nfds-faq .nfds-faq__heading {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    color: #313d4d !important;
}

body .nfds-faq .nfds-faq__intro {
    margin: 0 0 22px !important;
    padding: 0 !important;
    color: #7a7a7a !important;
    font-size: .95rem !important;
}

body .nfds-faq .nfds-faq__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    border: 0 !important;
}

body .nfds-faq .nfds-faq__item {
    border: 1px solid #e4e7e2 !important;
    border-radius: 8px !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transition: border-color .18s ease, box-shadow .18s ease;
}

body .nfds-faq .nfds-faq__item:hover {
    border-color: #c8d3c0 !important;
}

body .nfds-faq .nfds-faq__item[open] {
    border-color: #496f32 !important;
    box-shadow: 0 2px 10px rgba(73, 111, 50, .07) !important;
}

body .nfds-faq .nfds-faq__question {
    cursor: pointer !important;
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 17px 20px !important;
    font-size: 1.02rem !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    color: #313d4d !important;
    background: transparent !important;
    border: 0 !important;
    user-select: none;
}

body .nfds-faq .nfds-faq__question::-webkit-details-marker { display: none !important; }
body .nfds-faq .nfds-faq__question::marker { content: '' !important; }

/* Plus-/Minus-Kreis rechts */
body .nfds-faq .nfds-faq__question::after {
    content: "+" !important;
    margin-left: auto !important;
    flex: 0 0 26px !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: #f0f3ee !important;
    color: #496f32 !important;
    font-size: 1.15rem !important;
    font-weight: 400 !important;
    line-height: 26px !important;
    text-align: center !important;
    transition: background .18s ease, color .18s ease;
}

body .nfds-faq .nfds-faq__item[open] .nfds-faq__question::after {
    content: "\2013" !important;
    background: #496f32 !important;
    color: #fff !important;
}

body .nfds-faq .nfds-faq__question:hover::after {
    background: #e2eadb !important;
}

body .nfds-faq .nfds-faq__item[open] .nfds-faq__question:hover::after {
    background: #3d5d2a !important;
}

body .nfds-faq .nfds-faq__answer {
    margin: 0 !important;
    padding: 15px 20px 19px 20px !important;
    line-height: 1.7 !important;
    color: #5b5b5b !important;
    font-size: .97rem !important;
    background: #fcfdfb !important;
    border-top: 1px solid #eef1ec !important;
}

body .nfds-faq .nfds-faq__answer p {
    margin: 0 0 10px !important;
}

body .nfds-faq .nfds-faq__answer p:last-child { margin-bottom: 0 !important; }

@media (max-width: 600px) {
    body .nfds-faq { margin: 34px 0 8px !important; }
    body .nfds-faq .nfds-faq__heading { font-size: 1.32rem !important; }
    body .nfds-faq .nfds-faq__question { padding: 14px 15px !important; font-size: .97rem !important; gap: 10px !important; }
    body .nfds-faq .nfds-faq__answer { padding: 13px 15px 16px !important; font-size: .93rem !important; }
}
