/* pbs-zubehoer-nav (16.11.2026): Sprungknopf, Hinweis unter dem Warenkorb-Knopf,
   "Weiteres passendes Zubehoer". Im Shop gibt es nur ein Orange (#ef802d);
   Schrift darauf ist #14181c (AA 6,6:1), siehe .cursor/rules/brand-color.mdc. */

#pbs-zubehoer,
#pbs-zub-weitere,
.table-related-products tr.pbs-relgruppe {
    scroll-margin-top: 185px;
}

@media (max-width: 991.98px) {
    #pbs-zubehoer,
    #pbs-zub-weitere,
    .table-related-products tr.pbs-relgruppe {
        scroll-margin-top: 130px;
    }
}

/* Mitlaufender Knopf */
.pbs-zubnav {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.pbs-zubnav.is-an {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
}

.pbs-zubnav__knopf {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 48px;
    padding: .55rem 1rem .55rem .9rem;
    border: 0;
    border-radius: 999px;
    background: #ef802d;
    color: #14181c;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.1;
    box-shadow: 0 6px 18px rgba(20, 24, 28, .25);
    cursor: pointer;
    animation: pbsZubPuls 2.4s ease-out 1.5s 2;
}

.pbs-zubnav__knopf:hover,
.pbs-zubnav.is-offen .pbs-zubnav__knopf {
    box-shadow: 0 8px 24px rgba(20, 24, 28, .32);
    transform: translateY(-1px);
}

.pbs-zubnav__knopf:focus-visible {
    outline: 3px solid #14181c;
    outline-offset: 2px;
}

.pbs-zubnav__n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7em;
    height: 1.7em;
    padding: 0 .4em;
    border-radius: 999px;
    background: #fff;
    color: #14181c;
    font-size: .85rem;
    font-weight: 800;
}

@keyframes pbsZubPuls {
    0% { box-shadow: 0 6px 18px rgba(20, 24, 28, .25), 0 0 0 0 rgba(239, 128, 45, .55); }
    70% { box-shadow: 0 6px 18px rgba(20, 24, 28, .25), 0 0 0 14px rgba(239, 128, 45, 0); }
    100% { box-shadow: 0 6px 18px rgba(20, 24, 28, .25), 0 0 0 0 rgba(239, 128, 45, 0); }
}

/* Aufklappbereich */
.pbs-zubnav__panel {
    width: min(320px, calc(100vw - 20px));
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding: .75rem;
    border: 1px solid rgba(239, 128, 45, .32);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(20, 24, 28, .22);
}

.pbs-zubnav__panel[hidden] {
    display: none !important;
}

.pbs-zubnav__kopf {
    margin: 0 0 .4rem;
    color: #14181c;
    opacity: .65;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pbs-zubnav__kopf--k {
    margin-top: .8rem;
}

.pbs-zubnav__panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem .65rem;
    border-radius: 8px;
    color: #14181c;
    text-decoration: none;
    font-size: .92rem;
    line-height: 1.25;
}

.pbs-zubnav__panel a span {
    white-space: normal;
    overflow-wrap: anywhere;
}

.pbs-zubnav__panel a:hover,
.pbs-zubnav__panel a:focus-visible {
    background: rgba(239, 128, 45, .08);
    text-decoration: underline;
    outline: none;
}

.pbs-zubnav__panel a b {
    flex: none;
    font-weight: 700;
    font-size: .82rem;
}

.pbs-zubnav__panel a.pbs-zubnav__haupt {
    padding: .7rem .8rem;
    background: #ef802d;
    color: #14181c;
    font-size: 1.02rem;
    font-weight: 800;
}

.pbs-zubnav__panel a.pbs-zubnav__haupt:hover,
.pbs-zubnav__panel a.pbs-zubnav__haupt:focus-visible {
    background: #ef802d;
    box-shadow: 0 4px 12px rgba(239, 128, 45, .45);
}

.pbs-zubnav__haupt b {
    min-width: 1.8em;
    padding: .1em .45em;
    border-radius: 999px;
    background: #fff;
    text-align: center;
}

.pbs-zubnav__gruppen {
    margin: .3rem 0 0 .6rem;
    padding-left: .5rem;
    border-left: 2px solid rgba(239, 128, 45, .32);
}

/* Ziel leuchtet nach dem Sprung kurz auf */
.pbs-zub-blink {
    animation: pbsZubBlink 2.2s ease-out 1;
}

@keyframes pbsZubBlink {
    0%, 30% { box-shadow: 0 0 0 4px rgba(239, 128, 45, .9); background-color: rgba(239, 128, 45, .08); }
    100% { box-shadow: 0 0 0 4px rgba(239, 128, 45, 0); background-color: transparent; }
}

/* Hinweis unter dem Warenkorb-Knopf */
.pbs-zubhinweis {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .9rem;
    border: 1.5px solid rgba(239, 128, 45, .32);
    border-left: 5px solid #ef802d;
    border-radius: 10px;
    background: rgba(239, 128, 45, .08);
    color: #14181c !important;
    font-weight: 600;
    text-decoration: none !important;
}

.pbs-zubhinweis:hover,
.pbs-zubhinweis:focus-visible {
    box-shadow: 0 4px 12px rgba(239, 128, 45, .32);
}

.pbs-zubhinweis .fa-puzzle-piece,
.pbs-zubhinweis .fa-arrow-down {
    color: #ef802d;
}

.pbs-zubhinweis span {
    flex: 1;
}

.pbs-zubhinweis:hover span {
    text-decoration: underline;
}

/* Weiteres passendes Zubehoer (Posten aus dem frueheren Textblock) */
.pbs-zubweiter {
    margin-top: 2rem;
}

.pbs-zubweiter__titel {
    padding: .6rem .5rem .5rem;
    border-bottom: 2px solid #ef802d;
    background: rgba(239, 128, 45, .08);
    color: #14181c;
    font-size: 1.05rem;
    font-weight: 800;
}

.pbs-zubweiter__titel span {
    opacity: .7;
    font-weight: 600;
}

.pbs-zubweiter__hinweis {
    margin: .5rem 0 .75rem;
    font-size: .9rem;
}

.pbs-zubweiter__tab td,
.pbs-zubweiter__tab th {
    vertical-align: middle;
}

.pbs-zubweiter__nr {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pbs-zubweiter__weg {
    text-align: right;
    white-space: nowrap;
}

.pbs-zubweiter__go,
.pbs-zubweiter__anfrage {
    display: inline-block;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none !important;
}

.pbs-zubweiter__go {
    background: #ef802d;
    color: #14181c !important;
}

.pbs-zubweiter__anfrage {
    border: 1.5px solid #14181c;
    color: #14181c !important;
}

.pbs-zubweiter__go:hover,
.pbs-zubweiter__anfrage:hover {
    box-shadow: 0 3px 10px rgba(239, 128, 45, .45);
}

/* Link im Hinweisfenster nach "In den Warenkorb" */
.pbs-zubnav-dialog {
    margin-top: 1rem;
}

.pbs-zubnav-dialog a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1rem;
    border-radius: 10px;
    background: #ef802d;
    color: #14181c !important;
    font-weight: 700;
    text-decoration: none !important;
}

.pbs-zubnav-dialog a span {
    flex: 1;
}

.pbs-zubnav-dialog a:hover {
    box-shadow: 0 4px 14px rgba(239, 128, 45, .45);
}

/* Ersatz, falls kein Hinweisfenster erscheint */
.pbs-zubnav-toast {
    position: fixed;
    right: 20px;
    bottom: 150px;
    z-index: 1041;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    width: min(340px, calc(100vw - 20px));
    padding: .8rem 2.4rem .8rem 1rem;
    border: 1px solid rgba(239, 128, 45, .32);
    border-left: 5px solid #ef802d;
    border-radius: 12px;
    background: #fff;
    color: #14181c;
    box-shadow: 0 12px 32px rgba(20, 24, 28, .22);
}

.pbs-zubnav-toast p {
    margin: 0;
    font-size: .92rem;
}

.pbs-zubnav-toast a {
    padding: .35rem .9rem;
    border-radius: 999px;
    background: #ef802d;
    color: #14181c !important;
    font-weight: 700;
    text-decoration: none !important;
}

.pbs-zubnav-toast button {
    position: absolute;
    top: .3rem;
    right: .5rem;
    border: 0;
    background: none;
    color: #14181c;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 648px) {
    .pbs-zubnav__knopf {
        min-height: 44px;
        padding: .45rem .85rem .45rem .75rem;
        font-size: .92rem;
    }

    .pbs-zubnav__panel a {
        min-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pbs-zubnav,
    .pbs-zubnav__knopf,
    .pbs-zub-blink {
        animation: none !important;
        transition: none !important;
    }
}
