.bookcard {
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(58, 36, 18, 0.10);
    padding: 25px;
    margin: 20px 0;
    font-family: var(--font-main);
    color: var(--color-surface);
}

.bookcard:hover {
    transform: translateY(-6px); /* leicht nach oben */
    box-shadow: 0 12px 24px rgba(0,0,0,0.15); /* wirkt wie „angehoben“ */

}


.sidebar {
    border-right: 1px solid #e0e0e0;
    padding-right: 1.5rem;
}

.line {
    width: 100%;
    height: 1px;
    background: #ddd;
    margin: 1.5rem 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Hauptlayout */

.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    position: relative;
}


/* Linke Spalte */

.book-info {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    position: sticky;
    top: 1.5rem;
}

/* Rechte Spalte */

.content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Scrollbarer Inhalt */

.content-scroll {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    max-height: 55vh; /* → richtige Höhe */
    overflow-y: auto;
}

/* Ähnliche Bücher */

.similar {
    background: white;
    padding: 1rem;
    border-radius: 8px;
}

.similar-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto; /* → horizontales Scrollen */
}

.card {
    min-width: 120px;
    background: #ddd;
    padding: 1rem;
    border-radius: 6px;
    flex: 0 0 auto;
}

/* Responsive: auf kleineren Screens untereinander */
@media (max-width: 800px) {
    .page {
        grid-template-columns: 1fr;
    }

    .book-column {
        position: static;
    }

    .content-inner {
        max-height: none;
    }
}


.Lesewunschbutton {
    padding: 8px 30px;
    border-radius: 20px;
    border: none;
    background-color: black;
    color: white;
}

.Lesewunschbutton:hover {
    transform: translateY(-4px); /* leicht nach oben */
    box-shadow: 0 12px 24px rgba(0,0,0,0.15); /* wirkt wie „angehoben“ */
}


.button-wrapper {
    display: flex;
    justify-content: center; /* horizontal zentrieren */
    margin-top: 20px;        /* optionaler Abstand */
}


.ähnliche-Bücher {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.Lesewunschbutton.active {
    background-color: #1e90ff;
    color: white;
    transform: none;
    box-shadow: none;
}

nav, main {
    width: auto;
}

.rating-input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid var(--color-surface);
    background-color: var(--color-surface);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-text-main);
    box-shadow: 0 4px 12px rgba(58, 36, 18, 0.10);
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.4;
}

.rating-input:focus {
    outline: none;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.rating-input::placeholder {
    color: #888;
}


