/*
 * Theme Plus: Artikelseite, unter dem Beschreibungstext (frontend/bmaxx_theme/detail/specs.tpl und service.tpl).
 * „Technische Daten“ als ruhige Liste, ab 720 Pixel Breite des Bereichs in zwei Spalten, darunter „Service und Unterlagen“ als
 * Karten (am Desktop bis zu drei nebeneinander, am Handy untereinander mit großen Flächen zum Tippen). Lädt nur auf Artikelseiten
 * mit Theme Plus Beschreibung (Subscriber/DescSubscriber.php). Symbole dunkelgrau auf hellgrauem Kreis (wie die
 * Symbole der Infokarte in der Kaufbox), nicht in der Akzentfarbe.
 * Die Selektoren tragen die Klasse zweimal, wo Regeln der Themes für die Beschreibung (Überschriften, Listen, Links) sonst gewinnen.
 * Am Ende: gemeinsame Regeln für die Beschreibungen von hansgrohe und AXOR (.hgx, gerundete Ecken).
 */

.bmx-tech,
.bmx-dsvc {
    --bmx-d-ink: #1f2328;
    --bmx-d-head: #171f26;
    --bmx-d-muted: #545a63;
    --bmx-d-soft: #676d76;
    --bmx-d-line: #eceef1;
    --bmx-d-border: #e0e3e8;
    --bmx-d-icon: #59616b;
    --bmx-d-tint: #f1f2f4;
    clear: both;
    color: var(--bmx-d-ink);
}

/* ---------- Technische Daten ---------- */

.bmx-tech {
    container-type: inline-size;
    margin: 28px 0 0;
}

.bmx-tech .bmx-tech__title,
.bmx-dsvc .bmx-dsvc__title {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: var(--bmx-d-head);
}

.bmx-tech__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 48px;
}

@container (min-width: 720px) {
    .bmx-tech__cols--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bmx-tech .bmx-tech__list {
    margin: 0;
    padding: 0;
}

.bmx-tech .bmx-tech__row {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--bmx-d-line);
    font-size: 14.5px;
    line-height: 22px;
}

.bmx-tech .bmx-tech__label {
    margin: 0;
    padding: 0;
    font-weight: 400;
    color: var(--bmx-d-muted);
    overflow-wrap: break-word;
}

.bmx-tech .bmx-tech__value {
    margin: 0;
    padding: 0;
    font-weight: 600;
    color: var(--bmx-d-ink);
    overflow-wrap: anywhere;
}

.bmx-tech .bmx-tech__note {
    margin: 10px 0 0;
    padding: 0;
    font-size: 12.5px;
    line-height: 18px;
    color: var(--bmx-d-soft);
}

/* ---------- Service und Unterlagen ---------- */

.bmx-dsvc {
    margin: 32px 0 0;
}

.bmx-dsvc .bmx-dsvc__title {
    margin-bottom: 14px;
}

.bmx-dsvc .bmx-dsvc__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Wenige Karten nicht über die ganze Breite ziehen */
.bmx-dsvc .bmx-dsvc__grid--n1 {
    max-width: 420px;
}

.bmx-dsvc .bmx-dsvc__grid--n2 {
    max-width: 860px;
}

.bmx-dsvc .bmx-dsvc__grid > li {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bmx-dsvc .bmx-dsvc__grid > li::before {
    content: none;
}

/* Flacher: 56 statt 74 Pixel hoch, Symbol 34 statt 42 Pixel */
.bmx-dsvc a.bmx-dsvc__card {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    min-height: 56px;
    box-sizing: border-box;
    padding: 9px 14px 9px 11px;
    border: 1px solid var(--bmx-d-border);
    border-radius: 8px;
    background: #fff;
    color: var(--bmx-d-ink);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.bmx-dsvc a.bmx-dsvc__card:hover {
    border-color: #cfd4da;
    box-shadow: 0 2px 10px rgba(20, 30, 40, .07);
    color: var(--bmx-d-ink);
}

.bmx-dsvc a.bmx-dsvc__card:focus-visible {
    outline: 2px solid var(--bmx-d-icon);
    outline-offset: 2px;
}

.bmx-dsvc .bmx-dsvc__ic {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bmx-d-tint);
    color: var(--bmx-d-icon);
}

.bmx-dsvc .bmx-dsvc__ic svg {
    display: block;
    width: 18px;
    height: 18px;
}

.bmx-dsvc .bmx-dsvc__txt {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1 1 auto;
    min-width: 0;
}

.bmx-dsvc .bmx-dsvc__name {
    font-size: 14.5px;
    line-height: 19px;
    font-weight: 600;
    color: var(--bmx-d-ink);
    overflow-wrap: anywhere;
}

.bmx-dsvc .bmx-dsvc__sub {
    font-size: 12.5px;
    line-height: 17px;
    font-weight: 400;
    color: var(--bmx-d-muted);
    overflow-wrap: anywhere;
}

.bmx-dsvc .bmx-dsvc__go {
    display: block;
    flex: none;
    width: 18px;
    height: 18px;
    color: #8d949e;
}

/* ---------- Handy ---------- */

@media (max-width: 767px) {
    .bmx-tech {
        margin-top: 24px;
    }

    .bmx-tech .bmx-tech__row {
        grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
        gap: 12px;
        line-height: 21px;
    }

    .bmx-dsvc {
        margin-top: 28px;
    }

    .bmx-dsvc .bmx-dsvc__title {
        margin-bottom: 12px;
    }

    .bmx-dsvc .bmx-dsvc__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        max-width: none;
    }

    .bmx-dsvc a.bmx-dsvc__card {
        gap: 11px;
        min-height: 54px;
        padding: 8px 12px 8px 10px;
    }

    .bmx-dsvc .bmx-dsvc__ic {
        width: 34px;
        height: 34px;
    }
}

@media print {
    .bmx-dsvc {
        display: none;
    }
}

/* ---------- Bewertungen (views_first/frontend/detail/tabs/comment.tpl) ---------- */

/* Ohne Bewertungen: leere Sterne, kurzer Hinweis, darunter der Knopf zum Formular */
.bmx-rv-empty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 4px;
}

.bmx-rv-empty .bmx-rv-empty__stars {
    display: flex;
    gap: 3px;
    color: #c3c8ce;
    line-height: 0;
}

.bmx-rv-empty .bmx-rv-empty__stars svg {
    display: block;
    width: 20px;
    height: 20px;
}

.bmx-rv-empty .bmx-rv-empty__title {
    margin: 6px 0 0;
    padding: 0;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    color: #1f2328;
}

.bmx-rv-empty .bmx-rv-empty__text {
    margin: 0;
    padding: 0;
    font-size: 14.5px;
    line-height: 22px;
    color: #3a434d;
}

/* Formular hinter dem Knopf „Bewertung schreiben“ (details, ohne Skript) */
.bmx-rv-form {
    margin: 20px 0 0;
}

.bmx-rv-form.is--empty {
    margin-top: 12px;
}

.bmx-rv-form > summary.bmx-rv-form__btn {
    display: inline-flex;
    align-items: center;
    height: 44px;
    box-sizing: border-box;
    padding: 0 18px;
    border: 1px solid #cfd4da;
    border-radius: 6px;
    background: #fff;
    color: #1f2328;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    list-style: none;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: border-color .15s ease;
}

.bmx-rv-form > summary.bmx-rv-form__btn::-webkit-details-marker {
    display: none;
}

.bmx-rv-form > summary.bmx-rv-form__btn::marker {
    content: "";
}

.bmx-rv-form > summary.bmx-rv-form__btn:hover {
    border-color: #8d949e;
}

.bmx-rv-form > summary.bmx-rv-form__btn:focus-visible {
    outline: 2px solid #59616b;
    outline-offset: 2px;
}

.bmx-rv-form[open] > summary.bmx-rv-form__btn {
    margin-bottom: 14px;
}

/* Die Überschrift „Bewertung schreiben“ des Formulars steht schon auf dem Knopf. Sie bleibt für Sprungmarken im Seitentext,
   nur unsichtbar. */
.bmx-rv-form #product--publish-comment {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Antwort des Shops: „Antwort von Bädermaxx“ statt „Von: Admin“ */
.review--entry.is--answer .bmx-rv-answer__by {
    font-weight: 600;
    color: #1f2328;
}

/* ---------- Beschreibungen von hansgrohe und AXOR (.hgx) ---------- */

/*
 * Die Gestaltung steckt im Beschreibungstext jedes Artikels (bmaxx-css). Hier nur, was für alle gilt: leicht gerundete
 * Ecken wie bei den Karten „Mit/Ohne Grundkörper“, für Kacheln (Technologien, „Im Set enthalten“, Maßzeichnungen, Bilder
 * der Technologie-Reiter, Auswahl Grundkörper, einzelne Maßzeichnung), Kopfbereich, graue Abschnitte und Hinweise.
 */
.hgx .hgx-feat__i,
.hgx .hgx-card,
.hgx .hgx-drw,
.hgx .hgx-tp__img,
.hgx .hgx-opt,
.hgx .hgx-hero {
    border-radius: 10px;
    overflow: hidden;
}

.hgx .hgx-drw1 img,
.hgx .hgx-sec--grey,
.hgx .hgx-note {
    border-radius: 10px;
}

/* Stoßen zwei Flächen ohne Abstand aneinander (Kopfbereich und grauer Abschnitt, zwei graue Abschnitte), bleiben die
   Ecken an der Naht eckig. Beide wirken dann wie eine Fläche. */
.hgx .hgx-hero:has(+ .hgx-sec--grey),
.hgx .hgx-sec--grey:has(+ .hgx-sec--grey) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.hgx .hgx-hero + .hgx-sec--grey,
.hgx .hgx-sec--grey + .hgx-sec--grey {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/*
 * Einheitlich in allen Set-Beschreibungen (seit 0.0.33). Die Beschreibungen stammen aus mehreren Generator-Ständen mit
 * eigenen Regeln im Text (3, 4, 5 oder 6 Spalten, Hinweise mit Strich oder als Box). Diese Regeln setzen sich durch.
 */

/* „Im Set enthalten“: große Kacheln in 4 Spalten, Tablet 3, Handy 2. */
.hgx .hgx-grid:has(> .hgx-card) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

@media (max-width: 1023px) {
    .hgx .hgx-grid:has(> .hgx-card) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .hgx .hgx-grid:has(> .hgx-card) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Hinweise: graue Box mit rundem i-Symbol, in grauen Abschnitten weiß. */
.hgx .hgx-note {
    position: relative !important;
    margin: 16px 0 0 !important;
    padding: 14px 18px 14px 52px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--hg-grey, #f4f4f4) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.hgx .hgx-sec.hgx-sec--grey .hgx-note {
    background: #fff !important;
}

.hgx .hgx-note::before {
    content: "i";
    position: absolute;
    left: 17px;
    top: 15px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--hg-teal, #00818a);
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.hgx .hgx-note b,
.hgx .hgx-note strong {
    font-weight: 600;
}

@media (max-width: 599px) {
    .hgx .hgx-note {
        padding: 12px 14px 12px 46px !important;
        font-size: 14px !important;
    }

    .hgx .hgx-note::before {
        left: 14px;
        top: 13px;
    }
}
