/*
 * Detailseite eines Buchs (templates/book/show.html.twig) und die Links dorthin.
 * Hintergrund: das eigene Cover, stark weichgezeichnet – keine fremde Quelle, nur Tokens.
 */

/* Titel-Links in Liste, Info-Panel und Hero sehen aus wie zuvor die Titel. */
.bo-row__title,
.bo-detail__title a,
.bo-hero__book {
    display: block;
    color: inherit;
    text-decoration: none;
}

.bo-row__title:hover,
.bo-detail__title a:hover,
.bo-hero__book:hover {
    color: var(--accent-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bo-night .bo-hero__book:hover {
    color: var(--link-on-night);
}

.bo-detail__buy {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* ===== Buch-Hero ===== */
.bo-bookhero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 64px;
    background: linear-gradient(180deg, var(--surface-200), var(--surface-100));
    border-bottom: 1px solid var(--border);
}

.bo-bookhero::before {
    content: "";
    position: absolute;
    inset: -60px;
    background: var(--bo-img, none) center / cover no-repeat;
    filter: blur(48px) saturate(1.2);
    opacity: .32;
    transform: scale(1.1);
}

.bo-bookhero .bo-container {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 64px;
    align-items: center;
}

.bo-bookhero__cover .bo-cover {
    width: 240px;
    font-size: 26px;
    transform: rotate(-3deg);
    box-shadow: 0 34px 50px -24px color-mix(in srgb, var(--ink) 75%, transparent);
}

.bo-bookhero__badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
}

.bo-bookhero__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 44px;
    line-height: 50px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--ink);
    hyphens: auto;
}

[data-theme="krimi"] .bo-bookhero__title {
    font-family: var(--font-krimi);
    text-transform: uppercase;
    letter-spacing: 0;
}

[data-theme="romance"] .bo-bookhero__title {
    font-family: var(--font-romance);
    font-style: italic;
}

:is([data-theme="kinder"],[data-theme="mini"]) .bo-bookhero__title {
    font-family: var(--font-kinder);
}

.bo-bookhero__author {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    color: var(--ink-body);
}

.bo-bookhero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
    margin: var(--space-4) 0 0;
}

.bo-bookhero__facts dt {
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-muted);
}

.bo-bookhero__facts dd {
    margin: 0;
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
    color: var(--ink);
}

.bo-bookhero__facts > div {
    display: flex;
    flex-direction: column-reverse;
}

.bo-bookhero__rating dd {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--highlight-ink);
}

.bo-bookhero__buy {
    margin: var(--space-4) 0 0;
}

/* ===== Platzierungen ===== */
.bo-title--sm {
    font-size: 26px;
    line-height: 32px;
    letter-spacing: -1px;
    margin: 0 0 var(--space-4);
}

.bo-placements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 0 0 var(--space-5);
    padding: 0;
    list-style: none;
}

.bo-placement {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--bo-radius);
    background: var(--surface-100);
}

.bo-placement.is-current {
    border-color: color-mix(in srgb, var(--highlight) 70%, transparent);
    background: linear-gradient(100deg, color-mix(in srgb, var(--highlight) 18%, var(--surface-100)), var(--surface-100) 70%);
}

.bo-placement__rank {
    flex: none;
    min-width: 48px;
    font-size: 36px;
    line-height: 40px;
    font-weight: 800;
    letter-spacing: -1.5px;
    text-align: center;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.bo-placement.is-current .bo-placement__rank {
    color: var(--highlight-ink);
}

.bo-placement__text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-muted);
}

.bo-placement__text a {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.bo-placement__text a:hover {
    color: var(--accent-ink);
}

/* ===== Mehr aus diesen Listen ===== */
.bo-neighbours {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bo-neighbours a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.bo-neighbours .bo-cover {
    width: 100%;
    font-size: 13px;
    margin-bottom: 6px;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}

.bo-neighbours a:hover .bo-cover {
    transform: translateY(-6px) rotate(-2deg);
    box-shadow: 0 22px 30px -16px color-mix(in srgb, var(--ink) 70%, transparent);
}

.bo-neighbours b {
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 20px;
    color: var(--ink);
}

.bo-neighbours span {
    font-size: 13px;
    line-height: 18px;
    color: var(--ink-muted);
}

@media (max-width: 760px) {
    .bo-bookhero {
        padding: var(--space-4) 0 var(--space-5);
    }

    .bo-bookhero .bo-container {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .bo-bookhero__cover .bo-cover {
        width: 150px;
        font-size: 17px;
    }

    .bo-bookhero__title {
        font-size: 32px;
        line-height: 38px;
    }

    .bo-neighbours {
        display: flex;
        gap: 14px;
        margin: 0 calc(-1 * var(--space-4));
        padding: 0 var(--space-4) var(--space-2);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .bo-neighbours li {
        flex: 0 0 120px;
        scroll-snap-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bo-neighbours .bo-cover {
        transition: none;
    }

    .bo-neighbours a:hover .bo-cover {
        transform: none;
    }
}
