/*
 * Boni.tv – Design-Auffrischung 2026, gilt für alle Seiten.
 * Eingebunden in templates/header.tpl. Shopseiten laden zusätzlich css/shop-2026.css.
 * Reine Optik: keine Klassen, IDs oder Abläufe der bestehenden Seite werden ersetzt.
 * Schrift: Open Sans, selbst gehostet unter /css/woff/ (kein Google).
 */

:root {
    --bt-rot: #ac0e00;
    --bt-rot-2: #ac4700;
    --bt-verlauf: linear-gradient(#ac0e00, #ac4700);
    --bt-text: #310000;
    --bt-text-leise: #6e5252;
    --bt-dunkel: #1d1d1b;
    --bt-gelb: #f7eb7e;
    --bt-linie: #f0e4e4;
    --bt-flaeche: #fbf4f4;
    --bt-schatten: 0 2px 4px rgba(49, 0, 0, .05), 0 16px 40px rgba(49, 0, 0, .10);
    --bt-radius: 20px;
}

/* Bootstrap-Spaltenbreiten fürs Handy, identisch zum nachgeladenen CSS-Paket (/min/g=css).
   Ohne sie stehen z. B. Logo und Text der Cashback-Kachel bis zum Nachladen untereinander
   und springen dann nebeneinander (Layout Shift). Nur unter 768 px, damit col-sm-/col-md-Breiten
   darüber nicht überschrieben werden (diese Datei steht nach dem Paket). */
@media (max-width: 767px) {
    .col-xs-1 { width: 8.33333333%; }
    .col-xs-2 { width: 16.66666667%; }
    .col-xs-3 { width: 25%; }
    .col-xs-4 { width: 33.33333333%; }
    .col-xs-5 { width: 41.66666667%; }
    .col-xs-6 { width: 50%; }
    .col-xs-7 { width: 58.33333333%; }
    .col-xs-8 { width: 66.66666667%; }
    .col-xs-9 { width: 75%; }
    .col-xs-10 { width: 83.33333333%; }
    .col-xs-11 { width: 91.66666667%; }
    .col-xs-12 { width: 100%; }
}

/* ---------- Header ---------- */

body #header #headSearch .form-control.search {
    border-radius: 999px 0 0 999px;
    border-color: #ead9d9;
    box-shadow: none;
}

body #header #headSearch .input-group-btn .btn {
    border-radius: 0 999px 999px 0;
    border-color: #ead9d9;
}

body #header .social-icons li a {
    border-radius: 50%;
}

body #header .nav-main > li > a {
    border-radius: 999px !important;
    transition: background-color .15s ease;
}

body #header .nav-main > li > a:hover,
body #header .nav-main > li.active > a {
    background-color: #fbf0f0 !important;
    color: var(--bt-rot) !important;
}

/* ---------- Titelband ---------- */

body .main.shop .page-top {
    background: var(--bt-dunkel);
    border-top: 0;
    border-bottom: 4px solid var(--bt-rot);
    padding: 20px 0 18px;
}

body .main.shop .page-top h1 {
    border-bottom: 0;
    margin: 6px 0 0;
    padding-bottom: 0;
    line-height: 1.15;
}

/* Fluide Größe: ca. 25 px auf dem Handy bis 38 px auf großen Bildschirmen */
body .main.shop .page-top h1 {
    font-size: clamp(24px, 1.2rem + 1.6vw, 38px);
}

/* "(Stand: …)" bleibt Teil der H1, wird aber klein und heller dargestellt
   und rutscht bei Platzmangel als Ganzes in die nächste Zeile */
body .main.shop .page-top h1 .bt-h1-stand {
    display: inline-block;
    white-space: nowrap;
    font-size: .55em;
    color: #c9bfbf;
}

/* ---------- Boxen ---------- */

body .main.shop .featured-box {
    background: transparent !important;
    border: 0;
    box-shadow: none;
}

body .main.shop .featured-box .box-content {
    background: #fff;
    border-radius: var(--bt-radius);
    border-top: 4px solid var(--bt-rot);
    box-shadow: var(--bt-schatten);
    padding: 24px 28px 20px;
}

/* Boxtitel; Überschriften im Fließtext (.bt-text) stehen weiter unten */
body .main.shop .featured-box h2:not(.bt-text *) {
    color: var(--bt-text);
    font-size: 24px;
}

/* Angebotszeilen: Shopseite (.coupon-outer > .coupon) und Kategorieseite
   (#gutscheineBox > .gutschein, #cashbackBox > .cashback, templates/angebote_gutscheine.tpl und angebote_cashback.tpl) */
body .main.shop .coupon-outer {
    margin: 14px 0;
    will-change: transform;
}

/* Cashback-Box: beim Hover vom oberen Rand aus vergrößern, damit sie beim Auf-/Zuklappen
   der Cashback-Liste nicht nach oben springt (die Gutscheinliste hat die Klasse .coupons) */
body .main.shop .featured-box .box-content:not(.coupons) .coupon-outer {
    transform-origin: top center;
}

body .main.shop .coupon,
body .main.shop #gutscheineBox > .gutschein,
body .main.shop #cashbackBox > .cashback {
    border: 1px solid var(--bt-linie);
    border-radius: 16px;
    background: #fffdfc;
    padding: 14px 6px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

body .main.shop .coupon:hover,
body .main.shop #gutscheineBox > .gutschein:hover,
body .main.shop #cashbackBox > .cashback:hover {
    border-color: var(--bt-rot) !important;
    box-shadow: 0 8px 22px rgba(49, 0, 0, .08);
    cursor: pointer;
}

/* Kategorie-Zeilen haben keine eigene Hülle wie .coupon-outer: Abstand, Vergrößern beim Hover
   (wie .coupon-outer:hover in css/cashback_not_critical.css) und Theme-Reste direkt an der Zeile */
body .main.shop #gutscheineBox > .gutschein,
body .main.shop #cashbackBox > .cashback {
    position: relative;
    float: none;
    width: auto;
    margin: 14px 0;
    padding: 14px 6px 10px !important;
    transition: transform .2s ease, border-color .15s ease, box-shadow .15s ease;
    will-change: transform;
}

body .main.shop #gutscheineBox > .gutschein:hover,
body .main.shop #cashbackBox > .cashback:hover {
    transform: scale(1.02);
    z-index: 1;
}

body .main.shop #gutscheineBox > .gutschein:hover h3,
body .main.shop #cashbackBox > .cashback:hover h3 {
    text-decoration: underline;
    color: var(--bt-rot);
}

body .main.shop #gutscheineBox > .gutschein > hr,
body .main.shop #cashbackBox > .cashback > hr {
    display: none;
}

/* "Jeden … Gutschein anzeigen" als Fußzeile in der Karte */
body .main.shop #gutscheineBox > .gutschein > .mt-10,
body .main.shop #cashbackBox > .cashback > .mt-10 {
    clear: both;
    float: none;
    width: auto;
    margin: 10px 12px 0;
    padding: 8px 0 0;
    border-top: 1px dashed var(--bt-linie);
    font-size: 13px;
}

body .main.shop #cashbackBox > .cashback > .mt-10 > div {
    float: none;
    width: auto;
    padding: 0;
}

body .main.shop .coupon.favorite {
    border: 1px solid #f3dc7a;
    background: #fffae0;
    box-shadow: none;
}

body .main.shop .coupon.favorite::before {
    top: -12px;
    left: 14px;
    border-radius: 999px;
    padding: 4px 10px;
    background-color: #f7d84a;
    color: #4a3a00;
}

body .main.shop .coupon .thumbnail,
body .main.shop #gutscheineBox > .gutschein .thumbnail,
body .main.shop #cashbackBox > .cashback .thumbnail {
    border: 1px solid var(--bt-linie);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    padding: 0;
}

body .main.shop .coupon .thumbnail .coupon-badge {
    border-radius: 999px;
    padding: 2px 8px;
}

/* Basis-CSS setzt overflow:auto; bei Rundung um 1 px erscheint sonst ein Scrollbalken neben dem Logo */
body .main.shop .coupon-bild,
body .main.shop .coupon-text {
    overflow: visible;
}

body .main.shop .coupon-text h3,
body .main.shop #gutscheineBox > .gutschein h3,
body .main.shop #cashbackBox > .cashback h3 {
    color: var(--bt-text);
    font-size: 20px;
}

body .main.shop .coupon-togglebtn {
    border-radius: 999px;
}

/* Cashback-Kachel der Shopseite (eingeloggt): Favoriten-Stern links neben "Jetzt teilnehmen",
   der Stern so schmal wie nötig, der Teilnehmen-Button nimmt den Rest.
   font-size: 0 blendet das &nbsp; zwischen den Buttons aus (templates/cashback.tpl) */
body .main.shop .gutbutton {
    display: flex;
    gap: 10px;
    align-items: stretch;
    font-size: 0;
}

body .main.shop .gutbutton .btn-primary {
    flex: 1 1 auto;
    width: auto;
    margin: 0;
}

body .main.shop .gutbutton #fav-button {
    order: -1;
    flex: 0 0 auto;
    min-width: 52px;
    padding-left: 16px;
    padding-right: 16px;
}

/* Buttons: eure Farben, modernere Form */
body .main.shop .btn-primary {
    background: var(--bt-verlauf) !important;
    border: 0 !important;
    border-radius: 14px !important;
    min-height: 48px;
    padding: 12px 22px;
    font-size: 15px;
    box-shadow: 0 8px 18px rgba(172, 14, 0, .25);
    text-shadow: none;
}

body .main.shop .btn-primary:hover,
body .main.shop .btn-primary:focus {
    filter: brightness(1.08);
}

/* ---------- Suche auf der Startseite: Gutscheine/Cashback als Auswahl-Pillen ----------
   Die Checkboxen bleiben im Formular (unsichtbar, per Tastatur bedienbar); der Zustand kommt über :has(). */
body #search #checks {
    margin: 14px 0 0 !important;
}

/* Schwarzer Bereich hat am Desktop eine feste Höhe: weniger Abstand über der Überschrift,
   damit oben und unter den Pillen gleich viel Platz bleibt (h1 ist auf dem Handy ausgeblendet) */
@media (min-width: 768px) {
    body #home-intro h1 {
        margin-top: 13px !important;
    }
}

body #search #checks .col-md-12 {
    float: none;
    width: 100%;
    padding: 0;
}

body #search #checks .checkbox {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
}

body #search #checks .checkbox label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto !important;
    height: auto !important;
    min-height: 38px;
    margin: 0;
    padding: 8px 18px 8px 14px;
    border: 1.5px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

body #search #checks .checkbox label input[type=checkbox] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

body #search #checks .checkbox label::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font: 700 11px/15px sans-serif;
    text-align: center;
}

body #search #checks .checkbox label:has(input:checked) {
    border-color: transparent;
    background: var(--bt-verlauf);
    color: #fff;
    box-shadow: 0 6px 14px rgba(172, 14, 0, .35);
}

body #search #checks .checkbox label:has(input:checked)::before {
    content: "\2713";
    border-color: #fff;
    background: #fff;
    color: var(--bt-rot);
}

body #search #checks .checkbox label:has(input:focus-visible) {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body #search #checks .checkbox label .fa {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px;
    line-height: 1 !important;
}

/* ---------- Top-Listen auf der Startseite (templates/index2.tpl, section.featured.map) ----------
   Die Shopliste "Weitere …shops" der Kategorieseite (.gutscheinShop, .cashbackShop in templates/angebote_new.tpl)
   ist gleich aufgebaut und nutzt die Zeilenregeln mit */

/* Hintergrund (Weltkarte img/map-bottom.gif und graue Fläche) entfernen, Theme-Abstände (50/50/35 px) raus */
body section.featured.map {
    background: none;
    margin: 0;
    padding: 0;
}

body section.featured.map > .container.shop {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: auto;
    /* oben weniger, weil der Text darüber eigenen Abstand mitbringt: ergibt oben und unten je ca. 40 px */
    padding: 18px 0 40px;
}

/* Bootstrap-Clearfix würde sonst als leere Gitterzelle zählen */
body section.featured.map > .container.shop::before,
body section.featured.map > .container.shop::after {
    display: none;
}

body section.featured.map > .container.shop > .col-md-4 {
    width: auto;
    float: none;
    padding: 22px 22px 14px;
    background: #fff;
    border-radius: var(--bt-radius);
    border-top: 4px solid var(--bt-rot);
    box-shadow: var(--bt-schatten);
}

body section.featured.map h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

body section.featured.map .container.shop .row,
body .main.shop .gutscheinShop,
body .main.shop .cashbackShop {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid var(--bt-linie);
}

body section.featured.map .container.shop h2 + .row,
body .main.shop .gutscheinShop:first-child,
body .main.shop .cashbackShop:first-child {
    border-top: 0;
}

body section.featured.map .container.shop .row > .thumbnail,
body .main.shop .gutscheinShop > .thumbnail,
body .main.shop .cashbackShop > .thumbnail {
    flex: 0 0 76px;
    width: 76px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--bt-linie);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

body section.featured.map .container.shop .row > .thumbnail img,
body .main.shop .gutscheinShop > .thumbnail img,
body .main.shop .cashbackShop > .thumbnail img {
    width: 100%;
    height: 56px;
    object-fit: contain;
}

/* Name oben über die ganze Breite, darunter links Sterne, rechts der Wert als Etikett */
body section.featured.map .container.shop .row > div:last-child,
body .main.shop .gutscheinShop > div:last-child,
body .main.shop .cashbackShop > div:last-child {
    flex: 1 1 auto;
    width: auto;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: center;
}

body section.featured.map .container.shop .row > div:last-child > a,
body .main.shop .gutscheinShop > div:last-child > a,
body .main.shop .cashbackShop > div:last-child > a {
    grid-column: 1 / span 2;
    grid-row: 1;
    font-size: 16px;
}

body section.featured.map .container.shop .row > div:last-child > .product-quantity,
body .main.shop .gutscheinShop > div:last-child > .product-quantity,
body .main.shop .cashbackShop > div:last-child > .product-quantity {
    grid-column: 1;
    grid-row: 2;
}

body section.featured.map .container.shop .row > div:last-child > div:last-child,
body .main.shop .gutscheinShop > div:last-child > div:last-child,
body .main.shop .cashbackShop > div:last-child > div:last-child {
    grid-column: 2;
    grid-row: 2;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bt-flaeche);
    color: var(--bt-rot);
    font-size: 13px;
}

/* Kategorie-Seitenleiste: schmale Spalte und Inline-Stile aus dem Template */
body .main.shop #gutscheineShops,
body .main.shop #cashbackShops {
    padding-top: 6px !important;
}

body .main.shop .gutscheinShop > .thumbnail,
body .main.shop .cashbackShop > .thumbnail {
    flex-basis: 64px;
    width: 64px;
    margin: 0 !important;
    float: none;
}

body .main.shop .gutscheinShop > .thumbnail img,
body .main.shop .cashbackShop > .thumbnail img {
    height: 48px;
}

body .main.shop .gutscheinShop > div:last-child,
body .main.shop .cashbackShop > div:last-child {
    float: none;
    min-width: 0;
    column-gap: 8px;
}

body .main.shop .gutscheinShop > div:last-child > a,
body .main.shop .cashbackShop > div:last-child > a {
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* "Noch nicht bewertet" ausblenden, die Sterne bleiben */
body .main.shop .gutscheinShop .product-quantity,
body .main.shop .cashbackShop .product-quantity {
    font-size: 0;
    min-height: 1px;
}

body .main.shop .gutscheinShop .product-quantity .star-rating-shop,
body .main.shop .cashbackShop .product-quantity .star-rating-shop {
    font-size: 13px !important;
}

body .main.shop .gutscheinShop > div:last-child > div:last-child,
body .main.shop .cashbackShop > div:last-child > div:last-child {
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 991px) {
    body section.featured.map > .container.shop {
        grid-template-columns: 1fr;
    }
}

/* ---------- Fließtext, gilt auf allen Seiten ----------
   Jeder Textbereich bekommt im Template die Klasse bt-text (Startseite, Shop, Kategorie, Suche,
   Impressum, Datenschutz, Nutzungsbedingungen, Anleitung, Mitgliederbereich …).
   Neue Textseiten: nur die Klasse an die Hülle setzen, hier nichts ergänzen. */

body .bt-text {
    font-size: 16.5px;
    line-height: 1.75;
}

body .bt-text h2,
body .bt-text h3 {
    margin-top: 40px;
    font-size: 26px;
    line-height: 1.3;
    color: var(--bt-rot);
    text-transform: none;
}

body .bt-text > :first-child {
    margin-top: 0;
}

body .bt-text p,
body .bt-text ol > li {
    font-size: 16.5px;
    line-height: 1.75;
}

/* Aufzählungen als Checkliste, nummerierte Listen gleich mit der Zahl im Kreis
   (nur Listen ohne eigene Klasse, Menüs usw. bleiben unberührt) */
body .bt-text ul:not([class]),
body .bt-text ol:not([class]) {
    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 .bt-text ul:not([class]) > li,
body .bt-text ol:not([class]) > li {
    position: relative;
    padding-left: 36px;
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.6;
}

body .bt-text ul:not([class]) > li:last-child,
body .bt-text ol:not([class]) > li:last-child {
    margin-bottom: 0;
}

body .bt-text ul:not([class]) > li::before,
body .bt-text ol:not([class]) > 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;
}

body .bt-text ol:not([class]) {
    counter-reset: bt-ol;
}

body .bt-text ol:not([class]) > li {
    counter-increment: bt-ol;
}

body .bt-text ol:not([class]) > li::before {
    content: counter(bt-ol);
}

/* Liste in der Liste: keine zweite Box */
body .bt-text li ul:not([class]),
body .bt-text li ol:not([class]) {
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* ---------- Footer ---------- */

body #footer .footer-ribbon {
    border-radius: 0 0 14px 14px;
    background: var(--bt-verlauf);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

body #footer .footer-ribbon::before {
    display: none;
}
