/* 📚 Buch-Tabelle */
.book-table-container {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.book-table {
    width: 100%;
    max-width: 1200px;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.book-table th, .book-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.book-table th {
    background: #284453;
    color: white;
    text-align: left;
}

.book-cover {
    width: 60px; /* Größe des Covers */
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}

/* Anpassung der ersten Spalte, damit Bild und Text korrekt ausgerichtet sind */
.book-table td:first-child {
    display: flex;
    align-items: center;
    gap: 15px; /* Abstand zwischen Bild und Text */
}

.book-title {
    display: flex;
    flex-direction: column;
}

/*.book-tag {
    display: inline-block;
    background: #f7931a;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}*/

.book-table a {
    color: #f7931a; /* Bitcoin-Orange */
    text-decoration: none;
    font-weight: bold;
}

.book-table a:hover {
    text-decoration: underline;
}

.book-author {
    color: #6d6d6d;
}

.book-categories {
    color: #6d6d6d;
}

/* 📱 MOBILE-OPTIMIERUNG */
@media (max-width: 768px) {
    .book-table-container {
        overflow-x: auto; /* Falls nötig, horizontales Scrollen */
    }

    /* Header bleibt in voller Breite */
    .book-table th {
        width: 100%;
        text-align: center;
    }

    /* Zeilen in einzelne Blöcke umwandeln */
    .book-table tr {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
        border-bottom: 2px solid #ddd;
    }

    /* Spalten in Mobile untereinander */
    .book-table td {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    /* Buchcover mittig anzeigen */
    .book-table td:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .book-cover {
        width: 100px; /* Größer auf Mobile */
        max-width: 140px;
        margin-bottom: 10px;
    }

    /* Beschreibung auf voller Breite */
    .book-table td:last-child {
        width: 100%;
        text-align: center;
    }
}

.books-table thead {
    display: none;
}