/* ==========================================================================
   VITALUNGO Theme – screen.css
   Complete stylesheet for Ghost CMS Theme (no build process)
   ========================================================================== */


/* ===========================================
   SELF-HOSTED FONTS
   Dateien liegen in assets/fonts/
   DSGVO-konform: Kein externer Abruf
   =========================================== */

/* DM Serif Display – Headings */
@font-face {
    font-family: 'DM Serif Display';
    src: url('../fonts/dm-serif-display-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Inter – Body Text */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
    /* Colors */
    --vu-color-primary: #366b5b;
    --vu-color-primary-light: #5a9a87;
    --vu-color-primary-very-light: #e8f4ef;
    --vu-color-accent-warm: #c8a45c;
    --vu-color-accent-warm-light: #f5ecd7;
    --vu-color-text: #2d3436;
    --vu-color-text-secondary: #636e72;
    --vu-color-bg: #f9fafb;
    --vu-color-bg-card: #ffffff;
    --vu-color-border: #e2e8f0;
    --vu-color-error: #e17055;

    /* Spacing (8px grid) */
    --vu-spacing-xs: 4px;
    --vu-spacing-sm: 8px;
    --vu-spacing-md: 16px;
    --vu-spacing-lg: 24px;
    --vu-spacing-xl: 32px;
    --vu-spacing-2xl: 64px;
    --vu-spacing-3xl: 96px;

    /* Border Radius */
    --vu-radius-sm: 6px;
    --vu-radius-md: 12px;
    --vu-radius-lg: 16px;
    --vu-radius-full: 9999px;

    /* Shadows */
    --vu-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --vu-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --vu-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);

    /* Typography */
    --vu-font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --vu-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --vu-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Layout */
    --vu-content-width: 720px;
    --vu-wide-width: 1200px;
    --vu-full-width: 1400px;

    /* Transitions */
    --vu-transition: 0.3s ease;

    /* Header */
    --vu-header-height: 72px;
}

/* Typography Varianten aus Custom Setting */
body.font-klassisch {
    --vu-font-heading: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
    --vu-font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, sans-serif;
}

body.font-minimalist {
    --vu-font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --vu-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Dark Mode */
html.dark-mode {
    --vu-color-primary: #4a9b84;
    --vu-color-primary-light: #5eb89c;
    --vu-color-primary-very-light: #1e2d28;
    --vu-color-accent-warm: #d4b06a;
    --vu-color-accent-warm-light: #2a2520;
    --vu-color-text: #e8eaed;
    --vu-color-text-secondary: #9aa0a6;
    --vu-color-bg: #1a1d21;
    --vu-color-bg-card: #242830;
    --vu-color-border: #3a3f47;
    --vu-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.25);
    --vu-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.25);
    --vu-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.25);
}

/* Auto Mode */
@media (prefers-color-scheme: dark) {
    html.auto-color {
        --vu-color-primary: #4a9b84;
        --vu-color-primary-light: #5eb89c;
        --vu-color-primary-very-light: #1e2d28;
        --vu-color-accent-warm: #d4b06a;
        --vu-color-accent-warm-light: #2a2520;
        --vu-color-text: #e8eaed;
        --vu-color-text-secondary: #9aa0a6;
        --vu-color-bg: #1a1d21;
        --vu-color-bg-card: #242830;
        --vu-color-border: #3a3f47;
        --vu-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.25);
        --vu-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.25);
        --vu-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.25);
    }
}


/* ==========================================================================
   2. CSS Reset & Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--vu-font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--vu-color-text);
    background: var(--vu-color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--vu-color-primary);
    text-decoration: none;
    transition: color var(--vu-transition);
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--vu-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--vu-color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--vu-wide-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: var(--vu-content-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-full {
    max-width: var(--vu-full-width);
    margin: 0 auto;
    padding: 0 20px;
}


/* ==========================================================================
   3. Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    min-height: 48px;
    border: none;
    border-radius: var(--vu-radius-sm);
    font-family: var(--vu-font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--vu-transition);
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--vu-color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--vu-color-primary-light);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--vu-color-primary);
    border: 2px solid var(--vu-color-primary);
}

.btn-secondary:hover {
    background: var(--vu-color-primary);
    color: #fff;
}

.btn-accent {
    background: var(--vu-color-accent-warm);
    color: #fff;
}

.btn-accent:hover {
    opacity: 0.9;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 1.2rem;
    min-height: 56px;
}

.btn-nav {
    padding: 8px 16px;
    min-height: 36px;
    font-size: 0.9rem;
}


/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--vu-color-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--vu-color-border);
    height: var(--vu-header-height);
    transition: all var(--vu-transition);
}

.site-header.scrolled {
    height: 60px;
    box-shadow: var(--vu-shadow-md);
}

/* Header Transparent Overlay */
.site-header.header-transparent {
    background: transparent;
    border-bottom: none;
}

.site-header.header-transparent.scrolled {
    background: var(--vu-color-bg-card);
    border-bottom: 1px solid var(--vu-color-border);
}

.site-header.header-transparent:not(.scrolled) .nav-item a,
.site-header.header-transparent:not(.scrolled) .site-title-text,
.site-header.header-transparent:not(.scrolled) .nav-search,
.site-header.header-transparent:not(.scrolled) .dark-mode-toggle {
    color: #fff;
}

/* Header Minimal */
.site-header.header-minimal {
    padding: 8px 0;
}

.site-header.header-minimal .site-logo img {
    max-height: 28px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--vu-full-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

.main-nav .nav-primary {
    display: flex;
    flex-direction: row;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item a {
    color: var(--vu-color-text);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--vu-transition);
}

.nav-item a:hover {
    color: var(--vu-color-primary);
    text-decoration: none;
}

.nav-item.nav-current a {
    color: var(--vu-color-primary);
}

/* Dropdown */
.nav-item.has-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--vu-color-bg-card);
    border-radius: var(--vu-radius-md);
    box-shadow: var(--vu-shadow-lg);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--vu-transition);
    list-style: none;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li a {
    padding: 8px 20px;
    display: block;
    color: var(--vu-color-text);
}

.nav-dropdown li a:hover {
    background: var(--vu-color-primary-very-light);
    color: var(--vu-color-primary);
}

/* Right side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-search,
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--vu-color-text-secondary);
    transition: color var(--vu-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search:hover,
.dark-mode-toggle:hover {
    color: var(--vu-color-primary);
}

.nav-search svg,
.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-login-link {
    color: var(--vu-color-text);
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-login-link:hover {
    color: var(--vu-color-primary);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--vu-color-text);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all var(--vu-transition);
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 80vw;
    height: 100%;
    background: var(--vu-color-bg-card);
    z-index: 201;
    transform: translateX(100%);
    transition: transform var(--vu-transition);
    padding: 24px;
    overflow-y: auto;
}

.mobile-menu-overlay.is-active .mobile-menu-panel {
    transform: translateX(0);
}


/* ==========================================================================
   5. Dark Mode Toggle
   ========================================================================== */

.dark-mode-toggle .toggle-icon-light {
    display: block;
}

.dark-mode-toggle .toggle-icon-dark {
    display: none;
}

html.dark-mode .dark-mode-toggle .toggle-icon-light {
    display: none;
}

html.dark-mode .dark-mode-toggle .toggle-icon-dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    html.auto-color .dark-mode-toggle .toggle-icon-light {
        display: none;
    }
    html.auto-color .dark-mode-toggle .toggle-icon-dark {
        display: block;
    }
}


/* ==========================================================================
   6. Hero Section
   ========================================================================== */

.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero-image-overlay {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-image-overlay .hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--vu-color-text-secondary);
    max-width: 600px;
    margin: 16px auto 0;
}

.hero-image-overlay p {
    color: rgba(255, 255, 255, 0.9);
}

.hero .btn {
    margin-top: 24px;
}

/* Hero Image Variant */
.hero-image {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-image .hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
}

.hero-image .hero-content h1 {
    color: #fff;
}

.hero-image .hero-content p {
    color: rgba(255, 255, 255, 0.85);
}

/* Hero Text Only Variant */
.hero-text-only {
    background: var(--vu-color-primary-very-light);
    padding: 80px 20px;
    text-align: center;
    border-radius: var(--vu-radius-lg);
}

/* Hero Featured Variant */
.hero-featured-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 64px 0;
}

.hero-featured-image img {
    width: 100%;
    border-radius: var(--vu-radius-md);
}

.hero-featured-content h1 {
    font-size: 2.25rem;
}

.hero-featured-content h1 a {
    color: var(--vu-color-text);
    text-decoration: none;
}

.hero-featured-content h1 a:hover {
    color: var(--vu-color-primary);
    text-decoration: none;
}

.hero-featured-content p {
    margin-top: 12px;
}


/* ==========================================================================
   7. Post Cards
   ========================================================================== */

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.post-card-link:hover {
    text-decoration: none;
}

.post-card {
    background: var(--vu-color-bg-card);
    border-radius: var(--vu-radius-md);
    overflow: hidden;
    box-shadow: var(--vu-shadow-sm);
    transition: all var(--vu-transition);
}

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

.post-card-image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

.post-card-content {
    padding: 24px;
}

.tag-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vu-color-primary);
    background: var(--vu-color-primary-very-light);
    padding: 4px 10px;
    border-radius: var(--vu-radius-sm);
    text-decoration: none;
}

.tag-badge:hover {
    text-decoration: none;
}

.post-card h3 {
    font-size: 1.25rem;
    margin-top: 8px;
}

.post-card h3 a {
    color: var(--vu-color-text);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--vu-color-primary);
    text-decoration: none;
}

.post-card-excerpt {
    color: var(--vu-color-text-secondary);
    font-size: 0.95rem;
    margin-top: 8px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--vu-color-text-secondary);
}

.post-card-meta img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Post Card Large */
.post-card-large {
    grid-column: 1 / -1;
}
.post-card-large .post-card-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}
.post-card-large .post-card-image-wrap {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--vu-radius-md);
}
.post-card-large .post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-card-large .post-card-content {
    padding: 0;
}
.post-card-large .post-card-title {
    font-size: 1.75rem;
    line-height: 1.25;
}
.post-card-large .post-card-excerpt {
    font-size: 1.05rem;
}


/* ==========================================================================
   8. Post Grid
   ========================================================================== */

.post-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.post-feed-mixed .post-card:first-child {
    grid-column: 1 / -1;
}

/* Post Feed List Layout */
.post-feed-list {
    grid-template-columns: 1fr;
}

.post-feed-list .post-card .post-card-link {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
}

.post-feed-list .post-card-image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--vu-radius-md) 0 0 var(--vu-radius-md);
}

.post-feed-list .post-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Feed Section */
.post-feed-section {
    padding: 48px 0;
}

/* Topics Header */
.topics-header h2 {
    text-align: center;
    margin-bottom: 40px;
}

.topic-card-description {
    font-size: 0.85rem;
    color: var(--vu-color-text-secondary);
    margin-top: 4px;
}

.topic-card-count {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vu-color-primary);
    background: var(--vu-color-primary-very-light);
    padding: 4px 12px;
    border-radius: var(--vu-radius-full);
    letter-spacing: 0.02em;
}

/* Reading Time Icon */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reading-time svg {
    width: 14px;
    height: 14px;
}

/* Meta Separator */
.meta-separator {
    color: var(--vu-color-text-secondary);
}


/* ==========================================================================
   9. Newsletter CTA
   ========================================================================== */

.newsletter-cta {
    background: var(--vu-color-primary-very-light);
    border-radius: var(--vu-radius-lg);
    padding: 48px;
    text-align: center;
    margin: 64px 0;
}

.newsletter-cta h2 {
    font-size: 1.75rem;
}

.newsletter-cta p {
    color: var(--vu-color-text-secondary);
    margin-top: 8px;
}

.newsletter-cta .btn {
    margin-top: 24px;
}

.newsletter-cta-inline {
    border-left: 4px solid var(--vu-color-primary);
    padding: 24px;
    padding-left: 24px;
    background: var(--vu-color-primary-very-light);
    border-radius: 0 var(--vu-radius-sm) var(--vu-radius-sm) 0;
    margin: 32px 0;
}


/* ==========================================================================
   10. Topic / Tag Cards
   ========================================================================== */

.topics-section {
    padding: 64px 0;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.topic-card {
    text-align: center;
    padding: 24px;
    background: var(--vu-color-bg-card);
    border-radius: var(--vu-radius-md);
    transition: all var(--vu-transition);
    text-decoration: none;
    color: var(--vu-color-text);
}

.topic-card:hover {
    box-shadow: var(--vu-shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.topic-card-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--vu-color-primary-very-light);
    padding: 20px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.topic-card h3 {
    font-size: 1rem;
}

.topic-card .post-count {
    font-size: 0.85rem;
    color: var(--vu-color-text-secondary);
}

/* Mobile horizontal scroll */
.topics-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.topics-scroll .topic-card {
    flex: 0 0 180px;
}


/* ==========================================================================
   11. Blog Post Page (post.hbs)
   ========================================================================== */

.post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 48px;
}

.post-title {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 16px;
}

.post-header h1 {
    font-size: 2.75rem;
    line-height: 1.2;
}

.post-excerpt {
    font-size: 1.25rem;
    color: var(--vu-color-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.post-header .post-excerpt {
    font-size: 1.25rem;
    color: var(--vu-color-text-secondary);
    margin-top: 16px;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--vu-color-text-secondary);
}

.post-meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-meta-author a {
    color: var(--vu-color-text);
    text-decoration: none;
}

.post-meta-author a:hover {
    color: var(--vu-color-primary);
}

.post-feature-image {
    max-width: var(--vu-wide-width);
    margin: 40px auto;
    border-radius: var(--vu-radius-md);
    overflow: hidden;
}

.post-feature-image img {
    width: 100%;
    display: block;
}

.post-feature-image figcaption,
.gh-content figcaption,
.gh-content .kg-image-card figcaption,
.gh-content .kg-gallery-card figcaption,
.gh-content .kg-embed-card figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--vu-color-text-secondary);
    padding: 12px 0;
    font-style: italic;
    line-height: 1.5;
}

.post-content-wrapper {
    display: grid;
    grid-template-columns: 240px minmax(0, var(--vu-content-width)) 1fr;
    gap: 40px;
    max-width: var(--vu-wide-width);
    margin: 0 auto;
    padding: 0 20px;
}

.post-content-spacer {
    grid-column: 3;
}

.post-content-wrapper:not(:has(.toc-sidebar)) {
    grid-template-columns: 1fr minmax(0, var(--vu-content-width)) 1fr;
}

.gh-content {
    grid-column: 2;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Tabellen Scroll-Wrapper (wird von JS erstellt) */
.table-scroll-wrapper {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
}

/* Tabelle innerhalb des Wrappers */
.table-scroll-wrapper table {
    display: table;
    width: auto;
    min-width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    margin: 0;
}

.table-scroll-wrapper th,
.table-scroll-wrapper td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--vu-color-border);
}

/* Auch bestehende Ghost-Wrapper abdecken */
.gh-content .gh-table,
.gh-content .kg-table-card {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gh-content .gh-table table,
.gh-content .kg-table-card table {
    display: table;
    min-width: 600px;
}

/* Tabellen-Grundformatierung */
.gh-content table {
    border-spacing: 0;
    border-collapse: collapse;
}

.gh-content table th {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vu-color-text);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.gh-content table th,
.gh-content table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--vu-color-border);
}

.gh-content table th:first-child,
.gh-content table td:first-child {
    padding-left: 0;
}

.gh-content table th:last-child,
.gh-content table td:last-child {
    padding-right: 0;
}

.gh-content h2 {
    margin-top: 48px;
    margin-bottom: 16px;
}

.gh-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.gh-content p {
    margin-bottom: 24px;
}

.gh-content img {
    max-width: 100%;
    border-radius: var(--vu-radius-sm);
}

.gh-content blockquote {
    border-left: 4px solid var(--vu-color-primary);
    padding-left: 24px;
    font-style: italic;
    color: var(--vu-color-text-secondary);
    margin: 24px 0;
}

/* Ghost Callout Cards - respektiert die im Editor gewählte Farbe */
.gh-content .kg-callout-card {
    border-radius: var(--vu-radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.gh-content .kg-callout-card .kg-callout-emoji {
    font-size: 1.3rem;
    line-height: 1.5;
}
.gh-content .kg-callout-card .kg-callout-text {
    font-size: 1rem;
    line-height: 1.6;
}

.gh-content pre {
    background: var(--vu-color-bg-card);
    border: 1px solid var(--vu-color-border);
    border-radius: var(--vu-radius-sm);
    padding: 20px;
    overflow-x: auto;
    font-family: var(--vu-font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 24px 0;
}

.gh-content code {
    font-family: var(--vu-font-mono);
    font-size: 0.9em;
    background: var(--vu-color-primary-very-light);
    padding: 2px 6px;
    border-radius: 3px;
}

.gh-content pre code {
    background: none;
    padding: 0;
}

/* Ghost Content Cards (kg-*) */
.gh-content .kg-image-card img {
    max-width: 100%;
}

.gh-content .kg-width-wide {
    grid-column: 1 / -1;
    max-width: var(--vu-wide-width);
    margin-left: auto;
    margin-right: auto;
}

.gh-content .kg-width-full {
    grid-column: 1 / -1;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Share Section */
.share-section {
    text-align: center;
    padding: 32px 0;
}

.share-section h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vu-color-text-secondary);
    margin-bottom: 16px;
}

/* Post Footer */
.post-footer {
    margin-top: 48px;
}

/* Author Box Links */
.author-box-content h4 a {
    color: var(--vu-color-text);
    text-decoration: none;
}

.author-box-content h4 a:hover {
    color: var(--vu-color-primary);
}

.author-box-links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.author-box-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--vu-color-primary);
}

.author-box-links svg {
    width: 16px;
    height: 16px;
}

/* Feedback Thanks */
.feedback-thanks {
    margin-top: 16px;
    color: var(--vu-color-primary);
    font-weight: 600;
}

.feedback-icon {
    font-size: 1.2rem;
    margin-right: 4px;
}


/* ==========================================================================
   12. Table of Contents
   ========================================================================== */

.toc-sidebar {
    grid-column: 1;
    position: sticky;
    top: calc(var(--vu-header-height, 72px) + 24px);
    max-height: calc(100vh - var(--vu-header-height, 72px) - 48px);
    overflow-y: auto;
    align-self: start;
    padding-right: 20px;
}

.toc-sidebar nav h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vu-color-text-secondary);
    margin-bottom: 12px;
}

.toc-sidebar ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-sidebar ol li {
    margin-bottom: 6px;
}

.toc-sidebar ol li a {
    font-size: 0.85rem;
    color: var(--vu-color-text-secondary);
    text-decoration: none;
    display: block;
    padding: 4px 0 4px 12px;
    border-left: 2px solid transparent;
    transition: all var(--vu-transition);
}

.toc-sidebar ol li a:hover {
    color: var(--vu-color-primary);
}

.toc-sidebar ol li a.toc-active {
    color: var(--vu-color-primary);
    border-left-color: var(--vu-color-primary);
    font-weight: 600;
}

.toc-sidebar ol ol {
    padding-left: 16px;
}

/* Mobile TOC */
.toc-mobile {
    display: none;
    max-width: 100%;
}
.toc-mobile summary {
    font-weight: 600;
    cursor: pointer;
    padding: 12px 16px;
    background: var(--vu-color-primary-very-light);
    border-radius: var(--vu-radius-sm);
    max-width: 100%;
}
.toc-mobile ol {
    padding-left: 16px;
    margin: 12px 0 0 0;
    list-style: none;
    max-width: 100%;
}
.toc-mobile ol li {
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.toc-mobile ol li a {
    font-size: 0.9rem;
    color: var(--vu-color-text-secondary);
    text-decoration: none;
    display: block;
    padding: 4px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.toc-mobile ol ol {
    padding-left: 16px;
    margin-top: 4px;
}


/* ==========================================================================
   13. Reading Progress Bar
   ========================================================================== */

.reading-progress {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 200;
    border: none;
}

.reading-progress::-webkit-progress-bar {
    background: transparent;
}

.reading-progress::-webkit-progress-value {
    background: var(--vu-color-primary);
    transition: width 0.1s;
}

.reading-progress::-moz-progress-bar {
    background: var(--vu-color-primary);
}


/* ==========================================================================
   14. Author Box
   ========================================================================== */

.author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    background: var(--vu-color-bg);
    border-radius: var(--vu-radius-md);
    margin-top: 48px;
    border-top: 1px solid var(--vu-color-border);
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box h4 {
    font-size: 1.1rem;
}

.author-box p {
    font-size: 0.95rem;
    color: var(--vu-color-text-secondary);
    margin-top: 4px;
}


/* ==========================================================================
   15. Social Share
   ========================================================================== */

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 32px 0;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--vu-color-border);
    color: var(--vu-color-text-secondary);
    background: transparent;
    cursor: pointer;
    transition: all var(--vu-transition);
    text-decoration: none;
}

.share-btn:hover {
    background: var(--vu-color-primary);
    color: #fff;
    border-color: var(--vu-color-primary);
    text-decoration: none;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}


/* ==========================================================================
   16. Related Posts
   ========================================================================== */

.related-posts {
    padding: 48px 0;
    border-top: 1px solid var(--vu-color-border);
    margin-top: 48px;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 32px;
}

.related-posts .post-feed {
    grid-template-columns: repeat(3, 1fr);
}


/* ==========================================================================
   17. Affiliate Disclaimer
   ========================================================================== */

.affiliate-disclaimer {
    background: var(--vu-color-accent-warm-light);
    border-left: 4px solid var(--vu-color-accent-warm);
    padding: 16px 20px;
    border-radius: var(--vu-radius-sm);
    font-size: 0.9rem;
    color: var(--vu-color-text-secondary);
    margin-bottom: 32px;
}


/* ==========================================================================
   18. Audience Feedback
   ========================================================================== */

.audience-feedback {
    text-align: center;
    padding: 32px;
    margin: 32px 0;
}

.audience-feedback h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.feedback-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.feedback-btn {
    padding: 12px 24px;
    border-radius: var(--vu-radius-sm);
    border: 1px solid var(--vu-color-border);
    background: var(--vu-color-bg-card);
    cursor: pointer;
    transition: all var(--vu-transition);
    font-size: 1rem;
}

.feedback-btn:hover {
    border-color: var(--vu-color-primary);
    color: var(--vu-color-primary);
}


/* ==========================================================================
   19. Newsletter Landing Page
   ========================================================================== */

.newsletter-landing {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 20px;
}

.newsletter-hero {
    text-align: center;
    padding: 64px 0;
}

.newsletter-hero h1 {
    font-size: 2.5rem;
}

.newsletter-hero p {
    font-size: 1.2rem;
    color: var(--vu-color-text-secondary);
    margin: 16px auto 32px;
    max-width: 600px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 48px 0;
}

.benefit-card {
    background: var(--vu-color-bg-card);
    border-radius: var(--vu-radius-md);
    padding: 32px;
    text-align: center;
}

.benefit-card .benefit-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--vu-color-text-secondary);
}

.social-proof {
    text-align: center;
    padding: 48px 0;
}

.social-proof .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vu-color-primary);
}

.faq-section details {
    border-bottom: 1px solid var(--vu-color-border);
    padding: 16px 0;
}

.faq-section summary {
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    list-style: none;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section details[open] summary {
    color: var(--vu-color-primary);
}

.faq-section details p {
    padding: 8px 0 16px;
    color: var(--vu-color-text-secondary);
}

.already-subscribed {
    text-align: center;
    padding: 120px 20px;
}


/* ==========================================================================
   20. Tag Page
   ========================================================================== */

.tag-header {
    text-align: center;
    padding: 48px 0;
}

.tag-hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--vu-color-primary-very-light);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.tag-hero-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* ==========================================================================
   21. Author Page
   ========================================================================== */

.author-header {
    text-align: center;
    padding: 48px 0;
}

.author-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 24px;
}


/* ==========================================================================
   22. Error 404
   ========================================================================== */

.error-page {
    text-align: center;
    padding: 120px 20px;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--vu-color-primary);
}

.error-page p {
    font-size: 1.25rem;
    color: var(--vu-color-text-secondary);
    margin-top: 16px;
}


/* ==========================================================================
   23. Footer
   ========================================================================== */

.site-footer {
    background: linear-gradient(180deg, var(--vu-color-bg) 0%, color-mix(in srgb, var(--vu-color-primary) 8%, var(--vu-color-bg)) 100%);
    padding: 64px 0 32px;
}

html.dark-mode .site-footer {
    background: linear-gradient(180deg, var(--vu-color-bg) 0%, color-mix(in srgb, var(--vu-color-primary) 5%, var(--vu-color-bg)) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-bottom {
    border-top: 1px solid var(--vu-color-border);
    margin-top: 48px;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--vu-color-text-secondary);
}


/* ==========================================================================
   24. Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--vu-color-text-secondary);
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: var(--vu-color-text-secondary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--vu-color-primary);
}

.breadcrumbs span {
    margin: 0 8px;
}


/* ==========================================================================
   25. Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 48px 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


/* ==========================================================================
   26. Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--vu-color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--vu-transition);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--vu-shadow-md);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}


/* ==========================================================================
   Logo Dark Mode Swap
   ========================================================================== */

/* Logo: Dark Mode Swap - nur wenn dark logo existiert */
.logo-dark {
    display: none;
}

html.dark-mode .logo-default {
    display: block; /* Standard-Logo bleibt sichtbar als Fallback */
}
html.dark-mode .site-logo:has(.logo-dark) .logo-default,
html.dark-mode .footer-logo:has(.logo-dark) .logo-default {
    display: none; /* Nur verstecken wenn Dark-Logo existiert */
}
html.dark-mode .logo-dark {
    display: block;
}

/* Auto Color: gleiche Logik */
@media (prefers-color-scheme: dark) {
    html.auto-color .logo-default {
        display: block;
    }
    html.auto-color .site-logo:has(.logo-dark) .logo-default,
    html.auto-color .footer-logo:has(.logo-dark) .logo-default {
        display: none;
    }
    html.auto-color .logo-dark {
        display: block;
    }
}

/* Fallback für Browser ohne :has() Support */
@supports not (selector(:has(*))) {
    html.dark-mode .logo-default {
        display: block;
    }
    html.dark-mode .logo-dark {
        display: block;
    }
}


/* ==========================================================================
   Header Extras (Avatar Placeholder, Hamburger, Mobile Menu)
   ========================================================================== */

.site-title-text {
    font-family: var(--vu-font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vu-color-text);
}

.nav-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--vu-color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Hamburger Lines */
.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--vu-color-text);
    display: block;
    transition: all var(--vu-transition);
}

.nav-hamburger {
    flex-direction: column;
    gap: 5px;
}

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

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

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

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all var(--vu-transition);
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 80vw;
    height: 100vh;
    background: var(--vu-color-bg-card);
    z-index: 200;
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 24px;
}

.mobile-menu-panel.is-open {
    transform: translateX(-320px);
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--vu-color-text);
    padding: 8px;
}

.mobile-menu-search {
    margin-bottom: 24px;
}

.mobile-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--vu-color-bg);
    border: 1px solid var(--vu-color-border);
    border-radius: var(--vu-radius-sm);
    color: var(--vu-color-text-secondary);
    cursor: pointer;
    font-size: 1rem;
}

.mobile-search-btn svg {
    width: 18px;
    height: 18px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid var(--vu-color-border);
}

.mobile-nav-list li a {
    display: block;
    padding: 14px 0;
    color: var(--vu-color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
}

.mobile-nav-list li a:hover {
    color: var(--vu-color-primary);
    text-decoration: none;
}

.mobile-menu-darkmode {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid var(--vu-color-border);
    color: var(--vu-color-text-secondary);
    font-size: 0.95rem;
}

.mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
}

.mobile-menu-cta .btn {
    width: 100%;
    text-align: center;
}


/* ==========================================================================
   Footer Extras (Newsletter, Social, Columns)
   ========================================================================== */

.footer-newsletter {
    text-align: center;
    padding: 48px 0;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--vu-color-border);
}

.footer-newsletter h2 {
    font-size: 1.75rem;
}

.footer-newsletter p {
    color: var(--vu-color-text-secondary);
    margin: 8px 0 24px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo img {
    max-height: 36px;
    width: auto;
}

.footer-about p {
    color: var(--vu-color-text-secondary);
    font-size: 0.95rem;
    margin-top: 12px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    color: var(--vu-color-text-secondary);
    transition: color var(--vu-transition);
}

.footer-social a:hover {
    color: var(--vu-color-primary);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* Footer Columns – einheitlich */
.footer-col h4 {
    font-family: var(--vu-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vu-color-text-secondary);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--vu-color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--vu-color-primary);
}

/* Footer Navigation – beide Spalten identisch, linksbündig */
.site-footer .nav-primary,
.site-footer .nav-secondary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.site-footer .nav-primary li a,
.site-footer .nav-secondary li a {
    color: var(--vu-color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--vu-transition);
}

.site-footer .nav-primary li a:hover,
.site-footer .nav-secondary li a:hover {
    color: var(--vu-color-primary);
}

/* Mobile Menu: Nav-List als vertikale Liste */
.mobile-nav .nav-primary {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-nav .nav-primary .nav-item {
    border-bottom: 1px solid var(--vu-color-border);
}
.mobile-nav .nav-primary .nav-item a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    color: var(--vu-color-text);
    text-decoration: none;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--vu-color-text-secondary);
}


/* ==========================================================================
   Newsletter Landing Page Extras
   ========================================================================== */

/* Newsletter Nav */
.newsletter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: var(--vu-wide-width);
    margin: 0 auto;
}

.newsletter-nav .site-logo img {
    max-height: 36px;
}

.newsletter-back-link {
    color: var(--vu-color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.newsletter-back-link:hover {
    color: var(--vu-color-primary);
}

/* Newsletter Benefits */
.newsletter-benefits {
    padding: 48px 20px;
    background: var(--vu-color-primary-very-light);
    border-radius: var(--vu-radius-lg);
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

/* Newsletter Social Proof */
.newsletter-social-proof {
    text-align: center;
    padding: 48px 20px;
}

/* Newsletter FAQ */
.newsletter-faq {
    padding: 48px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-faq h2 {
    text-align: center;
    margin-bottom: 32px;
}

.newsletter-faq details {
    border-bottom: 1px solid var(--vu-color-border);
    padding: 16px 0;
}

.newsletter-faq summary {
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter-faq summary::-webkit-details-marker {
    display: none;
}

.newsletter-faq summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--vu-color-text-secondary);
    transition: var(--vu-transition);
}

.newsletter-faq details[open] summary::after {
    content: "\2212";
}

.newsletter-faq details p {
    padding: 8px 0 16px;
    color: var(--vu-color-text-secondary);
    line-height: 1.6;
}

/* Newsletter Final CTA */
.newsletter-final-cta {
    text-align: center;
    padding: 64px 20px;
    background: var(--vu-color-primary-very-light);
    margin-top: 48px;
    border-radius: var(--vu-radius-lg);
}

.newsletter-final-cta h2 {
    margin-bottom: 24px;
}

/* Newsletter Hero Badge */
.newsletter-hero-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--vu-color-primary);
    background: var(--vu-color-primary-very-light);
    padding: 8px 20px;
    border-radius: var(--vu-radius-full);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.newsletter-hero-sub {
    font-size: 1.2rem;
    color: var(--vu-color-text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.newsletter-hero-note {
    font-size: 0.85rem;
    color: var(--vu-color-text-secondary);
    margin-top: 16px;
}

/* Section Headlines */
.section-headline {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.75rem;
}

/* Mid CTA */
.newsletter-mid-cta {
    text-align: center;
    padding: 48px 20px;
}
.newsletter-mid-cta h2 {
    margin-bottom: 24px;
}

/* Newsletter Preview Mockup */
.newsletter-preview {
    padding: 48px 20px;
}
.newsletter-preview h2 {
    text-align: center;
    margin-bottom: 32px;
}
.preview-mockup {
    max-width: 500px;
    margin: 0 auto;
}
.preview-email {
    background: var(--vu-color-bg-card);
    border: 1px solid var(--vu-color-border);
    border-radius: var(--vu-radius-md);
    overflow: hidden;
    box-shadow: var(--vu-shadow-lg);
}
.preview-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--vu-color-primary-very-light);
    font-size: 0.8rem;
    color: var(--vu-color-text-secondary);
}
.preview-subject {
    padding: 16px 20px;
    border-bottom: 1px solid var(--vu-color-border);
    font-size: 1rem;
}
.preview-body {
    padding: 24px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--vu-color-text);
    max-height: 500px;
    overflow-y: auto;
}
.preview-body p {
    margin-bottom: 8px;
}
.preview-body a {
    color: var(--vu-color-primary);
    text-decoration: none;
}
.preview-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--vu-color-text-secondary);
    margin-top: 16px;
    font-style: italic;
}

/* Newsletter Footer (Legal) */
.newsletter-footer {
    padding: 32px 20px;
    margin-top: 64px;
    border-top: 1px solid var(--vu-color-border);
}
.newsletter-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.newsletter-footer-links a {
    color: var(--vu-color-text-secondary);
    text-decoration: none;
}
.newsletter-footer-links a:hover {
    color: var(--vu-color-primary);
}
.newsletter-footer-links span {
    color: var(--vu-color-border);
}
.newsletter-footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: var(--vu-color-text-secondary);
    margin-top: 12px;
}

/* Already Subscribed */
.already-subscribed h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.already-subscribed p {
    color: var(--vu-color-text-secondary);
    margin-bottom: 16px;
}

/* Hide Header/Footer on Newsletter Landing */
body.page-newsletter .site-header {
    display: none;
}

body.page-newsletter .site-footer {
    display: none;
}


/* ==========================================================================
   Tag Page Extras
   ========================================================================== */

.tag-description {
    font-size: 1.1rem;
    color: var(--vu-color-text-secondary);
    max-width: 600px;
    margin: 12px auto 0;
}

.tag-post-count {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--vu-color-text-secondary);
}


/* ==========================================================================
   Author Page Extras
   ========================================================================== */

.author-bio {
    font-size: 1.1rem;
    color: var(--vu-color-text-secondary);
    max-width: 600px;
    margin: 12px auto 0;
    line-height: 1.6;
}

.author-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 0.9rem;
}

.author-meta a {
    color: var(--vu-color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.author-meta a svg {
    width: 16px;
    height: 16px;
}

.author-location {
    color: var(--vu-color-text-secondary);
}


/* ==========================================================================
   Page Default / About
   ========================================================================== */

.page-header {
    text-align: center;
    padding: 48px 0;
}

.page-content {
    padding-bottom: 64px;
}

.page-content .gh-content {
    font-size: 1.125rem;
    line-height: 1.8;
}


/* ==========================================================================
   Error Page Buttons
   ========================================================================== */

.error-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
    flex-wrap: wrap;
}
.error-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Featured Posts Section
   ========================================================================== */

.featured-section {
    padding: 48px 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--vu-color-border);
}
.featured-header {
    text-align: center;
    margin-bottom: 32px;
}
.featured-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vu-color-accent-warm);
    margin-bottom: 8px;
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.featured-grid .post-card {
    border: 1px solid var(--vu-color-accent-warm-light);
}
.featured-grid .post-card:hover {
    border-color: var(--vu-color-accent-warm);
}

/* ==========================================================================
   About Teaser Section
   ========================================================================== */

.about-teaser {
    padding: 64px 0;
}
.about-teaser-inner {
    display: flex;
    align-items: center;
    gap: 48px;
}
.about-teaser-content {
    flex: 1;
}
.about-teaser-content h2 {
    margin-bottom: 16px;
}
.about-teaser-content p {
    color: var(--vu-color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}
.author-avatars {
    display: flex;
}
.about-author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--vu-color-bg-card);
    margin-left: -12px;
}
.about-author-avatar:first-child {
    margin-left: 0;
}

/* ==========================================================================
   Topics Scroll Hint
   ========================================================================== */

.topics-scroll-wrapper {
    position: relative;
}
.topics-scroll-hint {
    display: none;
    text-align: center;
    padding: 12px 0 0;
    font-size: 0.85rem;
    color: var(--vu-color-text-secondary);
    animation: fadeInOut 2s ease-in-out infinite;
}
@keyframes fadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}


/* ==========================================================================
   27. Print Stylesheet
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .newsletter-cta,
    .newsletter-cta-inline,
    .toc-sidebar,
    .toc-mobile,
    .reading-progress,
    .share-buttons,
    .related-posts,
    .back-to-top,
    .dark-mode-toggle,
    .nav-search,
    .audience-feedback,
    .affiliate-disclaimer {
        display: none !important;
    }

    .post-content-wrapper {
        display: block;
    }

    .gh-content {
        max-width: 100%;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    img {
        max-width: 100% !important;
    }
}


/* ==========================================================================
   28. Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1023px) {
    .table-scroll-wrapper {
        max-width: calc(100vw - 40px);
        width: calc(100vw - 40px);
    }

    .header-right .nav-search,
    .header-right .dark-mode-toggle {
        display: none;
    }

    .header-right .nav-login-link {
        display: none;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-content-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .toc-sidebar {
        display: none;
    }

    .toc-mobile {
        display: block;
        margin-bottom: 24px;
    }

    .post-content-spacer {
        display: none;
    }

    .gh-content {
        grid-column: 1;
    }

    .post-title {
        font-size: 2rem;
    }

    .related-posts .post-feed {
        grid-template-columns: 1fr;
    }

    .post-feed {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .newsletter-hero h1 {
        font-size: 1.75rem;
    }

    .newsletter-nav {
        padding: 16px;
    }

    .newsletter-hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .preview-header {
        flex-direction: column;
        gap: 4px;
    }

    .post-feed {
        grid-template-columns: 1fr;
    }

    /* Large Card auf Mobile: gleich wie normale Cards */
    .post-card-large .post-card-link {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .post-card-large .post-card-content {
        padding: 24px;
    }
    .post-card-large .post-card-title {
        font-size: 1.25rem;
    }
    .post-card-large .post-card-excerpt {
        font-size: 0.95rem;
    }

    /* Einheitliche Card-Darstellung */
    .post-feed .post-card,
    .post-feed .post-card-large {
        border-radius: var(--vu-radius-md);
        overflow: hidden;
        background: var(--vu-color-bg-card);
        box-shadow: var(--vu-shadow-sm);
    }
    .post-feed-mixed .post-card:first-child {
        grid-column: 1; /* Nicht mehr volle Breite auf Mobile */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-image {
        min-height: 400px;
    }

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

    .post-feed-list .post-card .post-card-link {
        grid-template-columns: 1fr;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-excerpt {
        font-size: 1.1rem;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-box-links {
        justify-content: center;
    }

    .main-nav .nav-primary {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .tag-hero-icon {
        width: 80px;
        height: 80px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .about-teaser-inner {
        flex-direction: column;
        text-align: center;
    }

    .topics-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 16px;
        scrollbar-width: none;
    }
    .topics-grid::-webkit-scrollbar {
        display: none;
    }
    .topics-grid .topic-card {
        flex: 0 0 160px;
        scroll-snap-align: start;
    }
    .topics-scroll-hint {
        display: block;
    }

    .related-posts .post-feed {
        grid-template-columns: 1fr;
    }

    .newsletter-cta {
        padding: 32px 20px;
    }

    .hero {
        padding: 48px 0;
    }
}

/* Small phones */
@media (max-width: 374px) {
    body {
        font-size: 16px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero h1 {
        font-size: 1.75rem;
    }

    .post-header h1 {
        font-size: 1.75rem;
    }

    .container,
    .container-narrow,
    .container-full {
        padding: 0 12px;
    }

    .post-card-content {
        padding: 16px;
    }

    .newsletter-cta {
        padding: 24px 16px;
    }
}

/* ===========================================
   THANK YOU PAGE
   =========================================== */

.thankyou-page {
    background: var(--vu-color-bg);
}

/* Verstecke Header und Footer auf Danke-Seite */
body.page-danke-anmeldung .site-header,
body.page-danke-anmeldung .site-footer {
    display: none;
}

/* Verstecke Exit-Popup auf Danke-Seite */
body.page-danke-anmeldung .exit-popup-overlay {
    display: none !important;
}

/* Hero */
.thankyou-hero {
    text-align: center;
    padding: 80px 20px 48px;
}
.thankyou-checkmark {
    width: 80px;
    height: 80px;
    color: var(--vu-color-primary);
    margin: 0 auto 24px;
    animation: checkPop 0.5s ease-out;
}
@keyframes checkPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
.thankyou-hero h1 {
    font-size: 2.25rem;
    margin-bottom: 16px;
}
.thankyou-hero-sub {
    font-size: 1.15rem;
    color: var(--vu-color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Next Steps */
.thankyou-next-steps {
    padding: 48px 20px;
}
.thankyou-next-steps h2 {
    text-align: center;
    margin-bottom: 40px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.step-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--vu-color-bg-card);
    border-radius: var(--vu-radius-md);
    border: 1px solid var(--vu-color-border);
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--vu-color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 16px;
    font-family: var(--vu-font-heading);
}
.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.step-card p {
    font-size: 0.95rem;
    color: var(--vu-color-text-secondary);
    line-height: 1.6;
}
.step-hint {
    display: block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--vu-color-primary);
    font-style: italic;
}

/* Persönliche Nachricht */
.thankyou-personal {
    padding: 48px 20px;
}
.personal-message {
    background: var(--vu-color-primary-very-light);
    border-radius: var(--vu-radius-lg);
    padding: 40px;
    border: none;
    margin: 0;
    text-align: center;
    font-style: normal;
}
.personal-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--vu-color-text);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}
.personal-authors {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.author-avatars-row {
    display: flex;
    justify-content: center;
}
.thankyou-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--vu-color-bg-card);
    margin-left: -8px;
}
.thankyou-avatar:first-child {
    margin-left: 0;
}
.personal-authors span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vu-color-text);
}

/* Empfohlene Artikel */
.thankyou-recommended {
    padding: 48px 20px;
}
.thankyou-recommended h2 {
    text-align: center;
    margin-bottom: 8px;
}
.section-subtitle {
    text-align: center;
    color: var(--vu-color-text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
}

/* Social Sharing */
.thankyou-share {
    text-align: center;
    padding: 48px 20px;
    background: var(--vu-color-primary-very-light);
    border-radius: var(--vu-radius-lg);
    max-width: 700px;
    margin: 0 auto 48px;
}
.thankyou-share h3 {
    margin-bottom: 8px;
}
.thankyou-share p {
    color: var(--vu-color-text-secondary);
    margin-bottom: 20px;
}
.thankyou-share .share-buttons {
    justify-content: center;
}

/* Extra Content aus Ghost Editor */
.thankyou-extra-content:empty {
    display: none;
}
.thankyou-extra-content {
    padding: 24px 20px 48px;
}

/* Responsive Thank You */
@media (max-width: 767px) {
    .thankyou-hero h1 {
        font-size: 1.75rem;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .personal-message {
        padding: 24px;
    }
    .thankyou-recommended .post-feed {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .thankyou-recommended .post-feed {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================================
   EXIT-INTENT POPUP
   =========================================== */

.exit-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.exit-popup {
    background: var(--vu-color-bg-card);
    border-radius: var(--vu-radius-lg);
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: var(--vu-shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.exit-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--vu-color-text-secondary);
    padding: 4px 8px;
}
.exit-popup-close:hover {
    color: var(--vu-color-text);
}

.exit-popup h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.exit-popup p {
    color: var(--vu-color-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.exit-popup-cta {
    width: 100%;
    display: block;
}

.exit-popup-dismiss {
    background: none;
    border: none;
    color: var(--vu-color-text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 16px;
    padding: 8px;
}
.exit-popup-dismiss:hover {
    color: var(--vu-color-text);
}

@media (max-width: 767px) {
    .exit-popup {
        padding: 32px 24px;
    }
    .exit-popup h2 {
        font-size: 1.25rem;
    }
}
