/* ROTBURG THEME */
:root {
    /* === ROTBURG FARBSCHEMA === */
    --rb-bg: #0c0c0d;
    --rb-bg-soft: #15191f;
    --rb-text: #dadada;
    --rb-accent: #7a0000;
    --rb-accent-light: #b30000;
    --rb-shadow: rgba(179, 0, 0, 0.45);
    --rb-stroke: rgba(228, 91, 91, 0.4);
    --rb-cover-glow: rgba(228, 91, 91, 0.35);

    /* === FARB-BASEN (für rgba) === */
    --color-glow-rgb: 179, 0, 0;
    --color-dark-rgb: 12, 12, 13;
    --color-card-rgb: 28, 12, 12;

    /* === GLOW SHADOWS === */
    --glow-shadow-light: rgba(var(--color-glow-rgb), 0.25);
    --glow-shadow-strong: rgba(var(--color-glow-rgb), 0.5);

    /* === BACKGROUNDS === */
    --nav-bg: rgba(var(--color-dark-rgb), 0.95);

    /* === HEADER === */
    --header-height-mobile: 140px;
    --header-height-desktop: 150px;

    /* === SPACING === */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.8rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 1.6rem;
    --spacing-3xl: 2rem;

    /* === TYPOGRAPHY – Rotburg Edition === */

    /* UI, Überschriften, Labels */
    --font-family-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Buchtext, Klappentext, Prosa */
    --font-family-serif: 'Source Serif 4', Georgia, serif;

    /* Standard-Font für Body */
    --font-family: var(--font-family-serif);

    /* Headline-Font (z. B. Buch-Titel) */
    --font-family-heading: var(--font-family-ui);

    /* Größen deiner Wahl */
    --font-size-sm: 0.9rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.15rem;
    --font-size-xl: 1.35rem;

    --letter-spacing-sm: 0.5px;
    --letter-spacing-md: 1px;
    --letter-spacing-lg: 2px;

    /* === OPACITY === */
    --opacity-low: 0.5;
    --opacity-medium: 0.8;
    --opacity-high: 0.85;
    --opacity-higher: 0.95;

    /* === TRANSITIONS === */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
    --transition-very-slow: 1s ease;

    /* === BORDER RADIUS === */
    --border-radius: 16px;
    --border-radius-sm: 2px;
    --border-radius-md: 6px;
    --border-radius-lg: 12px;
    --border-radius-full: 999px;

    /* === BACKDROP === */
    --backdrop-blur: blur(3px);
    --backdrop-blur-strong: blur(6px);

    /* === BOX SHADOWS === */
    --shadow-footer: 0 -4px 15px rgba(179, 0, 0, 0.2), 0 -6px 30px rgba(179, 0, 0, 0.15);
    --shadow-footer-pulse: 0 -5px 20px rgba(179, 0, 0, 0.25), 0 -8px 35px rgba(179, 0, 0, 0.2);

    /* === GRADIENTS - KORRIGIERT === */
    --gradient-vignette: radial-gradient(circle at 50% 80%, rgba(var(--color-glow-rgb), 0.2), transparent 70%);
    --gradient-vertical-fade: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.4) 100%);
    --gradient-footer: linear-gradient(to top, var(--rb-bg) 0%, rgba(var(--color-dark-rgb), 0.95) 40%, rgba(var(--color-dark-rgb), 0.6) 75%, rgba(var(--color-dark-rgb), 0.15) 100%);
    --gradient-underline: linear-gradient(90deg, transparent, var(--rb-accent-light), transparent);

    /* === MIX BLEND MODES === */
    --blend-soft-light: soft-light;
    --blend-screen: screen;
    --blend-lighten: lighten;

}

/* === ROTBURG OVERRIDES für hero.css Variablen === */
.theme-rotburg,
html.theme-rotburg {
    /* Überschreibe hero.css violette Farben mit Rotburg-Rot */
    --color-glow: 179, 0, 0;
    --color-glow-light: 228, 91, 91;
    --color-glow-accent: 200, 50, 50;
    --color-glow-purple: 228, 91, 91;
    --color-base: 12, 12, 13;
    --color-highlight: 179, 0, 0;
    --color-text-accent: 228, 91, 91;

    /* Glow Effects */
    --glow-inset-light: rgba(179, 0, 0, 0.06);
    --glow-inset: rgba(179, 0, 0, 0.12);
    --glow-inset-strong: rgba(179, 0, 0, 0.18);
    --glow-shadow-light: rgba(179, 0, 0, 0.14);
    --glow-color: rgba(179, 0, 0, 0.22);
    --glow-shadow-medium: rgba(179, 0, 0, 0.25);
    --glow-shadow: rgba(179, 0, 0, 0.28);
    --glow-shadow-strong: rgba(179, 0, 0, 0.45);

    /* Gradients */
    --gradient-progress: linear-gradient(90deg, rgba(179, 0, 0, 0.9), rgba(228, 91, 91, 0.75), rgba(179, 0, 0, 0.95));
    --gradient-button: linear-gradient(135deg, rgba(179, 0, 0, 1), rgba(228, 91, 91, 0.95));

    /* Text Glows */
    --text-glow-sm: 0 0 6px rgba(179, 0, 0, 0.7);
    --text-glow-md: 0 0 12px rgba(179, 0, 0, 0.45);
    --text-glow-lg: 0 0 18px rgba(179, 0, 0, 0.8);

    /* WG Farben für hero.css */
    --wg-dark: #e45b5b;
    --wg-glow: #b30000;
    --wg-text: #dadada;
}

.theme-rotburg body::before,
.theme-rotburg body::after {
    display: none !important;
}

/* Basis-Font für Body, aber Headlines behalten eigene Font */
body.theme-rotburg {
    font-family: var(--font-family-serif);
    font-weight: 400;
}

/* book-headline behält Inter-Font wie auf Main-Seite */
.theme-rotburg .book-headline,
.theme-rotburg h1.book-headline,
.theme-rotburg .book-hero-right h1.book-headline {
    font-family: var(--font-family-ui) !important;
    font-weight: 600 !important;
}

/**************************************************************/
/* KEYFRAMES */
/**************************************************************/
@keyframes dustDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 600px 1000px;
    }
}

@keyframes footerPulse {
    from {
        box-shadow: var(--shadow-footer);
    }

    to {
        box-shadow: var(--shadow-footer-pulse);
    }
}

@keyframes waveMotion {
    0% {
        transform: translateX(0) scaleY(1);
    }

    50% {
        transform: translateX(-25%) scaleY(1.25);
    }

    100% {
        transform: translateX(0) scaleY(1);
    }
}

@keyframes transitionPulse {

    0%,
    100% {
        background: radial-gradient(circle at center, rgba(60, 10, 10, 0.95) 0%, rgba(12, 12, 13, 1) 100%);
    }

    50% {
        background: radial-gradient(circle at center, rgba(90, 15, 15, 0.98) 0%, rgba(20, 8, 8, 1) 100%);
    }
}

/**************************************************************/
/* HINWEIS SECTION */
/**************************************************************/
.hinweis-section {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-3xl) 4.5rem;
    margin-top: -2.5rem;
    color: var(--rb-text);
    line-height: 1.3;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-family);
    font-size: var(--font-size-lg);
    opacity: var(--opacity-high);
    background: radial-gradient(circle at 50% 80%, rgba(var(--color-glow-rgb), 0.15), transparent 70%);
    border-top: 1px solid var(--rb-stroke);
    box-shadow: inset 0 0 40px rgba(var(--color-glow-rgb), 0.15);
}

.hinweis-section h2 {
    font-family: var(--font-family-heading);
    color: var(--rb-accent-light);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-lg);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 10px var(--rb-shadow);
}

.hinweis-section a {
    color: var(--rb-accent-light);
    text-decoration: none;
}

/**************************************************************/
/* HINTERGRUND-VIGNETTE + NOISE */
/**************************************************************/
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--gradient-vignette), var(--gradient-vertical-fade);
    mix-blend-mode: var(--blend-soft-light);
    opacity: var(--opacity-higher);
    transition: opacity var(--transition-very-slow);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("../media/noise.png");
    background-size: 600px 600px;
    mix-blend-mode: var(--blend-screen);
    opacity: .08;
    animation: dustDrift 60s linear infinite;
    z-index: 2;
}

.main-wrapper,
.moodboard-grid,
.hinweis-section,
.footer,
.site-header {
    position: relative;
    z-index: 3;
}

/**************************************************************/
/* GRUNDLAYOUT */
/**************************************************************/
html,
body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-family);
    background: var(--rb-bg) url('../media/styx.png') center center / cover no-repeat fixed;
    color: var(--rb-text);
}

/**************************************************************/
/* HEADER */
/**************************************************************/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    padding: var(--spacing-xs) var(--spacing-3xl);
    box-sizing: border-box;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo-container img.logo {
    display: block;
    height: 120px;
    width: auto;
    margin: 0 auto;
    z-index: 2;
    filter: drop-shadow(0 0 10px var(--rb-shadow));
}

/**************************************************************/
/* FOOTER CLAIM LOGO */
/**************************************************************/
.footer-claim-logo {
    width: 100%;
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 0.25rem;
    z-index: 20;
    position: relative;
}

.footer-claim-logo img {
    width: 220px;
    height: auto;
    opacity: var(--opacity-high);
    mix-blend-mode: var(--blend-lighten);
    filter: drop-shadow(0 0 10px var(--rb-shadow));
    transition: opacity var(--transition-medium), filter var(--transition-medium);
}

.footer-claim-logo img:hover {
    opacity: 1;
    filter: drop-shadow(0 0 16px var(--rb-cover-glow));
}

@media (max-width: 768px) {
    .claim-overlay {
        padding-left: 4rem;
    }

    .claim-overlay img {
        width: 180px;
    }
}

/**************************************************************/
/* BURGER MENU */
/**************************************************************/
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 3000;
}

.burger span {
    width: 28px;
    height: 3px;
    background: var(--rb-accent);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/**************************************************************/
/* NAVIGATION */
/**************************************************************/
.main-nav {
    width: 100%;
    text-align: center;
    margin-top: var(--spacing-md);
    opacity: .85;
}

.main-nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.main-nav a {
    position: relative;
    text-decoration: none;
    color: var(--rb-text);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    letter-spacing: var(--letter-spacing-md);
    opacity: var(--opacity-high);
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rb-accent-light), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-medium), background var(--transition-fast);
}

.main-nav a:hover {
    color: var(--rb-accent-light);
    opacity: 1;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.main-nav a.active {
    color: var(--rb-accent-light);
    opacity: 1;
    font-weight: 500;
    pointer-events: none;
}

.main-nav a.active::after {
    transform: scaleX(1);
    opacity: var(--opacity-higher);
}

.main-nav a.inactive {
    color: rgba(243, 243, 243, 0.25);
    opacity: var(--opacity-low);
    pointer-events: none;
    filter: grayscale(80%) brightness(.7);
}

.main-nav.open a.active {
    color: var(--rb-accent) !important;
    text-shadow: 0 0 12px var(--rb-shadow);
    font-weight: 600;
}

/**************************************************************/
/* HAUPTBEREICH */
/**************************************************************/
.main-wrapper {
    flex: 1;
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 130px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/**************************************/
/* PAGE END SPACER */
/***************************************/
.page-end-spacer {
    height: 7rem;
}

/**************************************************************/
/* FOOTER */
/**************************************************************/
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 145px;
    padding: var(--spacing-lg) var(--spacing-sm) 0.75rem;
    text-align: center;
    border-top: 1px solid var(--rb-stroke);
    background: var(--gradient-footer);
    box-shadow: var(--shadow-footer);
    backdrop-filter: var(--backdrop-blur-strong);
    animation: footerPulse 14s ease-in-out infinite alternate;
    z-index: 10;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 0;
    width: 200%;
    height: 50px;
    background: radial-gradient(circle at 50% 100%, rgba(179, 0, 0, 0.25) 20%, transparent 70%);
    opacity: .35;
    filter: blur(12px);
    animation: waveMotion 22s ease-in-out infinite;
}

.footer a {
    color: var(--rb-accent);
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
}

.footer a:hover {
    text-decoration: underline;
    color: var(--rb-accent-light);
    text-shadow: 0 0 10px var(--rb-accent);
}

.footer-claim {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    letter-spacing: var(--letter-spacing-sm);
    color: rgba(243, 243, 243, var(--opacity-medium));
    margin: 0;
}

.footer-icon {
    height: 1em;
    vertical-align: -0.1em;
    margin-right: 0.4em;
    filter: brightness(1.2);
    opacity: var(--opacity-high);
    transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.footer-icon:hover {
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--rb-accent));
}

.copyright {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 0.2rem;
    letter-spacing: var(--letter-spacing-sm);
}

/**************************************************************/
/* YOUTUBE LINK */
/**************************************************************/
.yt-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    color: var(--rb-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.yt-link:hover {
    color: var(--rb-accent-light);
}

.yt-icon {
    width: 1.2em;
    height: 1.2em;
    color: var(--rb-accent);
    filter: drop-shadow(0 0 6px var(--rb-shadow));
    transition: transform var(--transition-fast);
}

.yt-link:hover .yt-icon {
    transform: scale(1.1);
}

/**************************************************************/
/* PAGE TRANSITION - DUNKELROT MIT PULSE */
/**************************************************************/
.page-transition {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(60, 10, 10, 0.95) 0%, rgba(12, 12, 13, 1) 100%);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
    animation: transitionPulse 2s ease-in-out infinite;
}

/**************************************************************/
/* MEDIA QUERIES */
/**************************************************************/
@media (max-width: 768px) {
    body {
        padding-bottom: 14rem;
        /* genug Platz für Footer + Glow + Animation */
    }

    .page-end-spacer {
        height: 14rem;
        /* gleicht die Footer-Höhe aus */
    }

    .logo-container {
        position: relative;
        left: 0;
        margin-left: var(--spacing-xs);
        margin-bottom: 0.25rem;
        z-index: 100;
        text-align: left;
    }

    .logo-container img {
        width: auto;
        height: 50px;
        display: block;
    }

    .claim-overlay {
        padding-left: 4rem;
    }

    .claim-overlay img {
        width: 180px;
    }
}

/* === KINDLE FIRE HD (800x1280) === */
@media (min-width: 769px) and (max-width: 820px) {
    .site-header {
        padding: var(--spacing-xs) var(--spacing-lg);
    }

    .logo-container img {
        height: 70px;
        max-width: 100px;
    }

    .main-wrapper {
        width: 98%;
        max-width: 100%;
        padding-top: 100px !important;
    }

    .main-nav ul {
        gap: var(--spacing-lg);
    }

    .main-nav a {
        font-size: var(--font-size-sm);
    }

    .footer {
        height: 100px;
        padding-top: var(--spacing-md);
    }

    .footer-claim-logo img {
        width: 160px;
    }

    .footer a,
    .footer-claim {
        font-size: 0.75rem;
    }

    .copyright {
        font-size: 0.6rem;
    }

    .hinweis-section {
        max-width: 95%;
        padding: var(--spacing-md) var(--spacing-lg) 3rem;
        font-size: var(--font-size-md);
    }

    .hinweis-section h2 {
        font-size: var(--font-size-lg);
    }

    .page-end-spacer {
        height: 6rem;
    }
}

/* === KINDLE FIRE HD LANDSCAPE (1280x800) === */
@media (min-height: 700px) and (max-height: 820px) and (orientation: landscape) {
    .main-wrapper {
        width: 95%;
        padding-top: 110px !important;
    }

    .footer {
        height: 95px;
    }

    .page-end-spacer {
        height: 6rem;
    }
}

@media (min-width: 700px) and (max-width: 991px) {
    .moodboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
        gap: var(--spacing-md);
    }

    .logo-container img {
        max-width: 90px;
        height: auto;
    }

    .main-wrapper {
        padding-top: 180px;
    }
}

@media (max-width: 991px) {

    .site-claim,
    .claim-overlay {
        display: none !important;
    }

    .burger {
        display: flex;
        position: absolute;
        top: var(--spacing-md);
        right: 1.5rem;
    }

    /* KORRIGIERT: --color-footer-rgb → --color-dark-rgb */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: var(--backdrop-blur);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-medium);
    }

    .main-nav.open {
        max-height: 320px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-md) 0;
        gap: var(--spacing-md);
    }

    .main-wrapper {
        padding-top: var(--header-height-mobile);
        height: auto;
        overflow: visible;
    }

    .moodboard-grid {
        margin-top: 3rem;
    }
}

@media (min-width: 992px) {
    .moodboard-grid {
        grid-template-columns: repeat(4, 220px);
        gap: var(--spacing-md);
        justify-content: center;
        margin-top: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }

    .site-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 140px;
        padding: 0 var(--spacing-3xl);
        max-width: 1400px;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-container {
        justify-content: flex-start;
        width: auto;
    }

    .logo-container img {
        height: 100px;
        max-width: 140px;
    }

    .main-nav {
        width: auto;
        margin-top: 0;
    }

    .main-nav ul {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: var(--spacing-3xl);
    }

    .main-wrapper {
        padding-top: var(--header-height-desktop);
    }

    .claim-overlay {
        padding-left: 4rem;
        top: 90px;
    }

    .claim-overlay img {
        width: 180px;
    }
}

/**************************************************************/
/* ROTBURG THEME STYLES */
/**************************************************************/

.theme-rotburg .book-hero-wrapper,
.book-hero-wrapper {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(21, 25, 31, 0.8), rgba(12, 12, 13, 0.7));
    border-radius: 16px;
    box-shadow:
        0 0 18px rgba(179, 0, 0, 0.4),
        inset 0 0 8px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.theme-rotburg .book-cover,
.book-cover {
    width: 100%;
    border-radius: 12px;
    box-shadow:
        0 0 25px var(--rb-cover-glow),
        0 0 10px rgba(0, 0, 0, 0.6);
}

.theme-rotburg .book-hero-right h1,
.book-hero-right h1 {
    margin-top: 0;
    font-family: var(--font-family-ui);
    font-weight: 600;
    color: var(--rb-text);
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.7),
        0 0 6px var(--rb-shadow);
}

/* Status Progress - beide Klassennamen unterstützen */
.theme-rotburg .book-progress,
.theme-rotburg .status-progress,
.book-progress,
.status-progress {
    width: 100%;
    height: 8px;
    background: rgba(70, 20, 20, 0.25);
    /* dunkles Weinrot */
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        inset 0 0 6px rgba(0, 0, 0, 0.6),
        inset 0 0 3px rgba(120, 0, 0, 0.25);
}

.theme-rotburg .book-progress-bar,
.theme-rotburg .status-progress-bar,
.book-progress-bar,
.status-progress-bar {
    height: 100%;
    width: calc(var(--p, 0) * 100%);
    background: linear-gradient(90deg,
            rgba(90, 0, 0, 0.9) 0%,
            rgba(120, 10, 10, 0.9) 50%,
            rgba(90, 0, 0, 0.9) 100%);
    border-radius: 6px;

    /* dezenter, dunkler Glanz – kein Neon! */
    box-shadow:
        inset 0 0 4px rgba(0, 0, 0, 0.5),
        0 0 4px rgba(120, 20, 20, 0.3);
    animation: bloodPulse 4.5s ease-in-out infinite;
}

@keyframes bloodPulse {

    0%,
    100% {
        opacity: 0.95;
    }

    50% {
        opacity: 1;
    }
}



.theme-rotburg .book-button,
.book-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 2rem;
    border-radius: var(--border-radius-full);
    font-family: var(--font-family-ui);
    font-size: var(--font-size-md);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;

    /* Blutmetall statt Lila */
    background: rgba(var(--rb-glow), 0.18);
    border: 1px solid rgba(var(--rb-glow), 0.35);

    color: #f2e9e9;
    text-shadow: 0 0 4px rgba(var(--rb-glow), 0.5);

    box-shadow:
        0 0 20px rgba(var(--rb-glow), 0.28),
        inset 0 0 14px rgba(0, 0, 0, 0.45);

    transition:
        transform 0.25s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        letter-spacing 0.25s ease;
}

.book-button::after {
    content: none;
}

.book-button:hover {
    transform: translateY(-2px);

    /* etwas heller, wie glühende Kohle */
    background: rgba(var(--rb-glow), 0.28);
    border-color: rgba(var(--rb-glow), 0.45);

    box-shadow:
        0 0 26px rgba(var(--rb-glow), 0.4),
        inset 0 0 16px rgba(0, 0, 0, 0.55);

    letter-spacing: 0.09em;
}

.book-button:active {
    transform: translateY(0);
    background: rgba(var(--rb-glow), 0.12);
    box-shadow:
        0 0 12px rgba(var(--rb-glow), 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.7);
}

.book-button:focus-visible {
    outline: 2px solid rgba(var(--rb-glow), 0.65);
    outline-offset: 3px;
}

.book-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(40%) brightness(0.8);
    pointer-events: none;
}

.theme-rotburg .book-details h2,
.theme-rotburg .book-details h3,
.theme-rotburg .book-bonus h2 {
    color: var(--rb-accent-light);
    text-shadow: 0 0 10px rgba(179, 0, 0, .4);
}

/**************************************************************/
/* BOOK HERO LAYOUT */
/**************************************************************/
.book-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

@media (min-width: 768px) {
    .book-hero {
        grid-template-columns: 280px 1fr;
    }
}

.book-hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.book-hero-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.book-pitch {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    opacity: var(--opacity-high);
}

/* Typo für Buchmodule */
.book-headline,
.book-hero-right h1.book-headline,
h1.book-headline {
    font-family: var(--font-family-ui);
    font-weight: 600;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    letter-spacing: -0.5px;
    margin: 0 0 1rem;
    color: var(--rb-text);
    text-shadow: 0 0 10px var(--rb-shadow), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.book-headline span {
    color: var(--rb-accent-light);
    text-shadow: 0 0 12px var(--rb-shadow);
}

/**************************************************************/
/* BOOK STATUS BLOCK */
/**************************************************************/
.book-status-block {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
    width: 100%;
}

.global-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.status-label {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    color: var(--rb-text);
    opacity: var(--opacity-medium);
}

.status-value {
    font-family: var(--font-family-ui);
    font-weight: 600;
    color: var(--rb-accent-light);
    text-shadow: 0 0 8px var(--rb-shadow);
}

/* .status-progress und .status-progress-bar sind oben bei ROTBURG THEME STYLES definiert */

/**************************************************************/
/* BOOK DETAILS */
/**************************************************************/
.book-details {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--rb-stroke);
}

.book-details h2,
.book-details h3 {
    color: var(--rb-accent-light);
    font-family: var(--font-family-heading);
    text-shadow: 0 0 10px var(--rb-shadow);
}

.book-details p {
    line-height: 1.7;
    opacity: var(--opacity-high);
    margin-bottom: var(--spacing-md);
}

.book-tagline {
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--rb-accent-light);
    opacity: 1;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(var(--color-glow-rgb), 0.4);
}

.book-topics {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.book-topics li {
    background: rgba(var(--color-glow-rgb), 0.15);
    border: 1px solid var(--rb-stroke);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
}

/* ============================================
   BOOK BLURB – Klappentext Fix
   ============================================ */
.book-blurb {
    font-family: var(--font-family-serif);
    /* Source Serif 4 */
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    background: rgba(28, 12, 12, 0.35);
    box-shadow: inset 0 0 12px rgba(179, 0, 0, 0.25);
}

.book-blurb h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: var(--font-family-heading);
    font-size: 1.35rem;
    color: var(--rb-accent-light);
    text-shadow: 0 0 8px rgba(179, 0, 0, 0.35);
}

.book-blurb p {
    margin-bottom: 1.2rem;
}

.book-blurb em {
    opacity: 0.9;
}

/**************************************************************/
/* BOOK BONUS */
/**************************************************************/
.book-bonus {
    margin-top: var(--spacing-3xl);
    padding: var(--spacing-xl);
    background: rgba(var(--color-card-rgb), 0.4);
    border-radius: var(--border-radius);
    text-align: center;
}

.book-bonus h2 {
    color: var(--rb-accent-light);
    font-family: var(--font-family-heading);
    margin-bottom: var(--spacing-xs);
}

.book-bonus p {
    opacity: var(--opacity-medium);
    margin-bottom: var(--spacing-lg);
}

.book-bonus .playlist-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--rb-text);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.book-bonus .playlist-link:hover {
    transform: translateY(-4px);
    color: var(--rb-accent-light);
}

.book-bonus .playlist-cover {
    width: 140px;
    height: 140px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 0 20px var(--rb-shadow);
}