/* ============================================
   DIE KI WOCHE — State-of-the-Art News Platform
   Premium Dark Mode · Glassmorphism · Micro-Animations
   DSGVO Compliant (System Fonts, Zero External Deps)
   ============================================ */

/* --- Design Tokens --- */
:root {
    --bg-dark: #0a0a0f;
    --bg-surface: #12121a;
    --bg-card: #1a1a2e;
    --bg-glass: rgba(26, 26, 46, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --text-primary: #f0f0f5;
    --text-secondary: #9a9ab0;
    --text-muted: #7a7a8a;
    --accent: #6366f1;
    --accent-color: #6366f1;
    /* Alias for inline styles */
    --accent-glow: rgba(99, 102, 241, 0.25);
    --accent-secondary: #06b6d4;
    --gradient-brand: linear-gradient(135deg, #6366f1, #06b6d4);
    --gradient-primary: linear-gradient(135deg, #6366f1, #06b6d4);
    /* Alias */
    --gradient-warm: linear-gradient(135deg, #f43f5e, #f97316);
    --gradient-emerald: linear-gradient(135deg, #10b981, #06b6d4);
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1280px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Light Mode --- */
.light-mode {
    --bg-dark: #f5f5f7;
    --bg-surface: #ffffff;
    --bg-card: #f0f0f5;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.05);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #5a5a6a;
    --accent: #4f46e5;
    --accent-color: #4f46e5;
    --accent-glow: rgba(79, 70, 229, 0.15);
    --accent-secondary: #0891b2;
    --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.06);
}

.light-mode .logo .ki-woche {
    -webkit-text-fill-color: transparent;
}

.light-mode header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.light-mode .card-img img {
    filter: brightness(0.95);
}

.light-mode .mobile-nav {
    background: #ffffff;
}

.light-mode .mobile-nav a {
    color: #1a1a2e;
}

.light-mode .admin-toolbar {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #1a1a2e;
}

.light-mode .admin-toolbar a {
    color: #4a4a5a;
}

.light-mode .admin-quick-inbox input {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

.light-mode .inbox-modal-content {
    background: #ffffff;
    color: #1a1a2e;
}

/* Light mode button fixes */
.light-mode .home-cta-btn {
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.light-mode .home-cta-btn:hover {
    color: #fff;
}

.light-mode .btn-primary {
    color: #fff !important;
}

/* Nav links */
.light-mode .main-nav a {
    color: #1a1a2e;
}

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

/* Mega menu */
.light-mode .mega-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .mega-menu a {
    color: #1a1a2e;
}

.light-mode .mega-menu a:hover {
    color: var(--accent);
}

.light-mode .mega-menu h4 {
    color: var(--text-muted);
}

.light-mode .mega-highlight {
    background: rgba(99, 102, 241, 0.04);
}

/* Cards */
.light-mode .card-body {
    color: var(--text-primary);
}

.light-mode .card-category {
    color: var(--accent);
}

.light-mode .card-title {
    color: var(--text-primary);
}

.light-mode .card-meta {
    color: var(--text-muted);
}

/* Specific Component Overrides for Light Mode Typography */
.light-mode .grid-card h2,
.light-mode .event-title,
.light-mode .event-detail-header h1,
.light-mode .tool-card-name,
.light-mode .article-meta,
.light-mode .sidebar-event-details strong,
.light-mode .sidebar-event-details .sidebar-event-sub,
.light-mode .event-card .event-day {
    color: var(--text-primary);
}

.light-mode .event-meta,
.light-mode .event-description,
.light-mode .grid-card .card-excerpt,
.light-mode .grid-card .card-footer,
.light-mode .tool-card-desc,
.light-mode .event-detail-body p {
    color: var(--text-secondary);
}

.light-mode .sidebar-ad-yellow h4 {
    color: #c2410c; /* Better readability in light mode */
}

/* Hero section */
.light-mode .hero-title {
    color: var(--text-primary);
}

.light-mode .hero-excerpt {
    color: var(--text-secondary);
}

/* Footer */
.light-mode footer {
    background: var(--bg-surface);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.light-mode footer a {
    color: var(--text-secondary);
}

.light-mode footer a:hover {
    color: var(--accent);
}

/* Blog page buttons */
.light-mode .blog-filter-btn {
    color: var(--text-secondary);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .blog-filter-btn:hover,
.light-mode .blog-filter-btn.active {
    color: #fff;
}

/* Section headings */
.light-mode .section-heading .all-link {
    color: var(--accent);
}

/* Sidebar */
.light-mode .sidebar-item {
    border-color: rgba(0, 0, 0, 0.06);
}

/* Pagination */
.light-mode .pagination a {
    color: var(--text-secondary);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .pagination a:hover,
.light-mode .pagination .active {
    color: #fff;
}

/* --- Header Actions Buttons (Theme, Search, LinkedIn) --- */
.theme-toggle,
.search-toggle,
.header-linkedin-icon,
.header-push-bell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    text-decoration: none;
}

.theme-toggle:hover,
.search-toggle:hover,
.header-push-bell:hover,
.header-linkedin-icon:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    transform: scale(1.05);
}

.header-linkedin-icon:hover {
    border-color: #0a66c2;
    color: #0a66c2;
}

.search-toggle.panel-open,
.header-push-bell.panel-open {
    color: var(--accent);
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.1);
}

/* Show correct icon based on theme */
.theme-icon-dark {
    display: inline;
}

.theme-icon-light {
    display: none;
}

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

.light-mode .theme-icon-light {
    display: inline;
}

/* Mobile theme toggle */
.theme-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-stack);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle-mobile:hover {
    border-color: var(--accent);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    width: 100%;
}

html {
    overflow-x: clip;
    width: 100%;
}

main {
    padding-top: 80px;
}

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

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(99, 102, 241, 0.1);
    }
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease both;
}

.fade-in-d1 {
    animation-delay: 0.1s;
}

.fade-in-d2 {
    animation-delay: 0.2s;
}

.fade-in-d3 {
    animation-delay: 0.3s;
}

.fade-in-d4 {
    animation-delay: 0.4s;
}

.fade-in-d5 {
    animation-delay: 0.5s;
}

/* --- Utility --- */
.uppercase {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.7rem;
}

.gradient-text {
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
    margin: 0;
}

/* ─── Section CTA alignment utilities ─── */
.section-cta-center { text-align: center; padding: 32px 0; }
.section-cta-right  { text-align: right;  padding: 24px 0 32px; }
.lazy-section       { content-visibility: auto; contain-intrinsic-size: auto 400px; }
.section-header--flush { padding-top: 8px; }

/* ============ HEADER ============ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0;
    transition: var(--transition);
}

/* ─── Header Intro Splash ─── */
@keyframes splashShimmer {
    0% {
        transform: translateX(-100%) skewX(-20deg);
    }
    100% {
        transform: translateX(250%) skewX(-20deg);
    }
}

.header-splash {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Shimmer glint sweep */
.header-splash::after {
    content: '';
    position: absolute;
    inset: -20% 0;
    width: 60%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.06) 30%,
        rgba(255, 255, 255, 0.18) 46%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.18) 54%,
        rgba(255, 255, 255, 0.06) 70%,
        transparent 80%
    );
    animation: splashShimmer 2.4s ease-in-out 0.5s infinite;
    pointer-events: none;
    z-index: 1;
}

.header-splash.splash-exit {
    transform: translateY(-100%);
}

.header-splash .container {
    height: 100%;
}

.header-splash-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 16px 0;
}

/* Splash logo — white version of the normal logo */
.splash-logo-wrap {
    text-align: center;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.splash-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.splash-die {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
}

.splash-ki-woche {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

/* Splash claim text — replaces nav on desktop */
.splash-claim {
    flex: 1;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 0 32px;
    margin-top: 8px;
}

/* Hide mobile-only line break on desktop */
.mobile-br {
    display: none;
}

/* Mobile splash: claim replaces logo, logo hidden */
@media (max-width: 1024px) {
    .header-splash-inner {
        justify-content: center;
        padding: 10px 0;
    }

    .splash-logo-wrap {
        display: none;
    }

    .splash-claim {
        flex: unset;
        font-size: 1rem;
        font-weight: 800;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        padding: 0 16px;
        margin-top: 0;
    }

    /* Show line break on mobile for two-line claim */
    .mobile-br {
        display: block;
    }

    /* Hide header buttons during splash to prevent overlap */
    .has-header-splash .header-actions,
    .has-header-splash .mobile-toggle {
        display: none !important;
    }
}


.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

/* Logo: "Die" small centered above "KI Woche" big */
.logo {
    text-align: center;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo .die {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.logo .ki-woche {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* nav ul/a scoped to main-nav only — see mega menu section below */

/* ============ NEWS TICKER ============ */
.news-ticker {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-glass);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 85px;
    /* offset for fixed header */
}

.ticker-track {
    display: inline-flex;
    animation: ticker 40s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 60px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.ticker-label {
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border-glass);
}

.ticker-label.scout {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.ticker-label.deepblue {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.ticker-label.sheriff {
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.3);
}

.ticker-label.architect {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.ticker-label.nova {
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.3);
}

/* ============ HERO ============ */
.hero {
    padding: 30px 0 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}

.hero-feature {
    position: relative;
}

.hero-image-wrap {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    aspect-ratio: 16/9;
    text-decoration: none;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image-wrap:hover img {
    transform: scale(1.03);
}

.hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.8) 0%, transparent 50%);
    pointer-events: none;
}

.hero-category {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(99, 102, 241, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.hero h1:hover {
    color: var(--accent);
}

.hero .lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-meta .agent-badge {
    font-size: 0.8rem;
}

/* Hero Sidebar */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-card {
    padding: 28px 0;
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
    position: relative;
    border-radius: var(--radius-sm);
}

.sidebar-card:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.10) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(99, 102, 241, 0.03) 100%);
    padding-left: 12px;
    padding-right: 12px;
    margin-left: -12px;
    margin-right: -12px;
}

.sidebar-card:last-child {
    border-bottom: none;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: var(--transition);
    border-radius: 3px;
}

.sidebar-card:hover::before {
    background: var(--gradient-brand);
}

.sidebar-card .card-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: var(--text-primary);
    background: color-mix(in srgb, currentColor 15%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    backdrop-filter: blur(8px);
}

.sidebar-card h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 8px;
    transition: var(--transition);
}

.sidebar-card:hover h3 {
    color: var(--accent);
}

.sidebar-card .card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============ SECTION HEADER ============ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px 0 32px;
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-header .view-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 14px;
    border-radius: 8px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.section-header .view-all:hover {
    color: var(--accent-secondary);
    background: rgba(99, 102, 241, 0.08);
}

/* ============ ARTICLE GRID ============ */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 80px;
}

.grid-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.grid-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.10) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(99, 102, 241, 0.03) 100%);
}

.grid-card .card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.grid-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-card:hover .card-image img {
    transform: scale(1.05);
}

.grid-card .card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grid-card .card-category {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 14px;
    line-height: 1;
    color: var(--text-primary);
    background: color-mix(in srgb, currentColor 15%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    backdrop-filter: blur(8px);
    align-self: flex-start;
}

.grid-card h2 {
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 12px;
    transition: var(--transition);
}

.grid-card:hover h2 {
    color: var(--accent);
}

.grid-card .card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.grid-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* --- Card Admin Actions (hide/draft + delete) --- */
.card-admin-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.grid-card:hover .card-admin-actions,
.video-card:hover .card-admin-actions,
.tool-card:hover .card-admin-actions,
.event-card:hover .card-admin-actions,
.tool-card-link:hover .card-admin-actions {
    opacity: 1;
}

.card-highlight-btn,
.card-hide-btn,
.card-delete-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.card-highlight-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.card-highlight-btn:hover {
    background: rgba(245, 158, 11, 0.85);
    transform: scale(1.1);
}

.card-hide-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.card-hide-btn:hover {
    background: rgba(59, 130, 246, 0.85);
    transform: scale(1.1);
}

.card-delete-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.card-delete-btn:hover {
    background: rgba(239, 68, 68, 0.85);
    transform: scale(1.1);
}

/* --- Card Dismiss Button --- */
.card-dismiss {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.grid-card:hover .card-dismiss {
    opacity: 0.7;
}

.card-dismiss:hover {
    opacity: 1 !important;
    background: rgba(239, 68, 68, 0.85);
    transform: scale(1.1);
}

/* Reset link for hidden articles */
.blog-show-hidden {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--accent);
    cursor: pointer;
    transition: var(--transition);
}

.blog-show-hidden:hover {
    color: var(--accent-secondary);
}

/* Mobile: always show dismiss button */
@media (max-width: 768px) {
    .card-dismiss {
        opacity: 0.7;
    }
}

/* ============ AGENT SYSTEM ============ */
.agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.8rem;
}

.agent-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.ai-pill {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ============ ARTICLE PAGE ============ */
.article-hero {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 100vw;
    /* Square: full viewport width = full viewport height */
    overflow: hidden;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 0%, black 40vh, transparent 68vh);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40vh, transparent 68vh);
    /* Hero scroll effect */
}

/* Spacer to push content down below the fixed hero — unchanged to keep text in place */
.article-hero-spacer {
    height: 55vh;
    min-height: 420px;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    will-change: transform, filter;
}

/* Desktop: shift hero image up to show more central content.
   JS scroll handler in article.php preserves this translateY. */
@media (min-width: 1025px) {
    .article-hero img {
        transform: translateY(-25%);
    }
}

.article-hero-overlay,
.article-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.9) 10%, rgba(10, 10, 15, 0.85) 25%, rgba(10, 10, 15, 0.7) 35%, rgba(10, 10, 15, 0.55) 45%, rgba(10, 10, 15, 0.4) 55%, rgba(10, 10, 15, 0.2) 65%, rgba(10, 10, 15, 0.1) 75%, rgba(10, 10, 15, 0.05) 85%, rgba(10, 10, 15, 0.02) 92%, transparent 100%);
}

/* Light mode: softer, brighter hero overlay */
.light-mode .article-hero-overlay,
.light-mode .article-hero::after {
    background: linear-gradient(to top, rgba(245, 245, 247, 0.9) 0%, rgba(245, 245, 247, 0.85) 10%, rgba(245, 245, 247, 0.7) 20%, rgba(245, 245, 247, 0.5) 35%, rgba(245, 245, 247, 0.3) 45%, rgba(245, 245, 247, 0.15) 55%, rgba(245, 245, 247, 0.06) 65%, rgba(245, 245, 247, 0.02) 75%, transparent 85%);
}

/* Light mode: 30% white overlay via reduced opacity (body bg is white) */
.light-mode .article-hero img {
    opacity: 0.7;
}

/* Content scrolls OVER the fixed hero (hero is z-index: -1, so normal flow is above) */
.article-hero-spacer~.container {
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 15, 1) 150px);
}

.article-hero-spacer~.related-articles-section {
    background: rgba(10, 10, 15, 1);
}

.light-mode .article-hero-spacer~.container {
    background: linear-gradient(to bottom, transparent, rgba(245, 245, 247, 1) 150px);
}

.light-mode .article-hero-spacer~.related-articles-section {
    background: rgba(245, 245, 247, 1);
}

.article-category-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: var(--text-primary);
    background: color-mix(in srgb, var(--cat-color) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--cat-color) 30%, transparent);
    backdrop-filter: blur(8px);
    margin-bottom: 16px;
    transition: var(--transition);
}

.article-header {
    max-width: 760px;
    margin: -200px auto 0;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px 48px;
}

.article-header h1 {
    font-size: 2.4rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.article-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 28px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

/* --- Two-Column Layout --- */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 80px;
    align-items: start;
}

.article-body {
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
    overflow-x: hidden;
}

.article-body a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-body a:not(.share-btn):hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.light-mode .article-body a {
    color: #1a1a1a;
    text-decoration-color: rgba(0, 0, 0, 0.25);
}

.light-mode .article-body a:not(.share-btn):hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.article-body p {
    margin-bottom: 24px;
}

.article-body ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 24px;
}

.article-body ol {
    list-style-type: decimal;
    padding-left: 2rem;
    margin-bottom: 24px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body li>ul,
.article-body li>ol {
    margin-bottom: 0;
    margin-top: 10px;
}

/* Article Tables */
.article-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 32px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-body thead {
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.article-body thead th {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    white-space: nowrap;
}

.article-body tbody tr {
    border-bottom: 1px solid var(--border-glass);
    transition: background 0.2s ease;
}

.article-body tbody tr:last-child {
    border-bottom: none;
}

.article-body tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.article-body tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.article-body tbody td {
    padding: 12px 20px;
    color: var(--text-secondary);
}

.article-body tbody td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.article-body tbody tr:last-child td {
    font-weight: 700;
    color: var(--accent);
}

/* Light mode table adjustments */
.light-mode .article-body thead {
    background: rgba(99, 102, 241, 0.06);
}

.light-mode .article-body tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.light-mode .article-body tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

/* Responsive table */
@media (max-width: 600px) {
    .article-body table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .article-body thead,
    .article-body tbody,
    .article-body tr {
        display: block;
    }

    .article-body thead th {
        white-space: normal;
        padding: 10px 14px;
    }

    .article-body tbody td {
        padding: 10px 14px;
    }
}

/* Article Blockquotes */
.article-body blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    border-left: 3px solid var(--accent);
    background: rgba(99, 102, 241, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-primary);
}

.article-body blockquote p {
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.article-body blockquote footer {
    font-style: normal;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0;
    margin-top: 12px;
    background: transparent;
    border-top: none;
}

/* Analysis Box */
.analysis-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 32px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.analysis-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
}

.analysis-box h3 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Praxis Box */
.praxis-box {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-md);
    padding: 32px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.praxis-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399);
}

.praxis-box h3 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
    color: #10b981;
}

/* Person Box (Author / Speaker profile highlight) */
.person-box {
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    padding: 32px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.person-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fcd34d);
}

.person-box h3 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
    margin-top: 0;
    color: #f59e0b;
}

.person-box p:last-child {
    margin-bottom: 0;
}

/* Review Post Card Grid (compact weekly review links) */
.review-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:16px 0 0; }
.article-body .review-grid + p { margin-top:12px; }
.article-body .review-grid + h3 { margin-top:24px; }
.article-body a.review-card {
    display:flex; gap:10px; align-items:flex-start; text-decoration:none; color:inherit;
    background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08);
    border-radius:10px; padding:8px; transition:all 0.3s ease;
}
.light-mode .article-body a.review-card {
    background:rgba(0,0,0,0.02); border-color:rgba(0,0,0,0.08); color:inherit;
    text-decoration:none;
}
.article-body a.review-card:hover {
    text-decoration:none;
    border-color:rgba(255,255,255,0.2);
    background:rgba(255,255,255,0.06);
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(0,0,0,0.15);
}
.light-mode .article-body a.review-card:hover {
    border-color:rgba(0,0,0,0.15);
    background:rgba(0,0,0,0.04);
}
.review-card img {
    width:56px; height:56px; border-radius:6px; object-fit:cover; flex-shrink:0;
    transition:width 0.3s ease, height 0.3s ease;
}
.review-card:hover img { width:64px; height:64px; }
.review-card .card-text { min-width:0; }
.review-card .card-title { font-size:0.8rem; line-height:1.3; display:block; text-decoration:none; }
.review-card .card-sub {
    text-decoration:none; font-size:0.75rem; line-height:1.3; color:var(--text-muted);
    display:block; max-height:0; overflow:hidden; opacity:0;
    transition:max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top:0;
}
.review-card:hover .card-sub {
    max-height:80px; opacity:1; margin-top:6px;
}
@media (max-width: 768px) {
    .review-grid { grid-template-columns:1fr; }
    .review-card .card-sub { max-height:80px; opacity:1; margin-top:4px; }
}

/* Article Embedded Video */
.article-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    margin: 32px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
}

.article-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Tweet / X Embed */
.article-tweet-embed {
    margin: 28px 0;
    display: flex;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

.article-tweet-embed .twitter-tweet,
.article-tweet-embed iframe {
    margin: 0 !important;
    max-width: 100% !important;
}

/* DSGVO Embed Consent Placeholder */
.embed-consent {
    position: relative;
    margin: 28px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.embed-consent[data-type="youtube"] {
    aspect-ratio: 16/9;
}

.embed-consent-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.3);
    transform: scale(1.1);
}

.embed-consent-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 32px 24px;
    max-width: 420px;
}

.embed-consent-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.9;
    color: var(--text-primary);
}

/* Embeds with dark background image (YouTube, Issuu): always white text */
.embed-consent[data-type="youtube"] .embed-consent-icon,
.embed-consent[data-type="issuu"] .embed-consent-icon {
    color: #fff;
}

.embed-consent-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.embed-consent[data-type="youtube"] .embed-consent-text,
.embed-consent[data-type="issuu"] .embed-consent-text {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.embed-consent-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.embed-consent[data-type="youtube"] .embed-consent-text a,
.embed-consent[data-type="issuu"] .embed-consent-text a {
    color: #fff !important;
}

.embed-consent-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent);
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-stack);
    cursor: pointer;
    transition: var(--transition);
}

.embed-consent-btn:hover {
    background: var(--accent);
    color: #fff;
}

.embed-consent-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* "Immer laden" button: solid readable style */
.embed-consent-always {
    background: transparent;
    border-color: var(--text-muted);
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.embed-consent-always:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* "Immer laden" on dark-bg embeds (YouTube, Issuu): white text */
.embed-consent[data-type="youtube"] .embed-consent-always,
.embed-consent[data-type="issuu"] .embed-consent-always {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.85);
}

.embed-consent[data-type="youtube"] .embed-consent-always:hover,
.embed-consent[data-type="issuu"] .embed-consent-always:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* Embed Disclaimer */
.embed-disclaimer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.embed-disclaimer p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* Reading Progress Bar */
#reading-progress {
    position: absolute;
    bottom: -1px;
    top: auto;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-brand);
    z-index: 1001;
    transition: width 0.15s linear;
    pointer-events: none;
    border-radius: 0 2px 2px 0;
}

/* Article External Links */
.article-links-box {
    margin-top: 32px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
}

.article-links-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.article-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-ext-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    text-decoration: none;
    transition: var(--transition);
}

.article-ext-link:hover {
    background: var(--accent);
    color: #fff !important;
}

/* Share Bar */
.article-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-glass);
    flex-wrap: wrap;
}

.actions-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

.share-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* --- Related Articles Section (below article) --- */
.related-articles-section {
    padding: 60px 0 80px;
    border-top: 1px solid var(--border-glass);
    margin-top: 0;
}

.related-articles-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-articles-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 8px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.related-card {
    text-decoration: none;
    color: inherit;
}

.related-card .card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 900px) {
    .related-articles-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-articles-header h2 {
        font-size: 1.3rem;
    }

    .related-articles-section {
        padding: 40px 0 60px;
    }
}

.article-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    height: max-content;
    align-self: start;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
}

/* Author Widget */
.sidebar-author {
    text-align: center;
}

.sidebar-author-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 14px;
}

.sidebar-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transform: scale(1.25);
    transform-origin: center 25%;
    transition: transform 0.4s ease;
}

.sidebar-author h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.sidebar-author-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Newsletter Widget */
.sidebar-newsletter h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-newsletter p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.sidebar-cta {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--gradient-brand);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sidebar-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Yellow Ad Widget */
.sidebar-ad-yellow {
    border-color: rgba(251, 191, 36, 0.3) !important;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.05) 0%, var(--bg-card) 100%) !important;
}

.sidebar-ad-yellow h4 {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
    color: #fbbf24;
}

.sidebar-ad-yellow p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.sidebar-cta-yellow {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}



.sidebar-cta-yellow:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Related Articles Widget */
.sidebar-related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.sidebar-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-related-item:hover .sidebar-related-title {
    color: var(--text-primary);
}

.sidebar-related-cat {
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    line-height: 1;
}

.sidebar-related-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.35;
    transition: var(--transition);
}

.analysis-section {
    margin-bottom: 24px;
}

.analysis-section:last-child {
    margin-bottom: 0;
}

.analysis-title {
    display: inline-block;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    margin-bottom: 12px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.analysis-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============ TEAM PAGE ============ */
.team-hero {
    padding: 80px 0 48px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.team-hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.team-hero .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Team Card Grid (from team.php inline) */
.team-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

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

@media (max-width: 768px) {
    .team-grid-6 {
        grid-template-columns: 1fr;
    }
}

.team-card-full {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.team-card-full .card-image {
    flex: 0 0 35%;
    max-width: 350px;
}

.team-card-full .card-image img {
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.team-card-full .card-overlay {
    right: 15px;
    bottom: 15px;
}

.team-card-full .card-content {
    flex: 1;
    padding: 40px 40px 40px 0;
}

@media (max-width: 768px) {
    .team-card-full {
        flex-direction: column;
        gap: 0;
    }

    .team-card-full .card-image {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .team-card-full .card-image img {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        aspect-ratio: auto;
    }

    .team-card-full .card-content {
        padding: 24px;
    }
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.10) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(99, 102, 241, 0.03) 100%);
}

/* Light mode overrides for team cards */
.light-mode .team-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Helle Einrahmung (border) */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.light-mode .team-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.02) 50%, #ffffff 100%);
}

.team-card .card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.team-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.team-card:hover .card-image img {
    filter: grayscale(0%);
}

.team-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    line-height: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--badge-color, var(--text-primary));
    background: color-mix(in srgb, var(--badge-color, var(--accent)) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--badge-color, var(--accent)) 30%, transparent);
    transition: all 0.3s ease;
}

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

.team-card .card-content h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.team-card .role-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    margin-top: 5px;
}

.team-card .description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.team-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-card .tags span {
    font-size: 0.72rem;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    letter-spacing: 0.5px;
}

.light-mode .team-card .tags span {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 80px;
}

.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.agent-card.human::before {
    background: linear-gradient(90deg, #f0f0f5, #8a8a9a);
}

.agent-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.agent-card .agent-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
}

.agent-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #10b981;
    font-weight: 700;
}

.agent-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

.agent-card h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.agent-card .agent-role {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 16px;
}

.agent-card .agent-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============ FOOTER ============ */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 40px;
}

/* Brand Row: Centered top section */
.footer-brand-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-glass);
}

.footer-brand-centered .logo {
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Link Grid: 4 even columns */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-section h4 {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 7px;
}

.footer-section a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-meta-block {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-author {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-glass);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-social a:nth-child(1):hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.footer-social a:nth-child(2):hover {
    background: #1a1a2e;
    border-color: var(--text-primary);
}

.footer-social a:nth-child(3):hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #dc2743;
}

.footer-social a:nth-child(4):hover {
    background: #000;
    border-color: var(--text-primary);
}

.footer-social a:nth-child(5):hover {
    background: #1877f2;
    border-color: #1877f2;
}

.powered-by {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.powered-by strong {
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* ============ PAGE SIDEBAR (Über uns Navigation) ============ */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
    padding-top: 40px;
}

.page-main-content {
    min-width: 0;
}

.page-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-nav-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}

.sidebar-nav-widget:hover {
    border-color: rgba(99, 102, 241, 0.15);
}

.sidebar-nav-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.sidebar-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav-link {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.sidebar-nav-link:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}

.sidebar-nav-link.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent);
    font-weight: 600;
}

.sidebar-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 3px;
    background: var(--gradient-brand);
}

.sidebar-nav-icon {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
    display: inline-flex;
}

.external-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0;
    transition: var(--transition);
}

.sidebar-nav-link:hover .external-arrow {
    opacity: 1;
}

.sidebar-legal {
    background: transparent;
    border: none;
    padding: 0 20px;
}

.sidebar-legal .sidebar-nav-link {
    font-size: 0.75rem;
    padding: 6px 12px;
    color: var(--text-muted);
}

.sidebar-legal .sidebar-nav-link:hover {
    color: var(--text-secondary);
    background: transparent;
}

/* ============ HOME CTA BUTTON ============ */
.home-cta {
    display: flex;
    justify-content: center;
    padding: 48px 0 80px;
}

.home-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.home-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    z-index: -1;
}

.home-cta-btn:hover::before {
    opacity: 1;
}

.home-cta-btn:hover {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* ============ BLOG ARCHIVE PAGE ============ */
.blog-header {
    padding: 48px 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.blog-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.blog-header-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* View Toggle */
.blog-view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 4px;
    margin-top: 12px;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.view-toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
}

.view-toggle-btn.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent);
}

/* List View */
.blog-grid.list-view {
    grid-template-columns: 1fr;
    gap: 24px;
}

.blog-grid.list-view .grid-card {
    flex-direction: row;
    max-height: 240px;
}

.blog-grid.list-view .grid-card .card-image {
    aspect-ratio: 16/10;
    width: 384px;
    min-width: 384px;
    max-height: 240px;
}

.blog-grid.list-view .grid-card .card-body {
    padding: 16px 24px;
    justify-content: center;
}

.blog-grid.list-view .grid-card h2 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.blog-grid.list-view .grid-card .card-excerpt {
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.blog-grid.list-view .grid-card .card-footer {
    padding-top: 8px;
    margin-top: auto;
}

@media (max-width: 768px) {
    .blog-header {
        flex-direction: column;
    }

    .blog-view-toggle {
        display: flex;
    }

    .blog-grid.list-view .grid-card {
        flex-direction: column;
        max-height: none;
    }

    .blog-grid.list-view .grid-card .card-image {
        width: 100%;
        min-width: 0;
        max-height: 200px;
    }
}

.blog-grid {
    padding-bottom: 40px;
}

/* Blog Layout (grid + sidebar) */
.blog-layout {
    display: block;
}

.blog-sidebar {
    display: none;
}

.blog-layout.list-active {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.blog-layout.list-active .blog-sidebar {
    display: block;
}

.sidebar-related-item.active {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 8px;
}

.sidebar-related-item.active .sidebar-related-title {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 960px) {
    .blog-layout.list-active {
        grid-template-columns: 1fr;
    }
}

/* ============ SIDEBAR CARD V2 (Compact Article Cards) ============ */
.sidebar-card-v2 {
    display: flex;
    gap: 16px;
    align-items: stretch;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-glass);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.sidebar-card-v2:first-child { padding-top: 0; }
.sidebar-card-v2:last-child { border-bottom: none; }
.sidebar-card-v2:hover { color: var(--accent); }
.sidebar-card-v2:hover .sidebar-thumb-v2 img { transform: scale(1.05); }
.sidebar-card-v2:hover .sidebar-thumb-v2 { border-color: var(--agent-color, transparent); }

.sidebar-thumb-v2 {
    flex-shrink: 0;
    width: 140px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-glass);
    box-sizing: border-box;
    transition: border-color 0.4s ease;
}

.sidebar-thumb-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sidebar-text-v2 { flex: 1; min-width: 0; }

.sidebar-text-v2 .card-category {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 6px;
}

.sidebar-text-v2 h3 {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-text-v2 .card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .sidebar-thumb-v2 { width: 110px; height: 72px; }
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 40px 0 80px;
    border-top: 1px solid var(--border-glass);
}

.pagination-btn {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    line-height: 1.4;
    text-decoration: none;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent);
}

.pagination-btn.disabled {
    opacity: 0.3;
    cursor: default;
}

.pagination-numbers {
    display: flex;
    gap: 4px;
}

.pagination-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.pagination-num:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}

.pagination-num.active {
    background: var(--gradient-brand);
    color: #fff;
}

.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .blog-pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .blog-pagination .pagination-numbers {
        order: 1;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .blog-pagination > .pagination-btn {
        order: 2;
    }
    .pagination-num { width: 36px; height: 36px; font-size: 0.8rem; }
    /* Hide excess page numbers on mobile — keep max 5 visible */
    .pagination-numbers .pagination-num:nth-child(n+7) { display: none; }
    .pagination-numbers .pagination-dots:nth-child(n+7) { display: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .page-with-sidebar {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

@media (max-width: 1024px) {
    .header-main {
        flex-direction: column;
        gap: 16px;
    }

    .header-top {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

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

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

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

    .footer-brand-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-brand-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 16px;
    }

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

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

    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .article-sidebar {
        position: static;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .section-header:has(.view-toggle-group) {
        flex-direction: row;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ============ MEGA MENU ============ */
.main-nav {
    flex: 1;
    margin-top: 8px;
}

.main-nav>ul {
    display: flex;
    gap: 32px;
    list-style: none;
    justify-content: center;
}

.main-nav>ul>li {
    position: relative;
}

.main-nav>ul>li>a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    display: block;
    position: relative;
}

.main-nav>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

.main-nav>ul>li:hover>a,
.main-nav>ul>li>a.active {
    color: var(--text-primary);
}

.main-nav>ul>li:hover>a::after,
.main-nav>ul>li>a.active::after {
    width: 100%;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 700px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
    transform: translateX(calc(-50% + 15px)) translateY(10px);
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-top: 8px;
}

/* Invisible bridge to prevent hover gap */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.mega-menu-sm {
    min-width: 500px;
}

/* Blog Mega Menu — Ultra Elegant */
.mega-menu-blog {
    min-width: 0;
    width: 480px;
    padding: 0;
    left: 0;
    transform: translateX(0px) translateY(10px);
}

.main-nav .has-mega:hover .mega-menu-blog,
.main-nav .has-mega:focus-within .mega-menu-blog {
    transform: translateX(-15px) translateY(0);
}

.mega-blog-content {
    padding: 24px;
}

.mega-blog-cats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 8px;
}

.mega-cat-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s, transform 0.2s;
}

.mega-cat-link:hover {
    background: rgba(99, 102, 241, 0.06);
    transform: translateX(4px);
}

.mega-cat-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(99, 102, 241, 0.08);
    /* subtle icon background */
    border-radius: 6px;
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
}

.mega-cat-link:hover .mega-cat-icon {
    background: rgba(99, 102, 241, 0.15);
    transform: scale(1.1);
}

.mega-cat-text {
    font-size: 0.8rem;
    font-weight: 500;
}

.mega-blog-footer {
    background: rgba(99, 102, 241, 0.03);
    border-top: 1px solid var(--border-glass);
    padding: 16px 24px;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.mega-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.2s;
}

.mega-all-link svg {
    transition: transform 0.2s;
}

.mega-all-link:hover {
    color: var(--primary-hover);
}

.mega-all-link:hover svg {
    transform: translateX(4px);
}

.light-mode .mega-blog-footer {
    background: rgba(99, 102, 241, 0.02);
}

.light-mode .mega-cat-link:hover,
.light-mode .mega-col ul li a:hover {
    background: rgba(99, 102, 241, 0.08);
}

/* ===== Mobile Category Picker (bottom-sheet) ===== */
.mobile-cat-picker-overlay {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-cat-picker-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1999;
        background: rgba(0, 0, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition: background 0.3s ease, visibility 0s 0.3s;
    }

    .mobile-cat-picker-overlay.open {
        background: rgba(0, 0, 0, 0.5);
        visibility: visible;
        pointer-events: auto;
        transition: background 0.3s ease, visibility 0s 0s;
    }

    .mobile-cat-picker {
        position: absolute;
        bottom: 68px;
        left: 8px;
        right: 8px;
        background: var(--bg-surface);
        border: 1px solid var(--border-glass);
        border-radius: 16px 16px 12px 12px;
        padding: 12px;
        transform: translateY(110%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
        max-height: 50vh;
        overflow-y: auto;
    }

    .mobile-cat-picker-overlay.open .mobile-cat-picker {
        transform: translateY(0);
    }

    .mobile-cat-picker-handle {
        width: 36px;
        height: 4px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 2px;
        margin: 0 auto 12px;
    }

    .light-mode .mobile-cat-picker-handle {
        background: rgba(0, 0, 0, 0.12);
    }

    .mobile-cat-picker-all {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid rgba(99, 102, 241, 0.2);
        border-radius: 10px;
        margin-bottom: 10px;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--text-primary);
        text-decoration: none;
        transition: background 0.2s;
    }

    .mobile-cat-picker-all:hover {
        background: rgba(99, 102, 241, 0.18);
    }

    .mobile-cat-picker-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .mobile-cat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 10px 4px 8px;
        border-radius: 10px;
        text-decoration: none;
        color: var(--text-secondary);
        transition: background 0.15s, color 0.15s;
        text-align: center;
    }

    .mobile-cat-item:active {
        background: rgba(99, 102, 241, 0.15);
        color: var(--text-primary);
    }

    .mobile-cat-emoji {
        font-size: 1.4rem;
        line-height: 1;
    }

    .mobile-cat-name {
        font-size: 0.58rem;
        font-weight: 600;
        line-height: 1.2;
    }
}

/* Tools Mega Menu: "Alle" button left + 2×6 grid right */
.mega-menu-tools {
    min-width: 760px;
    padding: 0;
}

.mega-tools-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0;
}

.mega-tools-all {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 16px;
    background: rgba(99, 102, 241, 0.08);
    border-right: 1px solid var(--border-glass);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    color: var(--text-primary);
}

.mega-tools-all:hover {
    background: rgba(99, 102, 241, 0.15);
}

.mega-tools-all-icon {
    font-size: 1.8rem;
}

.mega-tools-all-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.mega-tools-all-count {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mega-tools-cats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 0;
    padding: 0;
}

.mega-tools-cats a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 8px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-align: center;
    transition: background 0.15s, color 0.15s;
    border-right: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    line-height: 1.3;
}

.mega-tools-cats a:nth-child(6n) {
    border-right: none;
}

.mega-tools-cats a:nth-child(n+7) {
    border-bottom: none;
}

.mega-tools-cats a:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}

.mega-tools-cat-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.mega-tools-cat-label {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.25;
}

.light-mode .mega-tools-all {
    background: rgba(99, 102, 241, 0.06);
}

.light-mode .mega-tools-all:hover {
    background: rgba(99, 102, 241, 0.12);
}

.mega-menu-kw {
    min-width: 0;
    width: max-content;
    left: 0;
    transform: translateX(15px) translateY(10px);
    padding: 12px;
}

.main-nav .has-mega:hover .mega-menu-kw,
.main-nav .has-mega:focus-within .mega-menu-kw {
    transform: translateX(0) translateY(0);
}

.logo.has-mega {
    position: relative;
    display: block;
    cursor: pointer;
}

.logo.has-mega:hover .mega-menu,
.logo.has-mega:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
}

.logo.has-mega .mega-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

/* Header Actions Group */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    position: relative;
    z-index: 20;
}

/* White-themed buttons during splash overlay */
.has-header-splash .header-actions .theme-toggle,
.has-header-splash .header-actions .search-toggle,
.has-header-splash .header-actions .header-push-bell {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.has-header-splash .header-actions .theme-toggle:hover,
.has-header-splash .header-actions .search-toggle:hover,
.has-header-splash .header-actions .header-push-bell:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* Inline expanding search — positioned right next to theme toggle */
.site-search {
    display: flex;
    align-items: center;
    position: relative;
    height: 38px;
}

.site-search .search-inline {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.35s ease, opacity 0.25s ease, overflow 0s 0.35s;
    pointer-events: none;
}

.site-search.search-open .search-inline {
    width: 200px;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transition: width 0.35s ease, opacity 0.25s ease, overflow 0s 0s;
}

.search-inline input {
    width: 100%;
    height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 19px;
    color: var(--text-primary);
    padding: 0 40px 0 16px;
    font-size: 0.85rem;
    outline: none;
}

.search-inline input:focus {
    border-color: var(--accent);
}

.site-search .search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
}

.site-search .search-results.has-results {
    display: block;
}

/* Calendar Week Grid in Mega Menu */
.mega-kw-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.mega-kw-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    text-align: center;
    color: var(--text-secondary) !important;
    transition: var(--transition);
    text-decoration: none !important;
}

.kw-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
}

.kw-num {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.mega-kw-item:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    color: var(--accent) !important;
    transform: translateY(-2px);
}

.mega-kw-current {
    background: var(--gradient-brand);
    border-color: transparent;
    color: #fff !important;
}

.mega-kw-current .kw-label {
    opacity: 1;
}

.main-nav .has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
}

.mega-inner {
    display: flex;
    gap: 0;
}

.mega-col {
    padding: 28px;
    border-right: 1px solid var(--border-glass);
    flex: 1;
}

.mega-col:last-child {
    border-right: none;
}

.mega-col h4 {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.mega-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-col ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 0 -12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.mega-col ul li a:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--text-primary);
    transform: translateX(4px);
}

.mega-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mega-highlight {
    background: rgba(99, 102, 241, 0.04);
}

.mega-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.mega-cta {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient-brand);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mega-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.mega-feature {
    display: block;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    margin-bottom: 10px;
    transition: var(--transition);
}

.mega-feature:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.mega-feature-label {
    display: inline-block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.mega-feature-title {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}

/* ============ MOBILE NAV ============ */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 20;
}

/* White burger lines during splash */
.has-header-splash .mobile-toggle span {
    background: #fff;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Push Bell Button — additional active-state styles */
/* subscribed state is handled by icon swap, no color change */

/* Bell notification badge */
.header-push-bell {
    position: relative;
}

.bell-badge {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
}

/* ===== SEARCH SLIDE-DOWN PANEL ===== */
.search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card, #14141f);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.35s;
}

.light-mode .search-panel {
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.search-panel.open {
    visibility: visible;
    max-height: 70vh;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

.search-panel-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-glass);
}

.search-panel-icon {
    flex-shrink: 0;
    color: var(--text-muted);
}

.search-panel-inner input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-stack);
    outline: none;
    padding: 6px 0;
}

.search-panel-inner input::placeholder {
    color: var(--text-muted);
}

.search-panel-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.search-panel-close:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
}

.search-panel-results {
    max-height: calc(70vh - 60px);
    overflow-y: auto;
    padding: 0 8px;
}

/* ===== BELL DROPDOWN PANEL ===== */
.bell-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card, #14141f);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.35s;
}

.light-mode .bell-panel {
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.bell-panel.open {
    visibility: visible;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

.bell-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 10px;
    border-bottom: 1px solid var(--border-glass);
}

.bell-panel-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.bell-panel-push-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.bell-panel-push-toggle:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent);
}

.bell-panel-push-toggle.subscribed {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.bell-panel-list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.bell-panel-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-card, #14141f);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.light-mode .bell-panel-footer {
    background: #fff;
}

.bell-panel-footer-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.bell-panel-social {
    display: flex;
    gap: 12px;
}

.bell-panel-social a {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
}

.bell-panel-social a svg {
    width: 22.5px;
    height: 22.5px;
}

.bell-panel-social a:hover {
    color: var(--text-primary);
}

.bell-day-header {
    position: sticky;
    top: 0;
    padding: 10px 20px 6px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    background: var(--bg-card, #14141f);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1;
}

.light-mode .bell-day-header {
    background: #fff;
}

.bell-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.15s ease;
}

.light-mode .bell-post-item {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

.bell-post-item:hover,
.bell-post-item:active {
    background: rgba(99, 102, 241, 0.06);
}

.bell-post-item.highlight {
    background: rgba(99, 102, 241, 0.06);
}

.bell-post-item.highlight:hover {
    background: rgba(99, 102, 241, 0.1);
}

.bell-post-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
}

.bell-post-info {
    flex: 1;
    min-width: 0;
}

.bell-post-cat {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    margin-bottom: 2px;
}

.bell-post-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bell-post-date {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.bell-panel-loading,
.bell-panel-end {
    text-align: center;
    padding: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.bell-panel-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--text-muted);
    border-top-color: transparent;
    border-radius: 50%;
    animation: bellSpin 0.7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes bellSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Desktop: bell panel is a narrower dropdown aligned right */
@media (min-width: 1025px) {
    .bell-panel {
        left: auto;
        /* Align dropdown relative to its parent container (.header-inner) */
        right: 0;
        width: 380px;
        border-radius: 0 0 16px 16px;
    }
}

/* Mobile Nav Search (inside burger menu) */
.mobile-nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin: 0 16px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
}

.light-mode .mobile-nav-search {
    background: rgba(0, 0, 0, 0.04);
}

.mobile-nav-search svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.mobile-nav-search input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-stack);
    outline: none;
    padding: 6px 0;
}

.mobile-nav-search input::placeholder {
    color: var(--text-muted);
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    visibility: hidden;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, visibility 0s 0.3s;
}

.mobile-nav {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 100%;
    background: var(--bg-surface);
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}

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

.mobile-nav>ul {
    list-style: none;
    flex: 1;
}

.mobile-nav>ul li a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav>ul li a:hover {
    color: var(--accent);
}

.mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    margin-top: auto;
}

.mobile-social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.mobile-social-links a {
    color: var(--text-muted);
    display: flex;
    transition: var(--transition);
}

.mobile-social-links a:hover {
    color: var(--text-primary);
}

.mobile-nav-legal {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.mobile-nav-legal a {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mobile-nav-open .mobile-nav-overlay {
    visibility: visible;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease, visibility 0s 0s;
}

.mobile-nav-open .mobile-nav-overlay .mobile-nav {
    transform: translateX(0);
}

/* ============ PAGE HERO (Subpages) ============ */
.page-hero {
    padding: 60px 0 48px;
    max-width: 760px;
}

.hero-section {
    padding: 80px 0 0;
}

.hero-label {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff !important;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.page-hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.08;
    margin: 16px 0;
}

.page-hero .lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
}

/* ============ CONTENT SECTIONS (Subpages) ============ */
.content-section {
    padding: 48px 0;
    max-width: 900px;
}

.content-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.content-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Three Pillars (Über uns) */
.three-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.pillar-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    line-height: 1;
}

.pillar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.pillar-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Feature Box (Newsletter Rubriken) */
.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-top: 24px;
}

.feature-box-header {
    margin-bottom: 24px;
}

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

.feature-item {
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--border-glass);
    background: rgba(99, 102, 241, 0.03);
}

.feature-emoji {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Author Profile */
.author-profile {
    margin-top: 24px;
}

.author-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.author-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 20px !important;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.credential {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
}

.credential-degree {
    font-size: 1.15rem;
    font-weight: 900;
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.credential-field {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.credential-uni {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Philosophy Grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.philosophy-item {
    padding: 28px;
    border-left: 3px solid;
    border-image: var(--gradient-brand) 1;
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.philosophy-item h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.philosophy-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Check List */
.check-list {
    list-style: none;
    margin: 20px 0;
}

.check-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 1rem;
    color: var(--text-secondary);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

/* ============ LEGAL PAGES ============ */
.legal-content {
    max-width: 760px;
    padding-bottom: 80px;
}

.legal-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.legal-block {
    margin-bottom: 40px;
}

.legal-block h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-block p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-block ul {
    margin: 12px 0;
    padding-left: 24px;
}

.legal-block ul li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ============ CONTACT PAGE ============ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.contact-link {
    display: inline-block;
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 0.85rem;
}

.contact-link:hover {
    color: var(--accent-secondary) !important;
}

.contact-links-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.link-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.link-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.03);
}

.link-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.link-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============ NEWSLETTER PAGE ============ */
.newsletter-cta-box {
    margin-top: 32px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    text-align: center;
}

.newsletter-cta-box p {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 16px;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient-brand);
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.cta-subtext {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    margin-top: 12px;
    margin-bottom: 0 !important;
}

.newsletter-structure {
    margin-top: 24px;
}

.structure-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-glass);
}

.structure-item:last-child {
    border-bottom: none;
}

.structure-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}

.structure-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.structure-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.structure-content em {
    color: var(--text-muted);
    font-style: italic;
}

/* Newsletter Archive */
.newsletter-archive {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.archive-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
}

.archive-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.archive-issue {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent);
}

.archive-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.archive-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.archive-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.archive-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.archive-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    color: var(--text-secondary);
}

.archive-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent) !important;
}

/* ============ TEAM PAGE EXTENDED ============ */
.editor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.editor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--text-primary), var(--text-muted));
}

.editor-card-inner {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.editor-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -1px;
    border: 2px solid var(--border-glass);
}

.editor-info h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.editor-role {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 16px;
}

.editor-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.editor-perspectives {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.perspective {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.perspective-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.perspective-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.editor-links {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.editor-links a {
    font-size: 0.85rem;
    color: var(--accent) !important;
    font-weight: 600;
}

/* Agent detail blocks */
.agent-detail {
    margin-bottom: 14px;
}

.agent-detail-label {
    display: inline-block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.agent-detail p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.agent-categories {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    padding: 8px 0;
}

/* Workflow Steps */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.workflow-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.workflow-step:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.team-section {
    padding: 20px 0;
}

/* ============ EVENTS PAGE ============ */
.events-filter-bar {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 20px 28px;
    margin: 32px 0;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 50;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.filter-select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-family: var(--font-stack);
    cursor: pointer;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235a5a6a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.filter-select:hover,
.filter-select:focus {
    border-color: rgba(99, 102, 241, 0.4);
    outline: none;
}

.filter-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.light-mode .filter-select {
    color-scheme: light;
}

.light-mode .filter-select option {
    background: #ffffff;
    color: #1a1a2e;
}

/* ===== REGION FILTER — LIGHT MODE ===== */
.light-mode .region-country-btn {
    color: #4a4a5a;
}

.light-mode .region-country-btn:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
    color: #1a1a2e;
}

.light-mode .region-country-btn.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(139, 92, 246, 0.08));
    border-color: rgba(79, 70, 229, 0.4);
    color: #1a1a2e;
}

.light-mode .region-dropdown-inner {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 0 30px rgba(79, 70, 229, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.light-mode .region-dropdown-inner::before {
    background: rgba(255, 255, 255, 0.98);
    border-left-color: rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.1);
}

.light-mode .region-dropdown-header {
    color: #1a1a2e;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.light-mode .region-chip {
    background: rgba(0, 0, 0, 0.04);
    color: #4a4a5a;
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .region-chip:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
    color: #1a1a2e;
}

.light-mode .region-chip.active {
    color: #fff;
}

.light-mode .region-dropdown-actions {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.light-mode .region-pill {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.2);
}

.light-mode .filter-row+.filter-row {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.light-mode .filter-btn-count {
    background: rgba(0, 0, 0, 0.06);
}

/* ===== REGION HOVER FILTER ===== */
/* (position/z-index merged into main .events-filter-bar rule above) */

.filter-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.filter-row+.filter-row {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.region-filter {
    position: relative;
}

.region-countries {
    display: flex;
    gap: 6px;
}

/* Country Buttons */
.region-country {
    position: relative;
}

.region-country-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 0 16px;
    height: 32px;
    line-height: 1;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-stack);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.region-country-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.region-country-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(99, 102, 241, 0.5);
    color: #fff;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

/* Hover Dropdown */
.region-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 300px;
    padding-top: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
}

.region-country:hover .region-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.region-dropdown-inner {
    background: rgba(15, 15, 25, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(99, 102, 241, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    padding: 16px;
    overflow: hidden;
}

.region-dropdown-inner::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(15, 15, 25, 0.95);
    border-left: 1px solid rgba(99, 102, 241, 0.2);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.region-dropdown-header {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Bundesland Chips */
.region-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.region-chip {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-family: var(--font-stack);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.region-chip:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

.region-chip.active {
    background: linear-gradient(135deg, var(--accent), rgba(139, 92, 246, 0.9));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    font-weight: 500;
}

/* Dropdown Actions */
.region-dropdown-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.region-select-all,
.region-clear-country {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.72rem;
    cursor: pointer;
    font-family: var(--font-stack);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.region-select-all:hover,
.region-clear-country:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* ===== NEARBY BUTTON ===== */
.nearby-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nearby-btn .nearby-icon {
    flex-shrink: 0;
}

.nearby-btn.active {
    background: linear-gradient(135deg, var(--accent), rgba(139, 92, 246, 0.9));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.nearby-btn.nearby-loading {
    pointer-events: none;
    opacity: 0.7;
}

.nearby-btn.nearby-loading .nearby-icon {
    animation: nearby-pulse 1.2s ease-in-out infinite;
}

@keyframes nearby-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

/* Distance badge on event cards */
.event-distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 2px 10px;
    white-space: nowrap;
    animation: pill-in 0.3s ease;
}

.light-mode .event-distance-badge {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.2);
}

/* ===== CATEGORY PILLS ===== */
.filter-row-categories {
    align-items: center;
    gap: 12px;
    width: 100%;
}


/* ===== ACTIVE FILTER PILLS ===== */
.region-active-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
}

.region-active-pills:empty {
    display: none;
    padding: 0;
}

.region-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--accent);
    padding: 3px 8px 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    animation: pill-in 0.2s ease;
}

@keyframes pill-in {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.region-pill button {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.region-pill button:hover {
    opacity: 1;
}

.filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-group-tags {
    flex: 1 1 100%;
}

.filter-btn-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 5px;
    font-size: 0.65rem;
    margin-left: 4px;
    font-weight: 400;
}

.filter-btn.active .filter-btn-count {
    background: rgba(255, 255, 255, 0.25);
}

.video-card-tags {
    margin-top: auto;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 0 16px;
    height: 32px;
    line-height: 1;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-stack);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.filter-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.filter-count span {
    color: var(--accent);
    font-weight: 800;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 20px;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.event-card.event-card-highlight {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(99, 102, 241, 0.01) 100%);
    position: relative;
}

.event-card.event-card-highlight::before {
    content: 'TIPP';
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    pointer-events: none;
}

.event-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.10) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(99, 102, 241, 0.03) 100%);
}

.event-card.event-card-highlight:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* ===== GENERIC HIGHLIGHT BADGES ===== */
/* Blog / Training grid-card highlight */
/* ===== SHARED HIGHLIGHT BADGE BASE ===== */
.grid-card-highlight,
.video-card-highlight,
.tool-card-highlight,
.event-card-highlight {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 50%, rgba(99, 102, 241, 0.04) 100%);
    position: relative;
}

.grid-card-highlight:hover,
.video-card-highlight:hover,
.tool-card-highlight:hover,
.event-card-highlight:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

.grid-card-highlight::after,
.video-card-highlight::after,
.tool-card-highlight::after {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    pointer-events: none;
}

/* Per-type badge labels */
.grid-card-highlight::after {
    content: '⭐ Empfehlung';
}

.video-card-highlight::after {
    content: 'EMPFEHLUNG';
}

.tool-card-highlight::after {
    content: 'EMPFEHLUNG';
}

.event-card-image {
    width: 100%;
    max-height: 140px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.03);
}

.event-card-main {
    display: flex;
    gap: 16px;
    padding: 16px;
    flex: 1;
    flex-direction: row;
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 70px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    flex-shrink: 0;
}

.event-day {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.event-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 2px;
}

.event-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card:hover .event-title {
    color: var(--accent);
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-location,
.event-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.event-location svg,
.event-time svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.event-region-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.event-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass);
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.event-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.event-tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    letter-spacing: 0.5px;
}

.event-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.event-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.event-price-paid {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.event-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    transition: var(--transition);
}

.event-link:hover {
    color: var(--accent-secondary);
}

/* Empty State */
.events-empty {
    text-align: center;
    padding: 80px 24px;
}

.events-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.events-empty p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
}

/* Pagination */
.events-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 0 60px;
}

.events-pagination button {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-stack);
    cursor: pointer;
    transition: var(--transition);
    min-width: 40px;
}

.events-pagination button:hover:not(:disabled) {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--text-primary);
}

.events-pagination button.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.events-pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.events-pagination .page-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0 12px;
}

/* ============ VIDEOS PAGE ============ */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding-bottom: 80px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.10) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(99, 102, 241, 0.03) 100%);
}

.video-thumb-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: #0a0a1a;
    overflow: hidden;
    cursor: pointer;
}

/* YouTube Thumbnail with Play Overlay */
.video-thumb-placeholder {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0a0a1a;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.play-btn-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.video-card:hover .play-btn-circle {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.4);
}

.play-btn-circle svg {
    margin-left: 3px;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 3;
}

.video-lang-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-glass);
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.video-thumb-wrap .video-lang-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
}

.video-lang-badge.de {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.15);
    backdrop-filter: blur(8px);
}

.video-lang-badge.en {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(8px);
}

.video-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    transition: var(--transition);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card:hover .video-title {
    color: var(--accent);
}

.video-channel {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}

.channel-name {
    font-weight: 700;
    color: var(--text-secondary);
}

.video-meta-sep {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Video card link wrapper */
.video-card-link {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}

/* ============ VIDEO DETAIL PAGE ============ */
.video-detail {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.video-detail-player {
    position: relative;
    aspect-ratio: 16/9;
    background: #0a0a1a;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 32px;
    cursor: pointer;
}

.video-detail-placeholder {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.video-detail-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.video-detail-placeholder:hover .video-detail-thumb {
    filter: brightness(0.65);
}

.play-btn-large {
    width: 80px;
    height: 80px;
}

.video-duration-detail {
    font-size: 0.85rem;
    padding: 4px 12px;
}

.video-detail-info {
    padding: 0;
}

.video-detail-info h1 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.4px;
    margin-bottom: 16px;
}

.video-detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.video-detail-channel {
    font-weight: 700;
    color: var(--text-secondary);
}

.video-detail-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.video-detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.video-detail-actions .cta-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.9rem;
}

/* ============ VIDEO DETAIL SIDEBAR LAYOUT ============ */
.video-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    padding-bottom: 80px;
}

.video-detail-main {
    min-width: 0;
}

.video-sidebar {
    position: sticky;
    top: 100px;
}

/* Category List */
.video-cat-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.video-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.video-cat-item:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--text-primary);
}

.video-cat-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    font-weight: 700;
}

.video-cat-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 3px;
    background: var(--accent);
}

.video-cat-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.video-cat-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-cat-count {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.video-cat-item.active .video-cat-count {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent);
}

/* Related Videos */
.video-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-related-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    padding: 6px;
    border-radius: 8px;
    margin: -6px;
}

.video-related-item:hover {
    background: rgba(99, 102, 241, 0.04);
}

.video-related-thumb {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    background: #0a0a1a;
}

.video-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-related-item:hover .video-related-thumb img {
    transform: scale(1.05);
}

.video-related-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.video-related-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.video-related-info h4 {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.video-related-item:hover .video-related-info h4 {
    color: var(--accent);
}

.video-related-channel {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
}

.video-related-views {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Tag links */
.event-tag-link {
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.event-tag-link:hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
}

/* Responsive: stack sidebar below on smaller screens */
@media (max-width: 1024px) {
    .video-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .video-sidebar {
        position: static;
    }
}

/* ============ DSGVO NOTICE ============ */
.dsgvo-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    margin-bottom: 24px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-sm);
}

.dsgvo-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.dsgvo-text {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.dsgvo-text strong {
    color: var(--text-primary);
}

.dsgvo-accept-all {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-stack);
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dsgvo-accept-all:hover {
    background: #4f52d9;
    transform: translateY(-1px);
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 18, 0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0;
    animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle gradient accent line */
.cookie-banner::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--accent));
    opacity: 0.6;
}

.cookie-banner-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-text strong {
    display: inline;
    font-size: 0.82rem;
    color: #e8e8f0;
    letter-spacing: 0.2px;
}

.cookie-text p {
    font-size: 0.78rem;
    color: #8888a0;
    line-height: 1.55;
    margin: 3px 0 0;
}

.cookie-text a {
    color: #a5b4fc;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-text a:hover {
    color: #c7d2fe;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-stack);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.1px;
}

.cookie-btn-accept {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}

.cookie-btn-accept:hover {
    background: #5558e6;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.06);
    color: #9999b0;
    border-color: rgba(255, 255, 255, 0.08);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #d0d0e0;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Cookie banner – light mode */
.light-mode .cookie-banner {
    background: rgba(255, 255, 255, 0.97);
    border-top-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}

.light-mode .cookie-banner::before {
    opacity: 0.5;
}

.light-mode .cookie-text strong {
    color: #1a1a2e;
}

.light-mode .cookie-text p {
    color: #5a5a6e;
}

.light-mode .cookie-text a {
    color: #4f46e5;
}

.light-mode .cookie-text a:hover {
    color: #3730a3;
}

.light-mode .cookie-btn-reject {
    background: rgba(0, 0, 0, 0.04);
    color: #5a5a6e;
    border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .cookie-btn-reject:hover {
    background: rgba(0, 0, 0, 0.07);
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.12);
}

/* Event title links */
.event-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.event-title a:hover {
    color: var(--accent);
}

/* ============ EVENT DETAIL PAGE ============ */
.event-detail-back {
    padding: 24px 0 8px;
}

.event-detail-back a {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.event-detail-back a:hover {
    color: var(--accent-secondary);
}

/* Event Detail Three-Column Layout */
.event-detail-layout {
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    gap: 40px;
    padding-bottom: 80px;
    align-items: start;
}

.event-detail-aside-left {
    position: sticky;
    top: 100px;
}

.event-detail {
    min-width: 0;
}

/* Sidebar Event Details Widget */
.sidebar-event-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-event-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.sidebar-event-row svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}

.sidebar-event-row div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-event-row strong {
    font-weight: 700;
    font-size: 0.85rem;
}

.sidebar-event-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Mini date badge for related events in sidebar */
.sidebar-event-date-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-weight: 800;
    line-height: 1;
}

.sidebar-event-date-mini span:first-child {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.sidebar-event-date-mini span:last-child {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

@media (max-width: 1100px) {
    .event-detail-layout {
        grid-template-columns: 260px 1fr;
        gap: 32px;
    }

    .event-detail-layout>.article-sidebar {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .event-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .event-detail-aside-left {
        position: static;
    }
}

.event-detail-image {
    width: 100%;
    max-height: 360px;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}

.event-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-detail-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.event-detail-header h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.event-detail-body {
    padding: 24px 0;
}

.event-detail-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.event-detail-info-grid {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 32px;
}

.event-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.event-detail-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* ============ BÜCHER PAGE ============ */
.books-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.social-proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.social-proof-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.social-proof-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.social-proof-stars {
    font-size: 1.6rem;
    color: #f59e0b;
    letter-spacing: 2px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.book-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.book-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.10) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(99, 102, 241, 0.03) 100%);
}

.book-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.book-cover {
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.book-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    transition: var(--transition);
}

.book-card:hover .book-info h3 {
    color: var(--accent);
}

.book-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.book-cta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    transition: var(--transition);
}

.book-card:hover .book-cta {
    color: var(--accent-secondary);
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

.review-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.10) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(99, 102, 241, 0.03) 100%);
}

.review-stars {
    font-size: 0.9rem;
    color: #f59e0b;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 12px;
}

.review-source {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Author Card on Books Page */
.books-author-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 32px;
}

.books-author-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.books-author-info .author-tagline {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.books-author-info p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.books-author-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.books-author-links a {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    transition: var(--transition);
}

.books-author-links a:hover {
    color: var(--accent-secondary);
}

/* (merged into main .cta-button rule in NEWSLETTER PAGE section) */

/* ============ RESPONSIVE ADDITIONS ============ */
@media (max-width: 1024px) {
    .mega-menu {
        min-width: 500px;
    }

    .three-pillars,
    .workflow-steps {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 1024px) {
    main {
        padding-top: 60px;
    }

    .hero {
        padding-top: 20px;
    }

    .article-hero {
        top: 60px;
    }

    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mega-menu {
        display: none !important;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .three-pillars,
    .feature-grid,
    .philosophy-grid,
    .contact-grid,
    .links-grid,
    .credentials-grid,
    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .editor-card-inner {
        flex-direction: column;
    }

    .structure-item {
        flex-direction: column;
        gap: 12px;
    }

    /* Events responsive */
    .events-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

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

    .filter-count {
        margin-left: 0;
    }

    .events-grid {
        grid-template-columns: 1fr !important;
    }

    .event-card-main {
        flex-direction: column;
        gap: 16px;
    }

    /* Videos responsive */
    .videos-grid {
        grid-template-columns: 1fr;
    }

    /* Books responsive */
    .books-grid {
        grid-template-columns: 1fr;
    }

    .books-social-proof {
        flex-direction: column;
        gap: 16px;
    }

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

    /* DSGVO notice responsive */
    .dsgvo-notice {
        flex-direction: column;
        text-align: center;
    }

    /* Cookie banner responsive – kompakter auf Mobile */
    .cookie-banner-inner {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 12px;
        text-align: left;
    }

    .cookie-text p {
        font-size: 0.72rem;
        line-height: 1.4;
    }

    .cookie-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .cookie-actions .cookie-btn {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
    }
}

/* ============ ADMIN TOOLBAR & DRAFT STYLES ============ */

/* Fixed Admin Toolbar */
.admin-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-toolbar a {
    color: var(--accent, #6366f1);
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-toolbar a:hover {
    color: var(--accent-secondary, #06b6d4);
}

.admin-toolbar-badge {
    background: linear-gradient(135deg, var(--accent, #6366f1), var(--accent-secondary, #06b6d4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 1px;
}

.admin-toolbar-drafts {
    color: #f59e0b;
}

/* Quick Inbox Form in Toolbar */
.admin-quick-inbox {
    display: flex;
    flex: 1;
    max-width: 400px;
    gap: 0;
}

.admin-quick-inbox input {
    flex: 1;
    padding: 6px 14px;
    border-radius: 8px 0 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #f0f0f5);
    font-size: 0.78rem;
    font-family: var(--font-stack);
    outline: none;
    transition: all 0.2s ease;
}

.admin-quick-inbox input:focus {
    border-color: var(--accent, #6366f1);
    background: rgba(99, 102, 241, 0.08);
}

.admin-quick-inbox input::placeholder {
    color: var(--text-muted, #5a5a6a);
}

.admin-quick-inbox button {
    padding: 6px 14px;
    border-radius: 0 8px 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--accent, #6366f1);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: var(--font-stack);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 36px;
}

.admin-quick-inbox button:hover {
    background: #4f52d9;
}

/* Draft Badge on Cards */
.draft-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(245, 158, 11, 0.9);
    color: #000;
    backdrop-filter: blur(4px);
}

/* highlight-badge: now handled by .grid-card-highlight::after */

/* Draft Article Bar */
.admin-draft-bar {
    background: rgba(245, 158, 11, 0.12);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    padding: 12px 0;
    font-size: 0.85rem;
    color: #f59e0b;
}

/* Publish Button */
.btn-publish {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-stack);
}

.btn-publish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Inbox Modal */
.inbox-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.inbox-modal-content {
    background: var(--bg-surface, #12121a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.inbox-modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.inbox-modal-content label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted, #5a5a6a);
    margin-bottom: 6px;
    margin-top: 16px;
}

.inbox-modal-content input[type="text"],
.inbox-modal-content select,
.inbox-modal-content textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-dark, #0a0a0f);
    color: var(--text-primary, #f0f0f5);
    font-size: 0.9rem;
    font-family: var(--font-stack);
    outline: none;
    transition: all 0.2s ease;
}

.inbox-modal-content input:focus,
.inbox-modal-content select:focus,
.inbox-modal-content textarea:focus {
    border-color: var(--accent, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* Add body padding when admin toolbar is visible */
body.admin-active {
    padding-bottom: 50px;
}

/* Responsive admin toolbar */
@media (max-width: 768px) {
    .admin-toolbar {
        gap: 12px;
        font-size: 0.7rem;
        padding: 8px 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* When admin toolbar exists, push bottom bar up above it */
@media (max-width: 1024px) {
    body:has(.admin-toolbar) .mobile-bottom-bar {
        bottom: 40px;
    }
}

@media (max-width: 768px) {
    body:has(.admin-toolbar) .mobile-bottom-bar {
        bottom: 70px;
    }
}

/* ===== ADMIN LOGIN PAGE ===== */
.admin-login-card {
    max-width: 400px;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.admin-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.admin-logo .die {
    display: block;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--text-muted);
    font-weight: 600;
}

.admin-logo .ki-woche {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-login-card h1 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.admin-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

.admin-error {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.25);
    color: #f87171;
    font-size: 0.82rem;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.admin-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-stack);
    outline: none;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.admin-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.admin-input::placeholder {
    color: var(--text-muted);
}

.admin-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-stack);
    cursor: pointer;
    transition: var(--transition);
}

.admin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.admin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== ADMIN DASHBOARD ===== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 2rem;
}

.admin-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.admin-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-brand);
}

.admin-stat:nth-child(2)::before {
    background: linear-gradient(135deg, #f97316, #f43f5e);
}

.admin-stat:nth-child(3)::before {
    background: linear-gradient(135deg, #06b6d4, #6366f1);
}

.admin-stat:nth-child(4)::before {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.admin-stat:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-3px);
}

.admin-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.admin-stat-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-stat-warn {
    background: linear-gradient(135deg, #f97316, #f43f5e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-stat-accent {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 700;
}

/* Admin Action Buttons */
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    transition: var(--transition);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    background: var(--bg-card);
}

.admin-action-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
}

.admin-action-btn.primary {
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.admin-action-btn.primary:hover {
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
}

/* Admin Quick Add Form */
.admin-quick-add {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
}

.admin-quick-add input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 12px 0 0 12px;
    border: 1px solid var(--border-glass);
    border-right: none;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-stack);
    outline: none;
    transition: var(--transition);
}

.admin-quick-add input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.admin-quick-add input::placeholder {
    color: var(--text-muted);
}

.admin-quick-add button {
    padding: 14px 24px;
    border-radius: 0 12px 12px 0;
    border: none;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-stack);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.admin-quick-add button:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* Admin Section */
.admin-section {
    margin-bottom: 2rem;
}

.admin-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-glass);
}

/* Admin Inbox Items */
.admin-inbox-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.admin-inbox-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.admin-inbox-id {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-inbox-topic {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 4px 0 6px;
    line-height: 1.35;
}

.admin-inbox-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-inbox-notes {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.55;
}

.admin-inbox-sources {
    font-size: 0.72rem;
    color: var(--accent-secondary);
    margin-top: 6px;
    word-break: break-all;
    line-height: 1.5;
}

.admin-inbox-empty {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Admin Footer */
.admin-footer {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

.admin-footer a {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.admin-footer a:hover {
    color: #f87171;
}

@media (max-width: 600px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-stat-num {
        font-size: 1.5rem;
    }
}

/* ===== HOMEPAGE: UPCOMING EVENTS ===== */
/* Homepage Video Carousel */
.video-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-glass) transparent;
    margin-bottom: 32px;
}

.video-carousel::-webkit-scrollbar {
    height: 4px;
}

.video-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.video-carousel::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 4px;
}

/* Homepage carousel overrides (context-specific) */
.video-carousel .video-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--text-primary);
}

.video-carousel .video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: all 0.2s;
}

.video-card:hover .video-play {
    opacity: 1;
    background: #e63946;
}

.video-carousel .video-duration {
    bottom: 6px;
    right: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.video-lang {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 0.85rem;
}

.video-carousel .video-info {
    padding: 12px 14px;
}

.video-carousel .video-info h3 {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.video-carousel .video-channel {
    font-size: 0.68rem;
    font-weight: 500;
}

.upcoming-events-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 2rem;
}

.upcoming-events-home.upcoming-events-3col {
    grid-template-columns: repeat(3, 1fr);
}

.upcoming-events-3col .upcoming-event-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.10) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(99, 102, 241, 0.03) 100%);
    border-color: rgba(99, 102, 241, 0.25);
}

.upcoming-event-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.upcoming-event-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.10) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(99, 102, 241, 0.03) 100%);
}

.upcoming-event-date {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.upcoming-day {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.upcoming-month {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

.upcoming-event-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}

.upcoming-event-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {

    /* Opt 1: Events-Zeile wischbar machen (wie Video-Carousel) */
    .upcoming-events-home,
    .upcoming-events-home.upcoming-events-3col {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .upcoming-events-home::-webkit-scrollbar {
        display: none;
    }

    .upcoming-events-home .upcoming-event-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }

    /* Opt 7: Emoji-Icons in Event-Meta besser lesbar */
    .upcoming-event-meta {
        font-size: 0.82rem;
    }
}

/* ===== GLOBAL SITE SEARCH ===== */
.search-overlay {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 420px;
    max-height: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.search-overlay.open {
    display: block;
}

.search-overlay-inner {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-glass);
    gap: 8px;
}

.search-overlay-inner input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-stack);
    outline: none;
}

.search-overlay-inner input::placeholder {
    color: var(--text-muted);
}

.search-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.search-close:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.search-group-label {
    padding: 8px 12px 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(99, 102, 241, 0.08);
}

.search-result-type {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.search-result-type.type-article {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.search-result-type.type-event {
    background: rgba(230, 57, 70, 0.15);
    color: #e63946;
}

.search-result-type.type-lexikon {
    background: rgba(42, 157, 143, 0.15);
    color: #2a9d8f;
}

.search-result-type.type-video {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.search-result-type.type-tool {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.search-result-type.type-training {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-hint {
    padding: 12px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

@media (max-width: 1024px) {
    .search-overlay {
        position: fixed;
        top: 60px;
        left: 8px;
        right: 8px;
        width: auto;
    }
}

/* ============ MOBILE BOTTOM TAB BAR ============ */
.mobile-bottom-bar {
    display: none;
}

@media (max-width: 1024px) {

    header {
        height: 60px;
    }

    header .container {
        padding: 0 12px;
    }

    main {
        padding-top: 60px;
    }

    .news-ticker {
        margin-top: 65px;
    }

    /* --- Mobile Header Restructure --- */
    .header-main {
        flex-direction: row !important;
        gap: 0 !important;
        padding: 10px 0;
        position: relative;
        justify-content: space-between;
        align-items: center;
    }

    /* Logo: centered absolutely */
    .header-main .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
        text-align: center;
        order: 2;
    }

    .header-main .logo .die {
        font-size: 0.55rem;
        letter-spacing: 3px;
    }

    .header-main .logo .ki-woche {
        font-size: 1.2rem;
    }

    /* Header actions: reorder for mobile */
    .header-actions {
        order: 3;
        display: flex !important;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        position: static;
    }

    /* Search: moves to LEFT next to theme toggle */
    .header-actions .search-toggle {
        position: absolute;
        left: 44px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Disable hover scale on mobile for absolutely positioned buttons */
    .header-actions .theme-toggle:hover,
    .header-actions .search-toggle:hover {
        transform: translateY(-50%) !important;
    }

    /* Theme toggle: moves to LEFT edge */
    .header-actions .theme-toggle {
        display: flex !important;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        padding: 6px;
        font-size: 0.9rem;
    }

    /* Burger toggle: far right */
    .mobile-toggle {
        display: flex !important;
        order: 4;
        margin-left: 6px;
    }

    /* Content blur when search or bell panels are open */
    .panel-blur main,
    .panel-blur .mobile-bottom-bar,
    .panel-blur footer {
        filter: blur(4px);
        pointer-events: none;
        transition: filter 0.3s ease;
    }

    /* --- Bottom Tab Bar --- */
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(10, 10, 15, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-glass);
        padding: 8px 0;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        justify-content: space-around;
        align-items: center;
    }

    .light-mode .mobile-bottom-bar {
        background: rgba(245, 245, 247, 0.92);
    }

    .bottom-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex: 1;
        padding: 8px 4px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: clamp(0.55rem, 1.8vw, 0.7rem);
        font-weight: 600;
        letter-spacing: 0.2px;
        transition: color 0.2s ease;
        background: none;
        border: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        min-width: 0;
        max-width: 20%;
        overflow: visible;
    }

    .bottom-tab svg {
        width: clamp(20px, 5.5vw, 26px);
        height: clamp(20px, 5.5vw, 26px);
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .bottom-tab span {
        display: block;
        line-height: 1;
    }

    .bottom-tab.active {
        color: var(--accent);
    }

    .bottom-tab:active svg {
        transform: scale(0.9);
    }

    /* Home tab — prominent center */
    .bottom-tab-home {
        position: relative;
    }

    .bottom-tab-home-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: clamp(40px, 11vw, 50px);
        height: clamp(40px, 11vw, 50px);
        border-radius: 50%;
        background: var(--gradient-brand);
        color: #fff;
        margin-top: -20px;
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .bottom-tab-home-icon svg {
        stroke: #fff;
    }

    .bottom-tab-home.active .bottom-tab-home-icon {
        box-shadow: 0 4px 25px rgba(99, 102, 241, 0.5);
        transform: scale(1.05);
    }

    .bottom-tab-home:active .bottom-tab-home-icon {
        transform: scale(0.95);
    }

    .bottom-tab-home span {
        color: var(--text-muted);
        margin-top: 2px;
    }

    .bottom-tab-home.active span {
        color: var(--accent);
    }

    /* Body padding for bottom bar */
    body {
        padding-bottom: 80px !important;
    }

    footer {
        margin-bottom: 0;
    }

    /* Hide bottom bar when mobile nav overlay is open */
    .mobile-nav-open .mobile-bottom-bar {
        display: none;
    }

    /* --- Mobile Filter Toggle --- */
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 12px 16px;
        margin-bottom: 12px;
        background: var(--bg-card);
        border: 1px solid var(--border-glass);
        border-radius: var(--radius-sm);
        color: var(--text-secondary);
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-filter-toggle:active {
        background: rgba(99, 102, 241, 0.08);
    }

    .mobile-filter-toggle svg {
        flex-shrink: 0;
    }

    .mobile-filter-toggle .filter-arrow {
        margin-left: auto;
        transition: transform 0.3s ease;
        font-size: 0.7rem;
        color: var(--text-muted);
    }

    .mobile-filter-toggle.open .filter-arrow {
        transform: rotate(180deg);
    }

    .events-filter-bar {
        display: none;
    }

    .events-filter-bar.mobile-filters-open {
        display: block;
    }

    /* ===== PAGE SLIDE TRANSITIONS (bottom nav) ===== */
    body.page-slide-left>*:not(.mobile-bottom-bar):not(.mobile-nav-overlay):not(.cookie-banner):not(.report-modal-overlay):not(.admin-toolbar):not(header):not(script):not(style):not(#reading-progress) {
        animation: slideOutLeft 0.25s ease-in forwards;
    }

    body.page-slide-right>*:not(.mobile-bottom-bar):not(.mobile-nav-overlay):not(.cookie-banner):not(.report-modal-overlay):not(.admin-toolbar):not(header):not(script):not(style):not(#reading-progress) {
        animation: slideOutRight 0.25s ease-in forwards;
    }

    body.page-slide-in-left>*:not(.mobile-bottom-bar):not(.mobile-nav-overlay):not(.cookie-banner):not(.report-modal-overlay):not(.admin-toolbar):not(header):not(script):not(style):not(#reading-progress) {
        animation: slideInFromRight 0.3s ease-out forwards;
    }

    body.page-slide-in-right>*:not(.mobile-bottom-bar):not(.mobile-nav-overlay):not(.cookie-banner):not(.report-modal-overlay):not(.admin-toolbar):not(header):not(script):not(style):not(#reading-progress) {
        animation: slideInFromLeft 0.3s ease-out forwards;
    }

    @keyframes slideOutLeft {
        from {
            transform: translateX(0);
            opacity: 1;
        }

        to {
            transform: translateX(-30%);
            opacity: 0;
        }
    }

    @keyframes slideOutRight {
        from {
            transform: translateX(0);
            opacity: 1;
        }

        to {
            transform: translateX(30%);
            opacity: 0;
        }
    }

    @keyframes slideInFromRight {
        from {
            transform: translateX(30%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes slideInFromLeft {
        from {
            transform: translateX(-30%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    body.page-slide-left,
    body.page-slide-right {
        overflow-x: hidden;
    }
}

/* ============ REPORT ERROR MODAL ============ */
.report-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-modal-overlay.active {
    opacity: 1;
}

.report-modal-content {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.report-modal-overlay.active .report-modal-content {
    transform: translateY(0);
}

.report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
}

.report-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.report-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted, #8b8b9e);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.report-modal-close:hover {
    color: var(--text-primary, #f0f0f5);
}

.report-modal-body {
    padding: 24px;
}

.report-modal-body input:focus,
.report-modal-body textarea:focus {
    border-color: var(--accent, #6366f1) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.report-modal-body .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary) !important;
}

.report-modal-body #report-submit-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.report-msg-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.report-msg-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Trigger Button Style */
.btn-report-error {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.btn-report-error:hover {
    color: var(--accent);
}

.btn-report-error svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 600px) {
    .article-actions .btn-report-error {
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid var(--border-glass);
    }
}

/* ============ WEBAPP PRESENTATION PAGE ============ */
.webapp-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2.5rem 0 3rem;
}

.webapp-hero-text h1 {
    font-size: 2.0rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.webapp-hero-text .lead {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.webapp-hero-cta {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--gradient-brand);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.webapp-hero-cta:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.webapp-hero-mockup {
    display: flex;
    justify-content: center;
}

/* iPhone Mockup */
.webapp-mockup-section {
    display: flex;
    justify-content: center;
    padding: 2rem 0 3rem;
}

.iphone-mockup {
    perspective: 1000px;
}

.iphone-frame {
    position: relative;
    width: 280px;
    border-radius: 40px;
    background: #1a1a2e;
    padding: 12px;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(99, 102, 241, 0.08);
    transform: rotateY(-3deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.iphone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.iphone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #0a0a0f;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.iphone-screen {
    border-radius: 30px;
    overflow: hidden;
    background: #0a0a0f;
}

.iphone-screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Features Grid */
.webapp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.webapp-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.webapp-feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.webapp-feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.webapp-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.webapp-feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Install Steps */
.webapp-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
}

.webapp-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.webapp-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.webapp-step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.webapp-step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.webapp-result {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
}

.webapp-result p {
    font-size: 0.95rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .webapp-hero-split {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .webapp-hero-text h1 {
        font-size: 1.8rem;
    }

    .webapp-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .iphone-frame {
        width: 240px;
    }
}

@media (max-width: 480px) {
    .webapp-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ iOS INSTALL BANNER ============ */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 16px 16px;
    pointer-events: none;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.pwa-install-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.pwa-install-inner {
    max-width: 420px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
}

.pwa-install-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.pwa-install-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.pwa-install-text h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #fff;
}

.pwa-install-text p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.pwa-install-actions {
    display: flex;
    gap: 10px;
}

.pwa-install-actions button {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-stack);
    transition: var(--transition);
}

.pwa-btn-install {
    background: var(--gradient-brand);
    color: #fff;
}

.pwa-btn-install:hover {
    opacity: 0.85;
}

.pwa-btn-later {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pwa-btn-later:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Light mode */
.light-mode .pwa-install-inner {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12);
}

.light-mode .pwa-install-text h3 {
    color: #1a1a2e;
}

.light-mode .pwa-install-text p {
    color: rgba(0, 0, 0, 0.55);
}

.light-mode .pwa-btn-later {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.6);
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Offset for mobile bottom bar */
@media (max-width: 1024px) {
    .pwa-install-banner {
        bottom: 70px;
    }
}

/* Hide WebApp Widget in PWA Mode */
@media (display-mode: standalone) {
    .hide-in-webapp {
        display: none !important;
    }
}

/* Video Editorial Specifics */
.video-editorial h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.video-editorial p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.video-editorial strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ============ EXTERNAL LINK ICON ============ */
.ext-link-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    vertical-align: baseline;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    text-decoration: none !important;
}

.ext-link-icon svg {
    width: 0.7em;
    height: 0.7em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    vertical-align: baseline;
    position: relative;
    top: -0.05em;
}

.article-body a.external-link:hover .ext-link-icon {
    opacity: 1;
}

/* Global Button Shimmer Effect — consolidated with :is() */
:is(.btn, .btn-primary, .home-cta-btn, .sidebar-cta, .sidebar-cta-yellow,
    .home-cta, .mega-cta, .cta-button, .book-cta, .webapp-hero-cta,
    .pagination-btn, .card-highlight-btn, .card-hide-btn, .card-delete-btn,
    .embed-consent-btn, .share-btn, .region-country-btn, .filter-btn,
    .nearby-btn, .btn-publish, .btn-report-error, .cookie-btn-accept,
    .cookie-btn-reject, .pwa-btn-install, .pwa-btn-later) {
    position: relative;
    overflow: clip;
    display: inline-block;
}

:is(.btn, .btn-primary, .home-cta-btn, .sidebar-cta, .sidebar-cta-yellow,
    .home-cta, .mega-cta, .cta-button, .book-cta, .webapp-hero-cta,
    .pagination-btn, .card-highlight-btn, .card-hide-btn, .card-delete-btn,
    .embed-consent-btn, .share-btn, .region-country-btn, .filter-btn,
    .nearby-btn, .btn-publish, .btn-report-error, .cookie-btn-accept,
    .cookie-btn-reject, .pwa-btn-install, .pwa-btn-later)::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    border-radius: inherit;
}

:is(.btn, .btn-primary, .home-cta-btn, .sidebar-cta, .sidebar-cta-yellow,
    .home-cta, .mega-cta, .cta-button, .book-cta, .webapp-hero-cta,
    .pagination-btn, .card-highlight-btn, .card-hide-btn, .card-delete-btn,
    .embed-consent-btn, .share-btn, .region-country-btn, .filter-btn,
    .nearby-btn, .btn-publish, .btn-report-error, .cookie-btn-accept,
    .cookie-btn-reject, .pwa-btn-install, .pwa-btn-later):hover::after {
    animation: btn-shimmer 0.6s ease-in-out;
    opacity: 1;
}

@keyframes btn-shimmer {
    100% {
        left: 200%;
    }
}

/* ============================================
   IMAGE SLIDER MODULE
   ============================================ */
.image-slider {
    width: 100%;
    margin: 2rem 0;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
}

.image-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-surface);
}

.image-slider-track::-webkit-scrollbar {
    height: 6px;
    display: block;
}

.image-slider-track::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

.image-slider-track::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.slider-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Slider Navigation Arrows (desktop only) */
.slider-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.25s ease;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.slider-arrow:hover {
    background: rgba(99, 102, 241, 0.7);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow--prev { left: 12px; }
.slider-arrow--next { right: 12px; }

.light-mode .slider-arrow {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
}

.light-mode .slider-arrow:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

@media (min-width: 769px) {
    .slider-arrow {
        display: flex;
    }
}