/* ================= 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: #FAF8F5; /* 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, #B8956A 0%, #8C6F47 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: #FFFEFB;
    padding: 30px 20px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    border-right: 1px solid #E5DDD0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
}

.sidebar h3 {
    font-size: 0.85rem; /* Kleiner */
    color: #8C6F47;
    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: #6B5744;
    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: #F5F0E8;
    color: #8C6F47;
    transform: translateX(4px);
}

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

/* Hauptinhalt rechts */
.main-content {
    flex: 1;
    background: #FFFEFB; /* 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: #6B5744;
    font-weight: 700;
    margin: 1.2em 0 0.5em;
}

h2 {
    font-size: 1.8rem;
    color: #8C6F47;
    border-bottom: 2px solid #E5DDD0;
    padding-bottom: 10px;
}

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

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

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

li {
    margin: 0.5em 0;
}

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

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

a:hover {
    color: #B8956A;
}

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

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

.analyse h2 {
    color: #8C5A44;
    font-size: 1.4rem;
    border-bottom: 1px solid #D4B8AC;
    margin-top: 1.5em;
}

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

.analyse p {
    color: #5A4035;
}

/* Message-Box (warm) */
.message-box {
    background: linear-gradient(135deg, #F9F3E8 0%, #F5EDD8 100%); /* Warmes Beige-Gold */
    border-left: 4px solid #B8956A;
    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: #8C6F47;
}

.message-box p {
    color: #5A4A38;
}

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

.bottom-navigation a {
    display: inline-block;
    background: linear-gradient(180deg, #B8956A, #8C6F47);
    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, #C9A67B, #9D8058);
    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: #FFFEFB;
    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 #B8956A;
}

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

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

.kapitel-nummer {
    font-size: 0.9em;
    color: #A08060;
    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: #5A4A38;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kapitel-titel a:hover {
    color: #8C6F47;
}

.kapitel-untertitel {
    font-size: 1em;
    color: #888;
    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 #E5DDD0;
    }
    
    .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;
    }
}
