/* ── CPT Variable Bridge ──
   Mappt die alten Plugin-Variablen (--cr-*) auf die
   Theme-Preset-Variablen. Kein Wert wird doppelt definiert.
   ─────────────────────────────────────────────────────── */
:root {
    --cr-bg:       var(--wp--preset--color--bg);
    --cr-dark:     var(--wp--preset--color--text-main);
    --cr-card:     var(--wp--preset--color--card);
    --cr-surface:  var(--wp--preset--color--surface);
    --cr-brand:    var(--wp--preset--color--accent);
    --cr-text:     var(--wp--preset--color--text-main);
    --cr-gray:     var(--wp--preset--color--text-muted);
    --cr-light:    var(--wp--preset--color--text-light);
    --radius:      var(--wp--custom--radius--card, 8px);
    --shadow:      0 4px 24px -4px rgba(0, 0, 0, 0.08);
    --font-stack:  var(--wp--preset--font-family--body);
    --font-header: var(--wp--preset--font-family--heading);
    --font-mono:   "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --space-xs:    var(--wp--preset--spacing--8);
    --space-s:     var(--wp--preset--spacing--16);
    --space-m:     var(--wp--preset--spacing--24);
    --space-l:     var(--wp--preset--spacing--64);
    --space-xl:    var(--wp--preset--spacing--96);
    --border-light: var(--wp--preset--color--surface);
}



.text-huge {
    font-size: 4rem;
    color: var(--cr-text);
    line-height: 1;
    font-weight: 800;
    padding-bottom: 1rem;
}

.text-huge:hover {
    color: var(--cr-text);
}

.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 — aligned to sklare contentSize */
.teil1-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Reading Progress Bar */
/* Custom Sticky Header */
.teil1-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.95);
    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: clip;
    position: relative;
}

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

/* Back button removed */

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

.header-icon-wrapper:focus,
.header-icon-wrapper:active {
    outline: none !important;
    box-shadow: none !important;
}

.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;
    white-space: nowrap;
}

/* When title overflows on desktop → activate marquee (same as mobile) */
.header-title-block.is-overflow {
    overflow: hidden;
    mask-image: linear-gradient(to right, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent);
}

.header-title-block.is-overflow .header-post-title {
    display: flex;
    width: fit-content;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    animation: teil1-marquee 15s linear infinite;
}

.header-title-block.is-overflow .mobile-dup {
    display: inline-block;
}

.header-title-block.is-overflow .header-title-text {
    padding-right: 60px;
}

.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;
    white-space: nowrap;
    flex-shrink: 0;
}

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

/* Reading Progress Bar (Integrated) */
#teil1-progress-bar {
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 20px;
    height: 4px;
    width: 0%;
    background: var(--cr-brand);
    border-radius: 2px;
    z-index: 10;
    transition: width 0.1s linear;
}

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

/* Responsive adjust */
@media (max-width: 600px) {
    .teil1-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: 4px 10px;
        background: rgba(255, 255, 255, 0.95);
        height: 52px;
    }

    .header-icon-wrapper {
        width: 44px;
        height: 30px;
    }

    /* Full width progress bar on mobile */
    #teil1-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 {
        font-size: 0.7rem;
        margin-right: 2rem;
    }

    .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: teil1-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;
        font-size: var(--wp--preset--font-size--sm);
    }

    /* Mobile Text Sizes */
    .single-content h2 {
        font-size: var(--wp--preset--font-size--2xl);
        margin-top: 2.5rem;
    }

    .single-content h3 {
        font-size: 1.35rem;
        margin-top: 2rem;
    }

    /* Hero Cinematic — clear fixed sticky header (52px + breathing room) */
    .amb-hero-cinematic {
        padding-top: 60px;
        height: clamp(340px, 55vh, 560px);
    }
}

@keyframes teil1-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;
    font-weight: 800;
    padding-bottom: 1rem;
}

/* 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: 30px;
    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;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.hero-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.hero-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 5 / 2;
    object-fit: cover;
    background-color: var(--cr-surface);
}

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

.teil1-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--cr-brand);
    color: #fff;
    border-radius: 40px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    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%;
}


/* blog uses --circle variant — hover handled globally in teil1-core.css */

.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;
}

/* 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%;
}

/* YouTube Facade Pattern — thumbnail + play button, iframe on click */
.yt-facade {
    cursor: pointer;
    background: #000;
}

.yt-facade__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-facade__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.yt-facade:hover .yt-facade__play {
    opacity: 0.85;
}

/* Footer */
footer.teil1-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 h2 {
    font-size: var(--wp--preset--font-size--2xl);
    font-weight: 600;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    color: var(--cr-text);
}

.single-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--cr-text);
}

/* Base Lists in Article */
.single-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.single-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.single-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background-color: var(--cr-brand);
    border-radius: 1px;
}

.single-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.single-content ol li {
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}

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


/* --- Single Content Rich Blocks (t1-*) --- */
.single-content p.t1-drop-cap,
.single-content p.has-drop-cap {
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
}

.single-content p.t1-drop-cap::first-letter,
.single-content p.has-drop-cap:not(:focus)::first-letter {
    float: left;
    font-size: 4rem !important;
    line-height: 0.8;
    margin-right: 12px;
    margin-top: 8px;
    color: var(--cr-brand);
    font-family: var(--font-header);
    font-weight: 600;
}

.t1-ai-summary {
    background: #fff;
    border-radius: var(--radius);
    padding: var(--space-m) var(--space-m) var(--space-m) 36px;
    margin-bottom: var(--space-l);
    border-left: 6px solid var(--cr-brand);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.t1-ai-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cr-gray);
    margin-bottom: var(--space-s);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

.t1-relevance {
    margin-top: var(--space-s);
    font-size: 0.85rem;
}

.t1-relevance-badge {
    color: var(--cr-brand);
    font-weight: 600;
}

.t1-pull-quote {
    font-size: var(--wp--preset--font-size--2xl);
    font-family: var(--font-header);
    line-height: 1.3;
    padding-left: var(--space-m);
    border-left: 4px solid var(--cr-brand);
    margin: var(--space-l) 0;
    font-weight: 300;
}

.t1-pull-quote footer {
    font-family: var(--font-stack);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cr-gray);
    margin-top: var(--space-s);
    padding-top: var(--space-xs);
    border-top: 1px solid var(--border-light);
}

/* ── Code Block — Dark Terminal Style ── */
.single-content .wp-block-code {
    position: relative;
    background: #1a1a1e;
    border-radius: var(--radius);
    margin: var(--space-l) 0;
    padding: 0;
    overflow: hidden;
}

.single-content .wp-block-code::before {
    content: 't1_code_analytics >';
    display: block;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(74, 222, 128, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    user-select: none;
}

.single-content .wp-block-code code {
    display: block;
    padding: 20px 24px 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: #e4e4e8;
    background: none;
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar inside code blocks */
.single-content .wp-block-code code::-webkit-scrollbar {
    height: 6px;
}

.single-content .wp-block-code code::-webkit-scrollbar-track {
    background: transparent;
}

.single-content .wp-block-code code::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

/* Inline code (inside paragraphs, not in code blocks) */
.single-content p code,
.single-content li code,
.single-content td code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: rgba(0, 0, 0, 0.05);
    color: var(--cr-text);
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-word;
}

@media (max-width: 768px) {
    .single-content .wp-block-code code {
        padding: 16px 16px 20px;
        font-size: 12px;
    }
    .single-content .wp-block-code::before {
        padding: 8px 16px;
        font-size: 10px;
    }
}

.t1-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: var(--space-l) 0;
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Karo Pattern Background (matches services page) */
.t1-pros-cons::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.5;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    pointer-events: none;
}

/* Column Padding */
.t1-pros-cons > div {
    padding: var(--space-m);
}

/* Prevent .single-content ul li::before bullets from leaking into block components */
.t1-pros-cons ul li,
.t1-checklist .t1-check-item,
.single-content .t1-ai-summary ul li {
    padding-left: 0;
}

/* Executive Summary: structured numbered list */
.t1-ai-summary ul {
    counter-reset: summary-point;
    list-style: none;
    padding: 0;
    margin: var(--space-s, 16px) 0 0;
}

.single-content .t1-ai-summary ul li {
    counter-increment: summary-point;
    position: relative;
    padding: 14px 0 14px 36px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--cr-text, #111);
    margin-bottom: 0;
}

.single-content .t1-ai-summary ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.single-content .t1-ai-summary ul li::before {
    content: counter(summary-point, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 18px;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--cr-gray, #888);
    letter-spacing: 0.02em;
}

/* Pros-Cons List Bullets */
.t1-pros-cons ul li {
    position: relative;
    padding-left: 25px !important;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--cr-text);
}
.t1-pros-cons ul li:last-child {
    border-bottom: none;
}

/* Neutral dot for all items */
.t1-pros-cons ul li::before {
    display: block !important;
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--cr-gray);
}

.t1-pc-title {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-s);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.t1-action-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
    margin: var(--space-l) 0;
}

.t1-step {
    display: flex;
    gap: var(--space-m);
    background: var(--cr-surface);
    padding: var(--space-m);
    border-radius: var(--radius);
}

.t1-step-num {
    font-size: 2.5rem;
    font-family: var(--font-header);
    color: var(--cr-brand);
    line-height: 1;
    font-weight: 300;
    align-self: flex-start; /* Fix: prevent vertical stretch in flex container */
    padding-top: 20px;
}

.t1-step-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-family: var(--font-stack);
    font-weight: 600;
}

.t1-checklist {
    margin: var(--space-m) 0;
}

.t1-check-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.t1-check-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.t1-trust-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-m);
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--cr-gray);
}

.t1-trust-section br,
.t1-ai-summary br {
    display: none;
}

.t1-sources-list {
    padding-left: 20px;
    margin-bottom: var(--space-m);
}

.t1-sources-list a {
    color: var(--cr-brand);
    text-decoration: underline;
    font-style: italic;
}

/* --- Lexikon Index (related entries at end of post) --- */
.blog-lexikon-index {
    margin-top: var(--space-xl, 48px);
    padding-top: var(--space-l, 32px);
    border-top: 1px solid var(--cr-border, rgba(0, 0, 0, 0.1));
}

.blog-lexikon-index__heading {
    font-size: var(--wp--preset--font-size--xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--cr-muted, #888);
    margin: 0 0 var(--space-m, 16px);
}

.blog-lexikon-index__list {
    display: flex;
    flex-direction: column;
}

.blog-lexikon-index__row {
    display: flex;
    align-items: baseline;
    gap: var(--space-m, 16px);
    padding: 12px 0;
    border-bottom: 1px solid var(--cr-border, rgba(0, 0, 0, 0.08));
    text-decoration: none;
    color: var(--cr-text, #111);
    transition: background-color 0.2s ease;
}

.blog-lexikon-index__row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.blog-lexikon-index__term {
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 600;
    flex-shrink: 0;
    min-width: 140px;
}

.blog-lexikon-index__def {
    font-size: var(--wp--preset--font-size--sm);
    color: var(--cr-muted, #888);
    flex: 1;
    line-height: 1.4;
}

.blog-lexikon-index__arrow {
    font-size: var(--wp--preset--font-size--sm);
    color: var(--cr-muted, #888);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.blog-lexikon-index__row:hover .blog-lexikon-index__arrow {
    transform: translateX(4px);
}

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

    .blog-lexikon-index__row {
        flex-direction: column;
        gap: 4px;
    }

    .blog-lexikon-index__term {
        min-width: unset;
    }

    .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;
    }

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

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

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

/* ══════════════════════════════════════════════════════════════════════
   BLOG ARCHIVE — OPEN EDITORIAL LAYOUT
   Prefix: .ba-*
   Design tokens: --wp--preset--* (colors, fonts, spacing)
   Radii: 8px cards (--radius-md), 40px pills (--radius-full)
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1. Archive Header ─────────────────────────────────────────────── */

.ba-archive {
    padding-top: calc(var(--wp--custom--header-height, 80px) + var(--wp--preset--spacing--64));
}

.ba-header {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--8);
    margin-bottom: var(--wp--preset--spacing--48);
}

.ba-header__h1 {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--4xl);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 0;
    color: var(--wp--preset--color--text-main);
}

.ba-header__subtitle {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--lg);
    color: var(--wp--preset--color--text-muted);
    margin: 0;
    line-height: 1.5;
    max-width: 520px;
}

/* ── Shared: Section Label ─────────────────────────────────────────── */

.ba-section-label {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--2xl);
    font-weight: 500;
    letter-spacing: -0.04em;
    margin: 0 0 var(--wp--preset--spacing--24);
    color: var(--wp--preset--color--text-main);
}

/* ── Shared: Pill & Meta ───────────────────────────────────────────── */

.ba-pill {
    display: inline-block;
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--hero-blue, #4375ea);
    background: var(--wp--preset--color--blue-100, #E3EAFC);
    padding: 4px 12px;
    border-radius: 40px;
    line-height: 1.4;
}

.ba-meta-date {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 500;
    color: var(--wp--preset--color--text-muted);
    letter-spacing: 0.04em;
}

/* ── 2. Hero Feature ───────────────────────────────────────────────── */

.ba-hero {
    margin-bottom: var(--wp--preset--spacing--64);
}

.ba-hero__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--wp--preset--color--surface);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.ba-hero__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.ba-hero__img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
}

/* WP Rocket wraps <img> in <picture> for WebP — picture becomes
   the grid item, img inside must fill it completely */
picture.ba-hero__img,
.ba-hero__card > picture {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
}
picture.ba-hero__img > img,
.ba-hero__card > picture > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-hero__img--placeholder {
    background: var(--wp--preset--color--surface);
    min-height: 340px;
}

.ba-hero__body {
    padding: var(--wp--preset--spacing--48);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--wp--preset--spacing--16);
}

.ba-hero__meta {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--12);
    font-size: var(--wp--preset--font-size--sm);
}

.ba-hero__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--2xl);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin: 0;
    color: var(--wp--preset--color--text-main);
}

.ba-hero__footer {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--16);
    margin-top: auto;
}

.ba-hero__excerpt {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--text-muted);
    line-height: 1.5;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── 3. Trending Grid ──────────────────────────────────────────────── */

.ba-trending {
    margin-bottom: var(--wp--preset--spacing--64);
}

.ba-trending__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--wp--preset--spacing--24);
}

.ba-trending__header .ba-section-label {
    margin-bottom: 0;
}

.ba-trending__archive-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
    color: var(--wp--preset--color--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ba-trending__archive-link:hover {
    color: var(--wp--preset--color--text-main);
}

.ba-trending__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--wp--preset--spacing--24);
}

/* ── Shared: Card Component ────────────────────────────────────────── */

.ba-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--wp--preset--color--surface);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.ba-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.ba-card__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.ba-card__img--placeholder {
    background: var(--wp--preset--color--surface);
    aspect-ratio: 16 / 10;
}

.ba-card__body {
    padding: var(--wp--preset--spacing--24);
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--8);
    flex: 1;
}

.ba-card__meta {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--12);
}

.ba-card__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--xl);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin: 0;
    color: var(--wp--preset--color--text-main);
    flex: 1;
}

.ba-card__body .arrow-icon--circle {
    margin-top: auto;
    align-self: flex-start;
}

/* ── 4. Category Sections ──────────────────────────────────────────── */

.ba-category {
    margin-bottom: var(--wp--preset--spacing--64);
}

.ba-category__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--wp--preset--spacing--24);
}

.ba-category__count {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--text-muted);
    font-weight: 500;
}

.ba-category__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--wp--preset--spacing--24);
}

/* ── 5. The Ledger ─────────────────────────────────────────────────── */

.ba-ledger {
    margin-bottom: var(--wp--preset--spacing--64);
}

.ba-ledger__table {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--wp--preset--color--surface);
    overflow: hidden;
}

.ba-ledger__head {
    display: grid;
    grid-template-columns: 100px 160px 1fr 100px;
    gap: var(--wp--preset--spacing--16);
    padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--24);
    background: var(--wp--preset--color--surface);
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--text-muted);
}

.ba-ledger__row {
    display: grid;
    grid-template-columns: 100px 160px 1fr 100px;
    gap: var(--wp--preset--spacing--16);
    padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--24);
    text-decoration: none;
    color: var(--wp--preset--color--text-main);
    transition: background-color 0.2s;
    align-items: center;
    border-top: 1px solid var(--wp--preset--color--surface);
}

.ba-ledger__row:hover {
    background: var(--wp--preset--color--bg);
}

.ba-ledger__date {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: var(--wp--preset--font-size--xs);
    color: var(--wp--preset--color--text-muted);
}

.ba-ledger__cat {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--accent);
}

.ba-ledger__title {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--base);
    font-weight: 500;
    color: var(--wp--preset--color--text-main);
}

.ba-ledger__time {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--8);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: var(--wp--preset--font-size--xs);
    color: var(--wp--preset--color--text-muted);
    justify-content: flex-end;
}

.ba-ledger__time .arrow-icon {
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.2s;
}

.ba-ledger__row:hover .ba-ledger__time .arrow-icon {
    opacity: 1;
}

/* ── 6. Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .ba-trending__grid,
    .ba-category__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ba-header__h1 {
        font-size: var(--wp--preset--font-size--3xl);
    }

    .ba-hero__card {
        grid-template-columns: 1fr;
    }
    .ba-hero__img {
        min-height: 220px;
    }
    .ba-hero__body {
        padding: var(--wp--preset--spacing--32);
    }

    .ba-trending__grid,
    .ba-category__grid {
        grid-template-columns: 1fr;
    }

    .ba-ledger__head,
    .ba-ledger__row {
        grid-template-columns: 80px 1fr 60px;
    }
    .ba-ledger__cat {
        display: none;
    }
}


/* --- HEADER SNIPPET CSS --- */
.nav-bar-container {
    font-family: var(--font-stack);
    background-color: var(--cr-bg);
    width: 100%;
    border-bottom: 1px solid var(--border-light);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    height: 64px;
}

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

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

.nav-logo img {
    max-height: 25px;
    width: auto;
    display: block;
}

.nav-contact {
    display: flex;
    gap: 24px;
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    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(--cr-surface);
    padding: 8px 16px;
    border-radius: 40px;
    line-height: 1;
}

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

    .nav-logo img {
        max-height: 18px;
    }

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

    .hotline {
        font-size: var(--wp--preset--font-size--sm);
        padding: 6px 12px;
    }
}

/* Social Links */
.teil1-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;
}

.archive-list {
    display: grid;
    gap: var(--space-s);
}

.archive-dynamic-cta {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

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

.teil1-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;
}

.teil1-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: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a.amb-pill-accent:hover {
    opacity: 0.85;
}

.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: clamp(280px, 50vh, 560px);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: var(--space-l);
    background-color: var(--cr-bg);
}

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

.amb-hero-cinematic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 40%, transparent);
    z-index: 2;
}

.amb-hero-cinematic .amb-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(20px, 4vh, 60px) var(--space-m);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.amb-meta-bar {
    display: flex;
    gap: 12px;
    margin-bottom: var(--space-m);
    justify-content: center;
}

.amb-title-cinematic {
    color: #ffffff;
    font-size: var(--wp--preset--font-size--3xl);
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: clamp(10px, 2vh, 20px);
    letter-spacing: -0.03em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.amb-hero-divider {
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    margin: 20px auto;
}

.amb-hero-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
}

.amb-author-badge {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 6px 16px 6px 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

/* 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: var(--wp--preset--font-size--3xl);
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--wp--preset--color--text-main);
}

.amb-hero-excerpt {
    font-size: var(--wp--preset--font-size--lg);
    line-height: 1.6;
    color: var(--wp--preset--color--text-muted);
    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: var(--wp--preset--font-size--3xl);
    font-family: var(--wp--preset--font-family--heading);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--wp--preset--color--text-main);
    margin-bottom: 10px;
}



/* --- 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: var(--wp--preset--font-size--2xl);
    }

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

    .amb-title-minimal {
        font-size: var(--wp--preset--font-size--2xl);
    }

    .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-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: var(--wp--preset--font-size--sm);
    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: var(--wp--preset--font-size--xs);
    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: var(--wp--preset--font-size--base);
    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: var(--wp--preset--font-size--base);
    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: #ffffff;
}

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

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

.author-sign {
    font-size: var(--wp--preset--font-size--xs);
    color: #888;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.author-name {
    color: #000;
    font-size: var(--wp--preset--font-size--sm);
    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: var(--wp--preset--font-size--lg);
    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: var(--wp--preset--font-size--sm);
    }

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

    .book-sub {
        font-size: var(--wp--preset--font-size--sm);
        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);
}

/* --- CTA Split Layout --- */
.teil1-container-large {
    max-width: 1400px;
    margin: 0 auto;
}

.amb-cta-wrapper {
    margin-top: 8rem;
    margin-bottom: 2rem;
}

.cta-split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    /* Respect global container rules */
    max-width: calc(var(--layout-max-width, 1400px) + 2 * var(--layout-padding, 40px));
    margin-inline: auto;
    padding-inline: var(--layout-padding, 40px);
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .cta-split-layout {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.cta-context {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-context h2.cta-headline {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-m);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--cr-gray);
    margin-bottom: var(--space-l);
    max-width: 85%;
    line-height: 1.6;
}

.cta-trust-badges {
    display: flex;
    align-items: center;
    gap: 40px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
}

.trust-score-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.trust-value {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    font-family: var(--font-stack-heading);
}

.trust-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--cr-gray);
    margin-top: 6px;
    line-height: 1.4;
}

.trust-label-small {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--cr-gray);
}

.trust-divider {
    width: 1px;
    height: 70px;
    background-color: var(--border-light);
}

.trust-verified {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 600px) {
    .cta-trust-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .trust-divider {
        height: 1px;
        width: 80px;
    }
}


/* ═══════════════════════════════════════════════════════════
   TAXONOMY ARCHIVE — content_subject
   ═══════════════════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.ba-taxonomy__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--text-muted);
    margin-bottom: var(--wp--preset--spacing--16);
}

.ba-taxonomy__breadcrumb a {
    color: var(--wp--preset--color--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ba-taxonomy__breadcrumb a:hover {
    color: var(--wp--preset--color--text-main);
}

.ba-taxonomy__breadcrumb span[aria-current] {
    color: var(--wp--preset--color--text-main);
    font-weight: 600;
}

/* ── Term Meta ── */
.ba-taxonomy__meta {
    margin-top: var(--wp--preset--spacing--8);
}

.ba-taxonomy__count {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: var(--wp--preset--font-size--xs);
    color: var(--wp--preset--color--text-muted);
    letter-spacing: 0.04em;
}

/* ── Filter Pills ── */
.ba-taxonomy__filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--wp--preset--spacing--48, 48px);
    padding-top: var(--wp--preset--spacing--16);
}

.ba-pill--outline {
    display: inline-block;
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--text-muted);
    background: transparent;
    border: 1px solid var(--wp--preset--color--surface);
    padding: 4px 14px;
    border-radius: 40px;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ba-pill--outline:hover {
    background: var(--wp--preset--color--surface);
    color: var(--wp--preset--color--text-main);
    border-color: var(--wp--preset--color--text-muted);
}

.ba-pill--active {
    display: inline-block;
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--wp--preset--color--text-main);
    padding: 4px 14px;
    border-radius: 40px;
    border: 1px solid var(--wp--preset--color--text-main);
    line-height: 1.4;
    text-decoration: none;
}

/* ── Reading time meta ── */
.ba-meta-reading {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 500;
    color: var(--wp--preset--color--text-muted);
}

/* ── Lexikon CTA Section ── */
.ba-lexikon-cta {
    margin-top: var(--wp--preset--spacing--96, 96px);
    margin-bottom: var(--wp--preset--spacing--64, 64px);
}

.ba-lexikon-cta__card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--wp--preset--spacing--48, 48px);
    background: var(--wp--preset--color--surface);
    border-radius: 16px;
    padding: clamp(32px, 5vw, 56px);
    overflow: hidden;
    position: relative;
}

.ba-lexikon-cta__eyebrow {
    display: inline-block;
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wp--preset--color--text-muted);
    margin-bottom: var(--wp--preset--spacing--8);
}

.ba-lexikon-cta__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--2xl);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 var(--wp--preset--spacing--16);
    color: var(--wp--preset--color--text-main);
}

.ba-lexikon-cta__text {
    font-size: var(--wp--preset--font-size--base);
    color: var(--wp--preset--color--text-muted);
    line-height: 1.6;
    margin: 0 0 var(--wp--preset--spacing--24);
    max-width: 520px;
}

.ba-lexikon-cta__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--hero-blue, #4375ea);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.ba-lexikon-cta__link:hover {
    gap: 16px;
}

.ba-lexikon-cta__link .arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.ba-lexikon-cta__link:hover .arrow-icon {
    transform: translateX(4px);
}

.ba-lexikon-cta__visual {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.ba-lexikon-cta__letter {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(64px, 10vw, 120px);
    font-weight: 200;
    color: var(--wp--preset--color--text-main);
    opacity: 0.06;
    line-height: 1;
    user-select: none;
}

@media (max-width: 768px) {
    .ba-lexikon-cta__card {
        grid-template-columns: 1fr;
    }

    .ba-lexikon-cta__visual {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .ba-lexikon-cta__letter {
        font-size: 48px;
    }

    .ba-lexikon-cta__title {
        font-size: var(--wp--preset--font-size--xl);
    }

    .ba-taxonomy__filter {
        gap: 6px;
    }
}