/*
 * 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 ----------
   Schrift, Überschriften und Listen kommen aus css/site-2026.css (.bt-text) */

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

/* Gutschein- und Cashback-Box im Text (Markup aus libs/locale/de.xml) */
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 .bt-text .bt-textbox h2,
body .bt-text .bt-textbox h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

body .bt-text .bt-textbox > :last-child {
    margin-bottom: 0;
}

body .bt-text .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;
    }
}

/* Mobil: Shopbild und Inhaltsverzeichnis mittig statt links */
@media (max-width: 991px) {
    body .main.shop .description-text .thumbnail-container {
        float: none;
        width: 310px;
        max-width: 100%;
        margin: 0 auto 20px !important;
    }
}

/* 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;
    }
}
