/* ==========================================================================
   MARITIME BOOK GRID STYLES (sportbootschule.TV / NautiApp)
   ========================================================================== */

/* --- 1. THE BOOK DASHBOARD (GRID) --- */
.book-grid-container {
    display: block;
    text-align: center;
    margin: 35px 0;
    width: 100%;
}

.book-grid-tile {
    background: #ffffff;
    border: 2px solid #0284c7 !important; /* Festes maritimes Blau */
    border-radius: 8px; 
    padding: 0 !important; 
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin: 15px;
    
    /* Absolute Breiten- und Höhenkontrolle, damit nichts zerreißt */
    width: 200px !important;
    height: 300px !important;
    
    position: relative;
    overflow: hidden; 
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.book-grid-tile:hover {
    transform: translateY(-6px); 
    border-color: #0369a1 !important; /* Dunkleres Blau beim Hover */
    box-shadow: 0 15px 25px -5px rgba(2, 132, 199, 0.35);
}

/* Zwingt das Bild, exakt die 200x300px auszufüllen, ohne das Grid zu dehnen */
.book-grid-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover !important; 
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.25s ease;
}

.book-grid-tile:hover .book-grid-img {
    transform: scale(1.05); 
}

/* --- 2. FUTURE PLUG (ZUKÜNFTIGE BÜCHER BLIND SCHALTEN) --- */
.book-tile-hidden {
    display: none !important;
}

/* --- 3. REAL BUTTON ENGINE (Weiß mit blauem Rahmen) --- */
.book-action-wrapper {
    margin: 35px 0;
    text-align: left;
    display: block;
}

.book-btn-cta {
    display: inline-block !important;
    vertical-align: middle;
    background: #ffffff !important; 
    color: #0284c7 !important;
    padding: 14px 32px !important;
    border: 2px solid #0284c7 !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    text-align: center;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.08) !important;
    transition: all 0.2s ease-in-out !important;
}

.book-btn-cta:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3) !important;
    transform: translateY(-2px);
}

/* --- 4. RESPONSIVE RESET --- */
@media screen and (max-width: 480px) {
    .book-grid-tile { 
        width: 140px !important;
        height: 210px !important;
        margin: 8px;
    }
}