/* ==========================================================================
   ZimmWriter „Black Tie Mode“ (Amazon-Produktvergleich)
   Wird nur auf Artikeln mit Black-Tie-Blöcken geladen.
   Farbe und Fazit-Beschriftung pro Artikel über --btie-accent und --btie-verdict
   (aus der ZimmWriter-HTML-Datei), sonst die Standardwerte unten.
   ========================================================================== */

.btie-scope {
    --btie-dark: var(--btie-accent, var(--navy-900, #19212B));
    --btie-text: #FAF9F9;
}

/* Anpassungen an das Seitenlayout. Bewusst niedrige Spezifität (Typ + eine Klasse), damit die
   eigentlichen Black-Tie-Regeln (zwei Klassen) gewinnen und .prose/.article-body überschrieben werden. */
table.btie-style-short { margin: 2.5em auto; font-size: inherit; }
.btie-style-short td,
.btie-style-short th { border: none; padding: 0; text-align: left; background: none; }
.btie-style-short h2 { margin-top: 0; }
p.btie-style-reviews-pre { font-size: 38px; }
.btie-style-reviews-features li { font-size: inherit; margin-bottom: 0; }
.btie-style-reviews > li { margin-bottom: 25px; }
.btie-style-box img,
.btie-style-short img { border-radius: 0; margin-left: auto; margin-right: auto; height: auto; }
.btie-style-box img { margin-top: 0; margin-bottom: 0; }
.btie-style-desc a { color: inherit; text-decoration: underline; }

/* Zeilen ohne Bild ausblenden (Bild bei Amazon nicht mehr vorhanden) */
table.btie-style-short tr:has(td.toc-img img[src=""]),
table.btie-style-short tr:has(td.toc-img img:not([src])) { display: none !important; }
ol.btie-style-reviews li:has(.btie-style-box img[src=""]),
ol.btie-style-reviews li:has(.btie-style-box img:not([src])) { display: none !important; }

/* ---------- Vergleichstabelle ---------- */
.btie-style-short a,
.btie-style-reviews a,
.btie-style-short a:hover,
.btie-style-reviews a:hover { box-shadow: none !important; color: black !important; }

.btie-style-short { counter-reset: totalReview; max-width: 850px; border: none; }
.btie-style-short caption { caption-side: top !important; display: table-caption !important; order: -1; text-align: center; }
.btie-style-short h2 { text-transform: uppercase; margin-bottom: 50px; }
.btie-style-short:after { border-bottom: 1px solid #E9E9E9; content: ""; width: 100%; display: block; }
table.btie-style-short { border-collapse: collapse; width: 100%; height: 100%; }
.btie-style-short tbody { height: 100%; }

.btie-style-short tr {
    background-color: #FFF;
    margin-bottom: 40px;
    display: grid !important;
    position: relative;
    grid-template-columns: 1fr minmax(0, 2fr) 1fr;
    column-gap: 10px;
    row-gap: 2px;
    padding: 50px 25px 25px;
    box-shadow: 0 15px 40px rgb(166 172 201 / .2);
    border-radius: 5px;
    place-items: start start;
    counter-increment: totalReview;
}
.btie-style-short tr td { border: none; }

.btie-style-short .toc-img { grid-column: 1 / 2; grid-row: 1 / 10; align-self: center; padding-right: 15px; line-height: 0; }
.btie-style-short .toc-img a { display: block; }
.btie-style-short .toc-img img { object-fit: cover; width: 100%; max-width: 185px; max-height: 185px; margin-top: 15px; margin-bottom: 15px; }

.btie-style-short .toc-det { grid-column: 2 / 4; grid-row: 1 / 2; font-size: 24px; line-height: 24px; font-weight: 700; place-self: start start; width: 100%; }
.btie-style-short .toc-det a { text-decoration: none !important; color: black; box-shadow: none; }
.btie-style-short .toc-det a:hover { text-decoration: underline !important; text-decoration-color: black !important; box-shadow: none; }

.btie-style-short .toc-tag {
    position: absolute;
    top: -14px;
    left: -12px;
    display: inline-block;
    background-color: var(--btie-dark);
    color: #FFF;
    z-index: 5;
    font-weight: 700;
    padding: 11px 20px;
    font-size: 16px;
    line-height: 19px;
    text-transform: uppercase;
    box-shadow: 2px 2px 2px 0 rgb(0 0 0 / .14);
    width: auto;
    text-align: left;
}
.btie-style-short .toc-tag::after {
    content: " ";
    display: block;
    position: absolute;
    left: -10px;
    bottom: -8px;
    border-color: #fff0 rgb(25 33 43 / .40) #fff0 #fff0;
    border-style: inset solid inset inset;
    border-width: 0 12px 8px 10px;
    filter: brightness(50%);
    z-index: 1;
}

.btie-style-short td.toc-pro1::before,
.btie-style-short td.toc-pro2::before,
.btie-style-short td.toc-pro3::before {
    content: '\2713';
    font-size: 12px;
    color: var(--btie-dark);
    margin-right: 5px;
    display: inline-block;
    width: 16px;
    text-align: center;
    font-weight: 700;
}
.btie-style-short .toc-pro1,
.btie-style-short .toc-pro2,
.btie-style-short .toc-pro3 {
    font-size: 16px;
    line-height: 22px;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    width: 100%;
}
.btie-style-short .toc-pro1 { grid-column: 2 / 3; grid-row: 4 / 5; align-self: start; }
.btie-style-short .toc-pro2 { grid-column: 2 / 3; grid-row: 5 / 6; align-self: start; }
.btie-style-short .toc-pro3 { grid-column: 2 / 3; grid-row: 6 / 7; align-self: start; }

.btie-style-short .toc-but {
    grid-column: 3 / 4;
    grid-row: 4 / 6;
    display: flex;
    align-self: center;
    justify-self: center;
    text-align: center;
    padding: 10px 20px;
    font-size: 15px;
    line-height: 22px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 5px;
    color: var(--btie-text);
    background-color: var(--btie-dark);
    box-shadow: 0 15px 40px rgb(166 172 201 / .2);
}
.btie-style-short .toc-but a { color: #FFF !important; text-decoration: none; box-shadow: none; align-self: center; }
.btie-style-short .toc-but:hover,
.btie-style-short .toc-but:active {
    transform: matrix(1.02, 0, 0, 1.02, 0, 0);
    box-shadow: 0 20px 35px rgb(160 164 183 / .417);
}
.btie-style-short .toc-but:hover a { text-decoration: underline; text-decoration-color: #FAF9F9 !important; }

.btie-style-short .toc-rev {
    grid-column: 3 / 4;
    grid-row: 6 / 7;
    align-self: start;
    justify-self: center;
    font-size: 15px;
    text-decoration: underline;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    line-height: 20px;
}
.btie-style-short .toc-rev a:hover { font-weight: 600; }

@media (max-width: 767px) {
    .btie-style-short .toc-tag { font-size: 16px; }
    .btie-style-short tr { grid-template-columns: minmax(80px, 1fr) 1fr 1fr; column-gap: 10px; padding: 40px 20px 30px; place-items: center center; }
    .btie-style-short .toc-img { max-width: 150px; grid-column: 1 / 2; grid-row: 1 / 9; }
    .btie-style-short .toc-det { grid-column: 2 / 4; grid-row: 1 / 2; font-size: 19px; line-height: 22px; margin-bottom: 10px; }
    .btie-style-short .toc-pro1 { grid-column: 2 / 4; grid-row: 2 / 3; width: 100%; font-size: 16px; line-height: 23px; }
    .btie-style-short .toc-pro2 { grid-column: 2 / 4; grid-row: 3 / 4; width: 100%; font-size: 16px; line-height: 23px; }
    .btie-style-short .toc-pro3 { grid-column: 2 / 4; grid-row: 4 / 5; width: 100%; font-size: 16px; line-height: 23px; }
    .btie-style-short .toc-but { grid-column: 3 / 4; grid-row: 8 / 9; place-self: center end; padding: 8px 14px; justify-content: center; }
    .btie-style-short .toc-rev { grid-column: 2 / 3; grid-row: 8 / 9; place-self: center start; font-size: 16px; line-height: 24px; }
    .btie-style-short .toc-rev:before { content: "[ "; }
    .btie-style-short .toc-rev:after { content: " ]"; }
}

@media (max-width: 549px) {
    .btie-style-short { display: flex; flex-direction: column; max-width: 95%; margin-left: auto; margin-right: auto; }
    .btie-style-short tbody { padding-left: 10px; padding-right: 10px; }
    .btie-style-short tr { display: flex !important; flex-direction: column; max-width: 450px; padding: 15px; margin-bottom: 50px; }
    .btie-style-short .toc-det { font-size: 25px; line-height: 28px; letter-spacing: -1px; margin-top: 35px; text-align: center; }
    .btie-style-short .toc-img { min-width: 100px; max-width: 200px; }
    .btie-style-short .toc-pro1,
    .btie-style-short .toc-pro2,
    .btie-style-short .toc-pro3 { align-self: center; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .btie-style-short .toc-but { min-width: 160px; font-size: 16px; margin-top: 20px; margin-bottom: 0; justify-content: center; }
    .btie-style-short .toc-rev { align-self: center; margin-bottom: 10px; }
}

@media (max-width: 500px) {
    .btie-style-short { max-width: 100%; }
    .btie-style-short .toc-pro1,
    .btie-style-short .toc-pro2,
    .btie-style-short .toc-pro3 { max-width: 100%; }
    .btie-style-short .toc-tag { font-size: 14px; line-height: 16px; padding: 12px 15px; }
    .btie-style-short .toc-but { font-size: 14px; line-height: 16px; padding: 12px 15px; }
}

/* ---------- Einzelbewertungen ---------- */
.btie-style-reviews-pre {
    text-transform: uppercase;
    letter-spacing: -1px;
    font-size: 38px;
    font-weight: 700;
    display: block;
    margin-top: 50px;
    margin-bottom: 0;
    text-align: center;
    line-height: 36px;
}

ol.btie-style-reviews {
    width: 100%;
    list-style-position: inside;
    padding-left: 0;
    list-style-type: none;
    counter-reset: currentReview;
    margin-left: 0;
    margin-right: 0;
}
.btie-style-reviews > li { margin-bottom: 25px; display: flex; flex-direction: column; }

.btie-style-reviews h2 {
    font-size: 35px;
    margin-bottom: 0;
    margin-top: 25px;
    width: auto;
    background: #FFF;
    padding: 35px 25px 0;
    text-align: center;
    position: relative;
    box-shadow: 0 -25px 10px -4px rgb(166 172 201 / .056);
    z-index: 1;
    border-radius: 3px 3px 0 0;
}
.btie-style-reviews h2:before {
    position: absolute;
    top: -14px;
    left: -12px;
    display: inline-block;
    background-color: var(--btie-dark);
    color: var(--btie-text);
    z-index: 5;
    font-weight: 700;
    padding: 14px;
    font-size: 16px;
    line-height: 12px;
    text-transform: uppercase;
    box-shadow: 2px 2px 2px 0 rgb(0 0 0 / .14);
    width: auto;
    text-align: left;
    content: counter(currentReview) " / " counter(totalReview) " ";
    counter-increment: currentReview;
}

.btie-style-box {
    background-color: #FFF;
    margin-bottom: 15px;
    display: grid;
    position: relative;
    grid-template-columns: 1fr 1fr;
    column-gap: 25px;
    row-gap: 25px;
    padding: 25px;
    box-shadow: 0 25px 10px -4px rgb(166 172 201 / .056);
    place-items: center center;
    z-index: 1;
    border-radius: 0 0 3px 3px;
}
.btie-style-box-image { grid-column: 1 / 2; grid-row: 1 / 3; width: 100%; text-align: center; }
.btie-style-box-image img { max-width: 200px; width: 100%; }
.btie-style-box a:has(> img) { grid-column: 1 / 2; grid-row: 1 / 3; width: 100%; text-align: center; }
.btie-style-box img { max-width: 200px; max-height: 200px; }
.btie-style-box:after {
    border-right: 1px solid var(--btie-dark);
    content: " ";
    height: 75%;
    position: absolute;
    margin-left: 50%;
    margin-right: 50%;
}
.btie-style-box p {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    place-items: center center;
    font-weight: 600;
    font-size: 35px;
    line-height: 38px;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
    letter-spacing: -1px;
    text-align: center;
}
.btie-style-box p:before {
    content: "Unser Fazit";
    content: var(--btie-verdict, "Unser Fazit");
    display: block;
    font-size: 20px;
}

a.btie-style-box-button {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    place-items: center center;
    text-align: center;
    padding: 12px 15px;
    font-size: 18px;
    line-height: 22px;
    text-transform: uppercase;
    border-radius: 5px;
    font-weight: 700;
    min-width: 212px;
    color: var(--btie-text) !important;
    background-color: var(--btie-dark);
    box-shadow: 0 15px 40px rgb(166 172 201 / .2);
    text-decoration: none;
}
a.btie-style-box-button:hover,
a.btie-style-box-button:active {
    text-decoration: underline !important;
    text-decoration-color: #FAF9F9;
    color: #FFF !important;
    transform: matrix(1.02, 0, 0, 1.02, 0, 0);
    box-shadow: 0 20px 35px rgb(160 164 183 / .417);
}

@media (max-width: 765px) {
    .btie-style-box:after { border: none; }
    .btie-style-box-image { border-right: none; padding-right: 0; }
    .btie-style-box-image img { min-width: 93px; }
    .btie-style-box a:has(> img) { border-right: none; padding-right: 0; }
    .btie-style-box img { min-width: 93px; }
    .btie-style-box p { align-self: end; }
    a.btie-style-box-button { align-self: start; }
}

@media (max-width: 580px) {
    .btie-style-box p { font-size: 22px; line-height: 27px; }
    .btie-style-box p:before { font-size: 17px; line-height: 30px; }
    a.btie-style-box-button { padding: 8px 10px; font-size: 16px; line-height: 22px; min-width: 172px; }
}

/* Merkmalsliste */
.btie-style-reviews-features {
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: calc(33% - 1rem * 1/2) calc(33% - 1rem * 1/2) calc(33% - 1rem * 1/2);
    grid-column-gap: 1rem;
    padding: 0;
    text-align: center;
}
@media (min-width: 501px) {
    .btie-style-reviews-features { font-size: 15px; line-height: 26px; }
}
.btie-style-reviews-features li {
    list-style: none;
    border-bottom: 1px solid #E7E7E7;
    align-items: center;
    padding: .25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.btie-style-reviews-features li span { font-weight: 700; min-width: 50%; display: block; }

@media (max-width: 580px) {
    .btie-style-reviews-features { line-height: 24px; grid-template-columns: calc(50% - 1rem * 1/2) calc(50% - 1rem * 1/2); }
}

@media (max-width: 500px) {
    p.btie-style-reviews-pre { font-size: 30px; width: 100%; text-align: center; }
    .btie-style-reviews li { max-width: 350px; margin-left: auto; margin-right: auto; }
    .btie-style-reviews h2 { font-size: 26px !important; padding: 35px 15px 0; margin-top: 25px; margin-bottom: 0; background-color: #FFF; text-align: center; }
    .btie-style-box { grid-template-columns: 1fr; row-gap: 10px; padding: 15px 35px 35px; place-content: center center; }
    .btie-style-box-image { grid-column: 1 / 2; grid-row: 1 / 2; }
    .btie-style-box-image img { width: 175px; }
    .btie-style-box a:has(> img) { grid-column: 1 / 2; grid-row: 1 / 2; }
    .btie-style-box img { width: 175px; }
    .btie-style-box p { grid-column: 1 / 2; grid-row: 2 / 3; font-size: 25px; line-height: 27px; margin-bottom: 15px; }
    a.btie-style-box-button { grid-column: 1 / 2; grid-row: 3 / 4; padding: 10px; font-size: 16px; line-height: 22px; min-width: 193px; }
    .btie-style-reviews-features { line-height: 24px; grid-template-columns: 1fr; text-align: left; padding-left: 0; margin-left: 0; list-style: none; }
    ol.btie-style-reviews,
    ul.btie-style-reviews-features { padding-left: 0; margin-left: 5px !important; margin-right: 5px !important; list-style: none; }
    .btie-style-reviews-features li { align-content: start; justify-content: start; padding: 5px 0; display: inline; flex-basis: 100%; border: none; margin-left: 0; list-style: none; }
    .btie-style-reviews-features li span { display: block; }
    .btie-style-reviews > li { border-bottom: 1px solid #E7E7E7; padding-bottom: 25px; }
}

/* Listen in Beschreibungen */
.btie-style-desc:has(> ul:last-child) > ul,
.btie-style-desc:has(> ol:last-child) > ol { margin-bottom: 16px; }
