    /* ═══════════════════════════════════════════════════════════════════════════
       3D AUS DU - CLEAN PORTAL DESIGN V3
       Light Mode Default
       ═══════════════════════════════════════════════════════════════════════════ */

    :root {
        /* Logo-Farbe: Blau */
        --brand: #1e4a6e;
        --brand-dark: #153a58;
        --brand-light: #2a6090;

        /* Light Mode (Default) */
        --bg-page: #f8f9fa;
        --bg-card: #ffffff;
        --bg-elevated: #ffffff;
        --bg-muted: #f0f2f5;
        --text: #1a1a1a;
        --text-secondary: #4a5568;
        --text-muted: #718096;
        --border: #e2e8f0;
        --border-hover: #cbd5e0;

        /* Accent */
        --accent: var(--brand);
        --accent-hover: var(--brand-dark);
        --accent-bg: rgba(30, 74, 110, 0.08);

        /* Secondary Accent (für Deals) */
        --highlight: #059669;
        --highlight-bg: rgba(5, 150, 105, 0.08);

        /* Shadows - Premium-Tiefe */
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
        --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
        --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
        --shadow-xl: 0 20px 60px rgba(0,0,0,0.10), 0 8px 20px rgba(0,0,0,0.06);

        /* Layout */
        --header-height: 64px;
        --max-width: 1200px;
        --radius: 12px;
        --radius-sm: 8px;
        --radius-lg: 12px;
    }

    /* Dark Mode */
    html.dark {
        --bg-page: #0f1114;
        --bg-card: #1a1d23;
        --bg-elevated: #22262e;
        --bg-muted: #2a2f38;
        --text: #f0f2f5;
        --text-secondary: #a0aec0;
        --text-muted: #718096;
        --border: #2d3748;
        --border-hover: #4a5568;
        --accent-bg: rgba(42, 96, 144, 0.15);
        --highlight-bg: rgba(5, 150, 105, 0.15);
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.15);
        --shadow-md: 0 4px 16px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.2);
        --shadow-lg: 0 12px 40px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.25);
        --shadow-xl: 0 20px 60px rgba(0,0,0,0.5), 0 8px 20px rgba(0,0,0,0.3);
    }

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

    html, body {
        overflow-x: hidden;
    }

    html {
        scroll-behavior: smooth;
        -webkit-font-smoothing: antialiased;
    }

    body {
        font-family: 'Exo 2', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        font-size: 15px;
        line-height: 1.6;
        color: var(--text);
        background: var(--bg-page);
        transition: background 0.2s, color 0.2s;
    }

    /* UNIVERSAL FONT: Exo 2 everywhere, no exceptions */
    *, *::before, *::after {
        font-family: inherit;
    }
    html {
        font-family: 'Exo 2', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }
    button, input, select, textarea, optgroup {
        font-family: 'Exo 2', 'Inter', sans-serif;
    }


    /* Global Heading Font: Orbitron site-wide */
    h1, h2, h3, h4 {
        font-family: 'Orbitron', 'Exo 2', sans-serif;
        letter-spacing: -0.02em;
    }


    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }

    /* ═══ LAYOUT ═══ */
    .container {
        width: 100%;
        max-width: var(--max-width);
        margin: 0 auto;
        padding: 0 20px;
    }

    /* ═══ HEADER ═══ */
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        height: var(--header-height);
    }

    html.dark .header {
        background: rgba(26, 29, 35, 0.92);
    }

    .header-inner {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo img {
        height: 56px;
        width: auto;
    }

    .nav {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-secondary);
        border-radius: var(--radius-sm);
        transition: all 0.15s;
    }

    .nav-link:hover {
        color: var(--text);
        background: var(--bg-muted);
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: none;
        width: 44px;
        height: 44px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        cursor: pointer;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 10px;
    }

    .nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: all 0.3s;
    }

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

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    @media (max-width: 1024px) {
        .nav {
            position: fixed;
            top: var(--header-height);
            left: 0;
            right: 0;
            height: calc(100vh - var(--header-height));
            background: var(--bg-card);
            flex-direction: column;
            align-items: stretch;
            padding: 20px;
            gap: 0;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            z-index: 99;
            overflow-y: auto;
            border-top: 1px solid var(--border);
        }

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

        .nav-link {
            padding: 16px 20px;
            font-size: 16px;
            border-bottom: 1px solid var(--border);
            border-radius: 0;
        }

        .nav-link:last-child {
            border-bottom: none;
        }

        .nav-toggle {
            display: flex;
        }
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .theme-btn {
        width: 36px;
        height: 36px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--bg-card);
        color: var(--text-secondary);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s;
    }

    .theme-btn:hover {
        border-color: var(--border-hover);
        color: var(--text);
    }

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

    /* ═══ AD BANNER SYSTEM ═══ */
    .ad-leaderboard {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 16px 0;
        background: var(--bg-muted);
        border-bottom: 1px solid var(--border);
    }

    .ad-rectangle {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 16px 0;
    }

    .ad-mobile {
        display: none;
        justify-content: center;
        padding: 12px 0;
        background: var(--bg-muted);
    }

    .ad-leaderboard a,
    .ad-rectangle a,
    .ad-slot a,
    .ad-mobile a {
        display: inline-block;
        line-height: 0;
    }

    .ad-leaderboard img,
    .ad-rectangle img,
    .ad-slot img,
    .ad-mobile img {
        max-width: 100%;
        height: auto;
    }

    @media (max-width: 767px) {
        .ad-leaderboard { display: none; }
        .ad-mobile { display: flex; }
    }

    /* ═══ HERO mit Logo-Wasserzeichen ═══ */
    /* Hero styles moved to upgrade block below */

    .hero-watermark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* ═══ STATS ═══ */
    .stats {
        display: flex;
        justify-content: center;
        gap: 48px;
        padding: 28px 0;
        background: var(--bg-muted);
        border-bottom: 1px solid var(--border);
        flex-wrap: wrap;
    }

    .stat {
        display: flex;
        align-items: baseline;
        gap: 8px;
        position: relative;
    }

    .stat + .stat::before {
        content: '';
        position: absolute;
        left: -24px;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 24px;
        background: var(--border);
    }

    .stat-value {
        font-family: 'Orbitron', 'Exo 2', sans-serif;
        font-size: 24px;
        font-weight: 700;
        color: var(--brand);
    }

    .stat-label {
        font-size: 14px;
        color: var(--text-muted);
    }

    /* ═══ SECTIONS ═══ */
    .section {
        padding: 60px 0;
    }

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

    .section-title {
        font-family: 'Orbitron', 'Exo 2', sans-serif;
        font-size: 22px;
        font-weight: 700;
        color: var(--text);
        letter-spacing: -0.01em;
        position: relative;
        display: inline-block;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, var(--brand), var(--highlight));
        border-radius: 2px;
    }

    .section-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        font-weight: 500;
        color: var(--brand);
    }

    .section-link:hover { text-decoration: underline; }
    .section-link svg { width: 16px; height: 16px; }

    /* ═══ MAIN GRID (News + Sidebar) ═══ */
    .main-grid {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 40px;
    }

    @media (max-width: 960px) {
        .main-grid {
            grid-template-columns: 1fr;
        }
        .sidebar { display: none; }
    }

    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* ═══ NEWS TICKER ═══ */
    .news-ticker {
        background: var(--bg-muted);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        margin-bottom: 20px;
        height: 44px;
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
    }

    .ticker-label {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        background: var(--brand);
        color: white;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 0 14px;
        display: flex;
        align-items: center;
        z-index: 2;
    }

    .ticker-scroll {
        position: absolute;
        left: 65px;
        right: 0;
        top: 0;
        bottom: 0;
        overflow: hidden;
    }

    .ticker-track {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    .ticker-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0 20px;
    }

    .ticker-item::after {
        content: '•';
        margin-left: 20px;
        color: var(--border);
    }

    .ticker-date {
        font-size: 12px;
        font-weight: 600;
        color: var(--brand);
    }

    .ticker-title {
        font-size: 13px;
        color: var(--text-secondary);
    }

    .ticker-item:hover .ticker-title {
        color: var(--brand);
    }

    /* ═══ BENTO NEWS GRID ═══ */
    .bento-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 16px;
    }

    .bento-feature {
        grid-column: span 2;
        grid-row: span 2;
    }

    @media (max-width: 800px) {
        .bento-grid {
            grid-template-columns: 1fr 1fr;
        }
        .bento-feature {
            grid-column: span 2;
            grid-row: span 1;
        }
    }

    @media (max-width: 500px) {
        .bento-grid {
            grid-template-columns: 1fr;
        }
        .bento-feature {
            grid-column: span 1;
        }
    }

    .news-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
        transition: all 0.2s;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .news-card:hover {
        border-color: var(--brand);
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
    }

    .news-card-img {
        aspect-ratio: 16/9;
        background: linear-gradient(135deg, var(--bg-muted) 0%, var(--border) 100%);
        overflow: hidden;
        flex-shrink: 0;
        position: relative;
    }

    .bento-feature .news-card-img {
        aspect-ratio: 16/10;
    }

    .news-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s;
    }

    .news-card:hover .news-card-img img {
        transform: scale(1.03);
    }

    .news-card-body {
        padding: 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .news-card-cat {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--brand);
        margin-bottom: 8px;
    }

    .news-card-title {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.4;
        color: var(--text);
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex: 1;
    }

    .bento-feature .news-card-title {
        font-size: 20px;
        -webkit-line-clamp: 3;
    }

    .news-card-excerpt {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.5;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-card-date {
        font-size: 13px;
        color: var(--text-muted);
        margin-top: auto;
    }

    /* ═══ FEATURES ═══ */
    .features {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

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

    @media (max-width: 480px) {
        .features { grid-template-columns: 1fr; }
    }

    .feature-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 24px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .feature-card:hover {
        border-color: var(--brand);
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        background: var(--accent-bg);
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--brand);
        margin-bottom: 14px;
    }

    .feature-icon svg { width: 20px; height: 20px; }

    .feature-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 6px;
    }

    .feature-desc {
        font-size: 13px;
        color: var(--text-secondary);
        line-height: 1.5;
    }

    .feature-stat {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
        font-size: 12px;
        color: var(--text-muted);
    }

    .feature-stat strong {
        color: var(--brand);
        font-weight: 600;
    }

    /* ═══ BRAND TICKER ═══ */
    .brand-section {
        padding: 48px 0;
        background: var(--bg-muted);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        overflow-x: hidden;
        overflow-y: visible;
    }

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

    .brand-label {
        text-align: center;
        font-size: 13px;
        font-weight: 500;
        color: var(--text-muted);
        margin-bottom: 20px;
    }

    .brand-wrapper {
        position: relative;
        overflow-x: clip;
        overflow-y: visible;
        padding-top: 12px;
        margin-top: -12px;
    }

    .brand-wrapper::before,
    .brand-wrapper::after {
        content: '';
        position: absolute;
        top: 12px;
        bottom: 0;
        width: 80px;
        z-index: 2;
        pointer-events: none;
    }

    .brand-wrapper::before {
        left: 0;
        background: linear-gradient(to right, var(--bg-muted), transparent);
    }

    .brand-wrapper::after {
        right: 0;
        background: linear-gradient(to left, var(--bg-muted), transparent);
    }

    @keyframes slide {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    .brand-track {
        display: flex;
        gap: 14px;
        animation: slide 240s linear infinite;
        width: max-content;
        overflow: visible;
    }

    .brand-track:hover {
        animation-play-state: paused;
    }

    .brand-chip {
        position: relative;
        padding: 10px 20px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 6px;
        font-size: 13px;
        font-weight: 500;
        color: var(--text-secondary);
        white-space: nowrap;
        transition: all 0.15s;
    }

    .brand-chip:hover {
        border-color: var(--brand);
        color: var(--brand);
        box-shadow: var(--shadow-sm);
        transform: translateY(-1px);
    }

    .brand-chip-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: var(--brand);
        color: white;
        font-size: 10px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 10px;
        min-width: 24px;
        text-align: center;
        opacity: 0;
        transform: scale(0.7) translateY(4px);
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 3;
    }

    .brand-chip:hover .brand-chip-count {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    /* ═══ MANUFAKTUR ═══ */
    .manufaktur {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 48px 56px;
        display: flex;
        align-items: center;
        gap: 32px;
        flex-wrap: wrap;
        transition: box-shadow 0.3s, border-color 0.3s;
        position: relative;
    }

    .manufaktur:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--brand);
    }

    @media (max-width: 640px) {
        .manufaktur {
            padding: 28px;
            flex-direction: column;
            text-align: center;
        }
    }

    .manufaktur-icon {
        width: 64px;
        height: 64px;
        background: var(--accent-bg);
        border-radius: var(--radius);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--brand);
        flex-shrink: 0;
    }

    .manufaktur-icon svg { width: 28px; height: 28px; }

    .manufaktur-content {
        flex: 1;
        min-width: 200px;
    }

    .manufaktur-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 6px;
    }

    .manufaktur-desc {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.6;
    }

    .manufaktur-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    @media (max-width: 640px) {
        .manufaktur-actions { justify-content: center; }
    }

    /* ═══ FOOTER ═══ */
    .footer {
        background: var(--bg-card);
        border-top: 1px solid var(--border);
        padding: 48px 0 24px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: 40px;
        margin-bottom: 40px;
    }

    @media (max-width: 800px) {
        .footer-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 480px) {
        .footer-grid { grid-template-columns: 1fr; }
    }

    .footer-brand img {
        height: 48px;
        margin-bottom: 16px;
    }

    .footer-brand p {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.7;
        margin-bottom: 20px;
    }

    /* Social Links */
    .social-links {
        display: flex;
        gap: 10px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        background: var(--bg-muted);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        transition: all 0.15s;
    }

    .social-link:hover {
        background: var(--brand);
        border-color: var(--brand);
        color: white;
    }

    .social-link svg { width: 18px; height: 18px; }

    .footer-col h4 {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text-muted);
        margin-bottom: 14px;
    }

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

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

    .footer-col a {
        font-size: 14px;
        color: var(--text-secondary);
        transition: color 0.15s;
    }

    .footer-col a:hover { color: var(--brand); }

    .footer-bottom {
        padding-top: 24px;
        border-top: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-bottom p {
        font-size: 13px;
        color: var(--text-muted);
    }

    .footer-legal {
        display: flex;
        gap: 20px;
    }

    .footer-legal a {
        font-size: 13px;
        color: var(--text-muted);
        transition: color 0.15s;
    }

    .footer-legal a:hover { color: var(--brand); }

    /* KI-Widget wird jetzt von /js/chat-widget.js geladen */

    /* ═══ BACK TO TOP - PREMIUM ═══ */
    .btt {
        position: fixed;
        bottom: 110px;
        right: 28px;
        z-index: 85;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--bg-card);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 0 0 1px var(--border);
        opacity: 0;
        visibility: hidden;
        transform: translateY(16px) scale(0.85);
        transition: opacity 0.4s ease, visibility 0.4s ease,
                    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                    background 0.25s ease, box-shadow 0.25s ease;
    }

    .btt.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .btt:hover {
        background: var(--brand);
        box-shadow: 0 8px 28px rgba(30, 74, 110, 0.3), 0 0 0 3px rgba(30, 74, 110, 0.1);
        transform: translateY(-3px) scale(1.05);
    }

    .btt:hover .btt-icon { color: white; transform: translateY(-1px); }
    .btt:hover .btt-ring circle { stroke: rgba(255,255,255,0.3); }
    .btt:active { transform: translateY(0) scale(0.95); }

    .btt-ring {
        position: absolute;
        width: 50px;
        height: 50px;
        transform: rotate(-90deg);
    }

    .btt-ring circle {
        fill: none;
        stroke: var(--brand);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-dasharray: 125.66;
        stroke-dashoffset: 125.66;
        transition: stroke-dashoffset 0.1s linear, stroke 0.25s;
    }

    .btt-icon {
        position: relative;
        width: 22px;
        height: 22px;
        color: var(--brand);
        z-index: 1;
        transition: color 0.25s, transform 0.25s;
    }

    html.dark .btt {
        box-shadow: 0 4px 20px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
    }

    html.dark .btt:hover {
        box-shadow: 0 8px 28px rgba(30, 74, 110, 0.5), 0 0 0 3px rgba(42, 96, 144, 0.2);
    }

    @media (max-width: 640px) {
        .btt { bottom: 90px; right: 16px; width: 44px; height: 44px; }
        .btt-ring { width: 44px; height: 44px; }
        .btt-icon { width: 20px; height: 20px; }
    }


    /* ═══ HERO UPGRADE: Champions League Level ═══ */
    .hero {
        position: relative;
        padding: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        overflow: hidden;
        min-height: 480px;
        display: flex;
        align-items: center;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: radial-gradient(ellipse at 20% 50%, rgba(30, 74, 110, 0.06) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 30%, rgba(5, 150, 105, 0.04) 0%, transparent 40%),
                    radial-gradient(ellipse at 60% 80%, rgba(30, 74, 110, 0.03) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
    }

    html.dark .hero::before {
        background: radial-gradient(ellipse at 20% 50%, rgba(42, 96, 144, 0.12) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 30%, rgba(5, 150, 105, 0.08) 0%, transparent 40%),
                    radial-gradient(ellipse at 60% 80%, rgba(42, 96, 144, 0.06) 0%, transparent 50%);
    }

    /* Hero mit Hintergrundbild */
    .hero-bg {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 55%;
        z-index: 0;
        overflow: hidden;
    }

    .hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        animation: heroImageReveal 1.2s ease-out both;
    }

    @keyframes heroImageReveal {
        from { opacity: 0; transform: scale(1.06); }
        to { opacity: 1; transform: scale(1); }
    }

    .hero-bg::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 60%;
        background: linear-gradient(to right, var(--bg-card) 0%, var(--bg-card) 20%, transparent 100%);
        z-index: 1;
    }

    html.dark .hero-bg::after {
        background: linear-gradient(to right, var(--bg-card) 0%, var(--bg-card) 25%, transparent 100%);
    }

    @media (max-width: 900px) {
        .hero-bg {
            width: 100%;
            opacity: 0.15;
        }
        .hero-bg::after {
            display: none;
        }
        .hero {
            min-height: 400px;
        }
    }

    .hero > .container {
        position: relative;
        z-index: 2;
        padding-top: 72px;
        padding-bottom: 60px;
    }

    /* Logo-Wasserzeichen entfernen wenn Hero-Bild da ist */
    .hero-watermark {
        display: none;
    }

    .hero-title {
        font-family: 'Orbitron', 'Exo 2', sans-serif;
        font-size: clamp(34px, 5.5vw, 56px);
        font-weight: 700;
        line-height: 1.08;
        color: var(--text);
        margin-bottom: 24px;
        letter-spacing: -0.03em;
        text-shadow: 0 1px 2px rgba(0,0,0,0.04);
    }

    .hero-title span {
        color: var(--brand);
        position: relative;
    }

    /* Animierter Unterstrich unter "3D-Druck" */
    .hero-title span::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--brand), var(--highlight));
        border-radius: 2px;
        animation: shimmer 3s ease-in-out infinite;
    }

    @keyframes shimmer {
        0%, 100% { opacity: 0.6; transform: scaleX(0.8); transform-origin: left; }
        50% { opacity: 1; transform: scaleX(1); transform-origin: left; }
    }

    .hero-description {
        font-size: 17px;
        color: var(--text-secondary);
        line-height: 1.7;
        margin-bottom: 36px;
        max-width: 520px;
        letter-spacing: 0.005em;
    }

    .hero-actions {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
    }

    /* Premium Buttons */
    .btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 14px 28px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        border-radius: var(--radius-sm);
        border: none;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        letter-spacing: 0.01em;
    }

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

    .btn-primary {
        background: var(--brand);
        color: white;
        box-shadow: 0 4px 14px rgba(30, 74, 110, 0.25);
    }

    .btn-primary:hover {
        background: var(--brand-dark);
        box-shadow: 0 6px 20px rgba(30, 74, 110, 0.35), 0 0 0 3px rgba(30, 74, 110, 0.08);
        transform: translateY(-2px);
    }

    .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(30, 74, 110, 0.25);
    }

    .btn-secondary {
        background: var(--bg-muted);
        color: var(--text);
        border: 1px solid var(--border);
    }

    .btn-secondary:hover {
        background: var(--bg-page);
        border-color: var(--brand);
        color: var(--brand);
        transform: translateY(-2px);
    }

    /* ═══ PAGE LOAD ANIMATION ═══ */
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(24px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .hero-grid {
        animation: fadeInUp 0.6s ease-out;
    }

    .stats {
        animation: fadeInUp 0.6s ease-out 0.15s both;
    }

    .news-ticker {
        animation: fadeInUp 0.5s ease-out 0.25s both;
    }

    .bento-grid .news-card:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.1s both; }
    .bento-grid .news-card:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.2s both; }
    .bento-grid .news-card:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.3s both; }
    .bento-grid .news-card:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.4s both; }
    .bento-grid .news-card:nth-child(5) { animation: fadeInUp 0.5s ease-out 0.5s both; }
    .bento-grid .news-card:nth-child(6) { animation: fadeInUp 0.5s ease-out 0.6s both; }

    .feature-card:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.1s both; }
    .feature-card:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.2s both; }
    .feature-card:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.3s both; }
    .feature-card:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.4s both; }


    /* ═══ BREADCRUMB ═══ */
    .breadcrumb {
        padding: 0.75rem 0;
        font-size: 0.8rem;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--border);
        background: var(--bg-muted);
    }

    .breadcrumb .container {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .breadcrumb a {
        color: var(--brand);
        text-decoration: none;
    }

    .breadcrumb a:hover {
        text-decoration: underline;
    }

    .breadcrumb-sep {
        color: var(--border);
    }

    /* ═══ BLOG STAT BADGE ═══ */
    .blog-stat-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        background: rgba(30, 74, 110, 0.08);
        color: var(--brand);
        padding: 0.3rem 0.75rem;
        border-radius: var(--radius-sm);
        font-size: 0.8rem;
        font-weight: 600;
    }

    /* ═══ CATEGORY FILTER CHIPS ═══ */
    .category-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-chips::-webkit-scrollbar { display: none; }

    .cat-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.4rem 0.9rem;
        border-radius: var(--radius-sm);
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--text-secondary);
        background: var(--bg-card);
        border: 1px solid var(--border);
        text-decoration: none;
        white-space: nowrap;
        transition: all 0.2s;
    }

    .cat-chip:hover {
        border-color: var(--brand);
        color: var(--brand);
    }

    .cat-chip.active {
        background: var(--brand);
        border-color: var(--brand);
        color: white;
    }

    .cat-chip-count {
        font-size: 0.7rem;
        opacity: 0.7;
    }

    .cat-chip.active .cat-chip-count {
        opacity: 0.85;
    }

    /* ═══ BLOG HERO CARD ═══ */
    .blog-hero-card {
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        gap: 0;
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        overflow: hidden;
        border: 1px solid var(--border);
        text-decoration: none;
        color: inherit;
        transition: border-color 0.25s, box-shadow 0.25s;
    }

    .blog-hero-card:hover {
        border-color: var(--brand);
        box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    }

    .blog-hero-img {
        position: relative;
        overflow: hidden;
        background: var(--bg-muted);
    }

    .blog-hero-img img {
        width: 100%;
        height: 100%;
        min-height: 320px;
        object-fit: cover;
        transition: transform 0.4s;
    }

    .blog-hero-card:hover .blog-hero-img img {
        transform: scale(1.03);
    }

    .blog-hero-cat {
        position: absolute;
        top: 1rem;
        left: 1rem;
        background: var(--brand);
        color: white;
        padding: 0.25rem 0.65rem;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .blog-hero-body {
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .blog-hero-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        line-height: 1.35;
        margin-bottom: 0.75rem;
    }

    .blog-hero-excerpt {
        color: var(--text-secondary);
        line-height: 1.6;
        margin-bottom: 1.25rem;
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .blog-hero-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        color: var(--text-secondary);
        font-size: 0.8rem;
    }

    /* ═══ BLOG LAYOUT (Main + Sidebar) ═══ */
    .blog-layout {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 2.5rem;
        align-items: start;
    }

    .blog-main { min-width: 0; }

    /* ═══ BLOG GRID (3-col cards) ═══ */
    .blog-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .blog-card {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        overflow: hidden;
        border: 1px solid var(--border);
        text-decoration: none;
        color: inherit;
        transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    }

    .blog-card:hover {
        border-color: var(--brand);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    }

    .blog-card-img {
        position: relative;
        height: 160px;
        overflow: hidden;
        background: var(--bg-muted);
    }

    .blog-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s;
    }

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

    .blog-card-badge {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        background: var(--highlight);
        color: white;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        font-size: 0.65rem;
        font-weight: 600;
    }

    .blog-card-body {
        padding: 1rem;
    }

    .blog-card-cat {
        display: inline-block;
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--brand);
        margin-bottom: 0.4rem;
        letter-spacing: 0.03em;
    }

    .blog-card-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text-primary);
        line-height: 1.4;
        margin-bottom: 0.4rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .blog-card-excerpt {
        font-size: 0.8rem;
        color: var(--text-secondary);
        line-height: 1.5;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .blog-card-meta {
        display: flex;
        gap: 0.75rem;
        font-size: 0.7rem;
        color: var(--text-secondary);
    }

    /* ═══ BLOG LIST (weitere Artikel) ═══ */
    .blog-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .blog-list-item {
        display: grid;
        grid-template-columns: 140px 1fr;
        gap: 1rem;
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        overflow: hidden;
        border: 1px solid var(--border);
        text-decoration: none;
        color: inherit;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .blog-list-item:hover {
        border-color: var(--brand);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .blog-list-img {
        height: 100%;
        min-height: 100px;
        overflow: hidden;
        background: var(--bg-muted);
    }

    .blog-list-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .blog-list-body {
        padding: 0.75rem 1rem 0.75rem 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .blog-list-title {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-primary);
        line-height: 1.4;
        margin-bottom: 0.3rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* ═══ BLOG SIDEBAR ═══ */
    .blog-sidebar {
        position: sticky;
        top: 5rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .sidebar-box {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        padding: 1.25rem;
        border: 1px solid var(--border);
    }

    .sidebar-box-title {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--brand);
    }

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

    .sidebar-cat-list li + li {
        margin-top: 0.25rem;
    }

    .sidebar-cat-list a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.45rem 0.65rem;
        border-radius: 6px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.85rem;
        transition: background 0.2s, color 0.2s;
    }

    .sidebar-cat-list a:hover,
    .sidebar-cat-list a.active {
        background: var(--brand);
        color: white;
    }

    .sidebar-cat-count {
        font-size: 0.7rem;
        background: rgba(0,0,0,0.06);
        padding: 0.1rem 0.45rem;
        border-radius: 4px;
    }

    .sidebar-cat-list a.active .sidebar-cat-count,
    .sidebar-cat-list a:hover .sidebar-cat-count {
        background: rgba(255,255,255,0.2);
    }

    html.dark .sidebar-cat-count {
        background: rgba(255,255,255,0.08);
    }

    .sidebar-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .sidebar-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.65rem;
        border-radius: 6px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.85rem;
        transition: background 0.15s, color 0.15s;
    }

    .sidebar-link:hover {
        background: var(--bg-muted);
        color: var(--brand);
    }

    /* ═══ EMPTY STATE ═══ */
    .empty-state {
        text-align: center;
        padding: 4rem 2rem;
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
    }

    /* ═══ BLOG RESPONSIVE ═══ */
    @media (max-width: 1100px) {
        .blog-layout {
            grid-template-columns: 1fr 260px;
            gap: 1.5rem;
        }
        .blog-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 900px) {
        .blog-hero-card {
            grid-template-columns: 1fr;
        }
        .blog-hero-img img {
            min-height: 200px;
            max-height: 280px;
        }
        .blog-layout {
            grid-template-columns: 1fr;
        }
        .blog-sidebar {
            position: static;
            flex-direction: row;
            flex-wrap: wrap;
        }
        .blog-sidebar > * {
            flex: 1;
            min-width: 250px;
        }
    }

    @media (max-width: 640px) {
        .blog-grid {
            grid-template-columns: 1fr;
        }
        .blog-hero-body {
            padding: 1.25rem;
        }
        .blog-hero-title {
            font-size: 1.2rem;
        }
        .blog-list-item {
            grid-template-columns: 100px 1fr;
        }
    }

    /* ═══ BLOG POST (post-v3.php) ═══ */

    /* Reading Progress Bar */
    .reading-progress {
        position: fixed;
        top: 0;
        left: 0;
        height: 3px;
        width: 0;
        background: linear-gradient(90deg, var(--brand), var(--highlight));
        z-index: 200;
        transition: width 0.1s linear;
    }

    /* Post Container - narrower for readability */
    .post-container {
        max-width: 780px;
    }

    /* Post Article Section */
    .post-article {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Post Header */
    .post-header {
        margin-bottom: 2rem;
    }

    /* Category Badge */
    .post-cat-badge {
        display: inline-block;
        padding: 0.3rem 0.85rem;
        background: var(--accent-bg);
        color: var(--brand);
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-radius: var(--radius-sm);
        border: 1px solid transparent;
        margin-bottom: 1rem;
        transition: border-color 0.2s;
    }

    .post-cat-badge:hover {
        border-color: var(--brand);
    }

    /* Post Title */
    .post-title {
        font-size: 2rem;
        font-weight: 800;
        line-height: 1.2;
        color: var(--text);
        letter-spacing: -0.02em;
        margin-bottom: 1rem;
    }

    @media (min-width: 640px) {
        .post-title {
            font-size: 2.5rem;
        }
    }

    @media (min-width: 1024px) {
        .post-title {
            font-size: 2.85rem;
        }
    }

    /* Post Excerpt */
    .post-excerpt {
        font-size: 1.15rem;
        line-height: 1.6;
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
    }

    /* Post Meta */
    .post-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
        font-size: 0.85rem;
        color: var(--text-muted);
    }

    .post-meta-item {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .post-meta-item svg {
        color: var(--brand);
        flex-shrink: 0;
    }

    .post-meta-author {
        gap: 0.6rem;
    }

    .post-meta-author-name {
        display: block;
        font-weight: 600;
        color: var(--text);
        font-size: 0.85rem;
    }

    .post-meta-author-role {
        display: block;
        font-size: 0.7rem;
        color: var(--text-muted);
    }

    .post-author-avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-sm);
        background: var(--brand);
        color: white;
        font-weight: 700;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .post-meta-divider {
        display: none;
        width: 1px;
        height: 24px;
        background: var(--border);
    }

    @media (min-width: 640px) {
        .post-meta-divider {
            display: block;
        }
    }

    /* Featured Image */
    .post-featured-img {
        margin-bottom: 2rem;
        border-radius: var(--radius-lg);
        overflow: hidden;
        border: 1px solid var(--border);
    }

    .post-featured-img img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        display: block;
    }

    .post-featured-img figcaption {
        padding: 0.6rem 1rem;
        font-size: 0.78rem;
        color: var(--text-muted);
        text-align: center;
        background: var(--bg-muted);
        border-top: 1px solid var(--border);
    }

    /* ═══ POST CONTENT TYPOGRAPHY ═══ */
    .post-content {
        font-size: 1.05rem;
        line-height: 1.75;
        color: var(--text);
    }

    .post-content h2 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-top: 2.5rem;
        margin-bottom: 0.75rem;
        color: var(--text);
        padding-left: 0.75rem;
        border-left: 3px solid var(--brand);
    }

    .post-content h3 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-top: 2rem;
        margin-bottom: 0.6rem;
        color: var(--text);
    }

    .post-content h4 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--text);
    }

    .post-content p {
        margin-bottom: 1.25rem;
        color: var(--text-secondary);
    }

    .post-content a {
        color: var(--brand);
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color 0.15s;
    }

    .post-content a:hover {
        color: var(--brand-dark);
    }

    .post-content a.inline-product-link {
        color: var(--highlight);
        font-weight: 600;
        text-decoration: none;
        border-bottom: 2px solid rgba(5, 150, 105, 0.3);
        padding: 0 0.1rem;
        transition: border-color 0.2s, color 0.2s;
    }

    .post-content a.inline-product-link:hover {
        color: var(--highlight);
        border-bottom-color: var(--highlight);
    }

    .post-content a[href*="awin1.com"],
    .post-content a[href*="ebay.com"] {
        color: var(--highlight);
        font-weight: 600;
        text-decoration: none;
        border-bottom: 2px solid rgba(5, 150, 105, 0.3);
        padding: 0 0.1rem;
        transition: border-color 0.2s, color 0.2s;
    }

    .post-content a[href*="awin1.com"]:hover,
    .post-content a[href*="ebay.com"]:hover {
        border-bottom-color: var(--highlight);
    }

    .post-content strong {
        font-weight: 600;
        color: var(--text);
    }

    .post-content ul,
    .post-content ol {
        margin: 1rem 0 1.25rem 1.5rem;
        color: var(--text-secondary);
    }

    .post-content li {
        margin-bottom: 0.4rem;
    }

    .post-content li::marker {
        color: var(--brand);
    }

    .post-content blockquote {
        border-left: 3px solid var(--brand);
        background: var(--accent-bg);
        padding: 1rem 1.25rem;
        margin: 1.5rem 0;
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
        color: var(--text-secondary);
    }

    .post-content code {
        background: var(--bg-muted);
        color: var(--brand);
        padding: 0.15rem 0.4rem;
        border-radius: 4px;
        font-size: 0.9em;
        font-family: 'JetBrains Mono', monospace;
    }

    .post-content pre {
        background: var(--bg-muted);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 1rem 1.25rem;
        overflow-x: auto;
        margin: 1.5rem 0;
    }

    .post-content pre code {
        background: none;
        padding: 0;
        color: var(--text);
    }

    .post-content img {
        border-radius: var(--radius-sm);
        margin: 1rem 0;
    }

    .post-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.25rem 0;
        font-size: 0.9rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        overflow: hidden;
    }

    .post-content th,
    .post-content td {
        padding: 0.6rem 0.85rem;
        text-align: left;
        border-bottom: 1px solid var(--border);
    }

    .post-content th {
        background: var(--bg-muted);
        font-weight: 600;
        color: var(--text);
        font-size: 0.8rem;
    }

    .post-content td {
        color: var(--text-secondary);
    }

    .post-content hr {
        border: none;
        border-top: 1px solid var(--border);
        margin: 2rem 0;
    }

    /* ═══ HARDWARE RADAR BOX ═══ */
    .post-hardware-radar {
        margin: 2rem 0 1.25rem;
        padding: 1.25rem 1.5rem;
        background: var(--accent-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
    }

    .post-hardware-radar-head {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .post-hardware-radar-head svg {
        color: var(--brand);
        flex-shrink: 0;
    }

    .post-hardware-radar-head h3 {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--text);
        margin: 0;
    }

    .post-hardware-radar-desc {
        font-size: 0.8rem;
        color: var(--text-muted);
        margin: 0 0 0.75rem;
        line-height: 1.5;
    }

    .post-hardware-radar-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .post-hardware-radar-link {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.45rem 0.85rem;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        color: var(--text-secondary);
        font-size: 0.8rem;
        font-weight: 500;
        transition: border-color 0.2s, color 0.2s;
    }

    .post-hardware-radar-link svg {
        flex-shrink: 0;
    }

    .post-hardware-radar-link:hover {
        border-color: var(--brand);
        color: var(--brand);
    }

    .post-hardware-radar-all {
        background: var(--brand);
        border-color: var(--brand);
        color: white;
        font-weight: 600;
    }

    .post-hardware-radar-all:hover {
        background: var(--brand-dark);
        border-color: var(--brand-dark);
        color: white;
    }

    /* ═══ AFFILIATE HINT ═══ */
    .post-affiliate-hint {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        margin: 1rem 0 1.5rem;
        padding: 0.75rem 1rem;
        background: var(--accent-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
    }

    .post-affiliate-hint svg {
        flex-shrink: 0;
        margin-top: 0.1rem;
    }

    .post-affiliate-hint p {
        font-size: 0.78rem;
        color: var(--text-muted);
        line-height: 1.5;
        margin: 0;
    }

    .post-affiliate-hint strong {
        color: var(--text-secondary);
    }

    /* ═══ PRODUCT CARDS ═══ */
    .post-products {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border);
    }

    .post-products-title {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 1.25rem;
    }

    .post-products-title svg {
        color: var(--highlight);
        flex-shrink: 0;
    }

    .post-product-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.85rem;
    }

    @media (max-width: 900px) {
        .post-product-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 480px) {
        .post-product-grid {
            grid-template-columns: 1fr 1fr;
            gap: 0.6rem;
        }
    }

    .post-product-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        display: flex;
        flex-direction: column;
        transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    }

    .post-product-card:hover {
        border-color: var(--highlight);
        box-shadow: 0 4px 16px rgba(5, 150, 105, 0.08);
        transform: translateY(-2px);
    }

    .post-product-img {
        aspect-ratio: 1;
        overflow: hidden;
        background: var(--bg-muted);
    }

    .post-product-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.3s;
    }

    .post-product-card:hover .post-product-img img {
        transform: scale(1.05);
    }

    .post-product-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
    }

    .post-product-body {
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .post-product-name {
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--text);
        line-height: 1.35;
        margin-bottom: 0.35rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.15s;
    }

    .post-product-card:hover .post-product-name {
        color: var(--highlight);
    }

    .post-product-brand {
        font-size: 0.7rem;
        color: var(--text-muted);
        margin-bottom: 0.25rem;
    }

    .post-product-source {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.65rem;
        color: var(--brand);
        background: var(--accent-bg);
        padding: 0.15rem 0.4rem;
        border-radius: 4px;
        margin-bottom: 0.25rem;
        width: fit-content;
    }

    .post-product-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: auto;
    }

    .post-product-price {
        font-size: 1rem;
        font-weight: 700;
        color: var(--highlight);
    }

    .post-product-cta {
        font-size: 0.7rem;
        color: var(--brand);
        display: flex;
        align-items: center;
        gap: 0.25rem;
        font-weight: 500;
    }

    /* Also Interesting (secondary products) */
    .post-also-title {
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        margin: 1.5rem 0 0.75rem;
    }

    .post-also-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    @media (max-width: 480px) {
        .post-also-grid {
            grid-template-columns: 1fr;
        }
    }

    .post-also-card {
        display: flex;
        gap: 0.85rem;
        padding: 0.75rem;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        text-decoration: none;
        color: inherit;
        transition: border-color 0.2s;
    }

    .post-also-card:hover {
        border-color: var(--brand);
    }

    .post-also-img {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
        border-radius: var(--radius-sm);
        overflow: hidden;
        background: var(--bg-muted);
    }

    .post-also-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .post-also-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }

    .post-also-name {
        font-size: 0.82rem;
        font-weight: 500;
        color: var(--text);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.15s;
    }

    .post-also-card:hover .post-also-name {
        color: var(--brand);
    }

    .post-also-price {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--highlight);
        margin-top: 0.2rem;
    }

    .post-products-footnote {
        font-size: 0.72rem;
        color: var(--text-muted);
        margin-top: 1rem;
    }

    .post-products-footnote a {
        color: var(--brand);
    }

    .post-products-footnote a:hover {
        text-decoration: underline;
    }

    /* ═══ TAGS ═══ */
    .post-tags-section {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border);
    }

    .post-section-label {
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        margin-bottom: 0.75rem;
    }

    .post-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .post-tag {
        display: inline-block;
        padding: 0.4rem 0.85rem;
        background: var(--bg-muted);
        color: var(--text-secondary);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 0.82rem;
        font-weight: 500;
        transition: border-color 0.2s, color 0.2s;
    }

    .post-tag:hover {
        border-color: var(--brand);
        color: var(--brand);
    }

    /* ═══ SOURCES ═══ */
    .post-sources {
        margin-top: 2rem;
        padding: 1.5rem;
        background: var(--bg-muted);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
    }

    .post-sources-title {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 1rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 1rem;
    }

    .post-sources-title svg {
        color: var(--brand);
        flex-shrink: 0;
    }

    .post-sources-list {
        list-style: none;
        counter-reset: source-counter;
        padding: 0;
        margin: 0;
    }

    .post-sources-list li {
        counter-increment: source-counter;
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        margin-bottom: 0.6rem;
    }

    .post-sources-list li::before {
        content: counter(source-counter);
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--text-muted);
        flex-shrink: 0;
        margin-top: 0.1rem;
    }

    .post-sources-list a {
        font-size: 0.85rem;
        color: var(--text-secondary);
        line-height: 1.5;
        transition: color 0.15s;
    }

    .post-sources-list a:hover {
        color: var(--brand);
    }

    .post-sources-list a svg {
        display: inline-block;
        vertical-align: middle;
        margin-left: 0.25rem;
        opacity: 0.5;
    }

    /* ═══ SHARE BUTTONS ═══ */
    .post-share {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .post-share-label {
        font-size: 0.82rem;
        font-weight: 500;
        color: var(--text-muted);
    }

    .post-share-buttons {
        display: flex;
        gap: 0.5rem;
    }

    .post-share-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-sm);
        background: var(--bg-muted);
        border: 1px solid var(--border);
        color: var(--text-secondary);
        cursor: pointer;
        transition: all 0.2s;
    }

    .post-share-btn:hover {
        border-color: var(--brand);
        color: var(--brand);
        background: var(--accent-bg);
    }

    .post-share-copied {
        display: none;
        color: var(--highlight);
    }

    .post-back-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 1.25rem;
        background: var(--bg-muted);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text-secondary);
        transition: all 0.2s;
    }

    .post-back-link:hover {
        border-color: var(--brand);
        color: var(--brand);
    }

    .post-back-link svg {
        transition: transform 0.2s;
    }

    .post-back-link:hover svg {
        transform: translateX(-3px);
    }

    /* ═══ WIKI CROSS-LINKS ═══ */
    .post-wiki-links {
        padding-top: 0;
        padding-bottom: 2rem;
    }

    .post-wiki-box {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 1.5rem;
    }

    .post-wiki-head {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .post-wiki-head svg {
        color: var(--brand);
        flex-shrink: 0;
    }

    .post-wiki-head span {
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--brand);
    }

    .post-wiki-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
    }

    .post-wiki-card {
        display: block;
        padding: 0.85rem 1rem;
        background: var(--bg-muted);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        text-decoration: none;
        transition: border-color 0.2s, background 0.2s;
    }

    .post-wiki-card:hover {
        border-color: var(--brand);
        background: var(--accent-bg);
    }

    .post-wiki-card-title {
        display: block;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 0.2rem;
    }

    .post-wiki-card-cat {
        display: block;
        font-size: 0.72rem;
        color: var(--brand);
    }

    /* ═══ RELATED POSTS ═══ */
    .post-related {
        padding-top: 2rem;
        border-top: 1px solid var(--border);
    }

    .post-related-empty {
        text-align: center;
        padding: 3rem 0;
    }

    .post-related-empty a {
        color: var(--brand);
        font-weight: 500;
    }

    .post-related-empty a:hover {
        text-decoration: underline;
    }


    /* ═══ FOOTER ADMIN LINK ═══ */
    .footer-admin-link {
        opacity: 0.3;
        transition: opacity 0.2s;
        display: inline-flex;
        align-items: center;
    }

    .footer-admin-link:hover {
        opacity: 1;
    }

/* ═══════════════════════════════════════════════════════════════════════════
   WIKI OVERVIEW - V3 Styles
   Prefix: wiki-
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══ PAGE ═══ */
.wiki-page {
    min-height: 100vh;
}

/* ═══ BREADCRUMB ═══ */

.wiki-breadcrumb {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.wiki-breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.wiki-breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wiki-breadcrumb-list li + li::before {
    content: '/';
    color: var(--border-hover);
}

.wiki-breadcrumb-list a {
    color: var(--text-secondary);
    transition: color 0.15s;
}

.wiki-breadcrumb-list a:hover {
    color: var(--brand);
}

.wiki-breadcrumb-list [aria-current="page"] {
    color: var(--text);
    font-weight: 500;
}

/* ═══ SVG ICON SIZES ═══ */
.wiki-icon-xs {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.wiki-icon-sm {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.wiki-icon-heading {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--brand);
}

/* ═══ HERO ═══ */
.wiki-hero {
    padding: 48px 0 40px;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
}

.wiki-hero-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.wiki-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    background: var(--accent-bg);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.wiki-hero-title {
    font-family: 'Orbitron', 'Exo 2', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    margin: 0 0 14px 0;
    letter-spacing: -0.02em;
}

.wiki-hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* ═══ STATS ═══ */
.wiki-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.wiki-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.wiki-stat svg {
    color: var(--brand);
}

.wiki-stat strong {
    color: var(--text);
    font-weight: 700;
}

/* ═══ SEARCH ═══ */
.wiki-search {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.wiki-search-field {
    position: relative;
}

.wiki-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 2;
}

.wiki-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.wiki-search-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

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

/* ═══ SUGGEST DROPDOWN ═══ */
.wiki-suggest-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 50;
    display: none;
    box-shadow: var(--shadow-lg);
}

.wiki-suggest-item {
    display: block;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
}

.wiki-suggest-item:hover {
    background: var(--bg-muted);
}

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

.wiki-suggest-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.wiki-suggest-excerpt {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wiki-suggest-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ═══ SECTIONS ═══ */
.wiki-section {
    padding: 40px 0;
}

.wiki-section-muted {
    background: var(--bg-muted);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.wiki-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.wiki-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.wiki-section-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand);
    transition: color 0.15s;
    white-space: nowrap;
}

.wiki-section-link:hover {
    color: var(--brand-dark);
}

/* ═══ AD SLOT ═══ */
.wiki-ad-section {
    padding: 20px 0;
    background: var(--bg-muted);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ad-slot {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-square {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    max-width: 100%;
}
.ad-square img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ═══ KATEGORIE GRID ═══ */
.wiki-cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .wiki-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .wiki-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wiki-cat-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.wiki-cat-card-img {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
}

.wiki-cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wiki-cat-card:hover .wiki-cat-card-img img {
    transform: scale(1.05);
}

.wiki-cat-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px 20px;
}

.wiki-cat-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.wiki-cat-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wiki-cat-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
}

.wiki-cat-meta {
    min-width: 0;
}

.wiki-cat-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.wiki-cat-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.wiki-cat-desc {
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wiki-cat-children {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wiki-cat-child {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    background: var(--accent-bg);
    font-size: 0.72rem;
    color: var(--brand);
    font-weight: 500;
    transition: background 0.15s;
}

.wiki-cat-card:hover .wiki-cat-child {
    background: rgba(30, 74, 110, 0.12);
}

.wiki-cat-arrow {
    position: absolute;
    top: 20px;
    right: 16px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
}

.wiki-cat-card:hover .wiki-cat-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ═══ ARTIKEL GRID ═══ */
.wiki-article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .wiki-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .wiki-article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wiki-article-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.wiki-article-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
}

.wiki-article-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wiki-article-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--brand);
    background: var(--accent-bg);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
}

.wiki-article-pin {
    color: var(--highlight);
    display: flex;
}

.wiki-article-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

.wiki-article-excerpt {
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wiki-article-footer {
    display: flex;
    gap: 14px;
    margin-top: auto;
    padding-top: 4px;
}

.wiki-article-date,
.wiki-article-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ═══ BELIEBTE ARTIKEL ═══ */
.wiki-popular-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 640px) {
    .wiki-popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.wiki-popular-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.wiki-popular-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
}

.wiki-popular-rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand);
    opacity: 0.35;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
    line-height: 1;
}

.wiki-popular-content {
    flex: 1;
    min-width: 0;
}

.wiki-popular-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.wiki-popular-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.wiki-popular-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.2s;
}

.wiki-popular-card:hover .wiki-popular-chevron {
    opacity: 1;
}

/* ═══ RESPONSIVE: small adjustments ═══ */
@media (max-width: 640px) {
    .wiki-hero {
        padding: 32px 0 28px;
    }

    .wiki-hero-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .wiki-stats {
        gap: 8px;
    }

    .wiki-stat {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .wiki-section {
        padding: 28px 0;
    }

    .wiki-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .wiki-cat-card {
        padding: 16px;
    }

    .wiki-cat-arrow {
        display: none;
    }

    .wiki-article-card {
        padding: 16px;
    }

    .wiki-popular-card {
        padding: 14px 16px;
    }
}

@media (min-width: 900px) {
    .wiki-hero {
        padding: 56px 0 48px;
    }

    .wiki-section {
        padding: 48px 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   3D AUS DU - Wiki Einzelartikel V3
   Prefix: wiki-art-
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══ 404 ═══ */
.wiki-art-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

.wiki-art-404-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.wiki-art-404-text {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
}

.wiki-art-404-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-weight: 500;
    font-size: 0.9rem;
}

.wiki-art-404-link:hover {
    text-decoration: underline;
}

/* ═══ LAYOUT ═══ */
.wiki-art-main {
    padding-top: 32px;
    padding-bottom: 60px;
}

.wiki-art-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.wiki-art-layout--has-toc {
    grid-template-columns: 220px 1fr;
    gap: 40px;
}

/* ═══ TOC SIDEBAR ═══ */
.wiki-art-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--header-height) - 48px);
    overflow-y: auto;
}

.wiki-art-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.wiki-art-toc-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.wiki-art-toc-item {
    display: block;
    padding: 5px 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
    transition: color 0.15s;
    border-left: 2px solid transparent;
    padding-left: 10px;
    margin-left: -10px;
}

.wiki-art-toc-item--l3 {
    padding-left: 24px;
    margin-left: -10px;
    font-size: 0.78rem;
}

.wiki-art-toc-item--l4 {
    padding-left: 38px;
    margin-left: -10px;
    font-size: 0.76rem;
}

.wiki-art-toc-item:hover {
    color: var(--brand);
}

.wiki-art-toc-item--active {
    color: var(--brand);
    border-left-color: var(--brand);
    font-weight: 600;
}

.wiki-art-sidebar-meta {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.wiki-art-sidebar-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.wiki-art-sidebar-meta-row + .wiki-art-sidebar-meta-row {
    margin-top: 6px;
}

.wiki-art-sidebar-meta-row svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

/* ═══ ARTICLE HEADER ═══ */
.wiki-art-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.wiki-art-cat-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand);
    background: var(--accent-bg);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: background 0.15s;
}

.wiki-art-cat-badge:hover {
    background: rgba(30, 74, 110, 0.14);
}

.wiki-art-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 12px 0;
}

.wiki-art-excerpt {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.wiki-art-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.wiki-art-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.wiki-art-meta-item svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

/* ═══ ARTICLE IMAGE ═══ */
.wiki-art-image {
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.wiki-art-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ═══ ARTICLE CONTENT TYPOGRAPHY ═══ */
.wiki-art-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
}

.wiki-art-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    padding-left: 0.75rem;
    border-left: 3px solid var(--brand);
}

.wiki-art-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.wiki-art-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.wiki-art-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.wiki-art-content a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.wiki-art-content a:hover {
    color: var(--brand-dark);
}

.wiki-art-content a.inline-product-link {
    color: var(--highlight);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(5, 150, 105, 0.3);
    padding: 0 0.1rem;
    transition: border-color 0.2s, color 0.2s;
}

.wiki-art-content a.inline-product-link:hover {
    color: var(--highlight);
    border-bottom-color: var(--highlight);
}

.wiki-art-content a[href*="awin1.com"],
.wiki-art-content a[href*="ebay.com"] {
    color: var(--highlight);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(5, 150, 105, 0.3);
    padding: 0 0.1rem;
    transition: border-color 0.2s, color 0.2s;
}

.wiki-art-content a[href*="awin1.com"]:hover,
.wiki-art-content a[href*="ebay.com"]:hover {
    border-bottom-color: var(--highlight);
}

.wiki-art-content a.wiki-autolink {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px dotted var(--brand);
    transition: border-color 0.2s;
}

.wiki-art-content a.wiki-autolink:hover {
    border-bottom-style: solid;
    color: var(--brand-dark);
}

.wiki-art-content strong {
    font-weight: 600;
    color: var(--text);
}

.wiki-art-content em {
    font-style: italic;
    color: var(--text-secondary);
}

.wiki-art-content mark {
    background: var(--highlight-bg);
    color: var(--text);
    padding: 1px 4px;
    border-radius: 3px;
}

.wiki-art-content ul,
.wiki-art-content ol {
    margin: 1rem 0 1.25rem 1.5rem;
    color: var(--text-secondary);
}

.wiki-art-content li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.wiki-art-content li::marker {
    color: var(--brand);
}

.wiki-art-content blockquote {
    border-left: 3px solid var(--brand);
    background: var(--accent-bg);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
}

.wiki-art-content code {
    background: var(--bg-muted);
    color: var(--brand);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'JetBrains Mono', monospace;
}

.wiki-art-content pre {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.wiki-art-content pre code {
    background: none;
    padding: 0;
    color: var(--text);
}

.wiki-art-content img {
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.wiki-art-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.wiki-art-content th,
.wiki-art-content td {
    padding: 0.6rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.wiki-art-content th {
    background: var(--bg-muted);
    font-weight: 600;
    color: var(--text);
    font-size: 0.8rem;
}

.wiki-art-content td {
    color: var(--text-secondary);
}

.wiki-art-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* ═══ AFFILIATE HINT ═══ */
.wiki-art-affiliate-hint {
    display: flex;
    gap: 10px;
    margin-top: 32px;
    padding: 14px 18px;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.wiki-art-affiliate-hint svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--brand);
}

.wiki-art-affiliate-hint strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.wiki-art-affiliate-hint p {
    margin: 0;
}

/* ═══ TAGS ═══ */
.wiki-art-tags {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.wiki-art-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.wiki-art-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wiki-art-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent-bg);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--brand);
    transition: all 0.15s;
}

.wiki-art-tag:hover {
    background: rgba(30, 74, 110, 0.14);
    border-color: var(--border-hover);
}

/* ═══ SOURCES ═══ */
.wiki-art-sources {
    margin-top: 32px;
    padding: 20px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.wiki-art-sources-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.wiki-art-sources-title svg {
    color: var(--brand);
    flex-shrink: 0;
}

.wiki-art-sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: source-counter;
}

.wiki-art-sources-list li {
    counter-increment: source-counter;
    padding: 6px 0;
    font-size: 0.85rem;
}

.wiki-art-sources-list li::before {
    content: counter(source-counter) ".";
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-right: 8px;
    font-weight: 600;
}

.wiki-art-sources-list a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.15s;
}

.wiki-art-sources-list a:hover {
    text-decoration: underline;
}

.wiki-art-sources-list a svg {
    display: inline;
    vertical-align: middle;
    margin-left: 4px;
    color: var(--text-muted);
}

/* ═══ RELATED ARTICLES ═══ */
.wiki-art-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.wiki-art-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.wiki-art-related-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.wiki-art-related-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.wiki-art-related-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.wiki-art-related-excerpt {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.wiki-art-related-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand);
    margin-top: auto;
}

/* ═══ CROSS-LINKS (Blog + Creator) ═══ */
.wiki-art-crosslinks {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.wiki-art-crosslinks--blog {
    border-left: 3px solid var(--brand);
}

.wiki-art-crosslinks--creator {
    border-left: 3px solid #dc2626;
}

.wiki-art-crosslinks-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.wiki-art-crosslinks--blog .wiki-art-crosslinks-head {
    color: var(--brand);
}

.wiki-art-crosslinks--blog .wiki-art-crosslinks-head svg {
    color: var(--brand);
}

.wiki-art-crosslinks--creator .wiki-art-crosslinks-head {
    color: #dc2626;
}

.wiki-art-crosslinks--creator .wiki-art-crosslinks-head svg {
    color: #dc2626;
}

.wiki-art-crosslinks-head span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wiki-art-crosslinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.wiki-art-crosslink-card {
    display: block;
    padding: 14px 16px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.wiki-art-crosslink-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.wiki-art-crosslink-card--blog:hover {
    background: var(--accent-bg);
}

.wiki-art-crosslink-card--creator:hover {
    background: rgba(220, 38, 38, 0.04);
}

.wiki-art-crosslink-card--video {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.wiki-art-crosslink-thumb {
    width: 80px;
    height: 45px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.wiki-art-crosslink-body {
    flex: 1;
    min-width: 0;
}

.wiki-art-crosslink-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.wiki-art-crosslink-card--video .wiki-art-crosslink-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem;
}

.wiki-art-crosslink-label {
    display: block;
    font-size: 0.72rem;
    margin-top: 4px;
}

.wiki-art-crosslink-card--blog .wiki-art-crosslink-label {
    color: var(--brand);
}

.wiki-art-crosslink-card--creator .wiki-art-crosslink-label {
    color: #dc2626;
}

/* ═══ AD SLOTS ═══ */
.ad-slot {
    min-height: 0;
}

.wiki-art-sidebar .ad-slot {
    margin-top: 16px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 860px) {
    .wiki-art-layout--has-toc {
        grid-template-columns: 1fr;
    }

    .wiki-art-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .wiki-art-toc {
        display: none;
    }

    .wiki-art-sidebar-meta {
        margin-top: 0;
    }

    .wiki-art-sidebar .ad-slot {
        display: none;
    }
}

@media (max-width: 640px) {
    .wiki-art-main {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .wiki-art-title {
        font-size: 1.4rem;
    }

    .wiki-art-excerpt {
        font-size: 0.95rem;
    }

    .wiki-art-content {
        font-size: 1rem;
    }

    .wiki-art-content h2 {
        font-size: 1.3rem;
    }

    .wiki-art-content h3 {
        font-size: 1.1rem;
    }

    .wiki-art-related-grid {
        grid-template-columns: 1fr;
    }

    .wiki-art-crosslinks {
        padding: 16px;
    }

    .wiki-art-crosslinks-grid {
        grid-template-columns: 1fr;
    }

    .wiki-art-sources {
        padding: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   WIKI KATEGORIE-SEITE - V3 Styles
   Prefix: wiki-cat-page-
   Datei: /css/wiki-kategorie-v3.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══ 404 ═══ */
.wiki-cat-page-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

.wiki-cat-page-404-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.wiki-cat-page-404-text {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
}

.wiki-cat-page-404-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-weight: 500;
    font-size: 0.9rem;
}

.wiki-cat-page-404-link:hover {
    text-decoration: underline;
}

/* ═══ PAGE ═══ */
.wiki-cat-page {
    padding-top: 32px;
    padding-bottom: 60px;
}

/* ═══ CATEGORY HEADER ═══ */
.wiki-cat-page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}


/* Category Hero Image */
.wiki-cat-page-hero-img {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.wiki-cat-page-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wiki-cat-page-header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.wiki-cat-page-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    color: var(--brand);
}

.wiki-cat-page-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.wiki-cat-page-count {
    font-size: 0.85rem;
    color: var(--brand);
    font-weight: 600;
    margin-top: 4px;
}

.wiki-cat-page-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 640px;
}

/* ═══ SUBCATEGORIES ═══ */
.wiki-cat-page-subcats {
    margin-bottom: 28px;
}

.wiki-cat-page-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.wiki-cat-page-section-label svg {
    color: var(--brand);
    flex-shrink: 0;
}

.wiki-cat-page-subcats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.wiki-cat-page-subcat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.wiki-cat-page-subcat:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.wiki-cat-page-subcat-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.wiki-cat-page-subcat-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ═══ EMPTY STATE ═══ */
.wiki-cat-page-empty {
    text-align: center;
    padding: 60px 0;
}

.wiki-cat-page-empty-icon {
    color: var(--text-muted);
    margin: 0 auto 16px;
    opacity: 0.5;
}

.wiki-cat-page-empty-title {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 8px;
}

.wiki-cat-page-empty-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ═══ ARTICLE LIST ═══ */
.wiki-cat-page-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.wiki-cat-page-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.wiki-cat-page-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.wiki-cat-page-card-body {
    flex: 1;
    min-width: 0;
}

.wiki-cat-page-card-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.wiki-cat-page-pin-icon {
    color: var(--brand);
    flex-shrink: 0;
}

.wiki-cat-page-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wiki-cat-page-card-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    align-items: center;
}

.wiki-cat-page-card-cat {
    color: var(--brand);
    font-weight: 600;
}

.wiki-cat-page-card-date,
.wiki-cat-page-card-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wiki-cat-page-card-date svg,
.wiki-cat-page-card-views svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.wiki-cat-page-card-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    border: 1px solid var(--border);
}

/* ═══ PAGINATION ═══ */
.wiki-cat-page-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.wiki-cat-page-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.wiki-cat-page-pagination-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.wiki-cat-page-pagination-pages {
    display: flex;
    gap: 4px;
}

.wiki-cat-page-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.wiki-cat-page-pagination-page:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.wiki-cat-page-pagination-page--active {
    background: var(--accent-bg);
    border-color: var(--brand);
    color: var(--brand);
    font-weight: 700;
}

/* ═══ AD SLOT ═══ */
.wiki-cat-page .ad-slot {
    min-height: 0;
    margin-bottom: 24px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .wiki-cat-page-subcats-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    .wiki-cat-page {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .wiki-cat-page-header-top {
        gap: 12px;
    }

    .wiki-cat-page-icon {
        width: 44px;
        height: 44px;
    }

    .wiki-cat-page-icon svg {
        width: 22px;
        height: 22px;
    }

    .wiki-cat-page-title {
        font-size: 1.3rem;
    }

    
    .wiki-cat-page-hero-img {
        height: 150px;
        border-radius: var(--radius-sm);
        margin-bottom: 16px;
    }

    .wiki-cat-page-card {
        padding: 16px;
        flex-direction: column-reverse;
        gap: 12px;
    }

    .wiki-cat-page-card-img {
        width: 100%;
        height: 140px;
        border-radius: var(--radius-sm);
    }

    .wiki-cat-page-card-title {
        font-size: 0.95rem;
    }

    .wiki-cat-page-subcats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wiki-cat-page-pagination {
        gap: 4px;
    }

    .wiki-cat-page-pagination-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .wiki-cat-page-pagination-page {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   WIKI SUCHE-SEITE - V3 Styles
   Prefix: wiki-search-page-
   Datei: /css/wiki-suche-v3.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══ PAGE ═══ */
.wiki-search-page {
    padding-top: 32px;
    padding-bottom: 60px;
}

/* ═══ SEARCH FORM ═══ */
.wiki-search-page-form {
    margin-bottom: 28px;
}

.wiki-search-page-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px 0;
}

.wiki-search-page-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.wiki-search-page-input-wrap:focus-within {
    border-color: var(--brand);
    box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-bg);
}

.wiki-search-page-input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
}

.wiki-search-page-input {
    flex: 1;
    padding: 14px 20px 14px 48px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    min-width: 0;
}

.wiki-search-page-input::placeholder {
    color: var(--text-muted);
}

.wiki-search-page-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 4px;
    background: var(--accent-bg);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--brand);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}

.wiki-search-page-submit:hover {
    background: var(--brand);
    color: #ffffff;
}

/* ═══ RESULT STATUS ═══ */
.wiki-search-page-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.wiki-search-page-status strong {
    color: var(--text);
    font-weight: 700;
}

.wiki-search-page-status-query {
    color: var(--brand);
}

.wiki-search-page-fallback-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: 8px;
    background: var(--bg-muted);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

/* ═══ EMPTY STATE ═══ */
.wiki-search-page-empty {
    text-align: center;
    padding: 60px 0;
}

.wiki-search-page-empty-icon {
    color: var(--text-muted);
    margin: 0 auto 16px;
    opacity: 0.5;
}

.wiki-search-page-empty-title {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 8px;
}

.wiki-search-page-empty-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.wiki-search-page-empty-link {
    color: var(--brand);
    font-weight: 500;
}

.wiki-search-page-empty-link:hover {
    text-decoration: underline;
}

/* ═══ RESULT LIST ═══ */
.wiki-search-page-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.wiki-search-page-result {
    display: block;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.wiki-search-page-result:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

/* Highlight marks from OpenSearch */
.wiki-search-page-result mark {
    background: var(--highlight-bg);
    color: var(--text);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* ═══ RESULT CARD INNER ═══ */
.wiki-search-page-result-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.wiki-search-page-result-cat {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand);
    background: var(--accent-bg);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
}

.wiki-search-page-result-score {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.wiki-search-page-result-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.wiki-search-page-result-snippet {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wiki-search-page-result-meta {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    align-items: center;
}

.wiki-search-page-result-date,
.wiki-search-page-result-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wiki-search-page-result-date svg,
.wiki-search-page-result-views svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.wiki-search-page-result-tags {
    color: var(--brand);
    font-size: 0.75rem;
}

/* ═══ PAGINATION ═══ */
.wiki-search-page-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.wiki-search-page-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.wiki-search-page-pagination-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.wiki-search-page-pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0 12px;
}

/* ═══ AD SLOT ═══ */
.wiki-search-page .ad-slot {
    min-height: 0;
    margin-bottom: 20px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .wiki-search-page-heading {
        font-size: 1.3rem;
    }
}

@media (max-width: 640px) {
    .wiki-search-page {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .wiki-search-page-heading {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .wiki-search-page-input {
        font-size: 0.95rem;
        padding: 12px 16px 12px 44px;
    }

    .wiki-search-page-input-icon {
        left: 14px;
        width: 18px;
        height: 18px;
    }

    .wiki-search-page-submit {
        width: 38px;
        height: 38px;
    }

    .wiki-search-page-result {
        padding: 16px;
    }

    .wiki-search-page-result-title {
        font-size: 0.95rem;
    }

    .wiki-search-page-result-snippet {
        font-size: 0.82rem;
    }

    .wiki-search-page-result-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .wiki-search-page-pagination {
        gap: 4px;
    }

    .wiki-search-page-pagination-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .wiki-search-page-pagination-info {
        font-size: 0.8rem;
    }
}

    /* ═══ SCROLLBAR PREMIUM ═══ */
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg-muted);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--border-hover);
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--brand);
    }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ═══ DEALS PAGE (Hardware-Radar) ═════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Deals Page Wrapper ─── */
.deals-page {
    overflow-x: hidden;
}

/* ─── Page Hero ─── */
.deals-hero {
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
    padding: 28px 0 20px;
}

.deals-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.deals-hero-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.deals-hero-title span {
    color: var(--brand);
}

.deals-hero-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.deals-hero-count {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-weight: 500;
    white-space: nowrap;
}

.deals-hero-count strong {
    color: var(--brand);
    font-weight: 700;
}

/* ─── Hero Search Bar ─── */
.deals-hero-search {
    position: relative;
    max-width: 640px;
    margin: 20px auto 0;
}

.deals-hero-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.deals-hero-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 2;
}

.deals-hero-search-input {
    width: 100%;
    padding: 14px 48px 14px 50px;
    font-size: 15px;
    font-weight: 400;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.deals-hero-search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.deals-hero-search-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb, 59, 130, 246), 0.12);
}

.deals-hero-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.deals-hero-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-muted);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}

.deals-hero-search-clear:hover {
    background: var(--border);
    color: var(--text);
}

.deals-hero-search-clear.visible {
    display: flex;
}

/* Autocomplete Dropdown */
.deals-suggest-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    z-index: 100;
    overflow: hidden;
    display: none;
    max-height: 440px;
    overflow-y: auto;
}

.deals-suggest-dropdown.open {
    display: block;
    animation: suggestSlideIn 0.15s ease-out;
}

@keyframes suggestSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.deals-suggest-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
    border-bottom: 1px solid var(--border);
}

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

.deals-suggest-item:hover,
.deals-suggest-item.active {
    background: var(--bg-muted);
}

.deals-suggest-img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: contain;
    background: var(--bg-muted);
    border: 1px solid var(--border);
}

.deals-suggest-img-placeholder {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 20px;
}

.deals-suggest-info {
    flex: 1;
    min-width: 0;
}

.deals-suggest-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.deals-suggest-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.deals-suggest-brand {
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.deals-suggest-cat {
    font-size: 11px;
    color: var(--text-muted);
}

.deals-suggest-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

.deals-suggest-sale {
    font-size: 10px;
    font-weight: 700;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.deals-suggest-footer {
    padding: 10px 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--brand);
    background: var(--bg-muted);
    cursor: pointer;
    transition: background 0.15s;
    border-top: 1px solid var(--border);
}

.deals-suggest-footer:hover {
    background: var(--border);
}

.deals-suggest-loading {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Mobile */
@media (max-width: 768px) {
    .deals-hero-search {
        max-width: 100%;
        margin-top: 16px;
    }
    .deals-hero-search-input {
        font-size: 14px;
        padding: 12px 44px 12px 44px;
    }
    .deals-suggest-dropdown {
        border-radius: 10px;
    }
}

/* ─── Category Navigation ─── */
.deals-cat-nav-section {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.deals-cat-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.deals-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px 12px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    gap: 6px;
}

.deals-cat-card:hover {
    border-color: var(--brand);
    background: var(--accent-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.deals-cat-card.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.deals-cat-card.active .deals-cat-name,
.deals-cat-card.active .deals-cat-count {
    color: rgba(255, 255, 255, 0.9);
}

.deals-cat-icon {
    font-size: 22px;
    line-height: 1;
}

.deals-cat-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
}

.deals-cat-count {
    font-size: 10px;
    color: var(--text-muted);
}

/* ─── Main Layout ─── */
.deals-main-section {
    padding: 24px 0 48px;
}

.deals-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 1023px) {
    .deals-layout {
        grid-template-columns: 1fr;
    }
}

/* ─── Filter Sidebar ─── */
.deals-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 12px);
    max-height: calc(100vh - var(--header-height) - 24px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.deals-sidebar::-webkit-scrollbar {
    width: 4px;
}

.deals-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.deals-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

@media (max-width: 1023px) {
    .deals-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 270px;
        height: 100vh;
        max-height: 100vh;
        z-index: 200;
        border-radius: 0;
        transition: left 0.25s ease;
        box-shadow: var(--shadow-xl);
    }
    .deals-sidebar.open {
        left: 0;
    }
}

.deals-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.deals-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
}

.deals-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
}

@media (max-width: 1023px) {
    .deals-sidebar-close {
        display: block;
    }
}

/* ─── Filter Blocks ─── */
.deals-filter-block {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.deals-filter-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.deals-filter-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.deals-filter-input {
    width: 100%;
    padding: 7px 10px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 12px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.deals-filter-input:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--bg-card);
}

.deals-filter-hint {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── Subcat + Brand Lists ─── */
.deals-cat-list {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    padding-right: 4px;
}

.deals-cat-list::-webkit-scrollbar { width: 3px; }
.deals-cat-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.deals-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.15s;
    border-bottom: 1px solid transparent;
}

.deals-cat-item:hover {
    color: var(--brand);
}

.deals-cat-item.active {
    color: var(--brand);
    font-weight: 600;
}

.deals-cat-item-count {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    padding-left: 8px;
}

/* ─── Brand List ─── */
.deals-brand-list {
    max-height: 160px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    padding-right: 4px;
}

.deals-brand-list::-webkit-scrollbar { width: 3px; }
.deals-brand-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.deals-brand-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.15s;
}

.deals-brand-item:hover {
    color: var(--brand);
}

.deals-brand-item.active {
    color: var(--brand);
    font-weight: 600;
}

.deals-brand-item-count {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ─── Price Range ─── */
.deals-price-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.deals-price-row input {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 12px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.deals-price-row input:focus {
    outline: none;
    border-color: var(--brand);
}

.deals-price-row input::placeholder {
    color: var(--text-muted);
}

/* ─── Filter Buttons ─── */
.deals-btn-apply {
    width: 100%;
    padding: 7px 12px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.deals-btn-apply:hover {
    background: var(--brand-dark);
}

.deals-btn-reset {
    width: 100%;
    padding: 7px 12px;
    background: var(--bg-muted);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 8px;
}

.deals-btn-reset:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* ─── Deals-Only Checkbox ─── */
.deals-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.deals-toggle-label input[type="checkbox"] {
    accent-color: var(--highlight);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* ─── Toolbar (sort + active filters) ─── */
.deals-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.deals-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.deals-active-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--accent-bg);
    border: 1px solid rgba(30, 74, 110, 0.2);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    color: var(--brand);
}

.deals-active-pill button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0 0 0 2px;
    font-size: 14px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.deals-active-pill button:hover {
    opacity: 1;
}

.deals-sort-select {
    padding: 7px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s;
    min-width: 140px;
}

.deals-sort-select:focus {
    outline: none;
    border-color: var(--brand);
}

/* ─── Product Grid ─── */
.deals-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 1400px) {
    .deals-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1023px) {
    .deals-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .deals-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .deals-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Product Card ─── */
.deals-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.22s ease;
    position: relative;
}

.deals-card:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Card Image */
.deals-card-img {
    aspect-ratio: 1;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.deals-card-img .deals-img-main {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

.deals-card-img .deals-img-alt {
    position: absolute;
    opacity: 0;
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.deals-card:hover .deals-card-img .deals-img-main {
    transform: scale(1.06);
}

.deals-card.has-alt:hover .deals-card-img .deals-img-main {
    opacity: 0;
    transform: none;
}

.deals-card.has-alt:hover .deals-card-img .deals-img-alt {
    opacity: 1;
}

.deals-card-no-img {
    font-size: 36px;
    color: var(--text-muted);
}

/* Badges */
.deals-badge-sale {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 9px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.deals-badge-stock {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.deals-badge-stock.in-stock {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.25);
}

.deals-badge-stock.low-stock {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.deals-badge-stock.out-stock {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Card Body */
.deals-card-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.deals-card-brand {
    font-size: 10px;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 5px;
}

.deals-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 7px;
    min-height: 2.8em;
}

.deals-card-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    flex: 1;
}

/* Delivery Info */
.deals-card-delivery {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding: 7px 0;
    border-top: 1px solid var(--border);
}

.deals-card-delivery span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.deals-card-delivery svg {
    width: 11px;
    height: 11px;
    opacity: 0.65;
}

.deals-delivery-unknown {
    font-style: italic;
    color: var(--text-muted);
}

/* Card Footer (Price) */
.deals-card-footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.deals-card-price-group {
    display: flex;
    flex-direction: column;
}

.deals-card-old-price {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
    line-height: 1;
    margin-bottom: 2px;
}

.deals-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
}

.deals-card-savings {
    font-size: 10px;
    font-weight: 600;
    color: var(--highlight);
    background: var(--highlight-bg);
    padding: 3px 7px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* ─── Loading / Empty States ─── */
.deals-state {
    padding: 48px 24px;
    text-align: center;
}

.deals-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: deals-spin 0.65s linear infinite;
    margin: 0 auto 14px;
}

@keyframes deals-spin {
    to { transform: rotate(360deg); }
}

.deals-state-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.deals-state-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── Pagination ─── */
.deals-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.deals-pag-btn {
    padding: 7px 13px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}

.deals-pag-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.deals-pag-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}

.deals-pag-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.deals-pag-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
    font-size: 13px;
    user-select: none;
}

.deals-pag-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
}

/* ─── Sidebar Overlay (Mobile) ─── */
.deals-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
}

.deals-sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ─── Mobile Filter Button ─── */
.deals-mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    padding: 11px 18px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    align-items: center;
    gap: 7px;
    transition: background 0.15s;
}

.deals-mobile-filter-btn:hover {
    background: var(--brand-dark);
}

@media (max-width: 1023px) {
    .deals-mobile-filter-btn {
        display: flex;
    }
}

/* ─── Deals Dark Mode Adjustments ─── */
html.dark .deals-cat-card {
    background: var(--bg-elevated);
}

html.dark .deals-card {
    background: var(--bg-card);
}

html.dark .deals-card-img {
    background: var(--bg-elevated);
}

html.dark .deals-filter-input,
html.dark .deals-price-row input {
    background: var(--bg-elevated);
}

html.dark .deals-sort-select {
    background: var(--bg-card);
}

html.dark .deals-badge-stock.in-stock {
    background: rgba(5, 150, 105, 0.18);
    border-color: rgba(5, 150, 105, 0.3);
}

html.dark .deals-badge-stock.low-stock {
    background: rgba(217, 119, 6, 0.18);
    border-color: rgba(217, 119, 6, 0.3);
}

html.dark .deals-badge-stock.out-stock {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.25);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SHOP PAGE (Manufaktur-Shop)
   Eigene 3D-gedruckte Produkte
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Page Wrapper ─────────────────────────────────────────────────────── */
.shop-page {
    padding-bottom: 80px;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.shop-hero {
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
    padding: 28px 0 20px;
}

.shop-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.shop-hero-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.shop-hero-title span {
    color: var(--brand);
}

.shop-hero-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.shop-hero-count {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-weight: 500;
    white-space: nowrap;
}

.shop-hero-count strong {
    color: var(--brand);
    font-weight: 700;
}

/* ─── Filter Bar ───────────────────────────────────────────────────────── */
.shop-filter-section {
    padding: 16px 0;
    position: sticky;
    top: var(--header-height);
    z-index: 20;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
}

.shop-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
}

.shop-filter-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.shop-filter-chip.active {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.shop-filter-icon {
    font-size: 0.9rem;
    line-height: 1;
}

/* ─── Ad Inline (between product rows) ─────────────────────────────────── */
.ad-inline {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

/* ─── Product Grid ─────────────────────────────────────────────────────── */
.shop-main {
    padding: 32px 0 0;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ─── Product Card ─────────────────────────────────────────────────────── */
.shop-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
                border-color 0.2s ease;
    cursor: pointer;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

/* Card Image */
.shop-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-muted);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.shop-card-no-img {
    font-size: 3rem;
    opacity: 0.3;
}

/* Card Badge */
.shop-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(30, 74, 110, 0.3);
    z-index: 2;
}

/* Card Body */
.shop-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Card Meta */
.shop-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.shop-card-cat {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.shop-card-stock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
}

.shop-card-stock.in-stock {
    color: var(--highlight);
}

.shop-card-stock.in-stock svg {
    color: var(--highlight);
}

.shop-card-stock.on-request {
    color: var(--text-muted);
    font-style: italic;
}

/* Card Title */
.shop-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Description */
.shop-card-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.shop-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.shop-card-price-area {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-card-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.shop-card-variants {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg-muted);
    padding: 3px 8px;
    border-radius: 100px;
}

/* ─── Custom Card ──────────────────────────────────────────────────────── */
.shop-card-custom {
    border-style: dashed;
    border-width: 2px;
    border-color: var(--border);
}

.shop-card-custom:hover {
    border-color: var(--brand);
    background: var(--accent-bg);
}

.shop-card-custom-img {
    background: linear-gradient(135deg, var(--bg-muted) 0%, var(--bg-page) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-card-custom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
}

.shop-card-custom-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-bg);
    border: 2px dashed var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    transition: all 0.3s ease;
}

.shop-card-custom:hover .shop-card-custom-icon {
    background: var(--brand);
    color: #ffffff;
    border-style: solid;
    transform: rotate(90deg);
}

.shop-card-custom-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.shop-card-custom-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.shop-card-price-custom {
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    font-style: italic;
}

.shop-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-bg);
    color: var(--brand);
    transition: all 0.25s ease;
}

.shop-card-custom:hover .shop-card-arrow {
    background: var(--brand);
    color: #ffffff;
    transform: translateX(3px);
}

/* ─── USP Section ──────────────────────────────────────────────────────── */
.shop-usp-section {
    padding: 56px 0 0;
}

.shop-usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.shop-usp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.shop-usp-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-bg);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.shop-usp-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
}

.shop-usp-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ─── Shop Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-hero {
        padding: 20px 0 16px;
    }

    .shop-hero-title {
        font-size: 20px;
    }

    .shop-filter-chip {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .shop-usp-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .shop-usp-card {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 16px 20px;
    }

    .shop-usp-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .shop-card-body {
        padding: 12px;
    }

    .shop-card-title {
        font-size: 0.875rem;
    }

    .shop-card-price {
        font-size: 1rem;
    }
}

/* ─── Shop Dark Mode ───────────────────────────────────────────────────── */


html.dark .shop-filter-section {
    background: var(--bg-page);
    border-bottom-color: var(--border);
}

html.dark .shop-filter-chip {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
}

html.dark .shop-filter-chip:hover {
    background: var(--accent-bg);
    border-color: var(--brand-light);
    color: var(--brand-light);
}

html.dark .shop-filter-chip.active {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

html.dark .shop-card {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .shop-card:hover {
    border-color: var(--border-hover);
}

html.dark .shop-card-img {
    background: var(--bg-elevated);
}

html.dark .shop-card-badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

html.dark .shop-card-custom {
    border-color: var(--border);
}

html.dark .shop-card-custom:hover {
    border-color: var(--brand-light);
    background: rgba(30, 74, 110, 0.08);
}

html.dark .shop-card-custom-img {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
}

html.dark .shop-usp-card {
    background: var(--bg-card);
    border-color: var(--border);
}


/* ═══════════════════════════════════════════════════════════════════════════
   PRODUKT-DETAILSEITE (PDP)
   Eigene Manufaktur-Produkte – 2-Spalten Layout
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Page Wrapper ─────────────────────────────────────────────────────── */
.pdp-page {
    padding-bottom: 80px;
}

/* ─── Main Section ─────────────────────────────────────────────────────── */
.pdp-main {
    padding: 32px 0 0;
}

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

/* ─── Gallery ──────────────────────────────────────────────────────────── */
.pdp-gallery {
    position: sticky;
    top: calc(var(--header-height, 64px) + 24px);
}

.pdp-gallery-main {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.pdp-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.pdp-gallery-main:hover img {
    transform: scale(1.05);
}

.pdp-no-img {
    font-size: 4rem;
    opacity: 0.25;
}

.pdp-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.pdp-gallery-main:hover .pdp-zoom-hint {
    opacity: 1;
}

.pdp-zoom-hint:hover {
    color: var(--brand);
    border-color: var(--brand);
}

/* ─── Thumbnails ───────────────────────────────────────────────────────── */
.pdp-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.pdp-thumb {
    aspect-ratio: 1;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    padding: 4px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.pdp-thumb:hover {
    border-color: var(--text-muted);
    transform: scale(1.04);
}

.pdp-thumb.active {
    border-color: var(--brand);
}

.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ─── Product Info (Right Column) ──────────────────────────────────────── */
.pdp-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Meta Row: Category + Stock */
.pdp-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pdp-cat-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand);
    background: var(--accent-bg);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.pdp-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pdp-stock-badge.in-stock {
    color: var(--highlight);
}

.pdp-stock-badge.in-stock svg {
    color: var(--highlight);
}

.pdp-stock-badge.on-request {
    color: var(--text-muted);
    font-style: italic;
}

/* Title */
.pdp-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.02em;
}

/* Short Description */
.pdp-short-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Price Block */
.pdp-price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pdp-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.pdp-price-vat {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ─── Variants ─────────────────────────────────────────────────────────── */
.pdp-variants {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdp-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

.pdp-variant-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdp-variant-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 0;
}

.pdp-variant-btn:hover:not(.disabled) {
    border-color: var(--brand);
    background: var(--accent-bg);
}

.pdp-variant-btn.active {
    border-color: var(--brand);
    background: var(--accent-bg);
    box-shadow: 0 0 0 1px var(--brand);
}

.pdp-variant-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pdp-variant-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.pdp-variant-oos {
    font-size: 0.6875rem;
    color: #dc2626;
    font-weight: 500;
}

.pdp-variant-low {
    font-size: 0.6875rem;
    color: #d97706;
    font-weight: 500;
}

/* ─── Badges Row (Material + Location) ─────────────────────────────────── */
.pdp-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-muted);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pdp-badge svg {
    color: var(--brand);
    flex-shrink: 0;
}

/* ─── Cart Row (Quantity + Button) ─────────────────────────────────────── */
.pdp-cart-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.pdp-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    overflow: hidden;
    flex-shrink: 0;
}

.pdp-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    font-family: inherit;
}

.pdp-qty-btn:hover {
    color: var(--brand);
    background: var(--bg-muted);
}

.pdp-qty-input {
    width: 48px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    font-family: inherit;
    -moz-appearance: textfield;
}

.pdp-qty-input::-webkit-inner-spin-button,
.pdp-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pdp-cart-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    height: 44px;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.pdp-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 74, 110, 0.3);
}

.pdp-cart-btn:active {
    transform: translateY(0);
}

.pdp-cart-btn-success {
    background: var(--highlight) !important;
}

/* ─── Features Box ─────────────────────────────────────────────────────── */
.pdp-features-box,
.pdp-lieferumfang-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.pdp-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pdp-box-title svg {
    color: var(--brand);
    flex-shrink: 0;
}

.pdp-feature-list,
.pdp-lieferumfang-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdp-feature-list li,
.pdp-lieferumfang-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pdp-feature-list li svg {
    color: var(--highlight);
    flex-shrink: 0;
    margin-top: 2px;
}

.pdp-lieferumfang-list li svg {
    color: var(--brand);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ─── Trust Badges Row ─────────────────────────────────────────────────── */
.pdp-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.pdp-trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.pdp-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--accent-bg);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdp-trust-badge strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.pdp-trust-badge span {
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ─── Description Section ──────────────────────────────────────────────── */
.pdp-description {
    padding: 48px 0 0;
    margin-top: 48px;
    border-top: 1px solid var(--border);
}

.pdp-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.pdp-desc-content {
    max-width: 720px;
}

.pdp-desc-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

/* ─── Similar Products ─────────────────────────────────────────────────── */
.pdp-similar {
    padding: 48px 0 0;
}

.pdp-similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ─── Lightbox ─────────────────────────────────────────────────────────── */
.pdp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pdp-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.pdp-lb-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}

.pdp-lb-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pdp-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, color 0.2s ease;
}

.pdp-lb-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.pdp-lb-prev { left: 16px; }
.pdp-lb-next { right: 16px; }

.pdp-lb-content {
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-lb-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.pdp-lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ─── PDP Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pdp-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

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

@media (max-width: 768px) {
    .pdp-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pdp-gallery {
        position: static;
    }

    .pdp-title {
        font-size: 1.375rem;
    }

    .pdp-price {
        font-size: 1.5rem;
    }

    .pdp-trust-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pdp-similar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pdp-lb-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .pdp-main {
        padding: 20px 0 0;
    }

    .pdp-cart-row {
        flex-direction: column;
    }

    .pdp-cart-btn {
        width: 100%;
    }

    .pdp-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .pdp-similar-grid {
        grid-template-columns: 1fr;
    }

    .pdp-variant-btns {
        flex-direction: column;
    }

    .pdp-variant-btn {
        width: 100%;
    }
}

/* ─── PDP Dark Mode ────────────────────────────────────────────────────── */
html.dark .pdp-gallery-main {
    background: var(--bg-elevated);
    border-color: var(--border);
}

html.dark .pdp-thumb {
    background: var(--bg-elevated);
}

html.dark .pdp-thumb.active {
    border-color: var(--brand-light);
}

html.dark .pdp-variant-btn {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .pdp-variant-btn.active {
    border-color: var(--brand-light);
    background: rgba(30, 74, 110, 0.15);
    box-shadow: 0 0 0 1px var(--brand-light);
}

html.dark .pdp-badge {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .pdp-qty {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .pdp-features-box,
html.dark .pdp-lieferumfang-box {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .pdp-trust-badge {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .pdp-cart-btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html.dark .pdp-cart-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}


/* ═══════════════════════════════════════════════════════════════════════════
   WIKI SUCHE (ws-*)
   Suchseite mit Auto-Suggest, Kategorien, Beliebte Artikel
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Page ─────────────────────────────────────────────────────────────── */
.ws-page {
    padding-bottom: 80px;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.ws-hero {
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
    padding: 40px 0 36px;
    text-align: center;
}

.ws-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.ws-hero-title span {
    color: var(--brand);
}

.ws-hero-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 24px;
}

/* ─── Search Form ──────────────────────────────────────────────────────── */
.ws-search-wrap {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.ws-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ws-search-form:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 74, 110, 0.1);
}

.ws-search-icon {
    display: flex;
    align-items: center;
    padding: 0 0 0 16px;
    color: var(--text-muted);
}

.ws-search-input {
    flex: 1;
    padding: 14px 12px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text);
    font-family: inherit;
    outline: none;
}

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

.ws-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--brand);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.ws-search-btn:hover {
    background: var(--brand-dark, #163d5c);
}

/* ─── Quick Tags ───────────────────────────────────────────────────────── */
.ws-quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.ws-quick-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 4px;
}

.ws-quick-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.ws-quick-tag:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--accent-bg);
}

/* ─── Auto-Suggest Dropdown ────────────────────────────────────────────── */
.ws-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 4px;
    z-index: 100;
    display: none;
    overflow: hidden;
}

.ws-suggest.open {
    display: block;
    animation: wsSuggestIn 0.15s ease;
}

@keyframes wsSuggestIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.ws-suggest-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s ease;
}

.ws-suggest-item:hover {
    background: var(--bg-muted);
}

.ws-suggest-cat {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand);
}

.ws-suggest-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.ws-suggest-excerpt {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.ws-suggest-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand);
    background: var(--bg-muted);
    transition: background 0.15s ease;
}

.ws-suggest-all:hover {
    background: var(--accent-bg);
}

/* ─── Status Bar ───────────────────────────────────────────────────────── */
.ws-status {
    padding: 20px 0 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.ws-status strong {
    color: var(--text);
}

.ws-status-fallback {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* ─── Result Cards ─────────────────────────────────────────────────────── */
.ws-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ws-result-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ws-result-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.ws-result-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ws-result-cat {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand);
    background: var(--accent-bg);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.ws-result-score {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.ws-result-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    line-height: 1.35;
}

.ws-result-title em,
.ws-result-title mark {
    font-style: normal;
    background: rgba(30, 74, 110, 0.1);
    color: var(--brand);
    padding: 0 2px;
    border-radius: 2px;
}

.ws-result-snippet {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 10px;
}

.ws-result-snippet em,
.ws-result-snippet mark {
    font-style: normal;
    background: rgba(30, 74, 110, 0.08);
    color: var(--brand);
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
}

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

.ws-result-date,
.ws-result-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ws-result-arrow {
    margin-left: auto;
    color: var(--text-muted);
    transition: color 0.15s ease, transform 0.15s ease;
}

.ws-result-card:hover .ws-result-arrow {
    color: var(--brand);
    transform: translateX(3px);
}

.ws-ad-inline {
    margin: 8px 0;
}

/* ─── Empty State ──────────────────────────────────────────────────────── */
.ws-empty {
    text-align: center;
    padding: 60px 0;
}

.ws-empty-icon {
    color: var(--text-muted);
    opacity: 0.35;
    margin-bottom: 16px;
}

.ws-empty-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.ws-empty-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 24px;
}

.ws-empty-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* ─── Category Chips ───────────────────────────────────────────────────── */
.ws-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.ws-cat-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--accent-bg);
}

.ws-cat-chip-icon {
    font-size: 1rem;
    line-height: 1;
}

.ws-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ws-cat-chip-lg {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    gap: 12px;
}

.ws-cat-chip-lg strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.3;
}

.ws-cat-chip-lg .ws-cat-chip-count {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.ws-cat-chip-lg .ws-cat-chip-icon {
    font-size: 1.5rem;
}

/* ─── Sections ─────────────────────────────────────────────────────────── */
.ws-section {
    padding: 32px 0;
}

.ws-section + .ws-section {
    border-top: 1px solid var(--border);
}

.ws-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
}

.ws-section-title svg {
    color: var(--brand);
    flex-shrink: 0;
}

/* ─── Popular Articles ─────────────────────────────────────────────────── */
.ws-popular-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ws-popular-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ws-popular-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.ws-popular-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--accent-bg);
    color: var(--brand);
    font-size: 0.875rem;
    font-weight: 800;
    flex-shrink: 0;
}

.ws-popular-content {
    flex: 1;
    min-width: 0;
}

.ws-popular-cat {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand);
}

.ws-popular-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin: 2px 0 0;
    line-height: 1.35;
}

.ws-popular-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.ws-popular-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ws-popular-chevron {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.ws-popular-card:hover .ws-popular-chevron {
    color: var(--brand);
    transform: translateX(3px);
}

/* ─── Latest Articles Grid ─────────────────────────────────────────────── */
.ws-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.ws-latest-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ws-latest-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.ws-latest-cat {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand);
}

.ws-latest-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.35;
}

.ws-latest-excerpt {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.ws-latest-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand);
    margin-top: auto;
    padding-top: 4px;
}

/* ─── Pagination ───────────────────────────────────────────────────────── */
.ws-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 0 24px;
    flex-wrap: wrap;
}

.ws-pg-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ws-pg-arrow:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: rgba(30, 74, 110, 0.04);
}

.ws-pg-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.ws-pg-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ws-pg-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ws-pg-num:hover {
    border-color: var(--border);
    background: var(--bg-muted);
    color: var(--text);
}

.ws-pg-active {
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    border-color: var(--brand);
    box-shadow: 0 2px 8px rgba(30, 74, 110, 0.25);
}

.ws-pg-active:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.ws-pg-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 40px;
    color: var(--text-muted);
    font-size: 0.875rem;
    letter-spacing: 2px;
}

.ws-pg-info {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ─── Wiki Suche Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ws-hero {
        padding: 28px 0 24px;
    }

    .ws-hero-title {
        font-size: 1.375rem;
    }

    .ws-cat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ws-latest-grid {
        grid-template-columns: 1fr;
    }

    .ws-result-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .ws-cat-grid {
        grid-template-columns: 1fr;
    }

    .ws-quick-tags {
        justify-content: flex-start;
    }
}

/* ─── Wiki Suche Dark Mode ─────────────────────────────────────────────── */
html.dark .ws-search-form {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .ws-search-form:focus-within {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(30, 74, 110, 0.2);
}

html.dark .ws-suggest {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html.dark .ws-suggest-item:hover {
    background: var(--bg-elevated);
}

html.dark .ws-result-card {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .ws-result-card:hover {
    border-color: var(--brand-light);
}

html.dark .ws-popular-card {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .ws-latest-card {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .ws-cat-chip,
html.dark .ws-cat-chip-lg,
html.dark .ws-quick-tag {
    background: var(--bg-card);
    border-color: var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   WARENKORB V3
   Cart Page – 2-Column Layout (Items + Summary)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Page Wrapper ─────────────────────────────────────────────────────── */
.cart-v3-page {
    padding: 0 0 48px;
    min-height: 50vh;
}

/* ─── Header ───────────────────────────────────────────────────────────── */
.cart-v3-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 32px 0 24px;
}

.cart-v3-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cart-v3-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ─── Empty State ──────────────────────────────────────────────────────── */
.cart-v3-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 24px 80px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cart-v3-empty-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cart-v3-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.cart-v3-empty-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 360px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.cart-v3-empty-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.cart-v3-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-v3-btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 74, 110, 0.25);
}

.cart-v3-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-v3-btn-secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* ─── Layout: 2 Spalten ───────────────────────────────────────────────── */
.cart-v3-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* ─── Items Column ─────────────────────────────────────────────────────── */
.cart-v3-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-v3-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.cart-v3-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

/* ─── Item Image ───────────────────────────────────────────────────────── */
.cart-v3-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--bg-muted);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-v3-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.cart-v3-item-img svg {
    color: var(--text-muted);
    opacity: 0.4;
}

/* ─── Item Details ─────────────────────────────────────────────────────── */
.cart-v3-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cart-v3-item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-v3-item-name:hover {
    color: var(--brand);
}

.cart-v3-item-variant {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.cart-v3-item-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ─── Quantity Controls ────────────────────────────────────────────────── */
.cart-v3-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-v3-qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    font-family: inherit;
}

.cart-v3-qty-btn:hover {
    background: var(--brand);
    color: #fff;
}

.cart-v3-qty-val {
    width: 40px;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-card);
    height: 36px;
    line-height: 36px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

/* ─── Item Price ───────────────────────────────────────────────────────── */
.cart-v3-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

/* ─── Remove Button ────────────────────────────────────────────────────── */
.cart-v3-item-remove {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.cart-v3-item-remove:hover {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.06);
    border-color: rgba(229, 62, 62, 0.15);
}

/* ─── Clear Button ─────────────────────────────────────────────────────── */
.cart-v3-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    margin-top: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s ease;
}

.cart-v3-clear:hover {
    color: #e53e3e;
}

/* ─── Summary Column ───────────────────────────────────────────────────── */
.cart-v3-summary-col {
    position: sticky;
    top: calc(var(--header-height, 64px) + 24px);
}

.cart-v3-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.cart-v3-summary-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.cart-v3-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.cart-v3-summary-row span:last-child {
    font-weight: 600;
    color: var(--text);
}

.cart-v3-summary-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.cart-v3-summary-total {
    font-size: 1.125rem;
    padding: 4px 0;
}

.cart-v3-summary-total span:last-child {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand);
}

.cart-v3-tax-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.cart-v3-shipping-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 8px 0 4px;
}

.cart-v3-shipping-free {
    color: var(--highlight);
    font-weight: 600;
}

/* ─── Checkout Button ──────────────────────────────────────────────────── */
.cart-v3-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    margin-top: 24px;
    background: var(--highlight);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.0625rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.cart-v3-checkout-btn:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

.cart-v3-checkout-btn:active {
    transform: translateY(0);
}

/* ─── Payment Icons ────────────────────────────────────────────────────── */
.cart-v3-payment-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.cart-v3-payment-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cart-v3-payment-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-muted);
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ─── Trust Badges ─────────────────────────────────────────────────────── */
.cart-v3-trust {
    padding: 40px 0 64px;
}

.cart-v3-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cart-v3-trust-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.cart-v3-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    flex-shrink: 0;
}

.cart-v3-trust-badge strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.cart-v3-trust-badge span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── Cart V3 Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cart-v3-layout {
        grid-template-columns: 1fr;
    }

    .cart-v3-summary-col {
        position: static;
    }

    .cart-v3-item {
        grid-template-columns: 64px 1fr auto;
        grid-template-rows: auto auto;
        gap: 10px 14px;
        padding: 14px 16px;
    }

    .cart-v3-item-img {
        width: 64px;
        height: 64px;
        grid-row: 1 / 3;
    }

    .cart-v3-item-details {
        grid-column: 2 / 3;
    }

    .cart-v3-item-qty {
        grid-column: 2 / 3;
        grid-row: 2;
        justify-self: start;
    }

    .cart-v3-item-price {
        grid-column: 3;
        grid-row: 1;
    }

    .cart-v3-item-remove {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
    }
}

@media (max-width: 600px) {
    .cart-v3-header {
        padding: 24px 0 16px;
    }

    .cart-v3-title {
        font-size: 1.375rem;
    }

    .cart-v3-trust-grid {
        grid-template-columns: 1fr;
    }

    .cart-v3-empty {
        padding: 48px 16px 60px;
    }

    .cart-v3-empty-actions {
        flex-direction: column;
        width: 100%;
    }

    .cart-v3-btn-primary,
    .cart-v3-btn-secondary {
        justify-content: center;
        width: 100%;
    }
}

/* ─── Cart V3 Dark Mode ────────────────────────────────────────────────── */
html.dark .cart-v3-item {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .cart-v3-item:hover {
    border-color: var(--border-hover);
}

html.dark .cart-v3-summary {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .cart-v3-empty {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .cart-v3-trust-badge {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .cart-v3-qty-btn {
    background: var(--bg-elevated);
}

html.dark .cart-v3-qty-btn:hover {
    background: var(--brand);
    color: #fff;
}

html.dark .cart-v3-qty-val {
    background: var(--bg-card);
    border-color: var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHECKOUT V3 — Precision Commerce
   ═══════════════════════════════════════════════════════════════════════════ */

.co-page {
    padding: 2rem 0 4rem;
    min-height: 60vh;
}

.co-header {
    margin-bottom: 2.5rem;
}

.co-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
}

/* Progress Bar */
.co-progress {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 500px;
}

.co-progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.co-progress-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--bg-muted);
    color: var(--text-muted);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.co-progress-step.active .co-progress-num {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.co-progress-step.completed .co-progress-num {
    background: var(--highlight);
    color: #fff;
    border-color: var(--highlight);
}

.co-progress-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.co-progress-step.active .co-progress-label {
    color: var(--text);
}

.co-progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 0.5rem;
    transition: background 0.3s ease;
    min-width: 20px;
}

.co-progress-line.active {
    background: var(--brand);
}

/* Empty State */
.co-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.co-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
}

.co-empty h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.co-empty p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Layout */
.co-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* Form Column */
.co-form-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Sections */
.co-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color 0.2s ease;
}

.co-section:focus-within {
    border-color: var(--brand);
}

.co-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.co-section-num {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.co-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.co-section-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Form Grid */
.co-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.co-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.co-field-full {
    grid-column: 1 / -1;
}

.co-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.co-req {
    color: #ef4444;
    font-weight: 700;
}

.co-hint {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.co-field input,
.co-field select,
.co-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-page);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.co-field input:focus,
.co-field select:focus,
.co-field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

.co-field input.co-invalid,
.co-field select.co-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.co-field textarea {
    resize: vertical;
    min-height: 80px;
}

.co-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Shipping Toggle */
.co-shipping-toggle {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.co-toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-page);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.co-toggle-option input { display: none; }

.co-toggle-option.active {
    border-color: var(--brand);
    background: var(--accent-bg);
    color: var(--brand);
    font-weight: 600;
}

.co-toggle-option:hover:not(.active) {
    border-color: var(--border-hover);
}

/* Billing Toggle */
.co-billing-toggle {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* Checkbox */
.co-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.co-checkbox-label input { display: none; }

.co-checkbox-box {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
}

.co-checkbox-box svg { opacity: 0; transition: opacity 0.15s ease; color: #fff; }

.co-checkbox-label input:checked + .co-checkbox-box {
    background: var(--brand);
    border-color: var(--brand);
}

.co-checkbox-label input:checked + .co-checkbox-box svg { opacity: 1; }

.co-pack-hint {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Payment Cards */
.co-payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.co-payment-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-page);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.co-payment-card input { display: none; }

.co-payment-card:hover { border-color: var(--border-hover); }

.co-payment-card.active {
    border-color: var(--brand);
    background: var(--accent-bg);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

.co-payment-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s ease;
}

.co-payment-card.active .co-payment-radio {
    border-color: var(--brand);
}

.co-payment-card.active .co-payment-radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
}

.co-payment-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    flex-shrink: 0;
}

.co-payment-info {
    flex: 1;
    min-width: 0;
}

.co-payment-info strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.co-payment-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.co-payment-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.co-badge-popular {
    background: var(--accent-bg);
    color: var(--brand);
}

.co-badge-business {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* Payment Hints */
.co-payment-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    margin-top: 0.75rem;
    background: var(--accent-bg);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.co-payment-hint svg { flex-shrink: 0; margin-top: 2px; color: var(--brand); }

.co-hint-transfer { background: rgba(245, 158, 11, 0.06); }
.co-hint-transfer svg { color: #d97706; }

.co-hint-invoice { background: rgba(245, 158, 11, 0.06); }
.co-hint-invoice svg { color: #d97706; }

.co-invoice-fields {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

/* Summary Column */
.co-summary-col {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.co-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
}

.co-summary-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
}

/* Summary Items */
.co-summary-items {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.co-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.co-item-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.co-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.co-item-info {
    flex: 1;
    min-width: 0;
}

.co-item-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.co-item-variant {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.co-item-qty {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.co-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
}

.co-summary-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

.co-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.co-summary-row span:last-child {
    font-weight: 600;
}

.co-summary-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.co-summary-total span:last-child {
    color: var(--brand);
    font-weight: 800;
}

.co-tax-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.co-shipping-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.co-ship-free {
    color: var(--highlight);
    font-weight: 600;
}

.co-ship-free svg { color: var(--highlight); }

/* Terms */
.co-terms {
    padding: 1rem;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.co-terms-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.co-terms-text a {
    color: var(--brand);
    text-decoration: underline;
}

.co-terms-error .co-checkbox-box {
    border-color: #ef4444;
}

/* Error */
.co-error {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

/* Submit Buttons */
.co-paypal-container {
    margin-bottom: 0.75rem;
}

.co-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.5rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-bottom: 0.75rem;
}

.co-submit-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.co-submit-btn:active {
    transform: translateY(0);
}

.co-submit-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.co-submit-invoice {
    background: #d97706;
}

.co-submit-invoice:hover {
    background: #b45309;
}

.co-submit-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.25rem;
}

.co-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: coSpin 0.6s linear infinite;
}

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

/* Trust Row */
.co-trust-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    margin-bottom: 1rem;
}

.co-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--brand);
}

.co-trust-item span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Back Link */
.co-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.co-back-link:hover {
    color: var(--brand);
}

/* Primary Button */
.co-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.co-btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

/* ─── Success Modal ───────────────────────────────────────────────── */
.co-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.co-success-overlay.co-success-visible {
    opacity: 1;
}

.co-success-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.co-success-visible .co-success-card {
    transform: scale(1);
}

.co-success-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: coSuccessPulse 2s ease-in-out infinite;
}

@keyframes coSuccessPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.3); }
    50% { box-shadow: 0 0 0 15px rgba(5, 150, 105, 0); }
}

.co-success-check {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: coCheckDraw 0.8s ease-out 0.3s forwards;
}

@keyframes coCheckDraw {
    to { stroke-dashoffset: 0; }
}

.co-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.co-success-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.co-success-order {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand);
    background: var(--accent-bg);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.co-success-transfer,
.co-success-invoice {
    text-align: left;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

.co-success-transfer h3,
.co-success-invoice h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.co-success-transfer p { color: var(--text-secondary); }

.co-success-invoice ol {
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.co-success-invoice ol li { margin-bottom: 0.35rem; }

.co-transfer-deadline {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #d97706;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .co-layout {
        grid-template-columns: 1fr;
    }
    .co-summary-col {
        position: static;
        order: -1;
    }
    .co-progress-label {
        display: none;
    }
    .co-progress {
        max-width: 250px;
    }
}

@media (max-width: 600px) {
    .co-form-grid {
        grid-template-columns: 1fr;
    }
    .co-field { grid-column: auto; }
    .co-section { padding: 1.25rem; }
    .co-summary { padding: 1.25rem; }
    .co-title { font-size: 1.4rem; }
    .co-payment-badge { display: none; }
    .co-shipping-toggle {
        flex-direction: column;
    }
}

/* ─── Dark Mode ───────────────────────────────────────────────────── */
html.dark .co-section {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .co-section:focus-within {
    border-color: var(--brand-light);
}

html.dark .co-field input,
html.dark .co-field select,
html.dark .co-field textarea {
    background: var(--bg-elevated);
    border-color: var(--border);
    color: var(--text);
}

html.dark .co-field input:focus,
html.dark .co-field select:focus,
html.dark .co-field textarea:focus {
    border-color: var(--brand-light);
}

html.dark .co-toggle-option {
    background: var(--bg-elevated);
    border-color: var(--border);
}

html.dark .co-toggle-option.active {
    background: var(--accent-bg);
    border-color: var(--brand-light);
}

html.dark .co-payment-card {
    background: var(--bg-elevated);
    border-color: var(--border);
}

html.dark .co-payment-card.active {
    border-color: var(--brand-light);
    background: var(--accent-bg);
}

html.dark .co-payment-icon {
    background: var(--bg-muted);
}

html.dark .co-summary {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .co-empty {
    background: var(--bg-card);
    border-color: var(--border);
}

html.dark .co-terms {
    background: var(--bg-elevated);
}

html.dark .co-invoice-fields {
    background: var(--bg-elevated);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GUTSCHEINE / VOUCHERS PAGE (V3)
   ═══════════════════════════════════════════════════════════════════════════ */

.vouchers-page {
    padding-bottom: 40px;
}

/* ─── Hero ─── */
.vouchers-hero {
    padding: 32px 0 0;
}

.vouchers-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.vouchers-hero-text {
    max-width: 640px;
}

.vouchers-hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.vouchers-hero-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vouchers-live-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--accent-bg);
    color: var(--brand);
    border: 1px solid rgba(30, 74, 110, 0.2);
}

.vouchers-hero-text h1 {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 10px;
}

.vouchers-hero-text h1 span {
    color: var(--brand);
}

.vouchers-hero-text p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Stats */
.vouchers-stats {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.vouchers-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    text-align: center;
    min-width: 80px;
    box-shadow: var(--shadow-sm);
}

.vouchers-stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}

.vouchers-stat-codes { color: var(--brand); }
.vouchers-stat-promos { color: var(--highlight); }

.vouchers-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ─── Controls (Search + Filters) ─── */
.vouchers-controls {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.vouchers-search-wrap {
    position: relative;
    flex: 1;
}

.vouchers-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.vouchers-search {
    width: 100%;
    padding: 11px 16px 11px 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vouchers-search:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

.vouchers-search::placeholder {
    color: var(--text-muted);
}

.vouchers-type-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vouchers-chip {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vouchers-chip:hover,
.vouchers-chip.active {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--accent-bg);
}

.vouchers-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.vouchers-chip-dot--code { background: var(--brand); }
.vouchers-chip-dot--promo { background: var(--highlight); }

.vouchers-chip-count {
    color: var(--text-muted);
    margin-left: 2px;
}

.vouchers-merchant-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

/* ─── Voucher Grid ─── */
.vouchers-grid-section {
    padding: 24px 0 40px;
}

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

/* ─── Voucher Card ─── */
.vcard {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}

.vcard:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.vcard--code:hover {
    border-color: rgba(30, 74, 110, 0.3);
}

.vcard--promo:hover {
    border-color: rgba(5, 150, 105, 0.3);
}

/* Accent strip at top */
.vcard-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.25s;
}

.vcard--code .vcard-accent { background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.vcard--promo .vcard-accent { background: linear-gradient(90deg, var(--highlight), #10b981); }

.vcard:hover .vcard-accent { opacity: 1; }

/* Card Header */
.vcard-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.vcard-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    padding: 4px;
    flex-shrink: 0;
}

.vcard-logo-fallback {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-bg);
    color: var(--brand);
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(30, 74, 110, 0.15);
}

.vcard-meta {
    flex: 1;
    min-width: 0;
}

.vcard-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.vcard-merchant {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.vcard-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vcard-type-badge--code {
    background: var(--accent-bg);
    color: var(--brand);
    border: 1px solid rgba(30, 74, 110, 0.2);
}

.vcard-type-badge--promo {
    background: var(--highlight-bg);
    color: var(--highlight);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.vcard-type-badge--exclusive {
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.vcard-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description */
.vcard-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Code Placeholder */
.vcard-code-placeholder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--accent-bg);
    border: 1px dashed rgba(30, 74, 110, 0.25);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    color: var(--text-muted);
}

.vcard-code-dots {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 3px;
}

.vcard-code-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* Revealed Code */
.vcard-code-revealed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--accent-bg);
    border: 2px dashed rgba(30, 74, 110, 0.35);
    border-radius: var(--radius-sm);
}

.vcard-code-text {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 2px;
    user-select: all;
}

.vcard-code-copy {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.vcard-code-copy:hover {
    background: var(--brand-dark);
    transform: scale(1.03);
}

.vcard-code-hint-revealed {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* Info Row (dates, region) */
.vcard-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.vcard-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.vcard-info-item--urgent {
    color: #dc2626;
    font-weight: 600;
    animation: vcard-pulse 2s infinite;
}

@keyframes vcard-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Terms */
.vcard-terms-wrap {
    margin-bottom: 12px;
}

.vcard-terms-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
    transition: color 0.2s;
}

.vcard-terms-toggle:hover {
    color: var(--text-secondary);
}

.vcard-terms-toggle svg {
    transition: transform 0.25s;
}

.vcard-terms-rotate {
    transform: rotate(180deg);
}

.vcard-terms-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.vcard-terms-content.open {
    max-height: 300px;
}

.vcard-terms-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-muted);
}

/* CTA Button */
.vcard-action {
    margin-top: auto;
}

.vcard-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    color: #fff;
}

.vcard-cta--code {
    background: var(--brand);
}

.vcard-cta--code:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 74, 110, 0.25);
}

.vcard-cta--promo {
    background: var(--highlight);
}

.vcard-cta--promo:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.25);
}

.vcard-cta:disabled {
    opacity: 0.7;
    cursor: wait;
}

.vcard-spinner {
    animation: vcard-spin 0.8s linear infinite;
}

@keyframes vcard-spin {
    to { transform: rotate(360deg); }
}

/* ─── Empty State ─── */
.vouchers-empty {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 60px 24px;
    text-align: center;
}

.vouchers-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--bg-muted);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.vouchers-empty h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.vouchers-empty p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 420px;
    margin: 0 auto;
}

.vouchers-no-results {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

.vouchers-no-results h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.vouchers-no-results p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ─── Section Headers ─── */
.vouchers-section-header {
    text-align: center;
    margin-bottom: 32px;
}

.vouchers-section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.vouchers-section-header h2 span {
    color: var(--brand);
}

.vouchers-section-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* ─── Steps ─── */
.vouchers-steps-section {
    padding: 48px 0;
}

.vouchers-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.vouchers-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.vouchers-step:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.vouchers-step-num {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.vouchers-step h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.vouchers-step p {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ─── FAQ ─── */
.vouchers-faq-section {
    padding: 48px 0;
}

.vouchers-faq-container {
    max-width: 800px;
}

.vouchers-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vouchers-faq {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s;
}

.vouchers-faq:hover {
    border-color: var(--border-hover);
}

.vouchers-faq[open] {
    border-color: rgba(30, 74, 110, 0.3);
    background: var(--bg-card);
}

.vouchers-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

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

.vouchers-faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--brand);
}

.vouchers-faq[open] .vouchers-faq-icon {
    transform: rotate(45deg);
}

.vouchers-faq-answer {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    animation: vouchers-faqSlide 0.3s ease-out;
}

.vouchers-faq-answer strong {
    color: var(--text);
}

@keyframes vouchers-faqSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── SEO Blocks ─── */
.vouchers-brands-section,
.vouchers-tips-section {
    padding: 24px 0 40px;
}

.vouchers-seo-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
}

.vouchers-seo-block h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.vouchers-seo-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.vouchers-seo-block h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 8px;
}

.vouchers-seo-block p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.vouchers-seo-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px;
}

.vouchers-seo-list li {
    padding: 6px 0 6px 22px;
    position: relative;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.vouchers-seo-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--brand);
    border-radius: 50%;
}

.vouchers-seo-list li strong {
    color: var(--text);
}

/* ─── Brand Grid ─── */
.vouchers-brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin: 20px 0 28px;
}

.vouchers-brand-card {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 12px;
    text-align: center;
    transition: border-color 0.25s, background 0.25s;
}

.vouchers-brand-card:hover {
    border-color: rgba(30, 74, 110, 0.3);
    background: var(--accent-bg);
}

.vouchers-brand-initial {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--accent-bg);
    color: var(--brand);
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    border: 1px solid rgba(30, 74, 110, 0.15);
}

.vouchers-brand-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.vouchers-brand-cat {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ─── Affiliate Note ─── */
.vouchers-affiliate-note {
    padding: 0 0 24px;
}

.vouchers-note-box {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.vouchers-note-box p {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

.vouchers-note-box strong {
    color: var(--text-secondary);
}

/* ─── Toast ─── */
.vouchers-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--brand);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s;
    z-index: 9999;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.vouchers-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .vouchers-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .vouchers-stats {
        width: 100%;
    }

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

    .vouchers-brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .vouchers-hero-text h1 {
        font-size: 1.5rem;
    }

    .vouchers-controls {
        flex-direction: column;
    }

    .vouchers-steps {
        grid-template-columns: 1fr;
    }

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

    .vouchers-seo-block {
        padding: 24px 18px;
    }

    .vouchers-faq summary {
        font-size: 0.85rem;
        padding: 14px 16px;
    }
}

/* ─── Dark Mode Overrides ─── */
html.dark .vcard-logo {
    background: var(--bg-muted);
    border-color: var(--border);
}

html.dark .vcard-type-badge--exclusive {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

html.dark .vcard-code-text {
    color: var(--brand-light);
}

html.dark .vouchers-faq[open] {
    background: var(--bg-elevated);
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMPFEHLUNGEN / RECOMMENDATIONS PAGE (V3)
   ═══════════════════════════════════════════════════════════════════════════ */

.rec-page {
    padding-bottom: 40px;
}

/* ─── Hero ─── */
.rec-hero {
    padding: 48px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, rgba(30, 74, 110, 0.04) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}

.rec-hero-badge {
    display: inline-block;
    padding: 5px 16px;
    background: var(--brand);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 20px;
    margin-bottom: 16px;
}

.rec-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.rec-hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* Quick-Navigation Chips */
.rec-hero-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.rec-hero-nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rec-hero-nav-chip:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 74, 110, 0.2);
}

.rec-hero-nav-icon {
    display: flex;
    width: 18px;
    height: 18px;
}

.rec-hero-nav-icon svg {
    width: 100%;
    height: 100%;
}

.rec-hero-nav-chip:hover .rec-hero-nav-icon svg {
    stroke: #fff;
}

/* ─── Category Section ─── */
.rec-category {
    padding: 48px 0 24px;
    border-bottom: 1px solid var(--border);
}

.rec-category:last-of-type {
    border-bottom: none;
}

.rec-cat-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.rec-cat-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(30, 74, 110, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.rec-cat-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--brand);
}

.rec-cat-info {
    flex: 1;
    min-width: 200px;
}

.rec-cat-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.rec-cat-intro {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.rec-cat-count-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--brand);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-top: 4px;
}

.rec-cat-count-link svg {
    width: 16px;
    height: 16px;
}

.rec-cat-count-link:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 74, 110, 0.25);
}

/* ─── Subcategory Cards ─── */
.rec-subcats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.rec-subcat-card {
    position: relative;
    display: block;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    overflow: hidden;
}

.rec-subcat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rec-subcat-card:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30, 74, 110, 0.12);
}

.rec-subcat-card:hover::before {
    opacity: 1;
}

.rec-subcat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.rec-subcat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.rec-subcat-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand);
    background: rgba(30, 74, 110, 0.08);
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.rec-subcat-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.rec-subcat-arrow {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 20px;
    height: 20px;
    color: var(--brand);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s ease;
}

.rec-subcat-arrow svg {
    width: 100%;
    height: 100%;
}

.rec-subcat-card:hover .rec-subcat-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ─── Tip Box ─── */
.rec-tip-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.18);
    border-radius: 12px;
    margin-bottom: 20px;
}

.rec-tip-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: #059669;
    margin-top: 2px;
}

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

.rec-tip-content {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.rec-tip-content strong {
    color: #059669;
    font-weight: 600;
}

/* ─── Brand Row ─── */
.rec-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rec-brand-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rec-brand-chip {
    display: inline-block;
    padding: 5px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.rec-brand-chip:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ─── Methodology ─── */
.rec-methodology {
    padding: 56px 0;
    background: rgba(30, 74, 110, 0.03);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.rec-section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.rec-section-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.5;
}

.rec-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rec-method-card {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
}

.rec-method-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    opacity: 0.35;
    margin-bottom: 12px;
    line-height: 1;
}

.rec-method-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.rec-method-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ─── Brands Section ─── */
.rec-brands-section {
    padding: 56px 0;
}

.rec-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.rec-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rec-brand-card:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 74, 110, 0.1);
}

.rec-brand-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rec-brand-card-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.rec-brands-cta {
    text-align: center;
}

.rec-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--brand);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rec-cta-button svg {
    width: 18px;
    height: 18px;
}

.rec-cta-button:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 74, 110, 0.25);
}

/* ─── Cross-Links ─── */
.rec-crosslinks {
    padding: 48px 0;
    background: rgba(30, 74, 110, 0.03);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.rec-crosslinks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rec-crosslink-card {
    display: block;
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
}

.rec-crosslink-card:hover {
    border-color: var(--brand);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 74, 110, 0.12);
}

.rec-crosslink-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    color: var(--brand);
}

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

.rec-crosslink-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.rec-crosslink-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

/* ─── FAQ ─── */
.rec-faq {
    padding: 48px 0;
}

.rec-faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rec-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.rec-faq-item summary {
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s ease;
}

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

.rec-faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.rec-faq-item[open] summary::after {
    content: '\2212';
}

.rec-faq-item summary:hover {
    background: rgba(30, 74, 110, 0.03);
}

.rec-faq-item[open] {
    border-color: var(--brand);
}

.rec-faq-answer {
    padding: 0 20px 18px;
}

.rec-faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ─── SEO ─── */
.rec-seo {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
}

.rec-seo-block {
    max-width: 760px;
    margin: 0 auto 28px;
}

.rec-seo-block:last-child {
    margin-bottom: 0;
}

.rec-seo-block h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.rec-seo-block p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 10px;
}

.rec-seo-block p:last-child {
    margin-bottom: 0;
}

.rec-seo-block a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rec-seo-block a:hover {
    color: var(--brand-dark);
}

/* ─── Affiliate Note ─── */
.rec-affiliate-note {
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.rec-affiliate-note p {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .rec-method-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rec-crosslinks-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rec-brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .rec-cat-header {
        flex-direction: column;
        gap: 12px;
    }

    .rec-cat-count-link {
        align-self: flex-start;
    }
}

@media (max-width: 640px) {
    .rec-hero {
        padding: 32px 0 28px;
    }

    .rec-hero-title {
        font-size: 1.6rem;
    }

    .rec-hero-nav {
        gap: 8px;
    }

    .rec-hero-nav-chip {
        padding: 6px 14px;
        font-size: 0.82rem;
    }

    .rec-category {
        padding: 32px 0 20px;
    }

    .rec-subcats {
        grid-template-columns: 1fr;
    }

    .rec-tip-box {
        flex-direction: column;
        gap: 10px;
        padding: 16px 18px;
    }

    .rec-tip-icon {
        width: 24px;
        height: 24px;
    }

    .rec-method-card {
        padding: 22px 18px;
    }

    .rec-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .rec-brand-card {
        padding: 14px 12px;
    }

    .rec-crosslink-card {
        padding: 22px 18px;
    }

    .rec-faq-item summary {
        padding: 14px 16px;
        font-size: 0.88rem;
    }

    .rec-faq-answer {
        padding: 0 16px 14px;
    }
}

/* ─── Dark Mode ─── */
html.dark .rec-hero {
    background: linear-gradient(180deg, rgba(30, 74, 110, 0.1) 0%, transparent 100%);
}

html.dark .rec-cat-icon {
    background: rgba(30, 74, 110, 0.2);
}

html.dark .rec-subcat-card {
    background: var(--bg-elevated);
}

html.dark .rec-subcat-count {
    background: rgba(30, 74, 110, 0.2);
}

html.dark .rec-tip-box {
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.25);
}

html.dark .rec-brand-chip {
    background: var(--bg-elevated);
}

html.dark .rec-methodology {
    background: rgba(30, 74, 110, 0.06);
}

html.dark .rec-method-card {
    background: var(--bg-elevated);
}

html.dark .rec-brand-card {
    background: var(--bg-elevated);
}

html.dark .rec-crosslinks {
    background: rgba(30, 74, 110, 0.06);
}

html.dark .rec-crosslink-card {
    background: var(--bg-elevated);
}

html.dark .rec-faq-item {
    background: var(--bg-elevated);
}

html.dark .rec-faq-item[open] {
    background: var(--bg-elevated);
}

html.dark .rec-hero-nav-chip {
    background: var(--bg-elevated);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CREATOR HUB (.ch-*)
   Premium Creator Directory mit Suche, Featured Cards, Topics, Filter, Grid
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Page Container ─── */
.ch-page {
    padding-bottom: 0;
}

/* ─── Hero ─── */
.ch-hero {
    padding: 48px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--accent-bg) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}

.ch-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    background: var(--accent-bg);
    border: 1px solid rgba(30, 74, 110, 0.15);
    border-radius: 999px;
    margin-bottom: 20px;
}

.ch-hero-badge svg {
    color: #dc2626;
}

.ch-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.ch-hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* ─── Search ─── */
.ch-search-form {
    position: relative;
    max-width: 560px;
    margin: 0 auto 28px;
    z-index: 100;
}

.ch-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ch-search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.ch-search-input {
    width: 100%;
    padding: 14px 48px 14px 44px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ch-search-input::placeholder {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.ch-search-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 74, 110, 0.1);
}

.ch-search-submit {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-muted);
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.ch-search-submit:hover {
    color: var(--brand);
    background: var(--accent-bg);
}

/* ─── Suggest Dropdown ─── */
.ch-suggest-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 9999;
}

.ch-suggest-list {
    padding: 4px 0;
}

.ch-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    transition: background 0.12s;
    color: var(--text);
}

.ch-suggest-item:hover,
.ch-suggest-item.ch-suggest-hover {
    background: var(--bg-muted);
}

.ch-suggest-item.ch-suggest-active {
    background: var(--accent-bg);
}

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

.ch-suggest-icon--topic {
    color: var(--brand);
}

.ch-suggest-thumb {
    width: 48px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-muted);
}

.ch-suggest-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ch-suggest-title {
    font-size: 0.9rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-suggest-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Search highlight */
.ch-page mark {
    background: rgba(30, 74, 110, 0.12);
    color: var(--brand);
    padding: 0 2px;
    border-radius: 2px;
}

/* ─── Stats ─── */
.ch-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.ch-stat {
    text-align: center;
}

.ch-stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ch-stat-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 2px;
}

.ch-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
}

/* ─── Section Layout ─── */
.ch-section {
    padding: 40px 0;
}

.ch-section--directory {
    padding-bottom: 48px;
    background: var(--bg-muted);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ch-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.ch-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ch-section-icon--star {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.ch-section-icon--topics {
    background: rgba(30, 74, 110, 0.08);
    color: var(--brand);
}

.ch-section-icon--people {
    background: rgba(30, 74, 110, 0.08);
    color: var(--brand);
}

.ch-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}

.ch-section-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

/* ─── Featured Creator Grid ─── */
.ch-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ch-featured-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-sm);
}

.ch-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}

/* Accent color variants for featured cards */
.ch-featured-card.ch-accent-blue .ch-featured-banner {
    background: linear-gradient(135deg, rgba(30, 74, 110, 0.12), rgba(59, 130, 246, 0.06));
}
.ch-featured-card.ch-accent-purple .ch-featured-banner {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(192, 132, 252, 0.06));
}
.ch-featured-card.ch-accent-amber .ch-featured-banner {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(252, 211, 77, 0.06));
}

.ch-featured-banner {
    position: relative;
    height: 80px;
}

.ch-featured-subs {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--brand);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.ch-featured-body {
    padding: 0 20px 20px;
    margin-top: -24px;
    position: relative;
}

.ch-featured-top {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 14px;
}

.ch-featured-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.ch-featured-info {
    padding-bottom: 4px;
    min-width: 0;
}

.ch-featured-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-featured-card:hover .ch-featured-name {
    color: var(--brand);
}

.ch-featured-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.ch-featured-meta svg {
    width: 14px;
    height: 14px;
}

.ch-featured-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ch-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ch-featured-link {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.ch-featured-card:hover .ch-featured-link {
    color: var(--brand);
}

/* ─── Category Badges (V3, replaces Tailwind getCategoryBadgeClass) ─── */
.ch-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid;
    white-space: nowrap;
}

.ch-cat-badge--sm {
    padding: 2px 8px;
    font-size: 0.62rem;
}

.ch-cat-tests     { background: rgba(30, 74, 110, 0.08); color: var(--brand); border-color: rgba(30, 74, 110, 0.2); }
.ch-cat-tutorials { background: rgba(5, 150, 105, 0.08); color: #059669; border-color: rgba(5, 150, 105, 0.2); }
.ch-cat-projekte  { background: rgba(124, 58, 237, 0.08); color: #7c3aed; border-color: rgba(124, 58, 237, 0.2); }
.ch-cat-filament  { background: rgba(217, 119, 6, 0.08); color: #d97706; border-color: rgba(217, 119, 6, 0.2); }
.ch-cat-anfaenger { background: rgba(59, 130, 246, 0.08); color: #3b82f6; border-color: rgba(59, 130, 246, 0.2); }
.ch-cat-profi     { background: rgba(220, 38, 38, 0.08); color: #dc2626; border-color: rgba(220, 38, 38, 0.2); }
.ch-cat-mixed     { background: var(--bg-muted); color: var(--text-muted); border-color: var(--border); }

/* ─── Topics Grid ─── */
.ch-topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ch-topic-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ch-topic-tile:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
}

.ch-topic-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-topic-tile:hover .ch-topic-name {
    color: var(--brand);
}

.ch-topic-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--bg-muted);
    border-radius: 999px;
}

.ch-topics-toggle-wrap {
    text-align: center;
    margin-top: 14px;
}

.ch-topics-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ch-topics-toggle:hover {
    color: var(--brand);
    border-color: var(--brand);
}

.ch-toggle-icon {
    transition: transform 0.25s ease;
}

/* ─── Filter Pills ─── */
.ch-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    align-items: center;
}

.ch-filter-pill {
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
}

.ch-filter-pill:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.ch-filter-pill.ch-filter-active {
    background: var(--accent-bg);
    color: var(--brand);
    border-color: rgba(30, 74, 110, 0.3);
    font-weight: 700;
}

.ch-filter-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 4px;
}

/* ─── Creator Grid ─── */
.ch-creator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    overflow: hidden;
}

.ch-creator-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ch-creator-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
}

.ch-rank {
    flex-shrink: 0;
    width: 28px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.ch-rank-top {
    color: var(--brand);
}

.ch-creator-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.ch-creator-info {
    min-width: 0;
    flex: 1;
}

.ch-creator-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-creator-card:hover .ch-creator-name {
    color: var(--brand);
}

.ch-creator-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.ch-creator-meta svg {
    width: 13px;
    height: 13px;
}

.ch-meta-dot {
    color: var(--border);
}

.ch-creator-end {
    flex-shrink: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.ch-creator-arrow {
    color: var(--border-hover);
    transition: color 0.15s;
}

.ch-creator-card:hover .ch-creator-arrow {
    color: var(--brand);
}

/* ─── Empty State ─── */
.ch-empty {
    text-align: center;
    padding: 60px 20px;
}

.ch-empty svg {
    color: var(--text-muted);
    margin: 0 auto 16px;
    opacity: 0.5;
}

.ch-empty h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 8px;
}

.ch-empty p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.ch-empty-link {
    font-size: 0.88rem;
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.ch-empty-link:hover {
    text-decoration: underline;
}

/* ─── CTA Section ─── */
.ch-cta-section {
    padding: 40px 0;
}

.ch-cta-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 36px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.ch-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 74, 110, 0.04), transparent 60%);
    pointer-events: none;
}

.ch-cta-icon {
    color: var(--brand);
    margin-bottom: 14px;
}

.ch-cta-icon svg {
    display: inline-block;
}

.ch-cta-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.ch-cta-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto 22px;
}

.ch-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--brand);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(30, 74, 110, 0.2);
}

.ch-cta-button:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 74, 110, 0.3);
}

/* ─── Affiliate Note ─── */
.ch-affiliate-note {
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.ch-affiliate-note p {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* ─── Platform Icon Overrides (Tailwind SVG → V3) ─── */
.ch-featured-meta svg,
.ch-creator-meta svg {
    flex-shrink: 0;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .ch-featured-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ch-topics-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .ch-stats {
        gap: 18px;
    }

    .ch-stat-number {
        font-size: 1.35rem;
    }
}

@media (max-width: 640px) {
    .ch-hero {
        padding: 32px 0 28px;
    }

    .ch-hero-title {
        font-size: 1.65rem;
    }

    .ch-hero-desc {
        font-size: 0.9rem;
    }

    .ch-topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ch-topic-tile {
        padding: 10px 12px;
    }

    .ch-topic-name {
        font-size: 0.82rem;
    }

    .ch-creator-grid {
        grid-template-columns: 1fr;
    }

    .ch-featured-grid {
        gap: 12px;
    }

    .ch-section {
        padding: 28px 0;
    }

    .ch-section-title {
        font-size: 1.15rem;
    }

    .ch-filters {
        gap: 6px;
    }

    .ch-filter-pill {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .ch-cta-card {
        padding: 28px 22px;
    }

    .ch-cta-title {
        font-size: 1.25rem;
    }

    .ch-creator-end .ch-cat-badge--sm {
        display: none;
    }

    .ch-stats {
        gap: 14px;
    }

    .ch-stat-number {
        font-size: 1.2rem;
    }

    .ch-stat-label {
        font-size: 0.65rem;
    }
}

/* ─── Dark Mode ─── */
html.dark .ch-hero {
    background: linear-gradient(180deg, rgba(30, 74, 110, 0.1) 0%, transparent 100%);
}

html.dark .ch-search-input {
    background: var(--bg-elevated);
}

html.dark .ch-featured-card {
    background: var(--bg-card);
}

html.dark .ch-featured-subs {
    background: var(--bg-elevated);
}

html.dark .ch-featured-avatar {
    border-color: var(--bg-card);
}

html.dark .ch-topic-tile {
    background: var(--bg-card);
}

html.dark .ch-topic-count {
    background: var(--bg-elevated);
}

html.dark .ch-section--directory {
    background: rgba(15, 17, 20, 0.6);
}

html.dark .ch-filter-pill {
    background: var(--bg-card);
}

html.dark .ch-creator-card {
    background: var(--bg-card);
}

html.dark .ch-cta-card {
    background: var(--bg-card);
}

html.dark .ch-cta-card::before {
    background: linear-gradient(135deg, rgba(30, 74, 110, 0.08), transparent 60%);
}

html.dark .ch-topics-toggle {
    background: var(--bg-card);
}

html.dark .ch-suggest-dropdown {
    background: var(--bg-elevated);
}

html.dark .ch-suggest-item:hover,
html.dark .ch-suggest-item.ch-suggest-hover {
    background: var(--bg-muted);
}

html.dark .ch-suggest-item.ch-suggest-active {
    background: rgba(30, 74, 110, 0.15);
}

html.dark .ch-page mark {
    background: rgba(42, 96, 144, 0.2);
    color: var(--brand-light);
}

html.dark .ch-cat-tests     { background: rgba(42, 96, 144, 0.15); }
html.dark .ch-cat-tutorials { background: rgba(5, 150, 105, 0.12); }
html.dark .ch-cat-projekte  { background: rgba(124, 58, 237, 0.12); }
html.dark .ch-cat-filament  { background: rgba(217, 119, 6, 0.12); }
html.dark .ch-cat-anfaenger { background: rgba(59, 130, 246, 0.12); }
html.dark .ch-cat-profi     { background: rgba(220, 38, 38, 0.12); }
html.dark .ch-cat-mixed     { background: var(--bg-elevated); }


/* ═══════════════════════════════════════════════════════════════════════════════
   CREATOR PROFILE (.ch-profile-*, .ch-video-*, .ch-products-*, .ch-consent-*)
   Creator-Profilseite: Header Card, Video Grid, DSGVO Consent, Products
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Profile Header Card ─── */
.ch-profile-header-wrap {
    padding: 0 0 8px;
}

.ch-profile-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.ch-profile-banner {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ch-profile-banner--default {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 60%, #0f2f47 100%);
}

.ch-profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
}

.ch-profile-info {
    padding: 0 28px 28px;
    margin-top: -32px;
    position: relative;
    z-index: 1;
}

.ch-profile-top {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.ch-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.ch-profile-details {
    flex: 1;
    min-width: 200px;
    padding-top: 36px;
}

.ch-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    line-height: 1.2;
}

.ch-profile-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ch-profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ch-profile-meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.ch-profile-meta-item strong {
    font-weight: 600;
    color: var(--text);
}

/* Tailwind SVG overrides from getPlatformIcon() */
.ch-profile-meta-item svg.w-4 { width: 16px; }
.ch-profile-meta-item svg.h-4 { height: 16px; }
.ch-profile-meta-item svg.text-red-500 { color: #ef4444; }

.ch-yt-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ff0000;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.ch-yt-button:hover {
    background: #cc0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
}

.ch-yt-button svg {
    flex-shrink: 0;
}

.ch-profile-desc {
    margin: 16px 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 720px;
}


/* ─── Video List ─── */
.ch-video-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ch-video-card {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.ch-video-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 74, 110, 0.2);
}


/* ─── Video Title Bar ─── */
.ch-video-title-bar {
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--border);
}

.ch-video-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.35;
}

.ch-video-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ch-video-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.ch-video-meta-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.ch-video-topic-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 500;
    background: var(--accent-bg);
    color: var(--brand);
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid transparent;
}

.ch-video-topic-tag:hover {
    background: var(--brand);
    color: #fff;
}


/* ─── Video Content Grid (3+2 Spalten) ─── */
.ch-video-content-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    min-height: 0;
}

.ch-video-player-col {
    position: relative;
    border-right: 1px solid var(--border);
}

.ch-video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.ch-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ─── Play Overlay ─── */
.ch-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.2s;
}

.ch-play-overlay:hover {
    background: rgba(0, 0, 0, 0.15);
}

.ch-play-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ch-play-overlay:hover .ch-play-button {
    transform: scale(1.08);
    background: #ff0000;
}

.ch-play-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}


/* ─── DSGVO Consent Overlay ─── */
.ch-consent-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.ch-consent-inner {
    text-align: center;
    padding: 24px;
    max-width: 380px;
    color: #fff;
}

.ch-consent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 14px;
    color: rgba(255, 255, 255, 0.7);
}

.ch-consent-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: #fff;
}

.ch-consent-text {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin: 0 0 18px;
}

.ch-consent-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ch-consent-text a:hover {
    color: #fff;
}

.ch-consent-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ch-consent-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.ch-consent-btn:hover {
    background: #e60000;
    transform: scale(1.02);
}

.ch-consent-always {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.ch-consent-always input[type="checkbox"] {
    accent-color: var(--brand);
}


/* ─── Summary Column ─── */
.ch-video-summary-col {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-elevated);
}

.ch-summary-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
}

.ch-summary-label svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.ch-summary-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.ch-summary-pending {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 120px;
}

.ch-summary-pending p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}


/* ─── Products Section ─── */
.ch-products-section {
    border-top: 1px solid var(--border);
    padding: 18px 22px 20px;
    background: var(--bg);
}

.ch-products-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 14px;
}

.ch-products-label svg {
    color: var(--brand);
    flex-shrink: 0;
}

.ch-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.ch-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
}

.ch-product-card:hover {
    border-color: var(--brand);
    box-shadow: 0 2px 10px rgba(30, 74, 110, 0.1);
    transform: translateY(-1px);
}

.ch-product-image {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ch-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ch-product-placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.ch-product-info {
    flex: 1;
    min-width: 0;
}

.ch-product-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 2px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ch-product-brand {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.ch-product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.ch-product-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand);
}

.ch-product-arrow {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.ch-product-card:hover .ch-product-arrow {
    opacity: 0.6;
    transform: translate(1px, -1px);
}


/* ─── Source Badges ─── */
.ch-source-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ch-source-3djake {
    background: rgba(30, 74, 110, 0.1);
    color: var(--brand);
}

.ch-source-amazon {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
}

.ch-source-ebay {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}


/* ─── Back Link ─── */
.ch-back-link {
    padding: 28px 0 8px;
    text-align: center;
}


/* ─── Profile Responsive ─── */
@media (max-width: 900px) {
    .ch-video-content-grid {
        grid-template-columns: 1fr;
    }

    .ch-video-player-col {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .ch-profile-banner {
        height: 140px;
    }

    .ch-profile-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ch-yt-button {
        margin-left: 0;
    }

    .ch-profile-info {
        padding: 0 20px 20px;
    }

    .ch-products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ch-profile-banner {
        height: 110px;
    }

    .ch-profile-avatar {
        width: 68px;
        height: 68px;
    }

    .ch-profile-name {
        font-size: 1.25rem;
    }

    .ch-profile-meta {
        gap: 10px;
    }

    .ch-video-title-bar {
        padding: 14px 16px 12px;
    }

    .ch-video-title {
        font-size: 1rem;
    }

    .ch-video-meta-row {
        gap: 8px;
    }

    .ch-video-summary-col {
        padding: 16px 18px;
    }

    .ch-products-section {
        padding: 14px 16px 16px;
    }

    .ch-play-button {
        width: 46px;
        height: 46px;
    }

    .ch-play-button svg {
        width: 22px;
        height: 22px;
    }

    .ch-consent-inner {
        padding: 16px;
    }

    .ch-consent-title {
        font-size: 0.85rem;
    }

    .ch-consent-text {
        font-size: 0.72rem;
    }

    .ch-consent-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
}


/* ─── Profile Dark Mode ─── */
html.dark .ch-profile-card {
    background: var(--bg-card);
}

html.dark .ch-profile-banner--default {
    background: linear-gradient(135deg, #0f2f47 0%, #0a1f30 60%, #060f18 100%);
}

html.dark .ch-profile-avatar {
    border-color: var(--bg-card);
}

html.dark .ch-video-card {
    background: var(--bg-card);
}

html.dark .ch-video-card:hover {
    border-color: rgba(42, 96, 144, 0.25);
}

html.dark .ch-video-summary-col {
    background: var(--bg-elevated);
}

html.dark .ch-products-section {
    background: var(--bg-elevated);
}

html.dark .ch-product-card {
    background: var(--bg-card);
}

html.dark .ch-product-card:hover {
    border-color: var(--brand);
    box-shadow: 0 2px 10px rgba(42, 96, 144, 0.12);
}

html.dark .ch-product-image {
    background: var(--bg-muted);
}

html.dark .ch-source-3djake {
    background: rgba(42, 96, 144, 0.15);
    color: var(--brand-light);
}

html.dark .ch-source-amazon {
    background: rgba(217, 119, 6, 0.12);
    color: #f59e0b;
}

html.dark .ch-source-ebay {
    background: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
}

html.dark .ch-consent-overlay {
    background: rgba(5, 10, 18, 0.95);
}

html.dark .ch-video-topic-tag {
    background: rgba(30, 74, 110, 0.12);
    color: var(--brand-light);
}

html.dark .ch-video-topic-tag:hover {
    background: var(--brand);
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   CREATOR TOPIC PAGE (.ch-topic-*)
   Themen-Seite: Editorial feed layout — precision spacing, locked dimensions
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Topic Header ─── */
.ch-topic-header-wrap {
    padding: 0 0 12px;
}

.ch-topic-header-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.ch-topic-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand) 0%, transparent 100%);
    opacity: 0.6;
}

.ch-topic-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-bg);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ch-topic-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.ch-topic-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 5px 0 0;
}


/* ─── Topic Layout (Main + Sidebar) ─── */
.ch-topic-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 36px;
    align-items: start;
}

.ch-topic-main {
    min-width: 0;
}


/* ─── Topic Video List ─── */
.ch-topic-video-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ch-topic-video-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.ch-topic-video-card:hover {
    border-color: rgba(30, 74, 110, 0.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* CRITICAL: use flexbox — thumbnail is fixed width, info fills remainder */
.ch-topic-video-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Thumbnail column: LOCKED at 220px, absolutely no flex-grow or shrink */
.ch-topic-thumb-col {
    flex: 0 0 220px;
    width: 220px;
    max-width: 220px;
    position: relative;
    overflow: hidden;
}

/* Thumbnail wrapper: fill the column, clip everything */
.ch-topic-thumb-wrap {
    position: relative;
    width: 220px;
    min-height: 124px; /* 220 × 9/16 ≈ 124 */
    height: 100%;
    background: #0a0a0a;
    overflow: hidden;
}

.ch-topic-thumb-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.ch-topic-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ch-topic-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    padding: 2px 7px;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: monospace;
    border-radius: 4px;
    z-index: 3;
    letter-spacing: 0.04em;
}

/* DSGVO overlays inside topic thumbs — smaller scale */
.ch-topic-thumb-wrap .ch-play-overlay {
    z-index: 2;
}

.ch-topic-thumb-wrap .ch-play-button {
    width: 42px;
    height: 42px;
}

.ch-topic-thumb-wrap .ch-play-hint {
    display: none;
}

.ch-topic-thumb-wrap .ch-consent-inner {
    padding: 12px;
}

.ch-topic-thumb-wrap .ch-consent-title {
    font-size: 0.75rem;
}

.ch-topic-thumb-wrap .ch-consent-text {
    font-size: 0.65rem;
    margin-bottom: 10px;
}

.ch-topic-thumb-wrap .ch-consent-btn {
    padding: 6px 14px;
    font-size: 0.72rem;
}

.ch-topic-thumb-wrap .ch-consent-always {
    font-size: 0.62rem;
}


/* ─── Topic Video Info — fills remaining width ─── */
.ch-topic-info-col {
    flex: 1 1 0%;
    min-width: 0; /* critical for text-overflow to work inside flex */
    padding: 14px 18px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 1px solid var(--border);
}

.ch-topic-video-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ch-topic-creator-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    width: fit-content;
}

.ch-topic-creator-link:hover {
    color: var(--brand);
}

.ch-topic-creator-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ch-topic-video-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ch-topic-video-meta span {
    white-space: nowrap;
}

.ch-topic-video-summary {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 2px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ─── Topic Product Chips ─── */
.ch-topic-products {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.ch-topic-product-chip {
    display: inline-block;
    padding: 3px 9px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}

.ch-topic-product-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.ch-topic-product-price {
    font-weight: 700;
    color: var(--brand);
    margin-left: 4px;
}


/* ─── Topic Sidebar ─── */
.ch-topic-sidebar {
    position: relative;
}

.ch-topic-sidebar-inner {
    position: sticky;
    top: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 14px;
    box-shadow: var(--shadow-sm);
}

.ch-topic-sidebar-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
    padding: 0 6px;
}

.ch-topic-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ch-topic-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 8px;
    border-radius: 7px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border: 1px solid transparent;
}

.ch-topic-sidebar-link span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.ch-topic-sidebar-link:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

.ch-topic-sidebar-active {
    background: var(--accent-bg);
    color: var(--brand);
    font-weight: 600;
    border-color: rgba(30, 74, 110, 0.15);
}

.ch-topic-sidebar-active:hover {
    background: var(--accent-bg);
    color: var(--brand);
}

.ch-topic-sidebar-count {
    font-size: 0.65rem;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 20px;
    text-align: right;
}

.ch-topic-sidebar-back {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.ch-topic-sidebar-backlink {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--brand);
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.ch-topic-sidebar-backlink:hover {
    background: var(--accent-bg);
    color: var(--brand-dark);
}


/* ─── Topic Responsive ─── */
@media (max-width: 960px) {
    .ch-topic-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ch-topic-sidebar-inner {
        position: static;
        display: flex;
        flex-direction: column;
    }

    /* Turn sidebar into horizontal pills */
    .ch-topic-sidebar-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .ch-topic-sidebar-link {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .ch-topic-header-card {
        padding: 18px 20px;
        gap: 12px;
    }

    .ch-topic-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .ch-topic-title {
        font-size: 1.2rem;
    }

    /* Stack thumbnail above info on small screens */
    .ch-topic-video-grid {
        flex-direction: column;
    }

    .ch-topic-thumb-col {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .ch-topic-thumb-wrap {
        width: 100%;
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .ch-topic-thumb-img {
        position: relative;
    }

    .ch-topic-info-col {
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 12px 14px;
    }

    .ch-topic-video-title {
        font-size: 0.88rem;
    }

    .ch-topic-video-summary {
        -webkit-line-clamp: 3;
    }
}


/* ─── Topic Dark Mode ─── */
html.dark .ch-topic-header-card {
    background: var(--bg-card);
}

html.dark .ch-topic-header-card::before {
    opacity: 0.4;
}

html.dark .ch-topic-icon {
    background: rgba(30, 74, 110, 0.18);
}

html.dark .ch-topic-video-card {
    background: var(--bg-card);
}

html.dark .ch-topic-video-card:hover {
    border-color: rgba(42, 96, 144, 0.3);
}

html.dark .ch-topic-info-col {
    border-left-color: var(--border);
}

html.dark .ch-topic-product-chip {
    background: var(--bg-muted);
    border-color: var(--border);
}

html.dark .ch-topic-sidebar-inner {
    background: var(--bg-card);
}

html.dark .ch-topic-sidebar-link:hover {
    background: var(--bg-elevated);
}

html.dark .ch-topic-sidebar-active {
    background: rgba(30, 74, 110, 0.14);
    border-color: rgba(42, 96, 144, 0.25);
    color: var(--brand-light);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   AFFILIATE STAR (*)
   Kleines Sternchen neben Produktpreisen — verbindet zum Affiliate-Hinweis
   ═══════════════════════════════════════════════════════════════════════════════ */
.ch-affiliate-star {
    font-size: 0.75em;
    color: var(--text-muted);
    vertical-align: super;
    line-height: 1;
    margin-left: 1px;
    font-weight: 400;
    opacity: 0.7;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   EXPANDABLE SUMMARY (thema-v3)
   Ausklappbare Videobeschreibung: Standard 2 Zeilen, dann "mehr anzeigen"
   ═══════════════════════════════════════════════════════════════════════════════ */
.ch-topic-summary-wrap {
    position: relative;
}

.ch-topic-summary-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ch-topic-summary-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.ch-topic-summary-toggle {
    display: inline-block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 0;
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.01em;
    transition: color 0.15s ease;
}

.ch-topic-summary-toggle:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

html.dark .ch-topic-summary-toggle {
    color: var(--brand-light);
}

html.dark .ch-topic-summary-toggle:hover {
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   LEGAL PAGES (Impressum, AGB, Datenschutz, Widerruf)
   Editorial Precision — Kanzlei-Edition
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Legal Page Shell ─── */
.legal-page {
    padding-bottom: 64px;
}

/* ─── Legal Hero ─── */
.legal-hero {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(30, 74, 110, 0.03) 0%, transparent 60%),
        var(--bg-muted);
    position: relative;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
    opacity: 0.5;
}

.legal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--accent-bg);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.legal-hero-badge svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.legal-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.legal-hero-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 520px;
}

/* ─── Legal Quick Stats (Impressum) ─── */
.legal-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.legal-quick-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.legal-quick-stat svg {
    width: 15px;
    height: 15px;
    color: var(--brand);
    flex-shrink: 0;
}

/* ─── Legal Content Area ─── */
.legal-content {
    padding: 40px 0;
}

.legal-content .container {
    max-width: 880px;
}

/* ─── Legal Card (Section Block) ─── */
.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.legal-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

/* Accent Strip oben */
.legal-card--accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--brand);
    border-radius: 0 0 2px 2px;
    opacity: 0.35;
}

/* Side Indicator */
.legal-card--indicator {
    border-left: 3px solid var(--card-accent, var(--brand));
    padding-left: 29px;
}

/* ─── Legal Card Header ─── */
.legal-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.legal-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    color: var(--brand);
    flex-shrink: 0;
}

.legal-card-icon svg {
    width: 20px;
    height: 20px;
}

.legal-card-icon--green { background: rgba(5, 150, 105, 0.08); color: #059669; }
.legal-card-icon--amber { background: rgba(217, 119, 6, 0.08); color: #d97706; }
.legal-card-icon--blue  { background: rgba(37, 99, 235, 0.08); color: #2563eb; }
.legal-card-icon--pink  { background: rgba(219, 39, 119, 0.08); color: #db2777; }
.legal-card-icon--indigo { background: rgba(99, 102, 241, 0.08); color: #6366f1; }
.legal-card-icon--red   { background: rgba(220, 38, 38, 0.08); color: #dc2626; }
.legal-card-icon--purple { background: rgba(139, 92, 246, 0.08); color: #8b5cf6; }

.legal-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 2px;
}

.legal-card-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ─── Legal Section Title (ohne Icon) ─── */
.legal-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.legal-subsection-title {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--text);
    margin-top: 18px;
    margin-bottom: 8px;
}

/* ─── Legal Body Text ─── */
.legal-text {
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.legal-text + .legal-text {
    margin-top: 8px;
}

.legal-text strong {
    color: var(--text);
    font-weight: 600;
}

.legal-text a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-color: rgba(30, 74, 110, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s;
}

.legal-text a:hover {
    text-decoration-color: var(--brand);
}

/* ─── Legal List ─── */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.legal-list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.4;
}

.legal-list li strong {
    color: var(--text);
    font-weight: 600;
}

/* Nummerierte Liste */
.legal-list--numbered {
    counter-reset: legal-counter;
}

.legal-list--numbered li {
    padding-left: 28px;
    counter-increment: legal-counter;
}

.legal-list--numbered li::before {
    content: counter(legal-counter) '.';
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    opacity: 1;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand);
}

/* ─── Data Rows (Impressum Key-Value) ─── */
.legal-data-rows {
    display: flex;
    flex-direction: column;
}

.legal-data-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.legal-data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-data-row:first-child {
    padding-top: 0;
}

.legal-data-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 110px;
    flex-shrink: 0;
    font-weight: 500;
}

.legal-data-value {
    font-size: 0.84rem;
    color: var(--text);
    font-weight: 600;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.legal-data-value--brand {
    color: var(--brand);
}

.legal-data-value--muted {
    color: var(--text-muted);
    font-weight: 400;
}

.legal-data-value--mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.legal-data-value a {
    color: var(--brand);
    text-decoration: none;
    transition: opacity 0.15s;
}

.legal-data-value a:hover {
    opacity: 0.75;
}

/* ─── Info/Alert Boxes ─── */
.legal-info-box {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    line-height: 1.65;
    margin: 14px 0;
    border: 1px solid;
}

.legal-info-box strong {
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

/* Neutral */
.legal-info-box--neutral {
    background: var(--bg-muted);
    border-color: var(--border);
    color: var(--text-secondary);
}

/* Success / Green */
.legal-success-box,
.legal-info-box--green {
    background: rgba(5, 150, 105, 0.05);
    border-color: rgba(5, 150, 105, 0.18);
    color: #065f46;
}

.legal-success-box strong,
.legal-info-box--green strong {
    color: #047857;
}

/* Warning / Amber */
.legal-warning-box,
.legal-info-box--amber {
    background: rgba(217, 119, 6, 0.05);
    border-color: rgba(217, 119, 6, 0.18);
    color: #78350f;
}

.legal-warning-box strong,
.legal-info-box--amber strong {
    color: #b45309;
}

/* Highlight / Blue */
.legal-highlight-box,
.legal-info-box--blue {
    background: rgba(37, 99, 235, 0.04);
    border-color: rgba(37, 99, 235, 0.15);
    color: #1e3a5f;
}

.legal-highlight-box strong,
.legal-info-box--blue strong {
    color: #1d4ed8;
}

/* Red / Ausschluss */
.legal-info-box--red {
    background: rgba(220, 38, 38, 0.04);
    border-color: rgba(220, 38, 38, 0.15);
    color: #7f1d1d;
}

.legal-info-box--red strong {
    color: #b91c1c;
}

/* ─── Impressum Grid ─── */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.legal-grid .legal-card {
    margin-bottom: 0;
}

/* ─── Affiliate Badge Row ─── */
.legal-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--accent-bg);
    color: var(--brand);
    border: 1px solid rgba(30, 74, 110, 0.1);
}

/* ─── Widerruf Form Template ─── */
.legal-form-template {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-top: 16px;
    font-size: 0.84rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-form-template p {
    margin-bottom: 6px;
}

.legal-form-template strong {
    color: var(--text);
    font-weight: 600;
}

.legal-form-line {
    border-bottom: 1px dashed var(--border-hover);
    padding-bottom: 2px;
    margin: 8px 0 14px;
    min-height: 20px;
}

.legal-form-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 16px;
    font-style: italic;
}

/* ─── Colored Dot Indicator ─── */
.legal-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

.legal-dot--brand  { background: var(--brand); }
.legal-dot--green  { background: #059669; }
.legal-dot--amber  { background: #d97706; }
.legal-dot--red    { background: #dc2626; }
.legal-dot--purple { background: #8b5cf6; }
.legal-dot--pink   { background: #db2777; }
.legal-dot--blue   { background: #2563eb; }
.legal-dot--indigo { background: #6366f1; }

/* ─── Legal Footer Note ─── */
.legal-footer-note {
    text-align: center;
    padding: 20px 0;
    font-size: 0.76rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 24px;
}

.legal-footer-note span {
    display: block;
    margin-top: 4px;
}

/* ─── Code Inline ─── */
.legal-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78em;
    padding: 2px 6px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}


/* ─── Legal Responsive ─── */
@media (max-width: 768px) {
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .legal-hero h1 {
        font-size: 1.6rem;
    }

    .legal-card {
        padding: 20px 22px;
    }

    .legal-data-row {
        flex-direction: column;
        gap: 2px;
    }

    .legal-data-value {
        text-align: left;
    }

    .legal-quick-stats {
        flex-direction: column;
    }

    .legal-quick-stat {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .legal-hero {
        padding: 32px 0 28px;
    }

    .legal-hero h1 {
        font-size: 1.4rem;
    }

    .legal-card {
        padding: 16px 18px;
        border-radius: var(--radius-sm);
    }

    .legal-card-header {
        gap: 10px;
    }

    .legal-card-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .legal-card-icon svg {
        width: 17px;
        height: 17px;
    }

    .legal-card-title {
        font-size: 1rem;
    }
}


/* ─── Legal Dark Mode ─── */
html.dark .legal-hero {
    background:
        linear-gradient(135deg, rgba(30, 74, 110, 0.06) 0%, transparent 60%),
        var(--bg-muted);
}

html.dark .legal-card {
    background: var(--bg-card);
}

html.dark .legal-card:hover {
    border-color: rgba(42, 96, 144, 0.3);
}

html.dark .legal-quick-stat {
    background: var(--bg-card);
}

html.dark .legal-success-box,
html.dark .legal-info-box--green {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.2);
    color: #6ee7b7;
}

html.dark .legal-success-box strong,
html.dark .legal-info-box--green strong {
    color: #34d399;
}

html.dark .legal-warning-box,
html.dark .legal-info-box--amber {
    background: rgba(217, 119, 6, 0.08);
    border-color: rgba(217, 119, 6, 0.2);
    color: #fcd34d;
}

html.dark .legal-warning-box strong,
html.dark .legal-info-box--amber strong {
    color: #fbbf24;
}

html.dark .legal-highlight-box,
html.dark .legal-info-box--blue {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
}

html.dark .legal-highlight-box strong,
html.dark .legal-info-box--blue strong {
    color: #60a5fa;
}

html.dark .legal-info-box--red {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

html.dark .legal-info-box--red strong {
    color: #f87171;
}

html.dark .legal-info-box--neutral {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

html.dark .legal-form-template {
    background: var(--bg-elevated);
}

html.dark .legal-card-icon--green { background: rgba(5, 150, 105, 0.12); color: #34d399; }
html.dark .legal-card-icon--amber { background: rgba(217, 119, 6, 0.12); color: #fbbf24; }
html.dark .legal-card-icon--blue  { background: rgba(37, 99, 235, 0.12); color: #60a5fa; }
html.dark .legal-card-icon--pink  { background: rgba(219, 39, 119, 0.12); color: #f472b6; }
html.dark .legal-card-icon--indigo { background: rgba(99, 102, 241, 0.12); color: #a5b4fc; }
html.dark .legal-card-icon--red   { background: rgba(220, 38, 38, 0.12); color: #f87171; }
html.dark .legal-card-icon--purple { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; }


/* ═══════════════════════════════════════════════════════════════════════════
   INFO PAGES — FAQ, Kontakt, Über Uns, Service
   Editorial Precision: Seriös, einladend, strukturiert
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Shared Info Page Base ─── */
.info-page {
    min-height: 100vh;
}

.info-hero {
    padding: 48px 0 40px;
    background:
        linear-gradient(135deg, rgba(30, 74, 110, 0.03) 0%, transparent 60%),
        var(--bg-muted);
    position: relative;
}

.info-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
    opacity: 0.5;
}

.info-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--accent-bg);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.info-hero-badge svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.info-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.info-hero-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 600px;
}

.info-content {
    padding: 40px 0 60px;
}

.info-content .container {
    max-width: 960px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   FAQ PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── FAQ Hero ─── */
.faq-hero {
    padding: 48px 0 40px;
    background:
        linear-gradient(135deg, rgba(30, 74, 110, 0.03) 0%, transparent 60%),
        var(--bg-muted);
    position: relative;
    text-align: center;
}

.faq-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
    opacity: 0.5;
}

.faq-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.faq-hero-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 540px;
    margin: 0 auto 24px;
}

.faq-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--accent-bg);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.faq-count-badge svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* ─── FAQ Quick Nav Pills ─── */
.faq-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.faq-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 550;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.faq-nav-pill:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--accent-bg);
    transform: translateY(-1px);
}

.faq-nav-pill svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* ─── FAQ Content ─── */
.faq-content {
    padding: 40px 0 60px;
}

.faq-content .container {
    max-width: 880px;
}

/* ─── FAQ Category Block ─── */
.faq-category {
    margin-bottom: 48px;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.faq-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-category-icon svg {
    width: 20px;
    height: 20px;
}

.faq-category-icon--cyan    { background: rgba(6, 182, 212, 0.08); color: #0891b2; }
.faq-category-icon--purple  { background: rgba(139, 92, 246, 0.08); color: #7c3aed; }
.faq-category-icon--pink    { background: rgba(219, 39, 119, 0.08); color: #db2777; }
.faq-category-icon--amber   { background: rgba(217, 119, 6, 0.08); color: #d97706; }
.faq-category-icon--green   { background: rgba(5, 150, 105, 0.08); color: #059669; }
.faq-category-icon--indigo  { background: rgba(99, 102, 241, 0.08); color: #6366f1; }

.faq-category-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.faq-category-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ─── FAQ Accordion ─── */
.faq-accordion {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-accordion:hover {
    border-color: var(--border-hover);
}

.faq-accordion[open] {
    box-shadow: var(--shadow-sm);
    border-color: rgba(30, 74, 110, 0.2);
}

.faq-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.15s ease;
}

.faq-accordion summary:hover {
    background: var(--bg-muted);
}

.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::marker { display: none; content: ''; }

.faq-accordion-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

.faq-accordion-question {
    flex: 1;
    text-align: left;
}

.faq-accordion-chevron {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-accordion[open] .faq-accordion-chevron {
    transform: rotate(180deg);
}

.faq-accordion-answer {
    padding: 0 18px 16px;
    padding-left: 56px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
    border-top: 1px solid var(--border);
    animation: faqSlideDown 0.25s ease;
}

.faq-accordion-answer a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-accordion-answer a:hover {
    color: var(--brand-dark);
}

.faq-accordion-answer strong {
    color: var(--text);
    font-weight: 600;
}

@keyframes faqSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── FAQ CTA Box ─── */
.faq-cta {
    margin-top: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.faq-cta h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.faq-cta p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.faq-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.faq-cta-btn--primary {
    background: var(--brand);
    color: #fff;
}

.faq-cta-btn--primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 74, 110, 0.25);
}

.faq-cta-btn--secondary {
    background: var(--bg-muted);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.faq-cta-btn--secondary:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.faq-cta-btn svg {
    width: 16px;
    height: 16px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   KONTAKT PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Contact Layout ─── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: start;
}

/* ─── Contact Sidebar ─── */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-info-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.contact-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
}

.contact-info-icon--brand  { background: var(--accent-bg); color: var(--brand); }
.contact-info-icon--cyan   { background: rgba(6, 182, 212, 0.08); color: #0891b2; }
.contact-info-icon--green  { background: rgba(5, 150, 105, 0.08); color: #059669; }

.contact-info-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-info-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-info-text a {
    color: var(--brand);
    text-decoration: none;
}

.contact-info-text a:hover {
    text-decoration: underline;
}

.contact-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.15);
    border-radius: var(--radius-sm);
}

.contact-status-dot {
    width: 8px;
    height: 8px;
    background: #059669;
    border-radius: 50%;
    animation: contactPulse 2s ease infinite;
}

@keyframes contactPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.contact-status-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
}

.contact-formats {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.contact-formats-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-formats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.contact-format-tag {
    font-size: 0.68rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    padding: 3px 8px;
    background: var(--bg-muted);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* ─── Contact Form Card ─── */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}

/* ─── Form Elements ─── */
.contact-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.contact-type-label {
    cursor: pointer;
}

.contact-type-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.contact-type-btn {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.contact-type-label input[type="radio"]:checked + .contact-type-btn {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.contact-type-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.contact-field {
    margin-bottom: 14px;
}

.contact-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.contact-field label .required {
    color: #dc2626;
}

.contact-field label .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.contact-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--text);
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.contact-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 74, 110, 0.08);
}

.contact-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.contact-input.valid {
    border-color: #059669;
}

.contact-input.invalid {
    border-color: #dc2626;
}

.contact-input-wrap {
    position: relative;
}

.contact-input-wrap .contact-input {
    padding-left: 38px;
}

.contact-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.contact-input-validation {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    display: none;
}

.contact-input-validation.show { display: block; }
.contact-input-validation.valid-icon { color: #059669; }
.contact-input-validation.invalid-icon { color: #dc2626; }

textarea.contact-input {
    resize: none;
    min-height: 120px;
}

.contact-char-count {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.contact-field-error {
    font-size: 0.72rem;
    color: #dc2626;
    margin-top: 4px;
    display: none;
}

/* ─── File Upload ─── */
.contact-dropzone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 28px;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.contact-dropzone:hover,
.contact-dropzone.drag-over {
    border-color: var(--brand);
    background: var(--accent-bg);
}

.contact-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.contact-dropzone-icon {
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    margin: 0 auto 8px;
}

.contact-dropzone-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.contact-dropzone-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── DSGVO Checkbox ─── */
.contact-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 14px;
}

.contact-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--bg-page);
    flex-shrink: 0;
    margin-top: 2px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.contact-checkbox:checked {
    background: var(--brand);
    border-color: var(--brand);
}

.contact-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.contact-checkbox-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-checkbox-text a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Submit Button ─── */
.contact-submit {
    width: 100%;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.contact-submit:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30, 74, 110, 0.3);
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-submit svg {
    width: 18px;
    height: 18px;
}

.contact-submit.loading .contact-submit-text {
    opacity: 0;
}

.contact-submit.loading .contact-submit-loader {
    opacity: 1;
}

.contact-submit-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.contact-submit-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contactSpin 0.6s linear infinite;
}

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

.contact-recaptcha-note {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.contact-recaptcha-note a {
    color: var(--text-muted);
    text-decoration: underline;
}

/* ─── Error Alert ─── */
.contact-error-alert {
    padding: 12px 16px;
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--radius-sm);
    color: #dc2626;
    font-size: 0.82rem;
    margin-bottom: 16px;
}

/* ─── Success State ─── */
.contact-success {
    text-align: center;
    padding: 40px 20px;
}

.contact-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: contactSuccessPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.contact-success-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

@keyframes contactSuccessPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.contact-success h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.contact-success p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.contact-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ÜBER UNS PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── About Story Section ─── */
.about-section {
    padding: 40px 0;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.about-story-text h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.about-story-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-story-text p:last-child {
    margin-bottom: 0;
}

.about-story-text strong {
    color: var(--text);
    font-weight: 600;
}

.about-logo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.about-logo-card img {
    width: 140px;
    height: auto;
    margin: 0 auto 16px;
}

.about-logo-card .about-powered-by {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.about-logo-card .about-powered-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}

.about-logo-card .about-powered-link:hover {
    text-decoration: underline;
}

/* ─── About Quote ─── */
.about-quote {
    max-width: 680px;
    margin: 0 auto 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.about-quote::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 20px;
    font-size: 3.5rem;
    font-family: Georgia, serif;
    color: var(--brand);
    opacity: 0.2;
    line-height: 1;
}

.about-quote blockquote {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

.about-quote blockquote .about-quote-highlight {
    color: var(--brand);
    font-weight: 600;
}

/* ─── About Values ─── */
.about-values {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.about-values h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 28px;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.about-value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-value-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.about-value-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    color: var(--brand);
}

.about-value-icon svg {
    width: 22px;
    height: 22px;
}

.about-value-card h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.about-value-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── About CTA ─── */
.about-cta {
    margin-top: 40px;
    background:
        linear-gradient(135deg, rgba(30, 74, 110, 0.06) 0%, rgba(30, 74, 110, 0.02) 100%);
    border: 1px solid rgba(30, 74, 110, 0.12);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
}

.about-cta h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.about-cta p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.about-cta-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 74, 110, 0.25);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SERVICE PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Service Hero ─── */
.service-hero {
    padding: 48px 0 40px;
    background:
        linear-gradient(135deg, rgba(30, 74, 110, 0.04) 0%, transparent 50%),
        var(--bg-muted);
    position: relative;
}

.service-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
    opacity: 0.5;
}

.service-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.service-hero-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 560px;
    margin-bottom: 20px;
}

.service-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.service-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.service-hero-btn--primary {
    background: var(--brand);
    color: #fff;
}

.service-hero-btn--primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 74, 110, 0.25);
}

.service-hero-btn--secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.service-hero-btn--secondary:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.service-hero-btn svg {
    width: 16px;
    height: 16px;
}

/* ─── Service Trust Row ─── */
.service-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.service-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-trust-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-trust-icon svg {
    width: 18px;
    height: 18px;
}

.service-trust-icon--brand  { background: var(--accent-bg); color: var(--brand); }
.service-trust-icon--green  { background: rgba(5, 150, 105, 0.08); color: #059669; }
.service-trust-icon--purple { background: rgba(139, 92, 246, 0.08); color: #7c3aed; }

.service-trust-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.service-trust-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ─── Service Content ─── */
.service-content {
    padding: 40px 0 60px;
}

/* ─── Service Cards Grid ─── */
.service-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 48px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.service-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.service-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card-icon svg {
    width: 22px;
    height: 22px;
}

.service-card-icon--cyan   { background: rgba(6, 182, 212, 0.08); color: #0891b2; }
.service-card-icon--orange { background: rgba(234, 88, 12, 0.08); color: #ea580c; }
.service-card-icon--purple { background: rgba(139, 92, 246, 0.08); color: #7c3aed; }
.service-card-icon--lime   { background: rgba(101, 163, 13, 0.08); color: #65a30d; }

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.service-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.service-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.service-card-features li svg {
    width: 14px;
    height: 14px;
    color: #059669;
    flex-shrink: 0;
}

/* ─── Materials Section ─── */
.service-materials {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.service-section-header {
    text-align: center;
    margin-bottom: 28px;
}

.service-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--accent-bg);
    padding: 4px 10px;
    border-radius: 16px;
    margin-bottom: 10px;
}

.service-section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.service-section-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Material Filter Tabs ─── */
.service-material-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 24px;
}

.service-material-tab {
    padding: 6px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.service-material-tab:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.service-material-tab.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ─── Material Cards Grid ─── */
.service-materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.service-material-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    transition: all 0.2s ease;
}

.service-material-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.service-material-card.hidden {
    display: none;
}

.service-material-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.service-material-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.service-material-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.service-material-tag {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    background: var(--bg-muted);
    color: var(--text-secondary);
}

.service-material-tag--green  { background: rgba(5, 150, 105, 0.08); color: #059669; }
.service-material-tag--amber  { background: rgba(217, 119, 6, 0.08); color: #d97706; }
.service-material-tag--red    { background: rgba(220, 38, 38, 0.08); color: #dc2626; }
.service-material-tag--blue   { background: rgba(37, 99, 235, 0.08); color: #2563eb; }

.service-material-desc {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 10px;
}

.service-material-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border);
    padding-top: 8px;
}

.service-material-specs li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 2px 0;
}

.service-material-specs li svg {
    width: 12px;
    height: 12px;
    color: #059669;
    flex-shrink: 0;
}

/* ─── Process Timeline ─── */
.service-process {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.service-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.service-timeline::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.service-step {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    position: relative;
}

.service-step:last-child {
    margin-bottom: 0;
}

.service-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--brand);
    flex-shrink: 0;
    z-index: 1;
}

.service-step-content {
    flex: 1;
    padding-top: 6px;
}

.service-step-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.service-step-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-step-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 8px;
}

.service-step-tag--time {
    background: rgba(6, 182, 212, 0.08);
    color: #0891b2;
}

.service-step-tag--free {
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
}

/* ─── Service CTA ─── */
.service-cta {
    margin-top: 40px;
    background:
        linear-gradient(135deg, rgba(30, 74, 110, 0.06) 0%, rgba(30, 74, 110, 0.02) 100%);
    border: 1px solid rgba(30, 74, 110, 0.12);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
}

.service-cta h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.service-cta p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   INFO PAGES — RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Hero */
    .info-hero h1,
    .faq-hero h1,
    .service-hero h1 {
        font-size: 1.6rem;
    }

    /* FAQ */
    .faq-nav-pills {
        gap: 6px;
    }
    .faq-nav-pill {
        font-size: 0.72rem;
        padding: 5px 10px;
    }
    .faq-accordion-answer {
        padding-left: 18px;
    }

    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-sidebar {
        order: 2;
    }
    .contact-form-card {
        order: 1;
    }
    .contact-type-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-form-row {
        grid-template-columns: 1fr;
    }

    /* About */
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .about-values-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .about-quote {
        padding: 24px;
    }

    /* Service */
    .service-cards-grid {
        grid-template-columns: 1fr;
    }
    .service-materials-grid {
        grid-template-columns: 1fr 1fr;
    }
    .service-trust-row {
        gap: 16px;
    }
    .service-hero-actions {
        flex-direction: column;
    }
    .service-hero-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .faq-category-header {
        gap: 8px;
    }
    .faq-accordion summary {
        padding: 12px 14px;
        font-size: 0.82rem;
    }
    .contact-type-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-form-card {
        padding: 20px;
    }
    .service-materials-grid {
        grid-template-columns: 1fr;
    }
    .service-material-tabs {
        gap: 4px;
    }
    .service-material-tab {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   INFO PAGES — DARK MODE
   ═══════════════════════════════════════════════════════════════════════════ */

html.dark .info-hero,
html.dark .faq-hero,
html.dark .service-hero {
    background:
        linear-gradient(135deg, rgba(30, 74, 110, 0.06) 0%, transparent 60%),
        var(--bg-muted);
}

html.dark .faq-accordion,
html.dark .contact-info-card,
html.dark .contact-form-card,
html.dark .contact-formats,
html.dark .about-logo-card,
html.dark .about-quote,
html.dark .about-value-card,
html.dark .service-card,
html.dark .service-material-card,
html.dark .faq-cta {
    background: var(--bg-card);
}

html.dark .faq-accordion:hover,
html.dark .contact-info-card:hover,
html.dark .about-value-card:hover,
html.dark .service-card:hover,
html.dark .service-material-card:hover {
    border-color: rgba(42, 96, 144, 0.3);
}

html.dark .faq-accordion[open] {
    border-color: rgba(42, 96, 144, 0.3);
}

html.dark .contact-input {
    background: var(--bg-elevated);
    border-color: var(--border);
    color: var(--text);
}

html.dark .contact-input:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(42, 96, 144, 0.15);
}

html.dark .contact-type-btn {
    background: var(--bg-elevated);
}

html.dark .contact-type-label input[type="radio"]:checked + .contact-type-btn {
    background: var(--brand);
    color: #fff;
}

html.dark .contact-dropzone {
    border-color: var(--border);
}

html.dark .contact-dropzone:hover,
html.dark .contact-dropzone.drag-over {
    border-color: var(--brand-light);
    background: rgba(42, 96, 144, 0.08);
}

html.dark .contact-checkbox {
    background: var(--bg-elevated);
    border-color: var(--border);
}

html.dark .contact-status {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.2);
}

html.dark .contact-status-text {
    color: #34d399;
}

html.dark .contact-status-dot {
    background: #34d399;
}

html.dark .contact-error-alert {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

html.dark .contact-format-tag {
    background: var(--bg-elevated);
}

html.dark .faq-category-icon--cyan    { background: rgba(6, 182, 212, 0.12); color: #22d3ee; }
html.dark .faq-category-icon--purple  { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; }
html.dark .faq-category-icon--pink    { background: rgba(219, 39, 119, 0.12); color: #f472b6; }
html.dark .faq-category-icon--amber   { background: rgba(217, 119, 6, 0.12); color: #fbbf24; }
html.dark .faq-category-icon--green   { background: rgba(5, 150, 105, 0.12); color: #34d399; }
html.dark .faq-category-icon--indigo  { background: rgba(99, 102, 241, 0.12); color: #a5b4fc; }

html.dark .service-card-icon--cyan   { background: rgba(6, 182, 212, 0.12); color: #22d3ee; }
html.dark .service-card-icon--orange { background: rgba(234, 88, 12, 0.12); color: #fb923c; }
html.dark .service-card-icon--purple { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; }
html.dark .service-card-icon--lime   { background: rgba(101, 163, 13, 0.12); color: #a3e635; }

html.dark .service-trust-icon--brand  { background: rgba(42, 96, 144, 0.15); color: #5b9bd5; }
html.dark .service-trust-icon--green  { background: rgba(5, 150, 105, 0.12); color: #34d399; }
html.dark .service-trust-icon--purple { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; }

html.dark .service-material-tag--green  { background: rgba(5, 150, 105, 0.12); color: #34d399; }
html.dark .service-material-tag--amber  { background: rgba(217, 119, 6, 0.12); color: #fbbf24; }
html.dark .service-material-tag--red    { background: rgba(220, 38, 38, 0.12); color: #f87171; }
html.dark .service-material-tag--blue   { background: rgba(37, 99, 235, 0.12); color: #60a5fa; }

html.dark .service-step-num {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--brand-light);
}

html.dark .about-cta,
html.dark .service-cta {
    background:
        linear-gradient(135deg, rgba(42, 96, 144, 0.08) 0%, rgba(42, 96, 144, 0.03) 100%);
    border-color: rgba(42, 96, 144, 0.15);
}

html.dark .service-material-tab.active {
    background: var(--brand-light);
}

html.dark .service-step-tag--time {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
}

html.dark .service-step-tag--free {
    background: rgba(5, 150, 105, 0.12);
    color: #34d399;
}

html.dark .contact-info-icon--brand  { background: rgba(42, 96, 144, 0.15); color: #5b9bd5; }
html.dark .contact-info-icon--cyan   { background: rgba(6, 182, 212, 0.12); color: #22d3ee; }
html.dark .contact-info-icon--green  { background: rgba(5, 150, 105, 0.12); color: #34d399; }

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES (Login, Registrieren, Konto, Passwort-Reset)
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-container--wide {
    max-width: 960px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 96px;
    margin: 0 auto;
    filter: drop-shadow(0 0 24px rgba(30, 74, 110, 0.25));
    transition: filter 0.3s;
}

.auth-logo img:hover {
    filter: drop-shadow(0 0 32px rgba(30, 74, 110, 0.4));
}

.auth-logo-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 1rem;
    margin-bottom: 0.375rem;
}

.auth-logo-sub {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), #059669);
    border-radius: 16px 16px 0 0;
}

/* Google OAuth */
.auth-google-area { margin-bottom: 2rem; }

.auth-google-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
}

.auth-google-btn-wrap {
    display: flex;
    justify-content: center;
}

/* Divider */
.auth-divider {
    position: relative;
    margin-bottom: 2rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: var(--border);
}

.auth-divider-text {
    position: relative;
    display: flex;
    justify-content: center;
}

.auth-divider-text span {
    padding: 0 1rem;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Form Elements */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-input-wrap { position: relative; }

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.auth-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.auth-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 74, 110, 0.12);
}

.auth-input--has-toggle { padding-right: 2.75rem; }

.auth-input-toggle {
    position: absolute;
    right: 0.75rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.auth-input-toggle:hover { color: var(--text); }
.auth-input-toggle svg { width: 1.125rem; height: 1.125rem; }

/* Password Requirements */
.auth-pw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
    margin-top: 0.75rem;
}

.auth-pw-check {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 0.25s;
}

.auth-pw-check svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.auth-pw-check--valid { color: #059669; }
.auth-pw-check--span2 { grid-column: span 2; }

.auth-pw-match {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #dc2626;
    align-items: center;
    gap: 0.375rem;
}

.auth-pw-match.visible { display: flex; }
.auth-pw-match svg { width: 0.875rem; height: 0.875rem; }

/* Privacy Checkbox */
.auth-privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.auth-privacy input[type="checkbox"] {
    margin-top: 0.125rem;
    width: 1.125rem; height: 1.125rem;
    accent-color: var(--brand);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-privacy label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.auth-privacy a {
    color: var(--brand-light);
    text-decoration: none;
}

.auth-privacy a:hover {
    color: var(--brand);
    text-decoration: underline;
}

/* Buttons */
.auth-btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: box-shadow 0.3s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(30, 74, 110, 0.2);
}

.auth-btn-primary:hover {
    box-shadow: 0 6px 24px rgba(30, 74, 110, 0.35);
    transform: translateY(-1px);
}

.auth-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-primary svg { width: 1.125rem; height: 1.125rem; }

.auth-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.auth-btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
}

/* Messages */
.auth-error,
.auth-success {
    display: none;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    animation: authFadeIn 0.3s ease;
}

.auth-error.visible,
.auth-success.visible { display: block; }

.auth-error {
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.18);
    color: #dc2626;
}

.auth-success {
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.18);
    color: #059669;
}

.auth-success-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.auth-success-inner svg {
    width: 1.25rem; height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.auth-success-title { font-weight: 600; margin-bottom: 0.25rem; }

.auth-info {
    padding: 0.875rem 1rem;
    background: var(--accent-bg);
    border: 1px solid rgba(30, 74, 110, 0.15);
    border-radius: 12px;
    color: var(--brand);
    font-size: 0.8125rem;
}

/* Footer Link */
.auth-footer-link {
    text-align: center;
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.auth-footer-link a {
    color: var(--brand-light);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer-link a:hover {
    color: var(--brand);
    text-decoration: underline;
}

/* Spinner + Animations */
.auth-spinner {
    display: inline-block;
    width: 1.125rem; height: 1.125rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.6s linear infinite;
}

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

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

@keyframes authShake {
    0%, 100% { transform: translateX(0); }
    20%  { transform: translateX(-6px); }
    40%  { transform: translateX(6px); }
    60%  { transform: translateX(-4px); }
    80%  { transform: translateX(4px); }
}

.auth-shake { animation: authShake 0.4s ease; }

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH DASHBOARD (Konto)
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-dashboard {
    min-height: 70vh;
    padding: 3rem 1rem;
}

.auth-dashboard-inner {
    max-width: 960px;
    margin: 0 auto;
}

/* Welcome Card */
.auth-welcome-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.auth-welcome-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 74, 110, 0.04) 0%, transparent 60%, rgba(5, 150, 105, 0.03) 100%);
    pointer-events: none;
}

.auth-welcome-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-welcome-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.auth-welcome-greeting { font-size: 0.8125rem; color: var(--text-muted); }
.auth-welcome-name { font-size: 1.375rem; font-weight: 700; color: var(--text); }
.auth-welcome-member { font-size: 0.75rem; color: var(--text-muted); }

.auth-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: none; border: none;
    color: #dc2626;
    font-size: 0.8125rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.auth-logout-btn:hover { background: rgba(220, 38, 38, 0.08); }
.auth-logout-btn svg { width: 1rem; height: 1rem; }

/* Stats Grid */
.auth-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color 0.2s;
}

.auth-stat-card:hover { border-color: var(--border-hover); }

.auth-stat-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-stat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-stat-icon svg { width: 1.125rem; height: 1.125rem; }
.auth-stat-icon--brand  { background: var(--accent-bg); color: var(--brand); }
.auth-stat-icon--green  { background: rgba(5, 150, 105, 0.08); color: #059669; }
.auth-stat-icon--purple { background: rgba(139, 92, 246, 0.08); color: #7c3aed; }
.auth-stat-icon--amber  { background: rgba(217, 119, 6, 0.08); color: #d97706; }

.auth-stat-value { font-size: 1.375rem; font-weight: 700; color: var(--text); }
.auth-stat-label { font-size: 0.75rem; color: var(--text-muted); }

/* Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.auth-tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
    background: none;
}

.auth-tab:hover { color: var(--text-secondary); }
.auth-tab--active { color: var(--brand); border-bottom-color: var(--brand); }

/* Sections */
.auth-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.auth-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    cursor: pointer;
    list-style: none;
}

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

.auth-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.auth-section-header svg { width: 1.125rem; height: 1.125rem; }

.auth-section-chevron {
    width: 1.125rem; height: 1.125rem;
    color: var(--text-muted);
    transition: transform 0.25s;
}

.auth-section[open] .auth-section-chevron { transform: rotate(180deg); }
.auth-section-body { padding: 0 1.25rem 1.25rem; }

/* Order Cards */
.auth-order-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}

.auth-order-card:hover { border-color: var(--border-hover); }

.auth-order-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-order-id { font-weight: 600; color: var(--text); font-size: 0.9375rem; }
.auth-order-date { font-size: 0.8125rem; color: var(--text-muted); }

.auth-order-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.auth-order-status--pending    { background: rgba(217, 119, 6, 0.1); color: #d97706; }
.auth-order-status--processing { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.auth-order-status--shipped    { background: rgba(5, 150, 105, 0.1); color: #059669; }
.auth-order-status--delivered  { background: rgba(5, 150, 105, 0.15); color: #047857; }
.auth-order-status--cancelled  { background: rgba(220, 38, 38, 0.1); color: #dc2626; }

.auth-order-status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.auth-order-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.auth-order-total-label { font-size: 0.8125rem; color: var(--text-muted); }
.auth-order-total-value { font-size: 1.125rem; font-weight: 700; color: var(--text); }

.auth-order-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.auth-order-action {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    color: var(--brand-light);
    background: var(--accent-bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.auth-order-action:hover { background: rgba(30, 74, 110, 0.15); }
.auth-order-action svg { width: 0.875rem; height: 0.875rem; }

.auth-orders-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.auth-orders-empty svg {
    width: 3rem; height: 3rem;
    margin: 0 auto 1rem;
    opacity: 0.4;
}

/* Preferences */
.auth-pref-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-pref-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-pref-item:hover { background: var(--bg-muted); }

.auth-pref-item input[type="checkbox"] {
    margin-top: 0.125rem;
    width: 1.125rem; height: 1.125rem;
    accent-color: var(--brand);
}

.auth-pref-title { font-weight: 500; color: var(--text); font-size: 0.875rem; }
.auth-pref-desc { font-size: 0.75rem; color: var(--text-muted); }

/* Filament Grid */
.auth-filament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
}

.auth-filament-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-elevated);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.auth-filament-label:hover { background: var(--bg-muted); }

.auth-filament-label input[type="checkbox"] {
    width: 0.9375rem; height: 0.9375rem;
    accent-color: var(--brand);
}

/* Planning Check */
.auth-planning-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--accent-bg);
    border: 1px solid rgba(30, 74, 110, 0.12);
    border-radius: 12px;
}

.auth-planning-check input {
    width: 1.125rem; height: 1.125rem;
    accent-color: var(--brand);
}

.auth-planning-check label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Danger Zone */
.auth-danger-zone {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.auth-danger-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 0.75rem;
}

.auth-danger-title svg { width: 1.125rem; height: 1.125rem; }
.auth-danger-text { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1rem; }

.auth-danger-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(220, 38, 38, 0.25);
    background: none;
    color: #dc2626;
    font-size: 0.8125rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-danger-btn:hover { background: rgba(220, 38, 38, 0.08); }

/* Deletion Pending */
.auth-deletion-pending {
    background: rgba(217, 119, 6, 0.06);
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.auth-deletion-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(217, 119, 6, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-deletion-icon svg { width: 1.25rem; height: 1.25rem; color: #d97706; }
.auth-deletion-title { font-size: 1rem; font-weight: 600; color: #d97706; margin-bottom: 0.25rem; }
.auth-deletion-text { font-size: 0.8125rem; color: var(--text-muted); }

.auth-deletion-cancel {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(5, 150, 105, 0.12);
    border: 1px solid rgba(5, 150, 105, 0.2);
    color: #059669;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
}

.auth-deletion-cancel:hover { background: rgba(5, 150, 105, 0.2); }

/* Social Login Info */
.auth-social-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.auth-social-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-social-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.375rem; }
.auth-social-text { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }
.auth-social-text a { color: var(--brand-light); text-decoration: none; }
.auth-social-text a:hover { text-decoration: underline; }

/* Modal */
.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-modal.visible { display: flex; }

.auth-modal-card {
    background: var(--bg-card);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
}

.auth-modal-icon {
    width: 56px; height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-icon svg { width: 1.5rem; height: 1.5rem; color: #dc2626; }
.auth-modal-title { text-align: center; font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.auth-modal-text { text-align: center; font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.auth-modal-losses {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.auth-modal-losses p { font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.5rem; }
.auth-modal-losses ul { list-style: none; display: flex; flex-direction: column; gap: 0.375rem; }
.auth-modal-losses li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-muted); }
.auth-modal-losses li svg { width: 0.875rem; height: 0.875rem; color: #dc2626; flex-shrink: 0; }

.auth-modal-note { text-align: center; font-size: 0.6875rem; color: var(--text-muted); margin-bottom: 1rem; }

.auth-modal-actions { display: flex; gap: 0.75rem; }

.auth-modal-cancel {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.875rem;
}

.auth-modal-cancel:hover { background: var(--bg-elevated); }

.auth-modal-confirm {
    flex: 1;
    padding: 0.75rem;
    background: #dc2626;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.875rem;
}

.auth-modal-confirm:hover { background: #b91c1c; }

/* Password Reset */
.auth-reset-states { text-align: center; }

.auth-reset-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-reset-icon--lock    { background: var(--accent-bg); }
.auth-reset-icon--success { background: rgba(5, 150, 105, 0.1); }
.auth-reset-icon--error   { background: rgba(220, 38, 38, 0.1); }
.auth-reset-icon svg { width: 1.75rem; height: 1.75rem; }
.auth-reset-icon--lock svg    { color: var(--brand); }
.auth-reset-icon--success svg { color: #059669; }
.auth-reset-icon--error svg   { color: #dc2626; }

.auth-reset-title { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.auth-reset-text { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.5; }


/* ═══════════════════════════════════════════════════════════════════════════
   404 ERROR PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.error-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.error-particles::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(30, 74, 110, 0.2), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(5, 150, 105, 0.15), transparent),
        radial-gradient(2px 2px at 60% 40%, rgba(30, 74, 110, 0.2), transparent),
        radial-gradient(2px 2px at 80% 60%, rgba(139, 92, 246, 0.12), transparent);
    background-size: 200px 200px;
    animation: errorFloat 20s linear infinite;
}

.error-scanlines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.015), rgba(0,0,0,0.015) 1px, transparent 1px, transparent 2px);
}

.error-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
    max-width: 720px;
    margin: 0 auto;
}

/* Glitch 404 */
.error-glitch-wrap {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.error-glitch {
    position: relative;
    font-size: clamp(80px, 18vw, 160px);
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    color: var(--brand);
    letter-spacing: -4px;
    animation: errorGlitchSkew 1s infinite linear alternate-reverse;
}

.error-glitch::before,
.error-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.error-glitch::before {
    left: 2px;
    text-shadow: -2px 0 #7c3aed;
    clip: rect(44px, 450px, 56px, 0);
    animation: errorGlitch1 5s infinite linear alternate-reverse;
}

.error-glitch::after {
    left: -2px;
    text-shadow: -2px 0 #059669, 2px 2px #7c3aed;
    clip: rect(44px, 450px, 56px, 0);
    animation: errorGlitch2 5s infinite linear alternate-reverse;
}

@keyframes errorGlitchSkew {
    0%   { transform: skew(1.5deg); }
    50%  { transform: skew(-0.75deg); }
    100% { transform: skew(0.75deg); }
}

@keyframes errorGlitch1 {
    0%   { clip: rect(31px, 9999px, 94px, 0); transform: skew(0.85deg); }
    20%  { clip: rect(20px, 9999px, 51px, 0); transform: skew(0.64deg); }
    40%  { clip: rect(87px, 9999px, 77px, 0); transform: skew(0.67deg); }
    60%  { clip: rect(54px, 9999px, 38px, 0); transform: skew(0.45deg); }
    80%  { clip: rect(93px, 9999px, 47px, 0); transform: skew(0.39deg); }
    100% { clip: rect(75px, 9999px, 34px, 0); transform: skew(0.47deg); }
}

@keyframes errorGlitch2 {
    0%   { clip: rect(65px, 9999px, 119px, 0); transform: skew(0.28deg); }
    20%  { clip: rect(44px, 9999px, 57px, 0); transform: skew(0.42deg); }
    40%  { clip: rect(26px, 9999px, 93px, 0); transform: skew(0.53deg); }
    60%  { clip: rect(78px, 9999px, 27px, 0); transform: skew(0.78deg); }
    80%  { clip: rect(69px, 9999px, 35px, 0); transform: skew(0.84deg); }
    100% { clip: rect(72px, 9999px, 19px, 0); transform: skew(0.76deg); }
}

@keyframes errorFloat {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(-40px, -40px); }
    100% { transform: translate(0, 0); }
}

/* Terminal */
.error-terminal {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.error-terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.error-terminal-dots { display: flex; gap: 0.375rem; }

.error-terminal-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}

.error-terminal-dot--red    { background: #ef4444; }
.error-terminal-dot--yellow { background: #eab308; }
.error-terminal-dot--green  { background: #22c55e; }

.error-terminal-title {
    margin-left: 0.75rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.error-terminal-content { font-size: 0.8125rem; line-height: 1.7; }
.error-terminal-prompt { color: var(--brand-light); }
.error-terminal-prompt .dollar { color: var(--text-muted); }
.error-terminal-error { color: #ef4444; }
.error-terminal-text { color: var(--text-muted); }
.error-terminal-cmd { color: #0891b2; }

.error-terminal-cursor {
    display: inline-block;
    animation: errorBlink 1s step-end infinite;
}

@keyframes errorBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

.error-typing-line {
    opacity: 0;
    animation: errorTyping 0.3s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes errorTyping { to { opacity: 1; } }

/* Message */
.error-message-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    animation: authFadeIn 0.6s ease both;
    animation-delay: 2.5s;
}

.error-highlight { color: var(--brand-light); }

.error-message-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    animation: authFadeIn 0.6s ease both;
    animation-delay: 2.7s;
}

/* Actions */
.error-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: authFadeIn 0.6s ease both;
    animation-delay: 2.9s;
}

@media (min-width: 480px) {
    .error-actions { flex-direction: row; }
}

.error-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light), #059669);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(30, 74, 110, 0.25);
    transition: box-shadow 0.3s, transform 0.15s;
    position: relative;
    overflow: hidden;
}

.error-btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--brand), #7c3aed, #059669, var(--brand));
    background-size: 400% 400%;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    animation: errorGradientRotate 3s linear infinite;
}

.error-btn-primary:hover::before { opacity: 0.5; }

.error-btn-primary:hover {
    box-shadow: 0 8px 32px rgba(30, 74, 110, 0.4);
    transform: translateY(-2px);
}

.error-btn-primary svg { width: 1.125rem; height: 1.125rem; }

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

.error-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.error-btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
}

.error-btn-secondary svg { width: 1.125rem; height: 1.125rem; }

/* Quick Links */
.error-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 560px;
    margin: 0 auto;
    animation: authFadeIn 0.6s ease both;
    animation-delay: 3.1s;
}

.error-link-card {
    padding: 1.25rem 1rem;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s;
}

.error-link-card:hover { transform: translateY(-4px); }

.error-link-icon {
    width: 40px; height: 40px;
    margin: 0 auto 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-link-icon svg { width: 1.125rem; height: 1.125rem; }
.error-link-icon--brand  { background: var(--accent-bg); color: var(--brand); }
.error-link-icon--purple { background: rgba(139, 92, 246, 0.08); color: #7c3aed; }
.error-link-icon--cyan   { background: rgba(6, 182, 212, 0.08); color: #0891b2; }
.error-link-icon--amber  { background: rgba(217, 119, 6, 0.08); color: #d97706; }

.error-link-label { font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary); }

.error-hint {
    margin-top: 3rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
    opacity: 0.5;
    animation: authFadeIn 0.6s ease both;
    animation-delay: 4s;
}

/* Easter Egg */
.error-easter-egg {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.error-easter-egg.visible { display: block; }

.error-easter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 20, 0.97);
    backdrop-filter: blur(4px);
}

.error-easter-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-printer {
    position: relative;
    width: 280px; height: 220px;
    margin-bottom: 2rem;
}

.error-printer-frame {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(30, 74, 110, 0.25);
    border-radius: 10px;
}

.error-printer-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 28px;
    background: linear-gradient(90deg, var(--bg-elevated), var(--bg-muted), var(--bg-elevated));
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.error-printer-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.error-printer-led {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: errorBlink 2s infinite;
}

.error-printer-status span,
.error-printer-progress {
    font-size: 0.6875rem;
    font-family: 'JetBrains Mono', monospace;
}

.error-printer-status span { color: var(--text-muted); }
.error-printer-progress { color: var(--brand-light); }

.error-printer-area {
    position: absolute;
    top: 32px; left: 12px; right: 12px; bottom: 12px;
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
}

.error-printer-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30, 74, 110, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 74, 110, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

.error-printer-bed {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 10px;
    background: linear-gradient(to top, var(--bg-muted), var(--bg-elevated));
}

.error-printer-head {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
}

.error-printer-head-bar {
    width: 64px; height: 14px;
    background: linear-gradient(to bottom, #f97316, #ea580c);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
    position: relative;
}

.error-printer-nozzle {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #ea580c;
}

.error-printer-hotend {
    position: absolute;
    bottom: -8px; left: 50%;
    transform: translateX(-50%);
    width: 6px; height: 6px;
    background: #f97316;
    border-radius: 50%;
    box-shadow: 0 0 8px #f97316, 0 0 16px #f97316;
    animation: errorBlink 1.5s infinite;
}

/* G-code Terminal */
.error-gcode {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid rgba(30, 74, 110, 0.15);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
}

.error-gcode-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.error-gcode-label { color: var(--brand-light); font-weight: 600; }
.error-gcode-file { color: var(--text-muted); }

.error-gcode-output {
    height: 96px;
    overflow: hidden;
    text-align: left;
    line-height: 1.6;
}

.error-gcode-output .comment { color: var(--text-muted); }
.error-gcode-output .cmd { color: #0891b2; }

/* Stats Row */
.error-stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.error-stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.error-stat-value--brand  { color: var(--brand-light); }
.error-stat-value--orange { color: #f97316; }
.error-stat-value--green  { color: #22c55e; }
.error-stat-value--purple { color: #a78bfa; }

.error-stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.error-easter-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.error-easter-title .accent { color: var(--brand-light); }

.error-easter-sub {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.error-easter-actions { display: flex; gap: 0.75rem; }

.error-easter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 700;
    font-size: 0.8125rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
}

.error-easter-btn--primary { background: var(--brand); color: #fff; }
.error-easter-btn--primary:hover { background: var(--brand-light); }
.error-easter-btn--secondary { background: var(--bg-elevated); color: var(--text); }
.error-easter-btn--secondary:hover { background: var(--bg-muted); }
.error-easter-btn svg { width: 0.875rem; height: 0.875rem; }

/* ═══ RESPONSIVE ═══ */

@media (max-width: 768px) {
    .auth-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-field-row { grid-template-columns: 1fr; }
    .auth-welcome-inner { flex-direction: column; align-items: flex-start; }
    .error-links-grid { grid-template-columns: repeat(2, 1fr); }
    .error-printer { width: 240px; height: 190px; }
    .error-stats-row { gap: 1.25rem; }
    .error-stat-value { font-size: 1.125rem; }
}

@media (max-width: 480px) {
    .auth-page { padding: 2rem 0.75rem; }
    .auth-card { padding: 1.5rem; }
    .auth-logo-title { font-size: 1.5rem; }
    .auth-pw-grid { grid-template-columns: 1fr; }
    .auth-pw-check--span2 { grid-column: span 1; }
    .auth-stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .auth-stat-card { padding: 1rem; }
    .auth-stat-value { font-size: 1.125rem; }
    .error-glitch { font-size: 80px; }
    .error-glitch-wrap { height: 100px; }
    .error-links-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .error-printer { width: 200px; height: 170px; }
    .error-stats-row { flex-wrap: wrap; gap: 1rem; }
}

/* ═══ DARK MODE ═══ */

html.dark .auth-card::before { background: linear-gradient(90deg, var(--brand-light), #2a6090, #059669); }
html.dark .auth-divider-text span { background: var(--bg-card); }
html.dark .auth-input:focus { box-shadow: 0 0 0 3px rgba(42, 96, 144, 0.2); }
html.dark .auth-pw-check--valid { color: #34d399; }
html.dark .auth-pw-match { color: #f87171; }
html.dark .auth-privacy a { color: #5b9bd5; }
html.dark .auth-btn-primary { box-shadow: 0 4px 16px rgba(42, 96, 144, 0.3); }
html.dark .auth-btn-primary:hover { box-shadow: 0 6px 24px rgba(42, 96, 144, 0.5); }
html.dark .auth-error { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.2); color: #fca5a5; }
html.dark .auth-success { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.2); color: #34d399; }
html.dark .auth-info { background: rgba(42, 96, 144, 0.12); border-color: rgba(42, 96, 144, 0.2); color: #5b9bd5; }
html.dark .auth-footer-link a { color: #5b9bd5; }
html.dark .auth-welcome-card::before { background: linear-gradient(135deg, rgba(42, 96, 144, 0.08) 0%, transparent 60%, rgba(5, 150, 105, 0.05) 100%); }
html.dark .auth-stat-icon--brand  { background: rgba(42, 96, 144, 0.15); color: #5b9bd5; }
html.dark .auth-stat-icon--green  { background: rgba(5, 150, 105, 0.12); color: #34d399; }
html.dark .auth-stat-icon--purple { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; }
html.dark .auth-stat-icon--amber  { background: rgba(217, 119, 6, 0.12); color: #fbbf24; }
html.dark .auth-order-status--pending    { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
html.dark .auth-order-status--processing { background: rgba(96, 165, 250, 0.1); color: #60a5fa; }
html.dark .auth-order-status--shipped    { background: rgba(52, 211, 153, 0.1); color: #34d399; }
html.dark .auth-order-status--delivered  { background: rgba(52, 211, 153, 0.15); color: #34d399; }
html.dark .auth-order-status--cancelled  { background: rgba(248, 113, 113, 0.1); color: #f87171; }
html.dark .auth-order-action { color: #5b9bd5; background: rgba(42, 96, 144, 0.12); }
html.dark .auth-order-action:hover { background: rgba(42, 96, 144, 0.2); }
html.dark .auth-danger-btn { border-color: rgba(248, 113, 113, 0.25); color: #f87171; }
html.dark .auth-danger-btn:hover { background: rgba(248, 113, 113, 0.1); }
html.dark .auth-danger-title { color: #f87171; }
html.dark .auth-deletion-pending { background: rgba(251, 191, 36, 0.06); border-color: rgba(251, 191, 36, 0.15); }
html.dark .auth-deletion-icon { background: rgba(251, 191, 36, 0.1); }
html.dark .auth-deletion-icon svg { color: #fbbf24; }
html.dark .auth-deletion-title { color: #fbbf24; }
html.dark .auth-deletion-cancel { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.2); color: #34d399; }
html.dark .auth-social-icon { background: rgba(96, 165, 250, 0.1); }
html.dark .auth-social-text a { color: #5b9bd5; }
html.dark .auth-modal-card { border-color: rgba(248, 113, 113, 0.2); }
html.dark .auth-modal-icon { background: rgba(248, 113, 113, 0.1); }
html.dark .auth-modal-icon svg { color: #f87171; }
html.dark .auth-modal-losses li svg { color: #f87171; }
html.dark .auth-modal-confirm { background: #ef4444; }
html.dark .auth-modal-confirm:hover { background: #dc2626; }
html.dark .auth-reset-icon--lock    { background: rgba(42, 96, 144, 0.15); }
html.dark .auth-reset-icon--success { background: rgba(52, 211, 153, 0.1); }
html.dark .auth-reset-icon--error   { background: rgba(248, 113, 113, 0.1); }
html.dark .auth-reset-icon--lock svg    { color: #5b9bd5; }
html.dark .auth-reset-icon--success svg { color: #34d399; }
html.dark .auth-reset-icon--error svg   { color: #f87171; }
html.dark .error-terminal { background: rgba(0,0,0,0.4); }
html.dark .error-btn-primary { box-shadow: 0 4px 20px rgba(42, 96, 144, 0.35); }
html.dark .error-link-card:hover { border-color: var(--border-hover); }
html.dark .error-link-icon--brand  { background: rgba(42, 96, 144, 0.15); color: #5b9bd5; }
html.dark .error-link-icon--purple { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; }
html.dark .error-link-icon--cyan   { background: rgba(6, 182, 212, 0.12); color: #22d3ee; }
html.dark .error-link-icon--amber  { background: rgba(217, 119, 6, 0.12); color: #fbbf24; }
html.dark .error-easter-backdrop { background: rgba(15, 17, 20, 0.98); }
html.dark .error-gcode { border-color: rgba(42, 96, 144, 0.15); }


/* ═══════════════════════════════════════════════════════════════
   GLOBALE AFFILIATE-KENNZEICHNUNG
   Pflicht nach TMG §6, UWG, EU-Richtlinie 2005/29/EG
   ═══════════════════════════════════════════════════════════════ */

/* --- Sternchen an allen Affiliate-Links (Text-Links) --- */
a[rel*="sponsored"]::after,
a.inline-product-link::after {
    content: " *";
    font-size: 0.75em;
    vertical-align: super;
    color: var(--text-muted, #94a3b8);
    font-weight: 400;
    text-decoration: none;
}

/* Kein Sternchen an reinen Bild-Links (Banner, Produktkarten mit Bildern) */
.ad-leaderboard a::after,
.ad-rectangle a::after,
.ad-slot a::after,
.ad-square a::after,
.ad-mobile a::after,
.ad-inline a::after,
a.post-product-card::after,
a.post-also-card::after,
a.deals-card::after,
a.shop-card::after,
a[data-affiliate="card"]::after,
a.ch-product-card::after,
.deal-v3-cta::after,
.vcard-cta::after,
.vcard-cta--code::after,
.vcard-cta--promo::after {
    content: none !important;
}



/* --- "Anzeige" Label an Banner-Containern --- */
.ad-leaderboard,
.ad-rectangle,
.ad-slot,
.ad-square,
.ad-mobile,
.ad-inline {
    position: relative;
}
.ad-leaderboard::before,
.ad-rectangle::before,
.ad-slot::before,
.ad-square::before,
.ad-mobile::before,
.ad-inline::before {
    content: "Anzeige";
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted, #64748b);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    opacity: 0.5;
}

/* --- Globaler Affiliate-Hinweis (Footer) --- */
.affiliate-disclosure {
    text-align: center;
    padding: 12px 20px;
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    line-height: 1.5;
    border-top: 1px solid var(--border, rgba(255,255,255,0.06));
}
.affiliate-disclosure a {
    color: var(--text-secondary, #94a3b8);
    text-decoration: underline;
    text-decoration-color: rgba(148,163,184,0.3);
}
.affiliate-disclosure a:hover {
    color: var(--highlight, #06b6d4);
}

/* ═══════════════════════════════════════════════════════════════
   CREATOR HUB: VIDEO-SUCHE
   Prefix: ch-search-
   ═══════════════════════════════════════════════════════════════ */

.ch-search-page {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
}
@media (min-width: 1024px) {
    .ch-search-page { padding-top: 160px; }
}

.ch-search-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 640px) {
    .ch-search-container { padding: 0 24px; }
}

.ch-search-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 32px;
}
.ch-search-breadcrumb a {
    color: var(--text-muted, #64748b);
    text-decoration: none;
    transition: color 0.2s;
}
.ch-search-breadcrumb a:hover { color: var(--accent, #22d3ee); }
.ch-search-breadcrumb-current { color: var(--text-secondary, #94a3b8); }

.ch-search-hero {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 16px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    z-index: 50;
}
.ch-search-hero-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 24px;
}
.ch-search-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text, #f8fafc);
    margin: 0 0 8px;
}
@media (min-width: 640px) {
    .ch-search-hero-title { font-size: 1.875rem; }
}
.ch-search-hero-gradient {
    background-image: linear-gradient(to right, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ch-search-hero-subtitle {
    color: var(--text-muted, #64748b);
    font-size: 0.875rem;
    margin: 0;
}

.ch-search-page .ch-search-form {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}
.ch-search-page .ch-search-input-wrap { position: relative; }
.ch-search-page .ch-search-input {
    width: 100%;
    padding: 16px 56px 16px 24px;
    font-size: 16px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(51, 65, 85, 0.4);
    color: var(--text, #f8fafc);
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}
.ch-search-page .ch-search-input::placeholder { color: #4b5563; }
.ch-search-page .ch-search-input:focus {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.2);
}
.ch-search-page .ch-search-clear,
.ch-search-page .ch-search-submit {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
    display: flex;
    align-items: center;
}
.ch-search-page .ch-search-clear {
    right: 56px;
    color: #4b5563;
    text-decoration: none;
}
.ch-search-page .ch-search-clear:hover { color: #d1d5db; }
.ch-search-page .ch-search-submit {
    right: 16px;
    color: #6b7280;
}
.ch-search-page .ch-search-submit:hover { color: var(--accent, #22d3ee); }
.ch-search-page .ch-search-icon { width: 20px; height: 20px; }

.ch-search-page .ch-search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 8px;
    border-radius: 12px;
    border: 1px solid rgba(51, 65, 85, 0.6);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: none;
    z-index: 9999;
    background: rgb(20, 27, 45);
    backdrop-filter: blur(12px);
}
.ch-search-page .ch-search-suggest-list { padding: 8px 0; }

.ch-search-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.ch-search-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    color: var(--text-muted, #64748b);
    border: 1px solid transparent;
}
.ch-search-pill:hover {
    background: rgba(30, 41, 59, 0.5);
    color: var(--text-secondary, #94a3b8);
}
.ch-search-pill--cat-active {
    background: rgba(6, 182, 212, 0.2);
    color: #67e8f9;
    border-color: rgba(6, 182, 212, 0.3);
}
.ch-search-pill--sort-active {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}
.ch-search-pill-count {
    font-size: 10px;
    color: #4b5563;
    margin-left: 4px;
}
.ch-search-divider {
    color: #374151;
    margin: 0 4px;
    user-select: none;
}

.ch-search-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.ch-search-info-text {
    color: var(--text-muted, #64748b);
    font-size: 0.875rem;
}
.ch-search-info-text strong { color: var(--text, #f8fafc); }
.ch-search-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}
.ch-search-active-tag--cat {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.2);
}
.ch-search-active-tag--cat:hover { background: rgba(6, 182, 212, 0.2); }
.ch-search-active-tag--topic {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}
.ch-search-active-tag--topic:hover { background: rgba(168, 85, 247, 0.2); }
.ch-search-tag-x { width: 12px; height: 12px; }

.ch-search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 1024px) {
    .ch-search-grid { grid-template-columns: 3fr 1fr; }
}

.ch-search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ch-search-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid rgba(51, 65, 85, 0.4);
    overflow: hidden;
    transition: border-color 0.3s;
}
.ch-search-card:hover { border-color: rgba(6, 182, 212, 0.2); }
.ch-search-card-inner {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .ch-search-card-inner { grid-template-columns: 1fr 2fr; }
}
.ch-search-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
}
@media (min-width: 640px) {
    .ch-search-card-thumb { aspect-ratio: auto; height: 100%; }
}
.ch-search-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ch-search-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 10px;
    border-radius: 4px;
    font-family: monospace;
}
.ch-search-card-info { padding: 20px; }
.ch-search-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text, #f8fafc);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ch-search-card-creator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    text-decoration: none;
    transition: color 0.2s;
    margin-bottom: 8px;
}
.ch-search-card-creator:hover { color: var(--accent, #22d3ee); }
.ch-search-card-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}
.ch-search-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 8px;
}
.ch-search-card-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    border: 1px solid;
}
.ch-search-card-summary {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.ch-search-empty {
    text-align: center;
    padding: 64px 16px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 12px;
}
.ch-search-empty-icon {
    width: 64px;
    height: 64px;
    color: #374151;
    margin: 0 auto 16px;
}
.ch-search-empty-main { color: var(--text-muted, #64748b); margin: 0 0 8px; }
.ch-search-empty-main strong { color: var(--text, #f8fafc); }
.ch-search-empty-hint { color: #4b5563; font-size: 0.875rem; margin: 0; }

.ch-search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.ch-search-pagination-btn {
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    border: 1px solid rgba(51, 65, 85, 0.4);
    transition: background 0.2s;
}
.ch-search-pagination-btn:hover { background: rgba(51, 65, 85, 0.5); }
.ch-search-pagination-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--text-muted, #64748b);
    border: 1px solid transparent;
    transition: background 0.2s;
}
.ch-search-pagination-num:hover { background: rgba(30, 41, 59, 0.5); }
.ch-search-pagination-num--active {
    background: rgba(6, 182, 212, 0.2);
    color: #67e8f9;
    border-color: rgba(6, 182, 212, 0.3);
}

.ch-search-sidebar {
    position: sticky;
    top: 192px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.ch-search-sidebar-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
}
.ch-search-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ch-search-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--text-muted, #64748b);
    transition: all 0.2s;
    border: 1px solid transparent;
}
.ch-search-sidebar-item:hover {
    background: rgba(30, 41, 59, 0.5);
    color: var(--text-secondary, #94a3b8);
}
.ch-search-sidebar-item--topic-active {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}
.ch-search-sidebar-item--creator-active {
    background: rgba(6, 182, 212, 0.2);
    color: #67e8f9;
    border-color: rgba(6, 182, 212, 0.3);
}
.ch-search-sidebar-count {
    font-size: 10px;
    color: #4b5563;
}
.ch-search-sidebar-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--accent, #22d3ee);
    text-decoration: none;
    transition: color 0.2s;
}
.ch-search-sidebar-back:hover { color: var(--accent-hover, #06b6d4); }

.ch-search-topics {
    max-width: 768px;
    margin: 0 auto;
}
.ch-search-topics-section { margin-bottom: 40px; }
.ch-search-topics-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text, #f8fafc);
    margin: 0 0 16px;
}
.ch-search-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ch-search-topic-pill {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid rgba(51, 65, 85, 0.4);
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    transition: all 0.2s;
}
.ch-search-topic-pill:hover {
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--accent, #22d3ee);
}
.ch-search-topic-count {
    font-size: 0.75rem;
    color: #4b5563;
    margin-left: 4px;
}

.ch-search-examples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 640px) {
    .ch-search-examples-grid { grid-template-columns: 1fr 1fr; }
}
.ch-search-example-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(51, 65, 85, 0.4);
    text-decoration: none;
    transition: all 0.2s;
}
.ch-search-example-card:hover { border-color: rgba(6, 182, 212, 0.3); }
.ch-search-example-icon {
    width: 40px;
    height: 40px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.ch-search-example-card:hover .ch-search-example-icon {
    background: rgba(6, 182, 212, 0.2);
}
.ch-search-example-icon svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
    transition: color 0.2s;
}
.ch-search-example-card:hover .ch-search-example-icon svg {
    color: var(--accent, #22d3ee);
}
.ch-search-example-text {
    color: var(--text-secondary, #94a3b8);
    transition: color 0.2s;
}
.ch-search-example-card:hover .ch-search-example-text {
    color: var(--text, #f8fafc);
}

@media (max-width: 1023px) {
    .ch-search-sidebar { display: none; }
    .ch-search-grid { grid-template-columns: 1fr; }
}


/* ================================================================
   MANUFAKTUR PAGE (mf-*)
   ================================================================ */

/* --- Hero --- */
.mf-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    max-width: var(--max-width);
    margin: 0 auto;
    border-radius: var(--radius-lg);
}
.mf-hero-bg {
    position: absolute;
    top: 0; right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
}
.mf-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mf-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-card) 0%, var(--bg-card) 15%, transparent 60%);
    z-index: 2;
}
.mf-hero-content {
    position: relative;
    z-index: 3;
    padding: 80px 0;
    max-width: 580px;
}
.mf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    margin-bottom: 20px;
}
.mf-hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #059669;
    border-radius: 50%;
    animation: mfPulse 2s ease-in-out infinite;
}
@keyframes mfPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.mf-hero-title {
    font-family: 'Orbitron', 'Exo 2', sans-serif;
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 18px;
}
.mf-hero-title span {
    color: var(--brand);
    position: relative;
}
.mf-hero-title span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), #059669);
    border-radius: 2px;
}
.mf-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 28px;
    max-width: 500px;
}
.mf-hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.mf-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.mf-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}
.mf-hero-trust-item svg {
    color: var(--brand);
    flex-shrink: 0;
}

/* --- Section Headers --- */
.mf-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.mf-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--accent-bg);
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 20px;
    margin-bottom: 14px;
}
.mf-section-title {
    font-family: 'Orbitron', 'Exo 2', sans-serif;
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 12px;
    line-height: 1.2;
}
.mf-section-desc {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Services Grid --- */
.mf-services {
    background: var(--bg-muted);
}
.mf-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.mf-service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}
.mf-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}
.mf-service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    color: var(--accent, var(--brand));
}
.mf-service-icon svg {
    width: 24px;
    height: 24px;
}
.mf-service-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
}
.mf-service-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 16px;
    flex: 1;
}
.mf-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mf-service-features li {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 22px;
    position: relative;
}
.mf-service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23059669' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.mf-service-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}
.mf-service-link:hover {
    gap: 8px;
}

/* --- Quality Break --- */
.mf-quality-break {
    padding: 80px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.mf-quality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.mf-quality-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.mf-quality-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.mf-quality-image:hover img {
    transform: scale(1.03);
}
.mf-quality-text p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 28px;
}
.mf-quality-stats {
    display: flex;
    gap: 32px;
}
.mf-quality-stat {
    display: flex;
    flex-direction: column;
}
.mf-quality-stat-num {
    font-family: 'Orbitron', 'Exo 2', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.02em;
}
.mf-quality-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* --- Process Timeline --- */
.mf-process {
    background: var(--bg-muted);
}
.mf-process-timeline {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.mf-process-timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand), #059669);
    border-radius: 1px;
}
.mf-process-step {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    position: relative;
}
.mf-process-num {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', 'Exo 2', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand);
    background: var(--bg-card);
    border: 2px solid var(--brand);
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
    transition: all 0.3s;
}
.mf-process-step:hover .mf-process-num {
    background: var(--brand);
    color: white;
}
.mf-process-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 6px 0 6px;
}
.mf-process-body p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* --- Materials --- */
.mf-materials {
    background: var(--bg-card);
}
.mf-material-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.mf-material-tab {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.mf-material-tab:hover {
    border-color: var(--brand);
    color: var(--brand);
}
.mf-material-tab.active {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}
.mf-material-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.mf-material-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
}
.mf-material-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
}
.mf-mat-head h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.mf-mat-sub {
    font-size: 12px;
    color: var(--text-muted);
}
.mf-mat-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0;
}
.mf-mat-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--tc, var(--brand));
    background: color-mix(in srgb, var(--tc, var(--brand)) 10%, transparent);
}
.mf-mat-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 12px;
}
.mf-mat-spec {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* --- Gallery: Bento Chaos Grid --- */
.mf-gallery {
    padding: 80px 0 60px;
    background: var(--bg-muted);
    border-top: 1px solid var(--border);
}
.mf-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 110px;
    gap: 10px;
}
/* Bento Row 1: Hero wide + 2 smaller */
.mf-bento-item:nth-child(1)  { grid-column: 1 / 6;   grid-row: 1 / 3; }
.mf-bento-item:nth-child(2)  { grid-column: 6 / 9;   grid-row: 1 / 3; }
.mf-bento-item:nth-child(3)  { grid-column: 9 / 13;  grid-row: 1 / 3; }
/* Bento Row 2: small + wide center + small */
.mf-bento-item:nth-child(4)  { grid-column: 1 / 4;   grid-row: 3 / 5; }
.mf-bento-item:nth-child(5)  { grid-column: 4 / 9;   grid-row: 3 / 6; }
.mf-bento-item:nth-child(6)  { grid-column: 9 / 13;  grid-row: 3 / 5; }
/* Bento Row 3: tall left + 2 right */
.mf-bento-item:nth-child(7)  { grid-column: 1 / 4;   grid-row: 5 / 8; }
.mf-bento-item:nth-child(8)  { grid-column: 4 / 9;   grid-row: 6 / 8; }
.mf-bento-item:nth-child(9)  { grid-column: 9 / 13;  grid-row: 5 / 8; }
/* Bento Row 4: 3 items, right one taller */
.mf-bento-item:nth-child(10) { grid-column: 1 / 5;   grid-row: 8 / 10; }
.mf-bento-item:nth-child(11) { grid-column: 5 / 9;   grid-row: 8 / 10; }
.mf-bento-item:nth-child(12) { grid-column: 9 / 13;  grid-row: 8 / 10; }
/* Bento Row 5: 3 equal closing row */
.mf-bento-item:nth-child(13) { grid-column: 1 / 5;   grid-row: 10 / 12; }
.mf-bento-item:nth-child(14) { grid-column: 5 / 9;   grid-row: 10 / 12; }
.mf-bento-item:nth-child(15) { grid-column: 9 / 13;  grid-row: 10 / 12; }

.mf-bento-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.mf-bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
    filter: brightness(1);
}
.mf-bento-item:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}
/* Label overlay */
.mf-bento-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.mf-bento-item:hover .mf-bento-label {
    opacity: 1;
    transform: translateY(0);
}

/* --- CTA --- */
.mf-cta {
    padding: 80px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}
.mf-cta-inner {
    background: linear-gradient(135deg, rgba(30, 74, 110, 0.04) 0%, rgba(5, 150, 105, 0.04) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}
.mf-cta-inner:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
}
.mf-cta h2 {
    font-family: 'Orbitron', 'Exo 2', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
}
.mf-cta p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
    max-width: 440px;
}
.mf-cta-formats {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.mf-cta-formats code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 3px 8px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--brand);
}
.mf-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    flex-shrink: 0;
}
.btn-lg {
    padding: 18px 36px;
    font-size: 15px;
}
.mf-cta-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.mf-cta-contact a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.mf-cta-contact a:hover {
    color: var(--brand);
}

/* --- Fade animation --- */
@keyframes mfFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    .mf-hero-bg {
        width: 100%;
        opacity: 0.15;
    }
    .mf-hero-bg::after {
        background: none;
    }
    .mf-hero-content {
        max-width: 100%;
        padding: 60px 0;
    }
    .mf-services-grid {
        grid-template-columns: 1fr;
    }
    .mf-quality-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .mf-quality-image {
        order: -1;
    }
    .mf-quality-image img {
        height: 240px;
    }
    .mf-material-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mf-bento {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 100px;
    }
    .mf-bento-item:nth-child(1)  { grid-column: 1 / 4; grid-row: span 2; }
    .mf-bento-item:nth-child(2)  { grid-column: 4 / 7; grid-row: span 2; }
    .mf-bento-item:nth-child(3)  { grid-column: 1 / 4; grid-row: span 2; }
    .mf-bento-item:nth-child(4)  { grid-column: 4 / 7; grid-row: span 2; }
    .mf-bento-item:nth-child(5)  { grid-column: 1 / 7; grid-row: span 2; }
    .mf-bento-item:nth-child(6)  { grid-column: 1 / 4; grid-row: span 2; }
    .mf-bento-item:nth-child(7)  { grid-column: 4 / 7; grid-row: span 2; }
    .mf-bento-item:nth-child(8)  { grid-column: 1 / 4; grid-row: span 2; }
    .mf-bento-item:nth-child(9)  { grid-column: 4 / 7; grid-row: span 2; }
    .mf-bento-item:nth-child(10) { grid-column: 1 / 7; grid-row: span 2; }
    .mf-bento-item:nth-child(11) { grid-column: 1 / 4; grid-row: span 2; }
    .mf-bento-item:nth-child(12) { grid-column: 4 / 7; grid-row: span 2; }
    .mf-bento-item:nth-child(13) { grid-column: 1 / 4; grid-row: span 2; }
    .mf-bento-item:nth-child(14) { grid-column: 4 / 7; grid-row: span 2; }
    .mf-bento-item:nth-child(15) { grid-column: 1 / 7; grid-row: span 2; }
    .mf-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 40px 28px;
    }
    .mf-cta-actions {
        align-items: center;
    }
    .mf-cta-contact {
        align-items: center;
    }
}
@media (max-width: 480px) {
    .mf-hero-title {
        font-size: 26px;
    }
    .mf-hero-trust {
        flex-direction: column;
        gap: 10px;
    }
    .mf-material-grid {
        grid-template-columns: 1fr;
    }
    .mf-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
    }
    .mf-bento-item,
    .mf-bento-item:nth-child(n) {
        grid-column: 1 / -1 !important;
        grid-row: span 1 !important;
    }
    .mf-quality-stats {
        flex-direction: column;
        gap: 16px;
    }
    .mf-process-timeline::before {
        left: 23px;
    }
    .mf-process-num {
        width: 48px;
        height: 48px;
        font-size: 14px;
    }
}
