/* Allgemeine Stileinstellungen */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 20px;
}

header h1 {
    margin: 0;
    font-size: 24px;
    text-align: center;
}

header h1 a {
    text-decoration: none;
    color: #333;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    background-color: #ffffff;
    padding: 10px 0;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: #000;
}

/* Hauptinhalt */
main {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

main h1, main h2 {
    color: #222;
}

main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.story-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-card-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.story-card h2 {
    margin: 15px;
    font-size: 20px;
    color: #333;
}

.story-card p {
    margin: 0 15px 15px;
    color: #666;
}

/* Footer */
footer {
    background-color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #777;
    border-top: 1px solid #e0e0e0;
}

/* Responsives Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 20px;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 10px 0;
    }

    main {
        margin: 20px auto;
    }

    .story-card h2 {
        font-size: 18px;
    }
}

/* Paginierung */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.page-link {
    margin: 0 5px;
    padding: 8px 12px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: background-color 0.3s;
}

.page-link.active,
.page-link:hover {
    background-color: #ddd;
    color: #333;
    border-radius: 5px;
}

/* Modernes Layout für die Autor-Seite */
.author-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.author-hero {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 40px;
}

.author-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.author-info h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #222;
}

.author-info p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

@media (max-width: 768px) {
    .author-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .author-image {
        margin-bottom: 20px;
    }
}
/* Footer Styles */
.footer {
    background-color: #f9f9f9;
    color: #333;
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-content p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a img {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
}

.social-links a img:hover {
    opacity: 0.7;
}
/* About Elandor Page Styles */
.about-elandor {
    padding: 40px 20px;
    font-family: 'Georgia', serif;
    color: #333;
    line-height: 1.8;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-elandor h1 {
    font-size: 2.5em;
    color: #2e5a6f;
    margin-bottom: 20px;
}

.about-elandor h2 {
    font-size: 1.8em;
    color: #3a7a91;
    margin-top: 40px;
    margin-bottom: 15px;
}

.about-elandor p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

@media (max-width: 768px) {
    .about-elandor h1 {
        font-size: 2em;
    }

    .about-elandor h2 {
        font-size: 1.5em;
    }

    .about-elandor p {
        font-size: 1em;
    }
}
/* Gemeinsame Stileinstellungen */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Hauptinhalt */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* About Page Styles */
.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-hero {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 40px;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-info h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #222;
}

.about-info h2 {
    font-size: 2em;
    margin-top: 30px;
    color: #222;
}

.about-info p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

/* Responsives Design */
@media (max-width: 768px) {
    .about-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-image {
        margin-bottom: 20px;
    }
    .about-info h1 {
        font-size: 2.5em;
    }
    .about-info h2 {
        font-size: 1.8em;
    }
    .about-info p {
        font-size: 1.1em;
    }
}

/* Grid für die Bücherübersicht */
/* Books grid styling */
.books-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 2em 1em;
}

.book-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    padding-bottom: 1.5em; /* Add padding at the bottom for spacing */
    display: flex;
    flex-direction: column; /* Ensure elements are stacked vertically */
    position: relative;
}

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

.book-card-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #e0e0e0;
}

.book-title {
    font-size: 1.3em;
    color: #222;
    margin: 1em 0 0.5em;
    font-weight: 600;
}

.book-description {
    font-size: 0.95em;
    color: #666;
    padding: 0 1em;
    margin-bottom: 1em;
    flex-grow: 1; /* Ensure description takes up remaining space */
}

/* Toggle chapters button styling */
.toggle-chapters {
    background-color: #0073e6;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5em 1.5em;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
    margin-bottom: 0.5em;
    align-self: center; /* Center the button horizontally */
}

.toggle-chapters:hover {
    background-color: #005bb5;
}

/* Chapters list styling */
.chapters-list {
    list-style-type: none;
    padding: 0;
    margin: 0.5em 0 0;
}

.chapters-list li {
    padding: 0.3em 0;
}

.chapters-list li a {
    color: #0073e6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.chapters-list li a:hover {
    color: #005bb5;
}


/* Landing Page Styling */
.landing-banner {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.landing-intro {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5em;
}

.section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 0.5em;
    color: #333;
}

.adventure-section, .story-section {
    margin: 20px 0;
}

.explore-link {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-top: 0.5em;
    text-align: right;
}

.explore-link:hover {
    color: #005bb5;
    text-decoration: underline;
}

/* Social Links Styling */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-links a img {
    width: 36px;
    height: 36px;
    transition: opacity 0.3s;
}

.social-links a img:hover {
    opacity: 0.8;
}

/* Story Grid Styling */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.story-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
}

.story-card h3 {
    font-size: 1.2em;
    color: #333;
    margin: 15px 0 10px;
}

.story-card-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}
/* Footer Styles */
.footer {
    background-color: #f9f9f9;
    color: #333;
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-content p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

/* Einheitliche Link-Stile für Lizenz und Social Links */
.footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.footer a:hover {
    color: #0073e6; /* Primäre Akzentfarbe beim Hover */
}

.footer a .social-icon {
    width: 24px; /* Einheitliche Breite */
    height: 24px; /* Einheitliche Höhe */
    object-fit: contain; /* Sicherstellen, dass das Bild vollständig sichtbar ist */
    transition: opacity 0.3s, transform 0.3s;
}

.footer a:hover .social-icon {
    opacity: 0.8;
    transform: scale(1.1); /* Leichtes Vergrößern beim Hover */
}

.footer a span {
    font-size: 1em;
    color: inherit; /* Erbt die Farbe vom übergeordneten Element */
}

/* Responsives Design für Footer Links */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }

    .footer a .social-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 600px) {
    .footer a span {
        display: none; /* Text ausblenden auf sehr kleinen Bildschirmen */
    }

    .footer a .social-icon {
        width: 20px;
        height: 20px;
    }
}
