/*
 * Boni.tv – Ergänzungen nur für Shopseiten (templates/cashback.tpl).
 * Baut auf css/site-2026.css auf (Farben, Titelband, Boxen, Buttons).
 */

/* ---------- Textbereich mit Seitenleiste ---------- */

/* Die erste Überschrift im Text ist ein h2, alle weiteren h3 (content/cashback.php) */
body .main.shop .description-text .summary.entry-summary h2,
body .main.shop .description-text .summary.entry-summary h3 {
    margin-top: 40px;
    font-size: 26px;
    line-height: 1.3;
    color: var(--bt-rot);
}

body .main.shop .description-text .summary.entry-summary > :first-child {
    margin-top: 8px;
}

body .main.shop .description-text .summary.entry-summary p {
    font-size: 16.5px;
    line-height: 1.75;
}

/* Vorteile-Box: Aufzählungen im Text als Checkliste */
body .main.shop .description-text .summary.entry-summary ul {
    list-style: none;
    margin: 20px 0;
    padding: 22px 24px;
    border: 1px solid var(--bt-linie);
    border-radius: var(--bt-radius);
    box-shadow: 0 10px 28px rgba(49, 0, 0, .06);
}

body .main.shop .description-text .summary.entry-summary ul > li {
    position: relative;
    padding-left: 36px;
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.6;
}

body .main.shop .description-text .summary.entry-summary ul > li:last-child {
    margin-bottom: 0;
}

body .main.shop .description-text .summary.entry-summary ul > li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bt-verlauf);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

/* Gutschein- und Cashback-Box im Text (vom Skript in cashback.tpl gesetzt) */
body .main.shop .bt-textboxen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 24px 0 8px;
}

body .main.shop .bt-textbox {
    border-radius: var(--bt-radius);
    padding: 24px;
    background: var(--bt-flaeche);
    border: 1px solid var(--bt-linie);
}

body .main.shop .description-text .summary.entry-summary .bt-textbox h2,
body .main.shop .description-text .summary.entry-summary .bt-textbox h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

body .main.shop .description-text .summary.entry-summary .bt-textbox > :last-child {
    margin-bottom: 0;
}

body .main.shop .description-text .summary.entry-summary .bt-textbox p {
    font-size: 16px;
}

/* Seitenleiste: feste Breite. Sonst wird sie schmaler, sobald das Inhaltsverzeichnis
   beim Scrollen auf position:fixed wechselt (js/cashback.js), und das Verzeichnis rutscht nach rechts. */
@media (min-width: 992px) {
    body .main.shop .description-text .thumbnail-container {
        width: 310px;
    }
}

/* Shopbild mit Eckband */
body .main.shop .description-text .thumbnail {
    border: 1px solid var(--bt-linie);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(49, 0, 0, .08);
    padding: 0;
}

body .main.shop .description-text .thumbnail .redbanner {
    margin: 0;
}

/* Teilen-Buttons */
body .main.shop #shareButtons a {
    border-radius: 50%;
    transition: transform .15s ease;
}

body .main.shop #shareButtons a:hover {
    transform: translateY(-2px);
}

/* Inhaltsverzeichnis */
body .main.shop .tocmenu {
    box-sizing: border-box;
    width: 310px;
    max-width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-top: 16px;
    padding: 20px;
    border-radius: var(--bt-radius);
    background: var(--bt-flaeche);
    text-align: left;
    font-size: 15px;
    color: var(--bt-text);
}

body .main.shop .tocmenu ol {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: bt-toc;
}

body .main.shop .tocmenu li {
    border-bottom: 0;
    padding: 0;
    margin: 2px 0;
}

body .main.shop .tocmenu li a {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--bt-text);
    text-decoration: none;
    transition: background-color .15s ease;
}

body .main.shop .tocmenu li a:hover,
body .main.shop .tocmenu li.active a {
    background: #fff;
    color: var(--bt-rot);
}

/* "Noch kein Konto?" unter dem Inhaltsverzeichnis (steht im sticky Verzeichnis, sonst als eigene Box) */
body .main.shop .bt-konto {
    box-sizing: border-box;
    width: 310px;
    max-width: 100%;
    margin-top: 16px;
    font-weight: 400;
    padding: 22px;
    border-radius: var(--bt-radius);
    background: var(--bt-dunkel);
    color: #fff;
    text-align: left;
}

body .main.shop .bt-konto-titel {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

body .main.shop .bt-konto-text {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #d8cfcf;
}

body .main.shop .bt-konto .bt-konto-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    border: 0;
    border-radius: 12px;
    background: var(--bt-gelb);
    color: var(--bt-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

body .main.shop .tocmenu .bt-konto {
    width: auto;
    margin: 16px -4px -4px;
}

/* Auf schmalen Bildschirmen liegt das Verzeichnis eingeklappt über dem Text: Box dort weglassen */
@media (max-width: 991px) {
    body .main.shop .tocmenu .bt-konto {
        display: none;
    }
}
