/* ================= Unerhörte Geschichten - Neues Design =================
   - Source Sans Pro Schrift
   - Warme Gold/Ocker Farben
   - Feste Seitenleiste
   - Stylischer Header-Banner
========================================================================== */

/* ----------- Basis ----------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Source Sans Pro", -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #f8f9fa; /* Helles warmes Beige */
    color: #333;
    font-size: 18px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----------- Stylischer Header-Banner ----------- */
.book-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); /* Warmes Gold/Ocker */
    color: #ffffff;
    text-align: center;
    padding: 20px 20px; /* Viel schmaler */
    margin: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.book-title {
    font-size: 1.8rem; /* Kleiner */
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0 0 5px; /* Weniger Abstand */
    text-transform: uppercase;
    color: #ffffff;
}

.book-subtitle {
    font-size: 1rem; /* Kleiner */
    font-style: italic;
    color: rgba(255,255,255,0.95);
    font-weight: 400;
    margin: 0;
}

/* ----------- Layout mit Seitenleiste ----------- */
.page-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px; /* Mehr Abstand zwischen Sidebar und Text */
}

/* Feste Seitenleiste links */
.sidebar {
    width: 220px; /* Schmaler */
    background: #ffffff;
    padding: 30px 20px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    border-right: 1px solid #e9ecef;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
}

.sidebar h3 {
    font-size: 0.85rem; /* Kleiner */
    color: #2980b9;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 12px;
}

.sidebar-nav a {
    color: #34495e;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 12pt; /* 12pt wie gewünscht */
    line-height: 1.4;
}

.sidebar-nav a:hover {
    background: #ecf0f1;
    color: #2980b9;
    transform: translateX(4px);
}

.sidebar-nav a.active {
    background: #3498db;
    color: white;
    font-weight: 600;
}

/* Hauptinhalt rechts */
.main-content {
    flex: 1;
    background: #ffffff; /* Fast weiß, cremig */
    padding: 50px 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-height: calc(100vh - 80px);
}

/* ----------- Typografie ----------- */
h1, h2, h3 {
    color: #34495e;
    font-weight: 700;
    margin: 1.2em 0 0.5em;
}

h2 {
    font-size: 1.8rem;
    color: #2980b9;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.35rem;
    color: #5d6d7e;
}

p {
    margin-bottom: 1.2em;
    color: #2c3e50;
}

ul, ol {
    margin: 0.8em 0 1.2em 1.5em;
    padding: 0;
}

li {
    margin: 0.5em 0;
}

hr {
    border: 0;
    border-top: 1px solid #e9ecef;
    margin: 2em 0;
}

/* Links */
a {
    color: #2980b9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    color: #3498db;
}

/* ----------- Spezielle Content-Blöcke ----------- */

/* Analyse-Block (Rost/Terrakotta - warm aber ernst) */
.analyse {
    background: #f8f9fa; /* Helles Rost/Terrakotta */
    border-left: 4px solid #3498db;
    padding: 25px 30px;
    margin: 2em 0;
    border-radius: 0 4px 4px 0;
}

.analyse h2 {
    color: #2c3e50;
    font-size: 1.4rem;
    border-bottom: 1px solid #e9ecef;
    margin-top: 1.5em;
}

.analyse h2:first-child {
    margin-top: 0;
}

.analyse p {
    color: #2c3e50;
}

/* Message-Box (warm) */
.message-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%); /* Warmes Beige-Gold */
    border-left: 4px solid #3498db;
    padding: 25px 30px;
    margin: 2em 0;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 8px rgba(184, 149, 106, 0.1);
}

.message-box h2, .message-box h3 {
    color: #2980b9;
}

.message-box p {
    color: #2c3e50;
}

/* ----------- Navigation am Seitenende ----------- */
.bottom-navigation {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bottom-navigation a {
    display: inline-block;
    background: linear-gradient(180deg, #3498db, #2980b9);
    color: #fff;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(140, 111, 71, 0.2);
    transition: all 0.2s ease;
}

.bottom-navigation a:hover {
    background: linear-gradient(180deg, #5dade2, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(140, 111, 71, 0.3);
}

/* ----------- Index-Seite spezifisch ----------- */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 50px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #3498db;
}

.kapitel {
    margin-bottom: 30px;
    padding: 20px 25px;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    transition: all 0.2s ease;
    border-radius: 0 4px 4px 0;
}

.kapitel:hover {
    background: #ecf0f1;
    transform: translateX(6px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.kapitel-nummer {
    font-size: 0.9em;
    color: #5d6d7e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 700;
}

.kapitel-titel {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.kapitel-titel a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kapitel-titel a:hover {
    color: #2980b9;
}

.kapitel-untertitel {
    font-size: 1em;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 5px;
}

/* ----------- Responsive ----------- */
@media (max-width: 1200px) {
    .page-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .main-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .book-title {
        font-size: 2rem;
    }
    
    .book-subtitle {
        font-size: 1.1rem;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .bottom-navigation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bottom-navigation a {
        text-align: center;
    }
}

/* ----------- Book Grid für Index-Seite ----------- */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.chapter-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e9ecef;
    min-height: 140px;
    border-left: 4px solid #3498db;
}

.chapter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left-color: #2980b9;
}

.chapter-content {
    padding: 25px;
}

.chapter-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.chapter-title a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.chapter-title a:hover {
    color: #1f618d;
    text-decoration: underline;
}

.chapter-subtitle {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0;
    font-style: italic;
    line-height: 1.4;
}
