/* „Reifen-Bingo“-Berater (Webagentur Gaul, 02.10.2026) – Skript: templates/rb/js/reifen-bingo.js */

/* Kompakter schwebender Knopf links neben „nach oben“ (#scroll2top); Lage setzt reifen-bingo.js */
.rbb-knopf {
    position: fixed;
    right: 95px;
    bottom: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 52px;
    padding: 7px 20px;
    border: 0;
    border-radius: 26px;
    background: #395fdd;
    color: #fff;
    font-family: "Open Sans", sans-serif;
    text-align: left;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
    cursor: pointer;
}
.rbb-knopf__titel { font-size: 15px; font-weight: 700; line-height: 1.25; }
.rbb-knopf__unter { font-size: 12px; font-weight: 400; line-height: 1.3; opacity: .92; }
.rbb-knopf:hover, .rbb-knopf:focus { background: #2c4fc4; outline: none; }
@media (max-width: 767px) {
    .rbb-knopf { min-height: 46px; padding: 6px 14px; border-radius: 23px; }
    .rbb-knopf__titel { font-size: 14px; }
    .rbb-knopf__unter { font-size: 11px; }
}
.rbb-offen .rbb-knopf { display: none; }

/* Fenster */
.rbb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(20, 20, 30, .55);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.rbb.is-offen { display: flex; }
html.rbb-offen { overflow: hidden; }
.rbb__fenster {
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    font-family: "Open Sans", sans-serif;
    color: #2c2c3d;
}
.rbb__kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #395fdd;
    color: #fff;
    font-size: 18px;
}
.rbb__kopf button {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.rbb__fortschritt { height: 5px; background: #edf0ff; }
.rbb__fortschritt span { display: block; height: 100%; width: 0; background: #ffd43b; transition: width .2s ease; }
.rbb__inhalt { padding: 22px 24px 26px; }
.rbb__schritt { margin: 0 0 4px; color: #777; font-size: 14px; }
.rbb__frage { margin: 0 0 18px; font-size: 22px; font-weight: 700; }
.rbb__optionen { display: grid; gap: 10px; }
.rbb__option {
    display: block;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    background: #fff;
    border: 2px solid #d7d7d7;
    border-radius: 8px;
    color: #2c2c3d;
    font-size: 17px;
    cursor: pointer;
}
.rbb__option span { display: block; margin-top: 3px; color: #777; font-size: 14px; }
.rbb__option:hover, .rbb__option:focus, .rbb__option.is-gewaehlt { border-color: #395fdd; background: #edf0ff; outline: none; }
.rbb__groesse { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rbb__groesse label { display: block; font-size: 14px; font-weight: 700; }
.rbb__groesse select {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 10px 8px;
    border: 2px solid #d7d7d7;
    border-radius: 6px;
    font-size: 17px;
    background: #fff;
}
.rbb__hilfe { margin: 12px 0 18px; color: #555; font-size: 14px; }
.rbb__weiter {
    display: block;
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 8px;
    background: #443e3e;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.rbb__weiter:hover { background: #2c2c3d; }
@media (max-width: 767px) {
    .rbb { padding: 0; align-items: stretch; }
    .rbb__fenster { max-width: none; max-height: none; height: 100%; border-radius: 0; }
    .rbb__inhalt { padding: 18px 16px 24px; }
}

/* Bingo-Karten über der Ergebnisliste (products/rb_bingo_karten.php) */
.rbb-karten { margin: 6px 0 20px; }
.rbb-karten__hinweis {
    margin: 0 0 10px;
    padding: 8px 12px;
    background: #edf0ff;
    border-left: 4px solid #395fdd;
    border-radius: 4px;
    font-size: 14px;
}
.rbb-karten__reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rbb-karte {
    display: flex;
    flex-direction: column;
    padding: 0 14px 16px;
    background: #fff;
    border: 2px solid #e4e7f2;
    border-radius: 10px;
    text-align: center;
}
.rbb-karte.is-empfohlen { border-color: #395fdd; box-shadow: 0 6px 20px rgba(57, 95, 221, .2); }
.rbb-karte__kopf {
    margin: 0 -14px 8px;
    padding: 6px 10px;
    border-radius: 8px 8px 0 0;
    background: #443e3e;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rbb-karte--premium .rbb-karte__kopf { background: #2c2c3d; }
.rbb-karte--pl .rbb-karte__kopf { background: #395fdd; }
.rbb-karte--spar .rbb-karte__kopf { background: #4b8b3b; }
.rbb-karte__bild { display: block; height: 110px; margin-bottom: 6px; }
.rbb-karte__bild img { width: 100%; height: 100%; object-fit: contain; }
.rbb-karte__name { color: #2c2c3d; font-weight: 700; font-size: 15px; text-decoration: none; }
.rbb-karte__name:hover { color: #395fdd; }
.rbb-karte__text { margin: 6px 0; color: #666; font-size: 13px; }
.rbb-karte__label { margin: 2px 0 6px; font-size: 13px; }
.rbb-karte__klasse {
    display: inline-block;
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 3px;
    color: #fff;
    background: #999;
}
.rbb-karte__klasse--a { background: #2e8b3e; }
.rbb-karte__klasse--b { background: #7cb342; }
.rbb-karte__klasse--c { background: #e0b100; }
.rbb-karte__klasse--d, .rbb-karte__klasse--e { background: #e07b00; }
.rbb-karte__preis { margin: auto 0 0; font-size: 22px; font-weight: 800; }
.rbb-karte__preis span { font-size: 13px; font-weight: 400; color: #666; }
.rbb-karte__satz { margin: 2px 0 12px; font-size: 13px; color: #444; }
.rbb-karte__knopf {
    display: block;
    padding: 11px;
    border-radius: 6px;
    background: #443e3e;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.rbb-karte__knopf:hover { background: #2c2c3d; color: #fff; text-decoration: none; }
@media (max-width: 767px) {
    .rbb-karten__reihe { grid-template-columns: 1fr; gap: 12px; }
    .rbb-karte { display: grid; grid-template-columns: 96px 1fr; grid-template-areas: "kopf kopf" "bild name" "bild preis" "knopf knopf"; text-align: left; column-gap: 12px; }
    .rbb-karte__kopf { grid-area: kopf; }
    .rbb-karte__bild { grid-area: bild; height: 96px; margin: 0; }
    .rbb-karte__name { grid-area: name; }
    .rbb-karte__text, .rbb-karte__label { display: none; }
    .rbb-karte__preis { grid-area: preis; font-size: 19px; }
    .rbb-karte__satz { display: none; }
    .rbb-karte__knopf { grid-area: knopf; margin-top: 10px; text-align: center; }
}
