:root {
    --cr-bg: #FFFFFF;
    --cr-dark: #050505;
    --cr-card: #F5F5F7;
    --cr-brand: #FCDB00;
    /* THE YELLOW */
    --cr-text: #1D1D1F;
    --cr-gray: #86868B;
    --radius: 20px;
    --shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;

    /* Layout spacers */
    --space-xs: 8px;
    --space-s: 16px;
    --space-m: 20px;
    --space-l: 64px;
    --space-xl: 96px;
    --border-light: #E5E5E5;

    /* Header Snippet Vars */
    --bg-main: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --text-main: #1D1D1F;
    --text-sub: #86868B;
    --accent: #FCDB00;
    --success: #34C759;
    --border: #E5E5E5;

    /* AMB UI System Var (from 0053.css) */
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

body.post-type-archive-adhelden_entry,
body.single-adhelden_entry,
body.tax-entry_type {
    background-color: var(--cr-bg);
    color: var(--cr-text);
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Typography Utilities */
h1,
h2,
h3 {
    font-weight: 600 !important;
    letter-spacing: -0.05em !important;
    text-wrap: balance;
}

.text-huge {
    font-size: 4rem;
    color: #111;
    line-height: 1;
}

.text-huge:hover {
    color: #111;
}

.text-xl {
    font-size: 2rem;
}

.text-lg {
    font-size: 1.25rem;
    font-weight: 500;
}

.text-meta {
    font-size: 0.9rem;
    color: var(--cr-gray);
}

.text-mono {
    font-family: 'SF Mono', 'Menlo', monospace;
    letter-spacing: -0.02em;
}

/* Container */
.adhelden-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-m);
}

/* Reading Progress Bar */
/* Custom Sticky Header */
.adhelden-sticky-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 9999;
}

.header-pill {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 56px;
    overflow: hidden;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

/* Back button removed */

.header-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-separator {
    display: none;
}

.header-title-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    overflow: hidden;
    white-space: nowrap;
}

.header-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--cr-gray);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-post-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cr-text);
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    flex-shrink: 0;
    margin-left: 10px;
}

.header-cta {
    background: var(--cr-dark);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.header-cta:hover {
    transform: scale(1.02);
    background: var(--cr-brand);
    color: var(--cr-dark);
}

/* Reading Progress Bar (Integrated) */
#adhelden-progress-bar {
    position: absolute;
    bottom: 0;
    left: 20px;
    /* Match pill padding curvature roughly */
    right: 20px;
    height: 2px;
    background: transparent;
    overflow: hidden;
    border-radius: 2px;
    /* Hidden by default, or inside pill? Design implies separate or integrated. 
       Let's put it arguably at bottom of pill or just below. 
       Actually, typically it's nice as a thin line at the bottom OF the pill. */
    bottom: -1px;
    /* Overlap border */
    left: 16px;
    right: 16px;
    width: auto;
}

#adhelden-progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    /* Width controlled by JS */
    background: var(--cr-brand);
    transition: width 0.1s linear;
    /* We need to target the element itself in JS, not a pseudo, but JS sets width on ID. */
}

/* Correcting the JS target approach: existing JS sets width on the ID element itself. */
#adhelden-progress-bar {
    width: 0%;
    height: 6px;
    background: var(--cr-brand);
    position: absolute;
    bottom: 0;
    left: 10px;
    max-width: calc(100% - 20px);
    /* Inset */
    z-index: 10;
}

/* Marquee Duplicate (Hidden on Desktop) */
.mobile-dup {
    display: none;
}

/* Responsive adjust */
@media (max-width: 600px) {
    .adhelden-sticky-header {
        top: 0;
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
    }

    .header-pill {
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        width: 100%;
        margin: 0;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.95);
        height: 70px;
    }

    /* Full width progress bar on mobile */
    #adhelden-progress-bar {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100%;
        max-width: none !important;
        border-radius: 0 !important;
        height: 4px !important;
    }

    /* Back button styles removed from mobile query as well */

    .header-cta {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .header-label {
        display: none;
    }

    .header-left {
        flex: 1;
        min-width: 0;
        /* Enable shrinking */
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .header-title-block {
        flex: 1;
        min-width: 0;
        /* Enable shrinking */
        max-width: none;
        /* Reset fixed calculation */
        overflow: hidden;
        /* Masking helps fade out usage */
        mask-image: linear-gradient(to right, black 85%, transparent);
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent);
    }

    .header-post-title {
        display: flex;
        width: fit-content;
        /* Allow it to grow */
        white-space: nowrap;
        animation: adhelden-marquee 15s linear infinite;
        font-size: 0.9rem;
        /* Increased slightly for readability */
    }

    /* Show duplicate on mobile */
    .mobile-dup {
        display: inline-block;
    }

    .header-title-text {
        padding-right: 40px;
        /* Gap between titles */
    }
}

@keyframes adhelden-marquee {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(0);
        /* Wait 2s approx (20% of 12s = 2.4s) */
    }

    100% {
        transform: translateX(-50%);
        /* Move half way (one full title width + padding) */
    }
}

.header-meta {
    text-align: right;
    font-weight: 500;
    margin-bottom: var(--space-l);
}

h2.text-huge {
    font-size: 2rem;
    margin-top: 10px;
    text-wrap: balance;
}

/* Featured Section (Card Style) */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-m);
    margin-bottom: var(--space-l);
}

.hero-card {
    background: var(--cr-card);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.hero-card:hover {
    box-shadow: var(--shadow);
}

.hero-image {
    width: 100%;
    height: 100%;
    /* min-height: 400px; */
    aspect-ratio: 5 / 2;
    object-fit: cover;
    background-color: #ddd;
}

.hero-content {
    padding: var(--space-m);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.adhelden-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--af-brand);
    border-radius: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    width: fit-content;
    margin-top: var(--space-s);
}

/* Archive List (Table Style) */
.archive-header {
    margin-bottom: var(--space-m);
    color: var(--cr-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.archive-list {
    display: flex;
    flex-direction: column;
}

.archive-item {
    display: grid;
    grid-template-columns: 100px 140px 1.5fr 2fr 40px;
    align-items: center;
    /* Center vertically */
    gap: var(--space-s);
    padding: var(--space-m) 0;
    border-top: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--cr-text);
    transition: background-color 0.2s ease;
    position: relative;
}

/* Hover Effect: The Yellow Brand Flash */
.archive-item::before {
    content: '';
    position: absolute;
    left: -20px;
    width: 4px;
    height: 0%;
    background: var(--cr-brand);
    transition: height 0.2s ease;
    top: 50%;
    transform: translateY(-50%);
}

.archive-item:hover::before {
    height: 100%;
}

.archive-item:hover .arrow-icon {
    transform: translateX(5px);
    background: var(--cr-brand);
    border-color: var(--cr-brand);
}

.thumb-small {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.date-block {
    display: flex;
    flex-direction: column;
    font-weight: 500;
}

.date-year {
    color: var(--cr-gray);
    font-size: 0.8em;
}

.arrow-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Video Embed */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-top: var(--space-l);
    border-radius: var(--radius);
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
footer.adhelden-footer {
    margin-top: var(--space-l);
    padding-top: var(--space-m);
    border-top: 1px solid var(--cr-dark);
    display: flex;
    justify-content: space-between;
}

/* Single Content */
.single-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.single-content p {
    margin-bottom: 1.5em;
}

.single-content p a,
.single-content li a {
    color: var(--cr-brand);
}

.amb-sources-list li a {
    color: #111;
}

/* Responsive */
@media (max-width: 900px) {
    .adhelden-container {
        padding: 0;
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 300px;
    }

    .archive-item {
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "thumb title"
            "thumb desc"
            "thumb meta";
        gap: 10px;
    }

    .thumb-small {
        grid-area: thumb;
        width: 80px;
        height: 80px;
    }

    .archive-title-group {
        grid-area: title;
    }

    .archive-desc {
        grid-area: desc;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .date-block {
        grid-area: meta;
        flex-direction: row;
        gap: 10px;
        font-size: 0.8rem;
    }

    .arrow-icon {
        display: none;
    }

    h2.text-huge {
        font-size: 1.5rem;
    }

    .header-meta {
        margin-bottom: 20px;
    }

    h3.text-lg {
        margin: 0;
    }
}


/* --- HEADER SNIPPET CSS --- */
.nav-bar-container {
    font-family: var(--font-stack);
    background-color: var(--bg-main);
    width: 100%;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.nav-bar * {
    box-sizing: border-box;
}

.nav-bar a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.nav-logo img {
    height: 40px;
    width: auto;
    border-radius: 50%;
    display: block;
}

.nav-contact {
    display: flex;
    gap: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    align-items: center;
}

.nav-contact a:not(.hotline):hover {
    color: #000;
    text-decoration: underline;
}

.hotline {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 50px;
    line-height: 1;
}

@media (max-width: 900px) {
    .nav-bar {
        padding: 15px 20px;
    }

    .nav-logo img {
        height: 32px;
    }

    .nav-contact a[href^="mailto"] {
        display: none;
    }

    .hotline {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Social Links */
.adhelden-social-links {
    margin-top: var(--space-l);
    padding-top: var(--space-m);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: var(--space-s);
    align-items: center;
}

.adhelden-social-label {
    font-weight: 600;
    margin-right: var(--space-xs);
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--cr-gray);
}

.adhelden-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--cr-card);
    color: var(--cr-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.adhelden-social-icon:hover {
    background-color: var(--cr-brand);
    transform: translateY(-2px);
}

/* --- Hero Styles from Guide --- */

/* --- UTILITIES --- */
.amb-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.amb-pill-accent {
    background-color: var(--cr-brand);
    color: #111;
}

.amb-pill-glass {
    background: rgba(116, 116, 116, 0.4);
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.amb-pill-glass-dark {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--cr-black);
}

.amb-pill-dim {
    background: #f0f0f0;
    color: #666;
}

/* --- HERO STYLES (FUTURISTIC) --- */

/* 1. Cinematic Hero */
.amb-hero-cinematic {
    position: relative;
    width: 100vw;
    height: 50vh;
    min-height: 500px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-bottom: var(--space-l);
}

.amb-hero-cinematic .amb-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.amb-hero-cinematic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgb(0 0 0 / 75%), rgb(0 0 0 / 10%) 40%, transparent);
}

.amb-hero-cinematic .amb-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    /* Wider content */
    margin: 0 auto;
    padding: var(--space-l) var(--space-m);
    color: #fff;
}

.amb-title-cinematic {
    font-size: clamp(2rem, 6vw, 4rem);
    font-family: var(--font-header);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.amb-hero-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

/* 2. Split Hero */
.amb-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
    align-items: center;
    min-height: 50vh;
    /* Reduced from 70vh */
    margin-bottom: var(--space-xl);
}

.amb-hero-split-text {
    padding-right: var(--space-m);
}

.amb-title-split {
    font-size: clamp(2rem, 6vw, 4rem);
    font-family: var(--font-header);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--cr-black);
}

.amb-hero-excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    max-width: 90%;
}

.amb-hero-split-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    /* Reduced from 500px */
    border-radius: 30px;
    overflow: hidden;
}

.amb-hero-split-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.amb-hero-split:hover .amb-hero-split-visual img {
    transform: scale(1.03);
    /* Subtle zoom */
}

/* 3. Minimal Hero */
.amb-hero-minimal {
    text-align: center;
    padding: var(--space-xl) 0;
    max-width: 900px;
    margin: 0 auto;
}

.amb-title-minimal {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--cr-black);
    margin-bottom: 10px;
}

.amb-minimal-image-container {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    border-radius: 30px;
    margin-bottom: var(--space-xl);
}

.amb-minimal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- AUTHOR BADGE & TAGS --- */
.amb-author-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.amb-author-dark {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    color: var(--cr-black);
}

.amb-author-badge:hover {
    transform: translateY(-2px);
    border-color: var(--cr-brand);
}

.amb-author-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 2px solid var(--cr-brand); */
}

.amb-author-name {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.amb-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amb-tag {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.amb-tag-dark {
    color: #666;
}

.amb-tag:hover {
    color: var(--cr-brand);
}

/* --- ANIMATION UTILITIES --- */
.amb-reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.amb-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .amb-hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-bottom: var(--space-m);
        gap: var(--space-m);
    }

    .amb-hero-split-text {
        padding: 0 var(--space-m);
        padding-top: var(--space-s);
    }

    .amb-title-split {
        font-size: 2.2rem;
    }

    .amb-hero-split-visual {
        min-height: 400px;
        order: -1;
        /* Image first on mobile */
    }

    .amb-title-minimal {
        font-size: 2.5rem;
    }

    .amb-minimal-image-container {
        max-height: 50vh;
    }

    /* Fixed Date Block alignment */
    .date-block {
        grid-area: meta;
        flex-direction: row;
        gap: 8px;
        font-size: 0.8rem;
        align-items: center;
        opacity: 0.8;
    }

    /* Ensure no padding-top on mobile containers */
    .amb-archive-wrapper,
    .amb-single-wrapper {
        padding-top: 0 !important;
    }
}

/* Container Wrappers to replace inline styles */
.amb-archive-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: var(--space-m);
}

.amb-single-wrapper {
    padding-top: var(--space-l);
}



/* --- BOOK PLUG STYLES --- */
.book-section {
    padding: 150px 0 0;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111;
}

.book-container-width {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

/* DESKTOP LAYOUT (Slider Logic) */
.book-layout {
    display: flex;
    width: 150%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.book-layout.mode-checkout {
    transform: translateX(-33.3333%);
}

.book-content,
.book-visual-scene,
.checkout-panel {
    width: 33.3333%;
    flex-shrink: 0;
    padding: 0 30px;
    box-sizing: border-box;
}

.book-visual-scene {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CHECKOUT PANEL */
.checkout-panel {
    padding-top: 20px;
    opacity: 0.3;
    transition: opacity 0.5s ease 0.2s;
    pointer-events: none;
}

.book-layout.mode-checkout .checkout-panel {
    opacity: 1;
    pointer-events: all;
}

.back-link {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 0;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #000;
    background-color: transparent;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: -1px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.checkout-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #00AA00;
    font-weight: 600;
    background: #E6F7E6;
    padding: 4px 8px;
    border-radius: 4px;
}

.trust-footer {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 15px;
}

/* CONTENT STYLES */
.book-content {
    position: relative;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.book-layout.mode-checkout .book-content {
    opacity: 0;
    pointer-events: none;
}

.release-badge {
    display: inline-block;
    background: #fff;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dot {
    height: 8px;
    width: 8px;
    background-color: #FCDB00;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.book-headline {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    color: #000;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
}

.book-sub {
    font-size: 19px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
    max-width: 480px;
}

.book-features {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.check-icon {
    width: 20px;
    height: 20px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.check-icon svg {
    width: 10px;
    height: 10px;
    fill: #FCDB00;
}

.book-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.btn-primary {
    background: #000;
    color: #FCDB00;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: #FCDB00;
}

.btn-arrow {
    margin-left: 8px;
    transition: transform 0.2s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.author-sign {
    font-size: 11px;
    color: #888;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.author-name {
    color: #000;
    font-size: 13px;
    margin-top: 2px;
}

/* VISUAL SCENE */
.book-visual-scene {
    position: relative;
    height: 650px;
    perspective: 1300px;
}

.book-hover-trigger {
    position: relative;
    width: 420px;
    height: auto;
    transform: rotateY(-12deg) rotateX(5deg) rotateZ(-2deg);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: default;
}

.book-visual-scene:hover .book-hover-trigger {
    transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg) scale(1.02);
}

.book-layout.mode-checkout .book-hover-trigger {
    transform: none !important;
    transition-delay: 0.5s;
}

.book-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    transform: translateZ(20px);
    filter: saturate(1.3) brightness(1.05);
}

.book-shadow {
    position: absolute;
    bottom: -30px;
    left: 5%;
    width: 90%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    transform: rotateX(90deg) translateZ(-50px);
    filter: blur(10px);
    opacity: 0.6;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.book-visual-scene:hover .book-shadow {
    opacity: 0.4;
    transform: rotateX(90deg) translateZ(-50px) scale(0.9);
}

.stats-card {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 22px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: translateZ(80px);
    animation: simpleFloat 4s ease-in-out infinite;
}

.stat-val {
    font-size: 18px;
    font-weight: 800;
    color: #000;
    display: block;
}

.stat-label {
    font-size: 9px;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@keyframes simpleFloat {

    0%,
    100% {
        transform: translateZ(80px) translateY(0);
    }

    50% {
        transform: translateZ(80px) translateY(-10px);
    }
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 900px) {
    .book-section {
        padding: 40px 0 60px 0;
        background: #F5F5F7;
    }

    .book-container-width {
        overflow: visible;
        padding: 0 20px;
    }

    /* 1. STACKED LAYOUT */
    .book-layout {
        display: flex;
        flex-direction: column;
        width: 100%;
        transform: none !important;
    }

    /* 2. ORDERING & BASE VISIBILITY */
    .book-visual-scene {
        order: 1;
        /* Immer ganz oben */
        width: 100%;
        height: 350px;
        margin-bottom: 20px;
        perspective: 800px;
        display: flex !important;
        /* Bleibt sichtbar! */
    }

    .book-content {
        order: 2;
        /* Darunter */
        width: 100%;
        padding: 0;
        text-align: center;
        opacity: 1 !important;
        pointer-events: all !important;
    }

    .checkout-panel {
        order: 3;
        /* Am Ende */
        width: 100%;
        padding: 0;
        display: none;
        /* Erstmal weg */
    }

    /* 3. CHECKOUT STATE ON MOBILE */
    /* Text weg, Formular hin, Buch bleibt */
    .book-layout.mode-checkout .book-content {
        display: none !important;
    }

    .book-layout.mode-checkout .checkout-panel {
        display: block;
        opacity: 1;
        pointer-events: all;
        margin-top: 20px;
    }

    /* WICHTIG: Das Buch bleibt sichtbar! */
    .book-layout.mode-checkout .book-visual-scene {
        display: flex !important;
    }

    /* 4. VISUAL ADJUSTMENTS */
    .book-hover-trigger {
        width: 100%;
        max-width: 250px;
        transform: rotateY(-5deg) rotateX(5deg);
    }

    .stats-card {
        right: -10px;
        bottom: 230px;
        padding: 8px 14px;
        transform: translateZ(40px);
    }

    .stat-val {
        font-size: 14px;
    }

    /* 5. TYPOGRAPHY */
    .book-headline {
        font-size: 36px;
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .book-sub {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .book-features {
        display: inline-block;
        text-align: left;
        margin-bottom: 30px;
    }

    .book-actions {
        flex-direction: column;
        gap: 20px;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 18px;
    }

    .release-badge {
        margin-bottom: 20px;
    }
}

/* Pagination / Previous Posts Button */
.nav-previous a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cr-dark);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin: var(--space-m) 0;
}

.nav-previous a:hover {
    transform: scale(1.02);
    background: var(--cr-brand);
    color: var(--cr-dark);
}