@charset "utf-8";

/* --- GRUNDGERÜST --- */
body {
    font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;
    background-color: #ccccff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #222;
}
.wrapper {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- NAVIGATION --- */
.navigation {
    width: 240px;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 40px 20px;
    min-height: 100vh;
    box-sizing: border-box;
}
.nav_bild {
    max-width: 120px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
}
.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.navigation a {
    display: block;
    text-decoration: none;
    color: #000;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 6px;
    transition: background 0.3s;
}
.navigation a:hover, .navigation a.active {
    background-color: #fff;
    font-weight: bold;
}

/* --- INHALT --- */
.main-content {
    flex: 1;
    padding: 40px;
    box-sizing: border-box;
    max-width: 1100px; /* Begrenzt die maximale Breite für bessere Lesbarkeit */
}
h1 {
    font-size: 2.2em;
    color: #111;
    margin-top: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}
h2 {
    font-size: 1.5em;
    margin-top: 1.5em;
    color: #222;
}
p {
    margin-bottom: 15px;
}

/* Elegante Lesekarten (ersetzt die alte .seite Klasse) */
.reading-card {
    background: #fff;
    padding: 35px 45px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: block;
}

/* Medien */
video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    background: #000;
}
img {
    max-width: 100%;
    height: auto;
}
.align-center {
    text-align: center;
}
.img-startseite {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* --- CSS GRID FÜR BÜCHER --- */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: start;
}
.book-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.book-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    margin-bottom: 20px;
}
.book-card h2 {
    font-size: 1.3em;
    margin-top: 0;
}

/* "Mehr lesen..." Akkordeon */
details {
    margin-bottom: 20px;
}
summary {
    cursor: pointer;
    color: #5555ff;
    font-weight: bold;
    margin-top: 10px;
    outline: none;
    padding: 5px 0;
}
summary:hover {
    color: #2222aa;
}
.book-card p {
    font-size: 0.95em;
    color: #444;
    margin-top: 10px;
}

/* Buttons in den Kacheln */
.action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.btn {
    text-align: center;
    text-decoration: none;
    font-size: 0.85em;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f0f0f0;
    color: #333;
    flex-grow: 1;
    transition: background 0.3s;
    box-sizing: border-box;
}
.btn:hover {
    background: #e0e0e0;
}
.btn-primary {
    background-color: #ccccff;
    color: #000;
    font-weight: bold;
    flex-basis: 100%;
}
.btn-primary:hover {
    background-color: #9999ff;
}
.btn-amazon {
    background-color: #FF9900;
    color: #fff;
    font-weight: bold;
    flex-basis: 100%;
}
.btn-amazon:hover {
    background-color: #e68a00;
}

/* Vergriffene Bücher */
.archive-section {
    margin-top: 60px;
    background: rgba(255,255,255,0.4);
    padding: 30px;
    border-radius: 12px;
}
.archive-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
}
.archive-list a {
    display: block;
    background: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: background 0.3s;
}
.archive-list a:hover {
    background: #ccccff;
}

/* Footer & Extras */
footer {
    margin-top: 50px;
    font-size: 0.9em;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 20px;
}
.rechts {
    text-align: right;
    font-style: italic;
}
.footnotes {
    font-size: 0.9em;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 20px;
    color: #555;
}
sup {
    font-size: 0.8em;
}

/* --- HANDY-ANPASSUNG --- */
@media (max-width: 850px) {
    .wrapper {
        flex-direction: column;
    }
    .navigation {
        width: 100%;
        min-height: auto;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .navigation ul {
        width: 100%;
        text-align: center;
    }
    .navigation a {
        text-align: center;
    }
    .main-content {
        padding: 20px;
    }
    .reading-card {
        padding: 20px;
    }
}
