/* Grundlegende Stil-Einstellungen */
:root {
    --primary-color: #303b14;
    --secondary-color: #e74c3c;
    --background-color: #f4f4f4;
    --card-bg-color: #ffffff;
    --shadow-light: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
 text-decoration: none;
 color: #fff;
}

a:hover {
 text-decoration: underline;
 color: var(--secondary-color);
}

/* Visuell verstecktes Element für Barrierefreiheit */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.header {
    background-color: var(--primary-color);
    background-image: url('dunguaire-castle-7177931_1280.jpg');
    background-position: center; 
    background-repeat: no-repeat; 
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
    animation: fade-in 1s ease-in-out;
}

.header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.book-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Stil für die einzelnen Buchkarten */
.book-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fade-in-up 0.8s ease-out;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.book-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 2px solid var(--secondary-color);
}

.book-info {
    padding: 1.5rem;
}

.book-info h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.book-info h4 {
    margin-top: 0;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 20rem;
    padding: 0.5rem;
    text-align: center;
}

.book-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Media Queries für Responsivität */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .book-showcase {
        grid-template-columns: 1fr;
    }
}

/* Animations-Keyframes */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1rem;
}
