/*
Theme Name: DerKinoBlog
Description: Ultra-modernes WordPress Classic Theme für Film-Reviews mit CSS Custom Properties, Animationen und Dark Mode
Author: DerKinoBlog Team
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: derkinoblog
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, classic-editor, accessibility-ready, dark-mode, modern-css
*/

/* ==========================================================================
   CSS Custom Properties System & Dark Mode Support
   ========================================================================== */

:root {
    /* Color System - Light Mode */
    --color-primary: #dc2626;
    --color-primary-hover: #b91c1c;
    --color-secondary: #1e40af;
    --color-secondary-hover: #1d4ed8;
    --color-accent: #10b981;
    --color-accent-hover: #059669;
    
    /* Grayscale Palette */
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Semantic Colors */
    --color-background: var(--color-white);
    --color-surface: var(--color-gray-50);
    --color-card: var(--color-white);
    --color-text: var(--color-gray-900);
    --color-text-secondary: var(--color-gray-600);
    --color-text-muted: var(--color-gray-500);
    --color-border: var(--color-gray-200);
    --color-border-light: var(--color-gray-100);
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-shadow-hover: rgba(0, 0, 0, 0.15);
    
    /* Gradient System */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-hover));
    --gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    --gradient-surface: linear-gradient(135deg, var(--color-gray-50), var(--color-gray-100));
    --gradient-hero: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(30, 64, 175, 0.9));
    
    /* Typography Scale */
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-serif: 'Merriweather', Georgia, serif;
    --font-family-mono: 'Fira Code', Consolas, 'Liberation Mono', Menlo, monospace;
    
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */
    --font-size-6xl: 3.75rem;     /* 60px */
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* Spacing Scale */
    --space-0: 0;
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    --space-32: 8rem;      /* 128px */
    
    /* Border Radius Scale */
    --radius-none: 0;
    --radius-sm: 0.125rem;
    --radius-base: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadow System */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Animation Properties */
    --duration-instant: 0ms;
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 750ms;
    
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-Index Scale */
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-auto: auto;
    
    /* Layout Properties */
    --container-max-width: 1200px;
    --container-padding: var(--space-6);
    --header-height: 80px;
    --hero-height: 400px;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode Color Overrides */
        --color-background: var(--color-gray-900);
        --color-surface: var(--color-gray-800);
        --color-card: var(--color-gray-800);
        --color-text: var(--color-gray-100);
        --color-text-secondary: var(--color-gray-300);
        --color-text-muted: var(--color-gray-400);
        --color-border: var(--color-gray-700);
        --color-border-light: var(--color-gray-600);
        --color-shadow: rgba(0, 0, 0, 0.3);
        --color-shadow-hover: rgba(0, 0, 0, 0.4);
        
        /* Dark Mode Gradients */
        --gradient-surface: linear-gradient(135deg, var(--color-gray-800), var(--color-gray-700));
        --gradient-hero: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(30, 64, 175, 0.8));
    }
}

/* Dark Mode Toggle Class (Manual Override) */
[data-theme="dark"] {
    --color-background: var(--color-gray-900);
    --color-surface: var(--color-gray-800);
    --color-card: var(--color-gray-800);
    --color-text: var(--color-gray-100);
    --color-text-secondary: var(--color-gray-300);
    --color-text-muted: var(--color-gray-400);
    --color-border: var(--color-gray-700);
    --color-border-light: var(--color-gray-600);
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-hover: rgba(0, 0, 0, 0.4);
    
    --gradient-surface: linear-gradient(135deg, var(--color-gray-800), var(--color-gray-700));
    --gradient-hero: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(30, 64, 175, 0.8));
}

/* ==========================================================================
   CSS Reset & Modern Base Styles
   ========================================================================== */

/* Enhanced Reset with Modern Standards */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Modern responsive font sizing */
    font-size: clamp(14px, 1vw + 0.5rem, 18px);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    transition: background-color var(--duration-normal) var(--ease-out),
                color var(--duration-normal) var(--ease-out);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 60px; /* Platz für Fixed Navigation */
}

/* Focus Management für Accessibility */
:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Selection Styling */
::selection {
    background: var(--color-primary);
    color: var(--color-white);
    text-shadow: none;
}

::-moz-selection {
    background: var(--color-primary);
    color: var(--color-white);
    text-shadow: none;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   CSS Reset & Base Styles (Legacy)
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation - Modern Enhanced
   ========================================================================== */

.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-branding {
    padding: 1rem 0;
    text-align: center;
}

/* Site branding - Kompakt */
.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: 0;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    color: inherit;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
}

/* ==========================================================================
   Neue Top Navigation - Strukturiert nach Anforderungen
   ========================================================================== */

.top-navigation {
    background: var(--color-white);
    box-shadow: var(--shadow-base);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-50);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 60px;
    transition: all var(--duration-normal) var(--ease-out);
    border-bottom: 1px solid var(--color-border);
}

/* Top Navigation Wrapper - Neue Struktur */
.top-nav-wrapper {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 var(--space-6);
    gap: var(--space-4);
}

/* Home Button (ganz links) */
.nav-home {
    flex-shrink: 0;
}

.home-button {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--gradient-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: all var(--duration-normal) var(--ease-out);
    border: 2px solid transparent;
}

.home-button:hover {
    background: var(--gradient-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--color-white);
}

.home-button:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.home-icon {
    font-size: var(--font-size-base);
    line-height: 1;
}

.home-text {
    font-family: inherit;
    font-weight: inherit;
}

/* Navigation Menu Container (zentraler Bereich) */
.nav-menu-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    margin-left: var(--space-6);
}

.primary-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.primary-nav-menu li {
    position: relative;
}

.primary-nav-menu a {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    color: var(--color-text);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
}

.primary-nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width var(--duration-normal) var(--ease-out);
}

.primary-nav-menu a:hover {
    color: var(--color-primary);
    background: var(--color-surface);
    text-decoration: none;
}

.primary-nav-menu a:hover::before {
    width: 80%;
}

.primary-nav-menu a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Submenu für Backend-Menüs */
.primary-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: var(--z-50);
    border: 1px solid var(--color-border);
}

.primary-nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-nav-menu .sub-menu a {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    width: 100%;
    justify-content: flex-start;
}

.primary-nav-menu .sub-menu a::before {
    display: none;
}

.primary-nav-menu .sub-menu a:hover {
    background: var(--color-surface);
}

/* Navigation Controls (ganz rechts) */
.nav-controls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

#dark-mode-toggle-container {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-1px);
}

.nav-menu .current-menu-item a {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.15);
}

/* Dropdown Menus */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-menu li:hover .sub-menu,
.nav-menu li:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 0;
}

.nav-menu .sub-menu a:hover {
    color: #dc2626;
    background: #f8f9fa;
    transform: none;
}

/* Header Search - Professionell */
.header-search {
    position: relative;
    min-width: 280px;
    flex-shrink: 0;
}

.header-search .search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.header-search .search-form:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.header-search .search-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.header-search .search-field {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: none;
    background: transparent;
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-family: inherit;
    transition: all var(--duration-normal) var(--ease-out);
}

.header-search .search-field::placeholder {
    color: var(--color-text-muted);
    opacity: 1;
}

.header-search .search-field:focus {
    outline: none;
}

.header-search .search-submit {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-1);
    transition: all var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
}

.header-search .search-submit:hover {
    background: var(--gradient-secondary);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.header-search .search-submit:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.header-search .search-icon {
    font-size: var(--font-size-sm);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #fff;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-header {
    background: linear-gradient(135deg, #dc2626, #1e40af);
    color: white;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin: 0 0 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 0;
    opacity: 0.9;
}

/* ==========================================================================
   Breadcrumbs Navigation
   ========================================================================== */

.breadcrumbs {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    position: relative;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    text-decoration: none;
}

.breadcrumb-item.current span {
    color: #495057;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

.breadcrumb-separator {
    color: #adb5bd;
    font-weight: normal;
    user-select: none;
    margin: 0 0.25rem;
}

/* Breadcrumbs Responsive */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .breadcrumb-list {
        gap: 0.25rem;
    }
    
    .breadcrumb-item a,
    .breadcrumb-item.current span {
        padding: 0.125rem 0.375rem;
    }
    
    .breadcrumb-separator {
        margin: 0 0.125rem;
    }
}

/* Accessibility Enhancements */
.breadcrumb-item a:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Schema.org JSON-LD Script - hidden */
script[type="application/ld+json"] {
    display: none;
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

.site-main {
    padding: 2rem 0;
    background: #fff;
    min-height: 50vh;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.content-area.has-sidebar {
    grid-template-columns: 2fr 1fr;
}

/* ==========================================================================
   Enhanced Post Cards System
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card {
    background: var(--color-card);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-slow) var(--ease-in-out);
    border: 1px solid var(--color-border-light);
    position: relative;
    will-change: transform;
}

.post-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.02), rgba(30, 64, 175, 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.post-card:hover::before {
    opacity: 1;
}

.post-featured-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-featured-image img {
    transform: scale(1.05);
}

.post-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.post-card:hover .post-image-overlay {
    opacity: 1;
}

.post-content-wrapper {
    padding: 2rem;
    position: relative;
}

.post-categories {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-category {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: inline-block;
}

.post-category:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.post-header {
    margin-bottom: 1rem;
}

.post-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.post-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #dc2626;
    text-decoration: none;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-meta a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-meta a:hover {
    color: #dc2626;
}

.meta-separator {
    color: #d1d5db;
    font-weight: normal;
    user-select: none;
}

.post-excerpt {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid #dc2626;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.875rem;
}

.read-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #dc2626;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.read-more:hover::before {
    transform: scaleX(1);
}

.read-more:hover {
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.read-more-arrow {
    transition: transform 0.3s ease;
}

.read-more:hover .read-more-arrow {
    transform: translateX(4px);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8125rem;
}

.tags-label {
    color: #6b7280;
    font-weight: 500;
}

.post-tags a {
    color: #6b7280;
    text-decoration: none;
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.post-tags a:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-content-wrapper {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .read-more {
        justify-content: center;
    }
}

/* ==========================================================================
   Custom Post Types - Filme und Schauspieler
   ========================================================================== */

/* Archive Headers */
.archive-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.archive-description {
    color: #6b7280;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.archive-stats {
    margin-bottom: 2rem;
    text-align: center;
}

.results-count {
    color: #495057;
    font-weight: 600;
    background: #f8f9fa;
    padding: 1rem 2rem;
    border-radius: 25px;
    display: inline-block;
    border: 1px solid #dee2e6;
}

/* Film Grid */
.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.film-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.film-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.film-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #f8f9fa;
}

.poster-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.film-card:hover .film-poster img {
    transform: scale(1.1);
}

.poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(30, 64, 175, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    text-align: center;
    padding: 1rem;
}

.film-card:hover .poster-overlay {
    opacity: 1;
}

.no-poster {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
    text-align: center;
    padding: 2rem;
}

.poster-placeholder {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.film-year-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.film-content {
    padding: 1.5rem;
}

.film-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.film-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.film-title a:hover {
    color: #dc2626;
}

.film-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.genre-tag {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.genre-tag:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.film-meta {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.film-meta-item {
    margin-bottom: 0.5rem;
}

.meta-label {
    font-weight: 600;
    color: #495057;
}

.film-meta a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.film-meta a:hover {
    color: #dc2626;
}

.film-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.film-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.read-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dc2626;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.read-review-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.read-review-btn:hover::before {
    transform: scaleX(1);
}

.read-review-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    text-decoration: none;
}

.comments-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.comments-link:hover {
    color: #dc2626;
}

/* Schauspieler Grid */
.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.actor-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    min-height: 200px;
}

.actor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.actor-photo {
    position: relative;
    width: 150px;
    flex-shrink: 0;
    background: #f8f9fa;
}

.photo-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.actor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.actor-card:hover .actor-photo img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(30, 64, 175, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

.actor-card:hover .photo-overlay {
    opacity: 1;
}

.no-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
    text-align: center;
    padding: 1rem;
}

.photo-placeholder {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.nationality-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.actor-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.actor-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.actor-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.actor-name a:hover {
    color: #dc2626;
}

.actor-nationalities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.nationality-tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.nationality-tag:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    text-decoration: none;
}

.actor-meta {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.actor-meta-item {
    margin-bottom: 0.5rem;
}

.actor-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    flex: 1;
}

.related-films {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.related-films h4 {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
}

.related-films-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.related-film-link {
    background: white;
    color: #495057;
    padding: 0.375rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8125rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    font-weight: 500;
}

.related-film-link:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    text-decoration: none;
}

.view-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dc2626;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.view-profile-btn:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .films-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .actors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .actor-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .actor-photo {
        width: 100%;
        height: 200px;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .films-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .film-footer,
    .actor-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .read-review-btn,
    .view-profile-btn {
        justify-content: center;
    }
}

/* ==========================================================================
   ACF Enhanced Features
   ========================================================================== */

/* Star Rating System */
.film-rating-meta {
    grid-column: 1 / -1;
    margin-bottom: 1rem !important;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.star {
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: default;
}

.star.filled {
    color: #fbbf24;
    filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.5));
}

.star.half {
    color: #fbbf24;
    filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.3));
    opacity: 0.6;
}

.star.empty {
    color: #d1d5db;
    opacity: 0.5;
}

.rating-number {
    font-weight: 700;
    color: #dc2626;
    font-size: 1.125rem;
    margin-left: 0.5rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FSK Badges */
.fsk-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.fsk-badge.fsk-fsk0 {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #059669;
}

.fsk-badge.fsk-fsk6 {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: #2563eb;
}

.fsk-badge.fsk-fsk12 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: #d97706;
}

.fsk-badge.fsk-fsk16 {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-color: #dc2626;
}

.fsk-badge.fsk-fsk18 {
    background: linear-gradient(135deg, #7c2d12, #991b1b);
    color: white;
    border-color: #991b1b;
}

.fsk-badge.fsk-unrated {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border-color: #4b5563;
}

/* Film Cast Section */
.film-cast {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.film-cast h4 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.film-cast h4::before {
    content: '🎭';
    font-size: 1.2em;
}

.cast-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.cast-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #495057;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cast-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #dc2626;
    border-color: #dc2626;
}

.cast-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 3px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.cast-member:hover img {
    border-color: #dc2626;
}

.cast-name {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Actor Social Media */
.actor-social-media {
    margin: 1rem 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid;
}

.social-link.instagram {
    background: linear-gradient(135deg, #e4405f, #c13584);
    color: white;
    border-color: #c13584;
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, #c13584, #8a3ab9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 64, 95, 0.3);
    color: white;
    text-decoration: none;
}

.social-link.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
    border-color: #0d8bd9;
}

.social-link.twitter:hover {
    background: linear-gradient(135deg, #0d8bd9, #0a7bc4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
    color: white;
    text-decoration: none;
}

/* Actor Age Display */
.age {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Enhanced Film Meta Grid */
.film-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

/* Enhanced Actor Meta */
.actor-meta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

/* Mobile Responsive ACF */
@media (max-width: 768px) {
    .cast-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .cast-member {
        padding: 0.75rem;
    }
    
    .cast-member img {
        width: 60px;
        height: 60px;
    }
    
    .film-meta {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .star-rating {
        justify-content: center;
    }
    
    .actor-social-media {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cast-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .social-link {
        flex: 1;
        justify-content: center;
        max-width: 150px;
    }
}

/* ==========================================================================
   Advanced Animations & Micro-Interactions
   ========================================================================== */

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(var(--space-4));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-var(--space-8));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(var(--space-8));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-var(--space-2));
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--color-primary);
    }
    50% {
        box-shadow: 0 0 20px var(--color-primary), 0 0 30px var(--color-primary);
    }
}

/* Progressive Loading Animation */
.animate-fade-in {
    animation: fadeIn var(--duration-slow) var(--ease-out) forwards;
}

.animate-slide-in-left {
    animation: slideInFromLeft var(--duration-slow) var(--ease-out) forwards;
}

.animate-slide-in-right {
    animation: slideInFromRight var(--duration-slow) var(--ease-out) forwards;
}

.animate-scale-in {
    animation: scaleIn var(--duration-normal) var(--ease-bounce) forwards;
}

/* Staggered Animation Classes */
.stagger-fade-in > * {
    opacity: 0;
    animation: fadeIn var(--duration-slow) var(--ease-out) forwards;
}

.stagger-fade-in > *:nth-child(1) { animation-delay: 0ms; }
.stagger-fade-in > *:nth-child(2) { animation-delay: 100ms; }
.stagger-fade-in > *:nth-child(3) { animation-delay: 200ms; }
.stagger-fade-in > *:nth-child(4) { animation-delay: 300ms; }
.stagger-fade-in > *:nth-child(5) { animation-delay: 400ms; }
.stagger-fade-in > *:nth-child(6) { animation-delay: 500ms; }

/* Enhanced Hover Effects */
.hover-lift {
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.hover-lift:hover {
    transform: translateY(-var(--space-2));
    box-shadow: var(--shadow-lg);
}

.hover-scale {
    transition: transform var(--duration-normal) var(--ease-out);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    position: relative;
    transition: all var(--duration-normal) var(--ease-out);
}

.hover-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.hover-glow:hover::before {
    opacity: 0.7;
    animation: glow 2s ease-in-out infinite;
}

/* Text Animation Effects */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.text-shadow-dynamic {
    transition: text-shadow var(--duration-normal) var(--ease-out);
}

.text-shadow-dynamic:hover {
    text-shadow: 0 0 8px var(--color-primary);
}

/* Button Animation Enhancements */
.btn-animated {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all var(--duration-normal) var(--ease-out);
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all var(--duration-slow) var(--ease-out);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.btn-animated:hover::before {
    width: 300px;
    height: 300px;
}

.btn-animated:active {
    transform: scale(0.98);
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(
        90deg,
        var(--color-gray-200) 25%,
        var(--color-gray-100) 50%,
        var(--color-gray-200) 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

.loading-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.loading-float {
    animation: float 3s ease-in-out infinite;
}

/* Scroll-based Animations (with Intersection Observer) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(var(--space-8));
    transition: all var(--duration-slower) var(--ease-out);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-var(--space-8));
    transition: all var(--duration-slower) var(--ease-out);
}

.scroll-reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(var(--space-8));
    transition: all var(--duration-slower) var(--ease-out);
}

.scroll-reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Parallax Effect Classes */
.parallax-element {
    will-change: transform;
    transition: transform var(--duration-fast) linear;
}

/* 3D Transform Effects */
.transform-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d {
    transition: transform var(--duration-normal) var(--ease-out);
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(var(--space-4));
}

/* Morphing Shapes */
.morph-circle-to-square {
    border-radius: var(--radius-full);
    transition: border-radius var(--duration-slow) var(--ease-in-out);
}

.morph-circle-to-square:hover {
    border-radius: var(--radius-lg);
}

/* Glass Morphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Neon Glow Effects */
.neon-glow {
    text-shadow: 
        0 0 5px var(--color-primary),
        0 0 10px var(--color-primary),
        0 0 15px var(--color-primary),
        0 0 20px var(--color-primary);
    animation: glow 2s ease-in-out infinite alternate;
}

/* Interactive Border Animations */
.border-draw {
    position: relative;
    background: transparent;
    border: 2px solid transparent;
}

.border-draw::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--color-primary);
    border-radius: inherit;
    clip-path: polygon(
        0 0, 
        0 0, 
        0 100%, 
        0 100%
    );
    transition: clip-path var(--duration-slow) var(--ease-out);
}

.border-draw:hover::before {
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% 100%, 
        0 100%
    );
}

/* ==========================================================================
   Dark Mode Toggle Button & Ripple Effects
   ========================================================================== */

.dark-mode-toggle {
    position: relative;
    width: 50px;
    height: 28px;
    background: var(--color-border);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    overflow: hidden;
    margin-left: var(--space-4);
    order: 3;
}

.dark-mode-toggle:hover {
    background: var(--color-border-light);
    transform: scale(1.05);
}

.dark-mode-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.dark-mode-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: var(--color-white);
    border-radius: 50%;
    transition: all var(--duration-normal) var(--ease-bounce);
    box-shadow: var(--shadow-sm);
}

.dark-mode-toggle.dark {
    background: var(--color-primary);
}

.dark-mode-toggle.dark::before {
    transform: translateX(22px);
    background: var(--color-gray-800);
}

.dark-mode-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: all var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.dark-mode-icon.sun {
    left: 6px;
    opacity: 1;
}

.dark-mode-icon.moon {
    right: 6px;
    opacity: 0;
}

.dark-mode-toggle.dark .dark-mode-icon.sun {
    opacity: 0;
}

.dark-mode-toggle.dark .dark-mode-icon.moon {
    opacity: 1;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Dark Mode Responsive */
@media (max-width: 768px) {
    .dark-mode-toggle {
        width: 44px;
        height: 24px;
        margin-left: var(--space-2);
    }
    
    .dark-mode-toggle::before {
        width: 20px;
        height: 20px;
    }
    
    .dark-mode-toggle.dark::before {
        transform: translateX(18px);
    }
    
    .dark-mode-icon {
        font-size: 12px;
    }
}

/* ==========================================================================
   Modern Footer - Neu erstellt
   ========================================================================== */

.modern-footer {
    background: var(--color-surface);
    color: var(--color-text);
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    position: relative;
    padding: var(--space-8) 0 var(--space-6);
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

/* Footer Content Layout - Kompakt */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-8);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

/* Footer Info Section - Kompakt */
.footer-info {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.footer-title {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: 1.2;
}

.footer-title a {
    color: inherit;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
}

.footer-title a:hover {
    color: var(--color-primary);
}

.footer-description {
    color: var(--color-gray-300);
    line-height: var(--line-height-relaxed);
    margin: 0;
    opacity: 0.9;
}

/* Footer Navigation - Kompakt und Modern */
.footer-nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

.footer-menu li {
    display: flex;
}

.footer-menu li a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.2;
}

.footer-menu li a:hover {
    color: var(--color-primary);
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.footer-menu li a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Social Media Icons - Nur Icons */
.footer-social {
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-gray-300);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.social-icon.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: var(--color-white);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-icon.instagram:hover {
    background: linear-gradient(135deg, #e4405f, #c13584);
    border-color: #e4405f;
    color: var(--color-white);
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

.social-icon.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: var(--color-white);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.social-icon.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: var(--color-white);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: all var(--duration-normal) var(--ease-out);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0 0;
    border-top: 1px solid var(--color-border-light);
    margin-top: 0;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.copyright {
    color: var(--color-text-secondary);
    font-size: var(--font-size-xs);
    margin: 0;
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.footer-legal a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-xs);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-out);
    opacity: 0.8;
}

.footer-legal a:hover {
    color: var(--color-primary);
    background: rgba(220, 38, 38, 0.1);
    text-decoration: none;
    opacity: 1;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: var(--space-8);
        text-align: center;
        padding: var(--space-12) 0 var(--space-8);
    }
    
    .footer-info {
        min-width: auto;
        order: 1;
    }
    
    .footer-nav {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .footer-menu {
        justify-content: center;
        gap: var(--space-3);
        max-width: 100%;
    }
    
    .footer-menu li a {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-xs);
    }
    
    .footer-social {
        order: 3;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
}

@media (max-width: 480px) {
    .footer-menu {
        flex-direction: column;
        gap: var(--space-2);
        width: 100%;
    }
    
    .footer-menu li {
        width: 100%;
        max-width: 200px;
    }
    
    .footer-menu li a {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: var(--space-3) var(--space-4);
    }
}

/* Altes Footer CSS entfernt - Neuer Footer ist aktiv */

/* ==========================================================================
   Footer Dark Mode Enhancement
   ========================================================================== */

/* Enhanced Footer Dark Mode */
@media (prefers-color-scheme: dark) {
    .site-footer {
        background: linear-gradient(135deg, #0a0a0a 0%, var(--color-gray-900) 100%) !important;
    }
    
    .footer-bottom {
        background: #0a0a0a !important;
    }
}

[data-theme="dark"] .site-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, var(--color-gray-900) 100%) !important;
}

[data-theme="dark"] .footer-bottom {
    background: #0a0a0a !important;
}

/* ==========================================================================
   Modern Sidebar - Angepasst an Theme Design
   ========================================================================== */

.primary-sidebar {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    height: fit-content;
    position: sticky;
    top: calc(60px + var(--space-6)); /* Navigation height + spacing */
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-normal) var(--ease-out);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.primary-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Modern Widget Styling */
.widget {
    margin-bottom: var(--space-8);
    padding: var(--space-6);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: 0 0 var(--space-6);
    color: var(--color-text);
    position: relative;
    padding-bottom: var(--space-3);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-light);
    transition: all var(--duration-normal) var(--ease-out);
    border-radius: var(--radius-md);
}

.widget li:last-child {
    border-bottom: none;
}

.widget li:hover {
    background: rgba(220, 38, 38, 0.05);
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
}

.widget a {
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    line-height: var(--line-height-relaxed);
}

.widget a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--duration-normal) var(--ease-out);
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
}

.widget a:hover {
    color: var(--color-primary);
    text-decoration: none;
    transform: translateX(var(--space-2));
}

.widget a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Search Widget Styling */
.widget_search .search-form {
    position: relative;
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.widget_search .search-field {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-background);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    transition: all var(--duration-normal) var(--ease-out);
}

.widget_search .search-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.widget_search .search-submit {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--color-white);
    padding: var(--space-3) var(--space-5);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
}

.widget_search .search-submit:hover {
    background: var(--gradient-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.widget_tag_cloud .tagcloud a {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
}

.widget_tag_cloud .tagcloud a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Categories Widget */
.widget_categories ul {
    margin-top: var(--space-4);
}

.widget_categories .cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories .cat-item .post-count {
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    min-width: 24px;
    text-align: center;
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.single-post {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.entry-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.entry-title {
    font-size: 2.5rem;
    margin: 0 0 1rem;
    color: #333;
}

.entry-meta {
    color: #666;
    font-size: 0.875rem;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
}

.entry-content h2,
.entry-content h3 {
    color: #333;
    margin: 2rem 0 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #1f2937;
    color: #d1d5db;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-footer a {
    color: #dc2626;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination-wrapper {
    margin: 2rem 0;
    text-align: center;
}

.page-numbers {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.page-numbers a,
.page-numbers span {
    padding: 0.5rem 1rem;
    text-decoration: none;
    background: #f8f9fa;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.page-numbers a:hover {
    background: #dc2626;
    color: white;
}

.page-numbers .current {
    background: #dc2626;
    color: white;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .content-area.has-sidebar {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .primary-sidebar {
        position: static;
        margin-top: var(--space-8);
        padding: var(--space-6);
    }
    
    .widget {
        margin-bottom: var(--space-6);
        padding: var(--space-5);
    }
    
    .widget-title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-4);
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .single-post {
        padding: 1rem;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    /* Mobile Navigation - Neue Struktur */
    .top-nav-wrapper {
        position: relative;
        gap: var(--space-2);
        padding: 0 var(--space-4);
    }
    
    .nav-menu-container {
        margin-left: var(--space-2);
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    /* Hide desktop navigation menu on mobile */
    .nav-menu-container {
        display: none;
    }
    
    /* Show mobile navigation when toggled */
    .primary-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: var(--space-4) 0;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--duration-normal) var(--ease-out);
        z-index: var(--z-50);
        border-top: 1px solid var(--color-border);
        gap: 0;
    }
    
    .primary-nav-menu.mobile-menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .primary-nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .primary-nav-menu a {
        padding: var(--space-4) var(--space-6);
        border-radius: 0;
        width: 100%;
        justify-content: flex-start;
        border-bottom: 1px solid var(--color-border-light);
    }
    
    .primary-nav-menu a::before {
        display: none;
    }
    
    .primary-nav-menu a:hover {
        background: var(--color-surface);
        transform: none;
    }
    
    /* Mobile Home Button */
    .home-button {
        padding: var(--space-2) var(--space-3);
        gap: var(--space-1);
    }
    
    .home-text {
        display: none;
    }
    
    /* Mobile Dark Mode Toggle */
    .dark-mode-toggle {
        width: 36px;
        height: 36px;
    }
    
    .header-search {
        order: 2;
        min-width: auto;
        flex: 1;
        max-width: 200px;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1f2937;
        flex-direction: column;
        padding: 1rem;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        gap: 0;
    }
    
    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
    }
    
    .nav-menu a {
        padding: 1rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
    }
    
    .nav-menu li:last-child a {
        border-bottom: none;
    }
    
    /* Mobile Dropdown */
    .nav-menu .sub-menu {
        position: static;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu li:hover .sub-menu,
    .nav-menu li:focus-within .sub-menu {
        max-height: 300px;
    }
    
    .nav-menu .sub-menu a {
        padding: 0.75rem 1rem 0.75rem 2rem;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   WordPress Required Styles
   ========================================================================== */

.wp-caption {
    max-width: 100%;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

.aligncenter {
    display: block;
    margin: 1rem auto;
    text-align: center;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}