/*
Theme Name: Kinderklang
Theme URI: https://kinderklang.app
Author: Max Wittpoth
Author URI: https://kinderklang.app
Description: Custom WordPress theme for Kinderklang - personalisierte KI-Kinderlieder.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: kinderklang
*/

/* WordPress accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    z-index: 999;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* WordPress nav menu reset */
.nav-links ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; }
.nav-links ul li { margin: 0; padding: 0; position: relative; }
.nav-links ul li a { color: #555; text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links ul li a:hover { color: #667eea; }

/* Desktop Dropdown Submenu */
.nav-links ul li ul.sub-menu {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: white; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12);
    padding: 8px 0; min-width: 220px; z-index: 100; flex-direction: column; gap: 0;
    border: 1px solid rgba(102,126,234,.08);
}
.nav-links ul li:hover > ul.sub-menu { display: flex; }
.nav-links ul li ul.sub-menu li { width: 100%; }
.nav-links ul li ul.sub-menu li a {
    display: block; padding: 10px 20px; font-size: 14px; color: #333;
    border-bottom: 1px solid rgba(0,0,0,.04); transition: background 0.2s, color 0.2s;
}
.nav-links ul li ul.sub-menu li:last-child a { border-bottom: none; }
.nav-links ul li ul.sub-menu li a:hover { background: rgba(102,126,234,.06); color: #667eea; }

/* WordPress footer menu reset */
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.footer-links ul li { margin: 0; padding: 0; }
.footer-links ul li a { color: white; text-decoration: none; opacity: 0.8; transition: opacity 0.3s; }
.footer-links ul li a:hover { opacity: 1; }

/* Page content (for legal/default WP pages) */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}
.page-content h1 {
    font-size: clamp(32px, 4vw, 48px);
    color: #667eea;
    margin-bottom: 30px;
    font-weight: 700;
}
.page-content h2 {
    color: #667eea;
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 600;
}
.page-content h3 {
    color: #667eea;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 12px;
}
.page-content p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}
.page-content a { color: #667eea; text-decoration: none; }
.page-content a:hover { text-decoration: underline; }
.page-content ul, .page-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
    color: #555;
    line-height: 1.8;
}

/* ========== INDEX.HTML STYLES (verbatim) ========== */


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            overflow-x: clip;
        }
        img {
            max-width: 100%;
            height: auto;
        }
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0,0,0,0);
            white-space: nowrap;
            border: 0;
        }

        /* ============================================
           TOUCH-OPTIMIERUNG (iOS/Android)
           touch-action: manipulation entfernt den 300ms
           Click-Delay auf iOS Safari und verbessert die
           Reaktionszeit aller interaktiven Elemente.
           ============================================ */
        button,
        a,
        input[type="radio"],
        input[type="checkbox"],
        select,
        .songtype-card,
        .hero-card,
        .pricing-card,
        .btn-primary,
        .btn-secondary,
        .fp-sh-btn,
        .fp-v2-sh,
        .fb-nav-btn {
            touch-action: manipulation;
            -webkit-tap-highlight-color: rgba(102, 126, 234, 0.15);
        }

        /* Aktiver Tap-Zustand für Card-Elemente (visuelles Touch-Feedback) */
        .songtype-card:active,
        .hero-card:active,
        .pricing-card:active {
            transform: scale(0.97);
            transition: transform 0.1s ease;
        }

        :root {
            --kk-text-muted: #888;
        }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            color: #333;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Single blog post layout */
        .article-body {
            max-width: 780px;
            margin: 0 auto;
            padding: 40px 20px 80px;
            line-height: 1.8;
        }
        .article-body h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; color: #1a1040; }
        .article-body h2 { font-size: clamp(20px, 3vw, 28px); margin: 40px 0 16px; color: #3d2a7a; }
        .article-body h3 { font-size: clamp(18px, 2.5vw, 22px); margin: 32px 0 12px; color: #3d2a7a; }
        .article-body p { margin-bottom: 16px; }
        .article-body img { border-radius: 12px; margin: 24px 0; }
        .article-body ul, .article-body ol { margin: 16px 0 16px 24px; }
        .article-body li { margin-bottom: 8px; }
        .article-body a { color: #667eea; text-decoration: underline; }
        .hero-cluster { margin-bottom: 32px; }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: clamp(40px, 8vw, 60px) clamp(16px, 3vw, 20px);
            position: relative;
            overflow: hidden;
            /* Prevent pseudo-elements from causing body overflow */
            contain: paint;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 600px;
            height: 600px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            z-index: 0;
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -10%;
            width: 500px;
            height: 500px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 50%;
            z-index: 0;
        }

        /* ===== STICKY NAVIGATION ===== */
        .site-nav {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(102,126,234,0.08);
            padding: 12px 32px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .site-nav .nav-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            flex-shrink: 0;
            min-width: 0;
        }

        .site-nav .nav-logo img {
            height: 34px;
            width: auto;
        }

        .site-nav .nav-logo span {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 20px;
            font-weight: 700;
            color: #2d2d2d;
            letter-spacing: 0px;
        }

        .site-nav .nav-links {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .site-nav .nav-links a {
            color: #555;
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            transition: color 0.2s;
        }

        .site-nav .nav-links a:hover {
            color: #667eea;
        }

        .site-nav .nav-links .nav-cta {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 10px 22px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 14px;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .site-nav .nav-links .nav-cta:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(102,126,234,0.35);
            color: white;
        }

        /* ===== HAMBURGER BUTTON (hidden on desktop) ===== */
        .hamburger {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            z-index: 201;
            flex-direction: column;
            justify-content: center;
            gap: 5px;
            width: 44px;
            height: 44px;
        }
        .hamburger-line {
            display: block;
            width: 24px;
            height: 2.5px;
            background: #2d2d2d;
            border-radius: 2px;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        /* Animate to X when open */
        .hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
            transform: translateY(7.5px) rotate(45deg);
        }
        .hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
            opacity: 0;
        }
        .hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
            transform: translateY(-7.5px) rotate(-45deg);
        }

        /* ===== MOBILE NAV (≤768px) ===== */
        @media (max-width: 768px) {
            .hamburger {
                display: flex;
            }
            .site-nav .nav-links {
                position: fixed;
                top: 0;
                right: 0;
                width: min(300px, 80vw);
                height: 100vh;
                height: 100dvh;
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(16px);
                -webkit-backdrop-filter: blur(16px);
                flex-direction: column;
                align-items: flex-start;
                padding: 80px 28px 40px;
                gap: 8px;
                transform: translateX(100%);
                visibility: hidden;
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
                z-index: 200;
                box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
                overflow-y: auto;
            }
            .site-nav .nav-links.nav-open {
                transform: translateX(0);
                visibility: visible;
            }
            /* Menu links in mobile drawer */
            .site-nav .nav-links a {
                font-size: 17px;
                padding: 12px 0;
                width: 100%;
                border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            }
            .site-nav .nav-links ul {
                flex-direction: column;
                gap: 0;
                width: 100%;
            }
            .site-nav .nav-links ul li a {
                display: block;
                font-size: 17px;
                padding: 14px 0;
                border-bottom: 1px solid rgba(0, 0, 0, 0.06);
                color: #1a1040;
            }
            /* Mobile submenu */
            .site-nav .nav-links ul li ul.sub-menu {
                position: static; transform: none; box-shadow: none; border: none;
                background: rgba(102,126,234,.04); border-radius: 8px;
                padding: 4px 0; margin: 0 0 4px; min-width: 0;
                display: none;
            }
            .site-nav .nav-links ul li.submenu-open > ul.sub-menu { display: flex; }
            .site-nav .nav-links ul li:hover > ul.sub-menu { display: none; }
            .site-nav .nav-links ul li.submenu-open:hover > ul.sub-menu { display: flex; }
            .site-nav .nav-links ul li ul.sub-menu li a {
                padding: 10px 20px; font-size: 15px; color: #555; border-bottom: none;
            }
            .site-nav .nav-links .menu-item-has-children > a {
                display: flex; align-items: center; justify-content: space-between;
            }
            .site-nav .nav-links .menu-item-has-children > a::after {
                content: '›'; font-size: 20px; color: #999; transition: transform 0.2s;
            }
            .site-nav .nav-links .menu-item-has-children.submenu-open > a::after {
                transform: rotate(90deg);
            }
            .site-nav .nav-links .nav-cta {
                margin-top: 16px;
                text-align: center;
                width: 100%;
                display: block;
                font-size: 15px;
                padding: 14px 22px;
                min-height: 48px;
            }
            /* Overlay behind drawer */
            .nav-overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.4);
                z-index: 199;
            }
            .nav-overlay.active {
                display: block;
            }
        }

        @media (max-width: 600px) {
            .site-nav {
                padding: 10px 16px;
            }
            .site-nav .nav-logo span {
                font-size: 17px;
            }
        }

        .hero-content {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
            color: white;
            position: relative;
            z-index: 1;
        }

        .logo {
            width: 200px;
            height: auto;
            margin-bottom: 40px;
        }

        .hero h1 {
            font-size: clamp(32px, 5vw, 56px);
            font-weight: 700;
            margin-bottom: 24px;
            line-height: 1.2;
            color: white;
        }

        .hero p {
            font-size: clamp(18px, 2.5vw, 24px);
            margin-bottom: clamp(20px, 4vw, 40px);
            opacity: 0.95;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-button {
            display: inline-block;
            background: white;
            color: #667eea;
            padding: clamp(14px, 2vw, 18px) clamp(28px, 5vw, 48px);
            font-size: clamp(15px, 2vw, 18px);
            font-weight: 600;
            border-radius: 50px;
            text-decoration: none;
            transition: all 0.3s;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        }

        .cta-button-secondary {
            background: transparent;
            color: white;
            border: 2px solid white;
            margin-left: 16px;
        }

        .cta-button-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        /* Features Section — no max-width on section itself so backgrounds span full viewport */
        .section {
            padding: 100px 20px;
        }
        .section > * {
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }

        .section-title {
            text-align: center;
            font-size: clamp(32px, 4vw, 48px);
            color: #667eea;
            margin-bottom: 60px;
            font-weight: 700;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 40px;
            margin-top: 60px;
        }

        .feature-card {
            text-align: center;
            padding: 40px 30px;
            background: white;
            border-radius: 24px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
            transition: all 0.3s;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
        }

        .feature-icon {
            font-size: 56px;
            margin-bottom: 24px;
        }

        .feature-card h3 {
            color: #667eea;
            font-size: 24px;
            margin-bottom: 16px;
            font-weight: 600;
        }

        .feature-card p {
            color: #666;
            font-size: 16px;
            line-height: 1.7;
        }

        /* How it works */
        .steps-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 30px;
            margin-top: 60px;
        }

        .step {
            text-align: center;
            position: relative;
        }

        .step-number {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: 700;
            margin: 0 auto 24px;
        }

        .step h3 {
            color: #333;
            font-size: 20px;
            margin-bottom: 12px;
        }

        .step p {
            color: #666;
            font-size: 15px;
        }

        /* Pricing Section */
        .pricing-section {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            padding: 100px 20px;
        }

        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 30px;
            max-width: 900px;
            margin: 60px auto 0;
        }

        .pricing-card {
            background: white;
            border: 3px solid #e8e8e8;
            border-radius: 30px;
            padding: 40px 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            position: relative;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
        }

        .pricing-card:hover {
            border-color: #667eea;
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(102,126,234,0.15);
        }

        .pricing-card.featured {
            border-color: #667eea;
            background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
            box-shadow: 0 15px 40px rgba(102,126,234,0.2);
        }

        .pricing-card.featured:hover {
            box-shadow: 0 20px 50px rgba(102,126,234,0.25);
        }

        .pricing-icon-circle {
            width: 110px;
            height: 110px;
            background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 56px;
        }

        .pricing-card.featured .pricing-icon-circle {
            background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
        }

        .pricing-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .pricing-card h3 {
            color: #667eea;
            font-size: 24px;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .pricing-price {
            font-size: 36px;
            color: #333;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .pricing-price span {
            font-size: 20px;
            color: #999;
        }

        .pricing-description {
            color: #666;
            margin-bottom: 25px;
            font-size: 14px;
            line-height: 1.5;
            min-height: 60px;
        }

        .pricing-button {
            display: block;
            width: 100%;
            padding: 14px 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            text-align: center;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            font-size: 15px;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }

        .pricing-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        }

        /* About Section */
        .about-section {
            padding: 100px 20px;
            max-width: 1000px;
            margin: 0 auto;
        }

        .about-content {
            background: white;
            padding: 60px;
            border-radius: 24px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
        }

        .about-content h2 {
            color: #667eea;
            font-size: clamp(28px, 4vw, 40px);
            margin-bottom: 30px;
            text-align: center;
        }

        .about-content p {
            color: #555;
            font-size: 18px;
            line-height: 1.8;
            margin-bottom: 24px;
            text-align: center;
        }

        .founders {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-top: 60px;
        }

        .founder-card {
            text-align: center;
        }

        .founder-image {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            object-fit: cover;
            display: block;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 60px;
        }

        .founder-card h3 {
            color: #333;
            font-size: 22px;
            margin-bottom: 8px;
        }

        .founder-card p {
            color: #667eea;
            font-size: 16px;
            font-weight: 600;
        }

        /* Gründerfotos auf Mobile größer */
        @media (max-width: 768px) {
            .founder-image {
                width: 160px;
                height: 160px;
            }
        }

        /* Testimonials */
        .testimonials-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 100px 20px;
            color: white;
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
            gap: 40px;
            max-width: 1200px;
            margin: 60px auto 0;
        }

        .testimonial-card {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border-radius: 24px;
            padding: 40px 30px;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }


        .testimonial-text {
            font-size: 19px;
            line-height: 1.8;
            margin-bottom: 24px;
            font-style: italic;
            color: #ffffff;
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }

        .testimonial-author {
            font-weight: 600;
            font-size: 16px;
            color: #ffffff;
        }

        /* CTA Section */
        .cta-section {
            padding: 100px 20px;
            text-align: center;
            background: white;
        }

        .cta-section h2 {
            font-size: clamp(32px, 4vw, 48px);
            color: #667eea;
            margin-bottom: 24px;
            font-weight: 700;
        }

        .cta-section p {
            font-size: 20px;
            color: #666;
            margin-bottom: 40px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Footer */
        .footer {
            background: #2c3e50;
            color: white;
            padding: 60px 20px 30px;
            text-align: center;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
            opacity: 0.8;
            transition: opacity 0.3s;
        }

        .footer-links a:hover {
            opacity: 1;
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 30px;
            margin-top: 30px;
            font-size: 14px;
            opacity: 0.7;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero {
                min-height: auto;
                padding: 80px 28px;
            }

            .section {
                padding: 60px 28px;
            }

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

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

            .pricing-card.featured {
                transform: none;
            }

            .about-content {
                padding: 40px 28px;
            }

            .cta-button-secondary {
                margin-left: 0;
                margin-top: 16px;
            }

            .footer-links {
                flex-direction: column;
                gap: 16px;
            }
        }

        /* Animation */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        /* ===== BREADCRUMB ===== */
        .breadcrumb {
            max-width: 1200px;
            margin: 0 auto;
            padding: 16px 20px;
            font-size: 14px;
            color: #888;
        }
        .breadcrumb a {
            color: #667eea;
            text-decoration: none;
        }
        .breadcrumb a:hover {
            text-decoration: underline;
        }
        .breadcrumb span[aria-hidden] {
            margin: 0 8px;
            color: #ccc;
        }
        .breadcrumb span[aria-current] {
            color: #555;
        }

        /* ===== FAQ ACCORDION ===== */
        .faq-section {
            max-width: 800px;
            margin: 60px auto 0;
            padding: 0 20px;
        }
        .faq-item {
            border-bottom: 1px solid rgba(102, 126, 234, 0.12);
        }
        .faq-question {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 17px;
            font-weight: 600;
            color: #333;
            text-align: left;
            font-family: inherit;
            line-height: 1.5;
            gap: 16px;
        }
        .faq-question:hover {
            color: #667eea;
        }
        .faq-chevron {
            flex-shrink: 0;
            transition: transform 0.3s ease;
            color: #667eea;
        }
        .faq-item.open .faq-chevron {
            transform: rotate(180deg);
        }
        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.35s ease;
        }
        .faq-item.open .faq-answer {
            max-height: 2000px;
        }
        .faq-answer-inner {
            padding: 0 0 20px;
            color: #555;
            font-size: 16px;
            line-height: 1.8;
        }
        .faq-answer-inner a {
            color: #667eea;
            text-decoration: none;
        }
        .faq-answer-inner a:hover {
            text-decoration: underline;
        }

        /* ===== BLOG / POSTS GRID ===== */
        .posts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
            gap: 24px;
            margin-top: 40px;
        }
        .post-card {
            display: block;
            background: white;
            border-radius: 16px;
            padding: 28px 24px;
            text-decoration: none;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(102, 126, 234, 0.08);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .post-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 30px rgba(102, 126, 234, 0.12);
        }
        .post-card-meta {
            font-size: 13px;
            color: #999;
            margin-bottom: 10px;
        }
        .post-card h2 {
            font-size: 19px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
            line-height: 1.4;
        }
        .post-card p {
            font-size: 15px;
            color: #666;
            line-height: 1.6;
        }

/* ===== MOBILE OVERFLOW FIXES (Phase 7) ===== */

/* Prevent horizontal scroll on all pages — global safety net */
html, body {
    max-width: 100vw;
    overflow-x: clip;
}

/* Long German words (Weihnachtsgeschenk, Geburtstagsueberraschung) can overflow on mobile */
.page-content,
.hero-content,
.section,
.pricing-section,
.about-section,
.testimonials-section,
.cta-section,
.feature-card,
.pricing-card,
.step,
h1, h2, h3, h4,
p, li, td, th {
    overflow-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Specific fix for /weihnachtsgeschenk-kind/ long title overflow */
.hero h1,
.section-title,
.page-content h1 {
    overflow-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Ensure images and embeds never overflow (audio needs default height, NOT auto) */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}
audio {
    max-width: 100%;
}

/* Pricing grid fix: ensure cards don't overflow on narrow screens */
@media (max-width: 375px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pricing-card {
        padding: 30px 20px;
    }
    .pricing-icon-circle {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
}

/* ===== ACCESSIBILITY ===== */

/* Focus-visible styles for keyboard navigation (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
.cta-button:focus-visible,
.pricing-button:focus-visible,
.faq-question:focus-visible,
.consent-btn:focus-visible,
.hamburger:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Ensure nav logo text doesn't overflow on very small screens */
@media (max-width: 360px) {
    .site-nav .nav-logo span {
        font-size: 15px;
    }
}
