:root {
    --text: #2b2b2b;
    --muted: #767676;
    --accent: #a8324a;
    --accent-soft: #f6e8ec;
    --bg: #faf8f6;
    --card-bg: #ffffff;
    --border: #e5e0db;
    --sans: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --serif: Georgia, 'Times New Roman', serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--serif);
    line-height: 1.7;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 96px;
}

/* ---------- Seitenkopf ---------- */
.page-head {
    margin-bottom: 28px;
}
.page-head h1 {
    margin-bottom: 6px;
}
.page-head .subtitle {
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
}

h1 {
    font-family: var(--sans);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
}

/* ---------- Karten-Grid ---------- */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.series-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.series-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
    border-color: #d8d2cb;
}
.series-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.series-card .thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: #f0ede9;
    border-bottom: 1px solid var(--border);
}
.series-card .card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    font-family: var(--sans);
}
.card-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 2px 10px;
    margin-bottom: 8px;
}
.series-card .card-title {
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.35;
    margin-bottom: 6px;
}
.series-card .card-excerpt {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.more-link {
    color: var(--accent);
    font-weight: 600;
}

/* ---------- Serie: Episodenliste ---------- */
.episode-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.episode-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px 12px 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.episode-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    border-color: #d8d2cb;
}
.episode-thumb {
    width: 150px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f0ede9;
    display: block;
}
.episode-body {
    font-family: var(--sans);
    min-width: 0;
}
.episode-num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2px;
}
.episode-body .ep-title {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 4px;
}

/* ---------- Story-Detail ---------- */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: 999px;
    padding: 6px 14px;
    transition: border-color 0.15s ease;
}
.back-link:hover {
    border-color: var(--accent);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--muted);
}
.meta .artist {
    font-weight: 600;
    color: var(--text);
}
.tag {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.8rem;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 36px;
}
.gallery img,
.gallery video {
    width: 100%;
    border-radius: 10px;
    display: block;
    background: #f0ede9;
}

.body-text p {
    margin: 0 0 1.2em;
    font-size: 1.05rem;
}
.body-text h2 {
    font-family: var(--sans);
    font-size: 1.3rem;
    margin-top: 1.6em;
}
.body-text a {
    color: var(--accent);
}

.chapter-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 44px;
    font-family: var(--sans);
    font-size: 0.9rem;
}
.chapter-nav a,
.chapter-nav span {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    min-height: 52px;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.chapter-nav a:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.chapter-nav .next {
    text-align: right;
}
.chapter-nav .label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 2px;
}

.similar-heading {
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
}

.empty-state {
    opacity: 0.6;
    padding: 2rem 0;
    font-family: var(--sans);
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
    .wrap {
        padding: 24px 16px 72px;
    }
    h1 {
        font-size: 1.6rem;
    }
    .series-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .series-card .card-excerpt {
        -webkit-line-clamp: 2;
    }
    .episode-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .episode-thumb {
        width: 100%;
    }
    .chapter-nav {
        grid-template-columns: 1fr;
    }
    .chapter-nav .next {
        text-align: left;
    }
}

.ep-excerpt {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

/* DA-Pipeline: Ueberblick (Zusammenfassung + Bild-Analyse) */
.overview {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 4px solid #a8324a;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 28px;
}
.overview .ov-block { margin-bottom: 12px; }
.overview .ov-block:last-child { margin-bottom: 0; }
.overview .ov-label {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a8324a;
    margin-bottom: 4px;
}
.overview p { margin: 0; font-size: 1rem; line-height: 1.55; }
/* ---------- Kategorie: Bilder & Videos ---------- */
.media-section {
    margin-top: 56px;
}
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.section-head h2 {
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0;
}
.media-description {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 28px;
}
@media (max-width: 640px) {
    .media-section {
        margin-top: 40px;
    }
    .section-head h2 {
        font-size: 1.3rem;
    }
}

/* ---------- Startseite: Inhalt-Sektionen ---------- */
.page-head {
    margin-bottom: 20px;
}
.home-section {
    margin-top: 40px;
}
.section-count {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
}
.section-head h2 {
    position: relative;
    padding-bottom: 10px;
}
.section-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
}
@media (max-width: 640px) {
    .home-section {
        margin-top: 30px;
    }
}

/* Inhalts-Filter-Leiste + Typ-Badges */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.filter-btn {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.filter-btn:hover { border-color: #a8324a; color: #a8324a; }
.filter-btn.active { background: #a8324a; border-color: #a8324a; color: #fff; }
.section-filter {
    margin-left: auto;
    font-family: var(--sans);
    font-size: 0.8rem;
    color: #a8324a;
    text-decoration: none;
}
.section-filter:hover { text-decoration: underline; }
.typ-badge {
    background: rgba(168, 50, 74, 0.1);
    border-color: rgba(168, 50, 74, 0.4);
    color: #a8324a;
    font-weight: 700;
}
/* Glaubenseite (Startseite) */
.glauben-hero { margin-bottom: 32px; }
.glauben-hero h1 { font-size: 2.4rem; margin-bottom: 10px; }
.glauben-hero .subtitle { color: var(--muted, #777); font-size: 1.05rem; margin: 0; max-width: 640px; }
.glauben-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.glauben-card a {
    display: block;
    height: 100%;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, rgba(0,0,0,.08));
    border-radius: 10px;
    padding: 18px 20px 16px;
    text-decoration: none;
    color: var(--text, #222);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.glauben-card a:hover {
    border-color: #a8324a;
    box-shadow: 0 3px 14px rgba(168,50,74,.12);
    transform: translateY(-1px);
}
.glauben-card-title { font-weight: 700; font-size: 1.06rem; margin-bottom: 8px; line-height: 1.35; }
.glauben-card-excerpt { font-size: .9rem; line-height: 1.55; opacity: .85; }
.glauben-card-date { margin-top: 12px; font-size: .76rem; color: #999; font-family: var(--sans); }