/**
 * SmarterGerman Child Theme - Consolidated Styles
 * Performance optimized: All inline CSS combined into single cacheable file
 */

/* ==========================================================================
   FAQ Accordion (custom implementation)
   ========================================================================== */
.faq-section,
div.faq-section,
section.faq-section,
.elementor-widget-container .faq-section {
    max-width: 800px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    -webkit-margin-start: auto !important;
    -webkit-margin-end: auto !important;
    text-align: left !important;
}

.faq-section * {
    text-align: left !important;
}

.faq-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3436;
    text-align: center;
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(255,0,128,0.06) 0%, rgba(0,206,209,0.06) 100%);
    border-radius: 10px;
    border: 1px solid rgba(211, 84, 0, 0.1);
}

.faq-question {
    padding: 20px 20px;
    color: #2d3436;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-weight: 400 !important;
}

.faq-question span,
.faq-question * {
    font-weight: 400 !important;
}

.faq-question:hover {
    color: #d35400;
    background: rgba(211, 84, 0, 0.05);
}

.faq-question.active {
    color: #d35400;
    font-weight: 400;
}

.faq-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    color: #b2bec3;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
    color: #d35400;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 15px;
    color: #636e72;
    line-height: 1.6;
}

.faq-answer.active {
    max-height: 500px;
    padding: 15px 20px 20px 20px;
}

.faq-answer a {
    color: #e67e22;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Elementor Accordion - Force closed by default
   ========================================================================== */
.elementor-accordion .elementor-tab-content {
    display: none !important;
}

.elementor-accordion .elementor-tab-title.elementor-active + .elementor-tab-content {
    display: block !important;
}

/* ==========================================================================
   Hide page titles on specific pages
   ========================================================================== */
.page-id-14882 h1.entry-title,
.page-id-2786408 h1.entry-title {
    display: none !important;
}

/* ==========================================================================
   Safari-specific fixes
   ========================================================================== */
html, body {
    overflow-x: hidden;
}

.neon-header {
    padding-right: 20px !important;
}

.wave-overlay {
    width: 100% !important;
}

.neon-cta {
    margin-right: 15px !important;
}

@supports (-webkit-touch-callout: none) {
    body.page-id-2786574 {
        padding-top: 120px !important;
    }
}

/* ==========================================================================
   Skip to content link (accessibility)
   ========================================================================== */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 999999;
}

.skip-to-content:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 15px 25px;
    background: #1f2937;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    outline: 3px solid #00BCD4;
}

/* ==========================================================================
   Link underline on hover (accessibility)
   ========================================================================== */
a:not(.elementor-button):not(.pricing-cta):not(.sg-all-reviews-btn):not(.neon-nav a):not([class*="btn"]):not([class*="button"]):hover {
    text-decoration: underline !important;
}

a[style*="underline"],
a.underlined {
    text-decoration: underline;
}

/* ==========================================================================
   Mobile responsive - FAQ
   ========================================================================== */
@media screen and (max-width: 767px) {
    .faq-section {
        margin-top: 20px;
        padding-top: 15px;
    }

    .faq-section h4 {
        font-size: 18px;
    }

    .faq-question {
        padding: 14px 10px;
    }

    .faq-answer {
        font-size: 13px;
    }
}

/* ==========================================================================
   Blog Search Bar
   ========================================================================== */
.sg-blog-search {
    position: fixed;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.sg-blog-search input {
    border: none;
    outline: none;
    font-size: 15px;
    width: 200px;
    font-family: Inter, -apple-system, sans-serif;
}

.sg-blog-search input::placeholder {
    color: #999;
}

.sg-blog-search button {
    background: #00838f;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.sg-blog-search button:hover {
    background: #006d77;
}

@media (max-width: 768px) {
    .sg-blog-search {
        top: auto;
        bottom: 90px;
        left: 12px;
        right: 12px;
        transform: none;
    }

    .sg-blog-search input {
        flex: 1;
        width: auto;
    }
}

/* Force scroll to top on page load */
html {
    scroll-behavior: auto !important;
}
