/* ========================================
   KOMPAKTE BUCHKARTEN - DESKTOP BUTTON-FIX
   Clean Architecture - Zero !important
   ======================================== */

/* Mobile: unverändert (perfekt) */

/* Desktop - Ab 768px */
@media (min-width: 768px) {
    body .book-card.book-card {
        padding: 1rem;
    }
    
    body .book-card-grid.book-card-grid {
        display: grid;
        grid-template-columns: 95px 1fr;
        gap: 0.75rem;
        align-items: start;
    }
    
    .book-card-grid > div:first-child {
        width: 95px;
        min-width: 95px;
        flex-shrink: 0;
    }
    
    .book-card-grid img {
        width: 95px;
        height: 142px;
        object-fit: cover;
    }
    
    /* KRITISCH: Actions Container - Macht die 2 Reihen zu EINER */
    .book-card .flex.flex-col.mt-2.pt-2.border-t {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        align-items: center;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    /* Reihe 1 (Details + Suche + Icons) */
    .book-card .flex.flex-col.mt-2.pt-2.border-t > div:first-child {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        margin-bottom: 0;
        flex: 0 1 auto;
    }
    
    /* Reihe 2 (Rezension + Zitate + Teilen) */
    .book-card .flex.flex-col.mt-2.pt-2.border-t > div:last-child {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        overflow: visible;
        padding-bottom: 0;
        flex: 0 1 auto;
    }
    
    .book-card .flex.flex-col.mt-2.pt-2.border-t .flex.items-center {
        display: inline-flex;
        gap: 0.5rem;
    }
    
    .feature-btn.feature-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.65rem;
        white-space: nowrap;
    }
    
 .book-card h3 {
        margin-bottom: -0.05rem;
        line-height: 1.1;
        font-size: 1.75rem; 
        font-weight: 800;
    }
    
    .book-card p {
        margin: 0.1rem 0;
        line-height: 1.4;
    }
    
    /* Spezifischer Abstand für ISBN/Jahr-Zeile (gleich wie Titel-zu-Autor) */
    .book-card p.text-slate-500.italic,
    .book-card p.font-mono {
        margin-top: 0.5rem;
    }
}

/* Large Desktop - Ab 1024px */
@media (min-width: 1024px) {
    body .book-card.book-card {
        padding: 1.25rem;
    }
    
    .book-card-grid.book-card-grid {
        grid-template-columns: 120px 1fr;
        gap: 1rem;
    }
    
    .book-card-grid > div:first-child {
        width: 120px;
        min-width: 120px;
    }
    
    .book-card-grid img {
        width: 120px;
        height: 180px;
    }
    
    .book-card .flex.flex-col.mt-2.pt-2.border-t {
        gap: 1rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .book-card .flex.flex-col.mt-2.pt-2.border-t > div {
        gap: 0.75rem;
    }
    
    .feature-btn.feature-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Japandi Theme Anpassungen */
@media (min-width: 768px) {
    [data-theme="japandi"] .book-card-grid.book-card-grid {
        gap: 0.75rem;
    }
}

@media (min-width: 1024px) {
    [data-theme="japandi"] .book-card-grid.book-card-grid {
        gap: 1rem;
    }
    
    .book-card h3 {
        font-size: 1.5rem; /* Noch größer auf Desktop: ca. 24px */
    }
}
