/*
 * ============================================================================
 * RONCO – Western-Roman-Webseite
 * Haupt-Stylesheet im 70er-Western-Stil
 * ============================================================================
 */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Rye&family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ── Custom Properties (Design Tokens) ── */
:root {
    /* Farben – Warme Western-Palette */
    --color-bg-dark: #1A0F0A;
    --color-bg-medium: #2C1810;
    --color-bg-warm: #3D1F14;
    --color-bg-card: #3A2518;
    --color-bg-card-hover: #4A3020;

    --color-parchment: #F5F0E1;
    --color-parchment-dark: #E8DCC8;
    --color-cream: #F4E9D8;
    --color-sand: #C4A57B;

    --color-gold: #DAA520;
    --color-gold-light: #F0C040;
    --color-gold-dark: #B8860B;

    --color-leather: #8B4513;
    --color-leather-dark: #5D2A0C;
    --color-leather-light: #A0522D;

    --color-rust: #D2691E;
    --color-crimson: #8B0000;
    --color-crimson-light: #B22222;

    --color-text: #F5F0E1;
    --color-text-muted: #C4A57B;
    --color-text-dark: #2C1810;

    /* Typografie */
    --font-display: 'Rye', cursive;
    --font-body: 'Lora', Georgia, serif;
    --font-reading: 'Source Serif 4', 'Lora', Georgia, serif;

    /* Größen */
    --header-height: 80px;
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --border-radius: 8px;
    --border-radius-lg: 16px;

    /* Schatten */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-text: 2px 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(218, 165, 32, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ── Reset & Basis ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Holz-Textur als Background-Pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.03) 2px,
            rgba(139, 69, 19, 0.03) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(139, 69, 19, 0.02) 50px,
            rgba(139, 69, 19, 0.02) 52px
        ),
        radial-gradient(ellipse at 20% 50%, rgba(61, 31, 20, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 50%, rgba(61, 31, 20, 0.3) 0%, transparent 70%),
        linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-medium) 50%, var(--color-bg-dark) 100%);
    z-index: -1;
    pointer-events: none;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-leather);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-dark);
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(26, 15, 10, 0.98), rgba(44, 24, 16, 0.95));
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--color-gold-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo__icon {
    width: 48px;
    height: 48px;
}

.site-logo__text {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-gold);
    text-shadow: var(--shadow-text);
    letter-spacing: 3px;
    line-height: 1;
}

.site-logo__subtitle {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--color-sand);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav__list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.main-nav__link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-parchment);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    position: relative;
}

.main-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width var(--transition-medium);
}

.main-nav__link:hover {
    color: var(--color-gold);
    background: rgba(218, 165, 32, 0.08);
}

.main-nav__link:hover::after,
.main-nav__link--active::after {
    width: 60%;
}

.main-nav__link--active {
    color: var(--color-gold);
}

/* Hamburger (Mobile) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}

.hamburger__bar {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
    transition: all var(--transition-medium);
    margin: 5px 0;
}

.hamburger.is-active .hamburger__bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.is-active .hamburger__bar:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger__bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ── Hero Section ── */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(218, 165, 32, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--color-gold);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6), 0 0 40px rgba(218, 165, 32, 0.2);
    letter-spacing: 6px;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero__divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.hero__divider-star {
    color: var(--color-gold);
    font-size: 1.2rem;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--color-sand);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ── Trennlinien (Seil/Western-Stil) ── */
.rope-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    padding: 0 1rem;
}

.rope-divider__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-leather) 20%, var(--color-leather) 80%, transparent);
    border-radius: 1px;
    max-width: 300px;
}

.rope-divider__ornament {
    color: var(--color-gold);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ── Suche & Filter ── */
.search-bar {
    max-width: 500px;
    margin: 0 auto 3rem;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.search-bar__input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    background: rgba(58, 37, 24, 0.6);
    border: 1px solid var(--color-leather);
    border-radius: 50px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-medium);
    backdrop-filter: blur(4px);
}

.search-bar__input::placeholder {
    color: var(--color-sand);
    font-style: italic;
}

.search-bar__input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.15), var(--shadow-glow);
    background: rgba(58, 37, 24, 0.8);
}

.search-bar__icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-sand);
    font-size: 1.1rem;
    pointer-events: none;
}

/* ── Roman-Karten Grid ── */
.novels-section {
    padding: 0 0 4rem;
}

.novels-section__title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 2.5rem;
    text-shadow: var(--shadow-text);
}

.novels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.novel-card {
    background: linear-gradient(145deg, var(--color-bg-card), rgba(44, 24, 16, 0.8));
    border: 1px solid rgba(139, 69, 19, 0.4);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-medium);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.novel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.novel-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-gold-dark);
    box-shadow: var(--shadow-card-hover), 0 0 30px rgba(218, 165, 32, 0.1);
}

.novel-card:hover::before {
    opacity: 1;
}

.novel-card__cover {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--color-bg-medium);
}

.novel-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.novel-card:hover .novel-card__cover img {
    transform: scale(1.05);
}

.novel-card__band {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, var(--color-crimson), var(--color-crimson-light));
    color: var(--color-parchment);
    font-family: var(--font-display);
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.novel-card__body {
    padding: 1.25rem;
}

.novel-card__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.novel-card__author {
    font-size: 0.9rem;
    color: var(--color-sand);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.novel-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.novel-card__format {
    background: rgba(139, 69, 19, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* No-Cover Placeholder */
.novel-card__no-cover {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--color-bg-warm), var(--color-bg-medium));
    color: var(--color-leather);
}

.novel-card__no-cover-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.novel-card__no-cover-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    opacity: 0.4;
}

/* ── Roman-Einzelansicht ── */
.novel-detail {
    padding: 3rem 0 4rem;
}

.novel-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-sand);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: color var(--transition-fast);
}

.novel-detail__back:hover {
    color: var(--color-gold);
}

.novel-detail__content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.novel-detail__cover-wrapper {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.novel-detail__cover {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 2px solid rgba(139, 69, 19, 0.4);
    box-shadow: var(--shadow-card);
    background: var(--color-bg-warm);
}

.novel-detail__cover img {
    width: 100%;
    display: block;
}

.novel-detail__info {
    min-width: 0;
}

.novel-detail__band-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-crimson), var(--color-crimson-light));
    color: var(--color-parchment);
    font-family: var(--font-display);
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.novel-detail__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-gold);
    text-shadow: var(--shadow-text);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.novel-detail__author {
    font-size: 1.2rem;
    color: var(--color-sand);
    font-style: italic;
    margin-bottom: 2rem;
}

.novel-detail__meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.meta-item {
    background: rgba(58, 37, 24, 0.5);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.meta-item__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold-dark);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.meta-item__value {
    font-size: 1rem;
    color: var(--color-parchment);
}

.novel-detail__summary-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.novel-detail__summary {
    font-family: var(--font-reading);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-parchment-dark);
    background: rgba(58, 37, 24, 0.3);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-left: 3px solid var(--color-gold-dark);
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination__link,
.pagination__current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.5rem 0.85rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.pagination__link {
    background: rgba(58, 37, 24, 0.5);
    border: 1px solid rgba(139, 69, 19, 0.3);
    color: var(--color-parchment);
    text-decoration: none;
}

.pagination__link:hover {
    background: rgba(218, 165, 32, 0.15);
    border-color: var(--color-gold-dark);
    color: var(--color-gold);
}

.pagination__current {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-bg-dark);
    border: 1px solid var(--color-gold);
    font-family: var(--font-display);
}

.pagination__ellipsis {
    color: var(--color-sand);
    padding: 0 0.5rem;
}

/* ── Content Pages (Impressum, Datenschutz etc.) ── */
.content-page {
    padding: 3rem 0 4rem;
}

.content-page__header {
    text-align: center;
    margin-bottom: 3rem;
}

.content-page__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-gold);
    text-shadow: var(--shadow-text);
    margin-bottom: 0.5rem;
}

.content-page__body {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-reading);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-parchment-dark);
}

.content-page__body h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-gold);
    margin: 2.5rem 0 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.content-page__body h3 {
    font-size: 1.15rem;
    color: var(--color-rust);
    margin: 1.5rem 0 0.75rem;
    font-weight: 700;
}

.content-page__body p {
    margin-bottom: 1rem;
}

.content-page__body ul,
.content-page__body ol {
    margin: 0.5rem 0 1rem 1.5rem;
}

.content-page__body li {
    margin-bottom: 0.4rem;
}

.content-page__body a {
    color: var(--color-gold);
    text-decoration: underline;
    text-decoration-color: rgba(218, 165, 32, 0.4);
    text-underline-offset: 3px;
}

.content-page__body a:hover {
    text-decoration-color: var(--color-gold);
}

/* ── Kontaktformular ── */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(26, 15, 10, 0.6);
    border: 1px solid rgba(139, 69, 19, 0.5);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-sand);
    font-style: italic;
    opacity: 0.7;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    line-height: 1.4;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-bg-dark);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
    color: var(--color-bg-dark);
}

.btn--secondary {
    background: rgba(139, 69, 19, 0.3);
    border: 1px solid var(--color-leather);
    color: var(--color-parchment);
}

.btn--secondary:hover {
    background: rgba(139, 69, 19, 0.5);
    border-color: var(--color-gold-dark);
    color: var(--color-gold);
}

.btn--danger {
    background: linear-gradient(135deg, var(--color-crimson), var(--color-crimson-light));
    color: var(--color-parchment);
}

.btn--danger:hover {
    background: linear-gradient(135deg, var(--color-crimson-light), #CD3333);
    transform: translateY(-2px);
}

.btn--small {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.btn--western {
    font-family: var(--font-display);
    letter-spacing: 1px;
}

/* ── Flash-Nachrichten ── */
.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease-out;
}

.flash-success {
    background: rgba(34, 139, 34, 0.15);
    border: 1px solid rgba(34, 139, 34, 0.5);
    color: #90EE90;
}

.flash-error {
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(139, 0, 0, 0.5);
    color: #FF6B6B;
}

.flash-warning {
    background: rgba(218, 165, 32, 0.15);
    border: 1px solid rgba(218, 165, 32, 0.5);
    color: var(--color-gold-light);
}

.flash-info {
    background: rgba(70, 130, 180, 0.15);
    border: 1px solid rgba(70, 130, 180, 0.5);
    color: #87CEEB;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.flash-close:hover {
    opacity: 1;
}

/* ── Footer ── */
.site-footer {
    margin-top: auto;
    background: linear-gradient(180deg, rgba(26, 15, 10, 0.5), rgba(26, 15, 10, 0.95));
    border-top: 2px solid rgba(139, 69, 19, 0.3);
    padding: 3rem 0 2rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-brand__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-gold);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.5rem;
}

.footer-brand__tagline {
    color: var(--color-sand);
    font-style: italic;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links__group h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--color-gold);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.footer-links__list {
    list-style: none;
}

.footer-links__list li {
    margin-bottom: 0.4rem;
}

.footer-links__list a {
    color: var(--color-sand);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links__list a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(139, 69, 19, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--color-sand);
    font-size: 0.85rem;
}

/* ── No-Cover SVG Placeholder ── */
.no-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--color-bg-warm), var(--color-bg-medium));
    padding: 2rem;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.empty-state__text {
    color: var(--color-sand);
    font-style: italic;
    max-width: 400px;
    margin: 0 auto;
}

/* ── Animationen ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Karten-Einblendung mit Stagger */
.novel-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.novel-card:nth-child(1) { animation-delay: 0.05s; }
.novel-card:nth-child(2) { animation-delay: 0.1s; }
.novel-card:nth-child(3) { animation-delay: 0.15s; }
.novel-card:nth-child(4) { animation-delay: 0.2s; }
.novel-card:nth-child(5) { animation-delay: 0.25s; }
.novel-card:nth-child(6) { animation-delay: 0.3s; }
.novel-card:nth-child(7) { animation-delay: 0.35s; }
.novel-card:nth-child(8) { animation-delay: 0.4s; }
.novel-card:nth-child(9) { animation-delay: 0.45s; }
.novel-card:nth-child(10) { animation-delay: 0.5s; }
.novel-card:nth-child(11) { animation-delay: 0.55s; }
.novel-card:nth-child(12) { animation-delay: 0.6s; }

/* ── Responsive ── */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .hamburger {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 80vw);
        height: 100vh;
        background: linear-gradient(180deg, rgba(26, 15, 10, 0.98), rgba(44, 24, 16, 0.98));
        backdrop-filter: blur(16px);
        padding: calc(var(--header-height) + 2rem) 2rem 2rem;
        transition: right var(--transition-medium);
        border-left: 2px solid var(--color-gold-dark);
        z-index: 105;
        overflow-y: auto;
    }

    .main-nav.is-open {
        right: 0;
    }

    .main-nav__list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-nav__link {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 100;
    }

    .nav-overlay.is-active {
        display: block;
    }

    /* Roman-Detail */
    .novel-detail__content {
        grid-template-columns: 1fr;
    }

    .novel-detail__cover-wrapper {
        position: static;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding: 3rem 0 2.5rem;
    }

    /* Grid */
    .novels-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .novel-card__body {
        padding: 0.875rem;
    }

    .novel-card__title {
        font-size: 0.9rem;
    }

    .novel-card__author {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .novel-card__meta {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .novels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .novel-card__band {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .hero__title {
        letter-spacing: 3px;
    }
}

/* ── Print Styles ── */
@media print {
    .site-header,
    .site-footer,
    .search-bar,
    .pagination,
    .hamburger,
    .nav-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: #333;
    }

    body::before {
        display: none;
    }

    .novel-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
