/* style.css */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(to right, #2c3e50, #4e6a8a);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}

header h1 { margin: 0; font-size: 2.5rem; }
header p { margin-top: 0.5rem; opacity: 0.9; }

nav {
    background: #333;
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

nav a.active { color: #ff9900; }
nav a:hover { color: #ff9900; }

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Bücher Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.book-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-card:hover { transform: translateY(-5px); }

.book-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee;
}

.book-card h3 { margin: 1rem; color: #2c3e50; font-size: 1.2rem; }
.book-card p { padding: 0 1rem; color: #666; font-size: 0.95rem; }

.btn-amazon {
    display: inline-block;
    background: #ff9900;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    margin: 1rem;
    font-weight: bold;
}

.btn-amazon:hover { background: #e67e22; }

/* Presse Bereich */
.press-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.press-item {
    background: #fff;
    border-left: 6px solid #ccc; /* Fallback color */
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.press-source {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.press-item h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0.5rem 0 1rem 0;
    font-family: 'Georgia', serif;
}

/* Titanic Spezial */
.titanic-hero {
    background: #1a1a1a;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.titanic-content { flex: 2; }
.titanic-cta { flex: 1; text-align: center; background: #2c3e50; padding: 1.5rem; border-radius: 8px; }

/* Kontakt */
.contact-box {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.email-link {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #ff9900;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

footer a { color: #aaa; text-decoration: none; }

@media (max-width: 768px) {
    nav a { display: block; margin: 0.8rem 0; border-bottom: 1px solid #444; padding-bottom: 0.5rem; }
    header { padding: 2rem 1rem; }
    .titanic-hero { flex-direction: column; }
}

.author-profile {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.author-img {
    width: 200px;
    height: 200px;
    object-fit: cover; /* Schneidet das Bild quadratisch zu, ohne es zu verzerren */
    border-radius: 50%; /* Macht das Bild rund */
    border: 4px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .author-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}