/* Sale Profi — bewusst ohne Template-Klassen (kein Bootstrap, kein NOVA),
   damit es in jedem Template gleich aussieht. Farben kommen als Variablen
   aus dem Backend (Inline-Block #tac-sp-vars). */

.tac-sp-box {
    --tac-sp-balken: #2e7d32;
    --tac-sp-spur: #e8f5e9;
    --tac-sp-text: #1b5e20;
    box-sizing: border-box;
    margin: 0 0 1rem;
    text-align: left;
    line-height: 1.4;
}

.tac-sp-box *,
.tac-sp-box *::before,
.tac-sp-box *::after {
    box-sizing: border-box;
}

.tac-sp-text {
    margin-bottom: .45rem;
    color: var(--tac-sp-text);
    font-weight: 600;
}

.tac-sp-link {
    margin-left: .35rem;
    color: inherit;
    text-decoration: underline;
}

/* Balken mit Marken je Meilenstein */
.tac-sp-balken {
    position: relative;
    height: .7rem;
    margin: .3rem .45rem;
    border-radius: 999px;
    background: var(--tac-sp-spur);
}

.tac-sp-fuellung {
    height: 100%;
    border-radius: inherit;
    background: var(--tac-sp-balken);
    transition: width .6s ease;
}

.tac-sp-marke {
    position: absolute;
    top: 50%;
    width: .95rem;
    height: .95rem;
    margin: -.475rem 0 0 -.475rem;
    border: 2px solid var(--tac-sp-balken);
    border-radius: 50%;
    background: #fff;
}

.tac-sp-marke--erreicht {
    background: var(--tac-sp-balken);
    box-shadow: 0 0 0 2px #fff;
}

.tac-sp-ziele {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem 1.1rem;
    margin: .55rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .85em;
}

.tac-sp-ziele li {
    margin: 0;
    opacity: .75;
}

.tac-sp-ziele li.tac-sp-ziel--erreicht {
    color: var(--tac-sp-text);
    font-weight: 600;
    opacity: 1;
}

.tac-sp-haken {
    display: inline-block;
    width: 1em;
    color: var(--tac-sp-balken);
}

.tac-sp-ab {
    white-space: nowrap;
}

.tac-sp-gewaehlt {
    margin-top: .55rem;
    font-size: .9em;
}

/* Karten: Geschenke und Vorschlaege */
.tac-sp-vorschlaege {
    margin-top: 1rem;
}

.tac-sp-titel {
    margin-bottom: .5rem;
    font-weight: 600;
}

.tac-sp-raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: .75rem;
    margin-top: .75rem;
}

.tac-sp-vorschlaege .tac-sp-raster {
    margin-top: 0;
}

.tac-sp-karte {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: 0;
    padding: .6rem;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: .5rem;
    background: #fff;
    color: inherit;
    font-size: .9em;
}

.tac-sp-bild {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.tac-sp-name {
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

a.tac-sp-name:hover {
    text-decoration: underline;
}

.tac-sp-preis {
    font-weight: 700;
}

.tac-sp-knopf {
    display: block;
    width: 100%;
    padding: .45rem .6rem;
    border: 0;
    border-radius: .4rem;
    background: var(--tac-sp-balken);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.tac-sp-knopf:hover,
.tac-sp-knopf:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.1);
}

/* Mini-Warenkorb: kompakter, Vorschlaege als Liste */
.tac-sp-box--minicart {
    margin: 0;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    font-size: .875rem;
}

.tac-sp-box--minicart .tac-sp-raster {
    grid-template-columns: 1fr;
    gap: .4rem;
}

.tac-sp-box--minicart .tac-sp-karte {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    align-items: center;
    padding: .35rem;
}

.tac-sp-box--minicart .tac-sp-karte > a:first-child {
    grid-row: span 2;
}

.tac-sp-box--minicart .tac-sp-knopf {
    grid-column: 2 / 4;
    padding: .3rem .5rem;
}

/* Leiste ganz oben */
.tac-sp-box--leiste {
    margin: 0;
    padding: .45rem 1rem;
    background: var(--tac-sp-leiste-bg, #1b5e20);
    color: var(--tac-sp-leiste-text, #fff);
    font-size: .9rem;
    text-align: center;
}

.tac-sp-box--leiste .tac-sp-text {
    margin: 0;
    color: inherit;
}
