/* --- Book Highlight Styles v2.0 (Shortcode Version) --- */

.book-highlight-container {
    /* Sizing & Appearance */
    width: 100%; /* Will fill the container it's placed in */
    max-width: 280px; /* But won't get wider than this */
    margin: 20px auto; /* Center it within its container */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border: 1px solid #e5e7eb;
    font-family: inherit; /* Use the theme/Elementor font */
    overflow: hidden; /* Keep the rounded corners on the cover image */
}

/* --- "Buch der Woche" accent ---
   The text itself comes from the PHP label (.book-highlight-label);
   the former ::after ribbon duplicated it and covered the cover image. */
.book-highlight-container.is-weekly-highlight {
    border-top: 4px solid #007a33;
}

.book-highlight-container.is-weekly-highlight .book-highlight-label {
    color: #007a33; /* 5.5:1 on white */
}

/* Book Cover Image */
.book-highlight-image {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid #e5e7eb;
}

/* Container for all the text details */
.book-highlight-details {
    padding: 16px;
    text-align: center;
}

/* "Buchempfehlung" label */
.book-highlight-label {
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Book Title */
.book-highlight-title {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

/* Book Author */
.book-highlight-author {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #4b5563;
}

/* Call-to-action Button */
.book-highlight-button {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    background-color: #007a33; /* white text: 5.5:1 (WCAG AA); #009540 was 3.9:1 */
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.book-highlight-button:hover,
.book-highlight-button:focus {
    background-color: #005a27;
    color: #ffffff;
}

.book-highlight-button:focus-visible,
.book-highlight-container a:focus-visible {
    outline: 3px solid #005a27;
    outline-offset: 2px;
}

