/* =====================================================
   besimul – Bücher & Produkt-Erweiterungen
   ===================================================== */

/* ===== "Auf Anfrage" statt Preis ===== */
.product-price-anfrage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: #888;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e5e5e5;
    white-space: nowrap;
}
.product-price-anfrage i { color: #e8894a; }

/* Alten .product-price ausblenden (DB hat noch Werte) */
.product-price { display: none !important; }

/* ===== BÜCHER-GRID (Startseite) ===== */
.buecher-section { background: #fafafa; }

.buecher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.buch-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid #efefef;
}
.buch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,.13);
}

.buch-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Cover-Bereich */
.buch-cover-wrap {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    min-height: 280px;
}
.buch-cover {
    max-height: 240px;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
    display: block;
    object-fit: contain;
    transition: transform .3s ease;
}
.buch-card:hover .buch-cover { transform: scale(1.04) rotate(-1deg); }

.buch-cover-fallback {
    width: 160px; height: 200px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buch-badge-neu {
    position: absolute;
    top: 14px; right: 14px;
    background: #e8894a;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(232,137,74,.4);
}

/* Buch-Body */
.buch-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.buch-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.buch-tag {
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid;
    background: transparent;
}

.buch-titel {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0a0a0a;
    line-height: 1.25;
    margin-bottom: 6px;
}

.buch-untertitel {
    font-size: .875rem;
    color: #888;
    font-style: italic;
    margin-bottom: 12px;
}

.buch-beschreibung {
    font-size: .875rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.buch-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.buch-details span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: #888;
    font-weight: 500;
}
.buch-details i { color: #e8894a; }

.buch-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Amazon-Button */
.btn-amazon {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #FF9900;
    color: #0a0a0a;
    font-weight: 700;
    font-size: .9rem;
    padding: 11px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(255,153,0,.3);
    white-space: nowrap;
}
.btn-amazon:hover {
    background: #e68900;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,153,0,.4);
}
.btn-amazon svg { flex-shrink: 0; }

.btn-amazon-lg {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-buch-mehr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.btn-buch-mehr:hover { color: #0a0a0a; }

/* ===== BÜCHER DETAIL PAGE ===== */
.buch-detail-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: start;
}
.buch-detail-flip {
    direction: rtl;
}
.buch-detail-flip > * { direction: ltr; }

.buch-detail-cover {
    position: sticky;
    top: 100px;
}

.buch-detail-cover-wrap {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 20px;
    padding: 40px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.buch-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(var(--buch-rgb),.2), transparent 70%);
    pointer-events: none;
}

.buch-detail-img {
    max-height: 360px;
    width: auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    position: relative;
    z-index: 1;
}

.buch-detail-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: #e8894a;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
}

.buch-amazon-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.buch-amazon-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

/* Buch Specs */
.buch-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
    padding: 24px;
    background: #fafafa;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
}

.buch-spec {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.buch-spec i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.buch-spec strong {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 2px;
}
.buch-spec span {
    font-size: .9rem;
    color: #333;
    font-weight: 500;
}

/* ===== RESPONSIVE BÜCHER ===== */
@media (max-width: 900px) {
    .buch-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .buch-detail-flip { direction: ltr; }
    .buch-detail-cover { position: static; }
    .buch-detail-cover-wrap { padding: 28px; }
    .buch-detail-img { max-height: 280px; }
}

@media (max-width: 640px) {
    .buecher-grid { grid-template-columns: 1fr; }
    .buch-cover-wrap { min-height: 220px; padding: 24px 16px; }
    .buch-cover { max-height: 180px; }
    .buch-specs { grid-template-columns: 1fr; }
    .btn-amazon { width: 100%; justify-content: center; }
}
