/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-weight: 400;
    line-height: 1.8;
    color: #2c2c2c;
    background-color: #fafafa;
    font-size: 18px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2 {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-weight: 400;
    line-height: 1.3;
}

/* Accessibility Helper */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    min-height: 3.9rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.subtitle {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-style: normal;
    font-size: 1.3rem;
    color: #666;
    font-weight: 400;
}

.subtitle-small {
    font-size: 1.5rem;
    color: #666;
    font-weight: 400;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 80px;
    padding-bottom: 40px;
}

/* Main Content */
main {
    flex: 1;
}

section {
    margin-bottom: 60px;
}

/* Books Section */
.books {
    padding: 40px 0;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.book-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-cover {
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.book-cover a {
    display: block;
    width: 70%;
    max-width: 250px;
}

.book-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.book-item h3 {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

.book-type {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.book-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: left;
    padding: 0 10px;
    flex-grow: 1;
}

.book-item .btn {
    display: inline-block;
    margin-top: auto;
}

/* Button */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    border: 2px solid #1a1a1a;
}

.btn:hover {
    background-color: #fafafa;
    color: #1a1a1a;
}

/* About Section */
.about {
    padding-top: 20px;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.author-photo {
    flex-shrink: 0;
}

.author-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    filter: grayscale(20%);
}

.author-text {
    flex: 1;
    text-align: left;
}

.author-text h2 {
    margin-top: 0;
}

.author-text p {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 40px;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
    color: #999;
    font-size: 0.9rem;
}

footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #1a1a1a;
}

/* Impressum Page */
.impressum {
    max-width: 600px;
    margin: 0 auto;
}

.impressum h2 {
    margin-bottom: 2rem;
}

.impressum-content {
    text-align: left;
}

.impressum-content p {
    margin-bottom: 1.5rem;
}

.impressum-content a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
    transition: opacity 0.3s ease;
}

.impressum-content a:hover {
    opacity: 0.6;
}

/* Datenschutz Page */
.datenschutz {
    max-width: 800px;
    margin: 0 auto;
}

.datenschutz-content {
    text-align: left;
}

.datenschutz-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.datenschutz-content h3 {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

.datenschutz-content h4 {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    color: #2c2c2c;
}

.datenschutz-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.datenschutz-content ul {
    margin-bottom: 1rem;
    margin-left: 2rem;
    line-height: 1.8;
}

.datenschutz-content li {
    margin-bottom: 0.5rem;
}

.datenschutz-content a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
    transition: opacity 0.3s ease;
}

.datenschutz-content a:hover {
    opacity: 0.6;
}

.datenschutz-content small {
    color: #666;
    font-size: 0.9rem;
}

.home-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.home-link:hover {
    opacity: 0.6;
}

.back-link {
    margin-bottom: 2rem;
    text-align: center;
}

.back-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #1a1a1a;
}

/* Bibliothek Placeholder Page */
.bibliothek-placeholder {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 30px;
}

.bibliothek-placeholder h2 {
    margin-bottom: 3rem;
}

.placeholder-content {
    background-color: #f5f5f5;
    padding: 50px 40px;
    border-radius: 8px;
}

.placeholder-message {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.placeholder-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.placeholder-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.placeholder-cta p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Review Generator */
.review-generator {
    max-width: 700px;
    margin: 60px auto;
    text-align: center;
    padding: 40px 30px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.review-generator h2 {
    margin-bottom: 1rem;
}

.review-intro {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.review-display {
    background-color: #fff;
    padding: 30px;
    border-radius: 6px;
    min-height: 120px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.review-stars {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 3rem;
    color: #ffd700;
    margin: 0;
    letter-spacing: 8px;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c2c2c;
    margin: 0;
    text-align: center;
}

.btn-review {
    font-size: 1rem;
    padding: 16px 36px;
    cursor: pointer;
}

.btn-review:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .subtitle-small {
        font-size: 1.2rem;
    }

    body {
        font-size: 16px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .author-text {
        text-align: center;
    }

    .author-photo img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .container {
        padding: 30px 15px;
    }

    .books-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
