/* Custom CSS for Herzgesundheitsstore */

/* Color Scheme Override */
.primary-bg {
    background: #13232f !important;
}

.primary-color {
    color: #647589 !important;
}

.green-bg {
    background: #D66A04 !important;
}

.pink-bg {
    background: #F17705 !important;
}

.green-color {
    color: #D66A04 !important;
}

.pink-color {
    color: #F17705 !important;
}

.white-color {
    color: #fff !important;
}

.theme-color {
    color: #223645 !important;
}

/* Button Colors - Swapped to match original */
.btn-icon,
.btn.btn-icon {
    background: #F17705 !important;
    border-color: #F17705 !important;
    color: #fff !important;
}

.btn-icon:hover,
.btn.btn-icon:hover {
    background: #D66A04 !important;
    border-color: #D66A04 !important;
    color: #fff !important;
}

.btn-icon-green,
.btn.btn-icon-green {
    background: #F17705 !important;
    border-color: #F17705 !important;
    color: #fff !important;
}

.btn-icon-green:hover,
.btn.btn-icon-green:hover {
    background: #D66A04 !important;
    border-color: #D66A04 !important;
    color: #fff !important;
}

.primary_btn,
.btn.primary_btn {
    background: #F17705 !important;
    border-color: #F17705 !important;
    color: #fff !important;
}

.primary_btn:hover,
.btn.primary_btn:hover {
    background: #D66A04 !important;
    border-color: #D66A04 !important;
    color: #fff !important;
}

/* Override default template red color with HGS orange */
a:hover,
.service-link:hover,
.latest-news-content h3 a:hover,
.team-content h3:hover,
.footer-menu ul li a:hover {
    color: #D66A04 !important;
}

/* Section titles and headings */
h5 {
    color: #647589;
}

/* Footer phone icon color */
.emmergency-call-icon i {
    color: #F17705 !important;
}

/* Fact area numbers (20+, 100+) in orange */
.single-satisfied h1 {
    color: #F17705 !important;
}

.hero-slider-caption h5 {
    color: #F17705 !important;
}

/* Hero title - always two lines */
.hero-slider-caption h1 {
    font-size: 56px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
}

/* Top bar background - Light blue like original */
.top-bar {
    background: #f3f6ff !important;
}

.top-bar .header-info span {
    color: #647589;
}

.top-bar .header-info span i {
    color: #F17705;
}

/* Header menu area sticky */
.header-menu-area.sticky_menu {
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* News tags */
.news-tag {
    color: #F17705 !important;
}

.news-tag:hover {
    color: #D66A04 !important;
}

/* Accordion styling to match original */
.accordion-item {
    background-color: #fff !important;
    border-radius: 6px 6px 0px 0px !important;
}

.accordion-item:last-child {
    border-radius: 6px !important;
}

/* Accordion button colors - keep white background when active */
.accordion-button {
    text-align: left !important;
    justify-content: space-between !important;
    display: flex !important;
    align-items: center !important;
}

.accordion-button:not(.collapsed) {
    background-color: #fff !important;
    color: #0f1328 !important;
}

.accordion-button:focus {
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Remove the accordion icons */
.accordion-button::after {
    display: none !important;
}

/* Remove any plus icons from FAQ section and title area */
.section-faq-area::after,
.section-faq-area::before,
.section-faq-area .about-title::after,
.section-faq-area .about-title::before,
.section-faq-area .col-xl-6::after,
.section-faq-area .col-xl-6::before,
.section-faq-area .row::after,
.section-faq-area .row::before,
.section-faq-area > .container::after,
.section-faq-area > .container::before,
.section-faq-area .container::after,
.section-faq-area .container::before {
    content: none !important;
    display: none !important;
}

/* Remove position relative that allows absolute positioned plus symbols */
.section-faq-area .pos-rel::after,
.section-faq-area .pos-rel::before {
    display: none !important;
}

/* Specifically target and remove the plus icon in top right */
.section-faq-area .faq-right-box::before,
.section-faq-area .faq-right-box::after,
.section-faq-area .faq-left-box::before,
.section-faq-area .faq-left-box::after {
    content: none !important;
    display: none !important;
}

/* Remove btn-link pseudo-elements that might add plus symbols */
.faq-right-box .btn-link::before,
.faq-right-box .btn-link::after,
.faq-right-box .btn-link.collapsed::before,
.faq-right-box .btn-link.collapsed::after {
    display: none !important;
    content: none !important;
}

/* Team social links hover */
.team-social li a:hover {
    background: #D66A04 !important;
}

/* Team member subtitle color */
.team-content h6 {
    color: #F17705 !important;
}

/* Author designation color (e.g., "Gründer") */
.author-desination h6 {
    color: #F17705 !important;
}

/* Section line dividers - change from red to orange using CSS filter */
.section-line img {
    filter: brightness(0) saturate(100%) invert(60%) sepia(86%) saturate(3205%) hue-rotate(1deg) brightness(101%) contrast(98%) !important;
}

/* Ensure centered section titles are actually centered */
.section-title.text-center {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.section-title.text-center .section-text {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

.section-title.text-center .section-text h1,
.section-title.text-center .section-text h5 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.section-title.text-center .section-line {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.section-title.text-center .section-icon {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.section-title.text-center .section-back-icon {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    margin: 0 auto -50px !important;
}

/* Make team member images round and same size */
.team-thumb img {
    width: 300px !important;
    height: 300px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Service box hover */
.service-box:hover h3 a {
    color: #D66A04 !important;
}

/* Slider Backgrounds - Fixed max size */
.hero-area .single-slider.slider_bg_1,
.single-slider.slider_bg_1 {
    background: url(../img/slider/slider-bg-1.jpg) !important;
    background-repeat: no-repeat !important;
    background-size: 1400px auto !important;
    background-position: top right !important;
}

.hero-area .single-slider.slider_bg_2,
.single-slider.slider_bg_2 {
    background: url(../img/slider/slider-bg-2in1.jpg) !important;
    background-repeat: no-repeat !important;
    background-size: 1400px auto !important;
    background-position: top right !important;
}

/* Responsive hero image */
@media (max-width: 1600px) {
    .hero-area .single-slider.slider_bg_1,
    .single-slider.slider_bg_1,
    .hero-area .single-slider.slider_bg_2,
    .single-slider.slider_bg_2 {
        background-size: 1100px auto !important;
    }
}

@media (max-width: 1200px) {
    .hero-area .single-slider.slider_bg_1,
    .single-slider.slider_bg_1,
    .hero-area .single-slider.slider_bg_2,
    .single-slider.slider_bg_2 {
        background-size: 800px auto !important;
    }
}

@media (max-width: 768px) {
    /* Reduce hero height on mobile */
    .hero-area .single-slider,
    .single-slider {
        min-height: 400px !important;
        height: auto !important;
    }

    .slider-height {
        min-height: 400px !important;
        height: auto !important;
    }

    /* Hide background image on mobile, use solid color instead */
    .hero-area .single-slider.slider_bg_1,
    .single-slider.slider_bg_1,
    .hero-area .single-slider.slider_bg_2,
    .single-slider.slider_bg_2 {
        background-image: none !important;
        background-color: #f8f9fa !important;
        position: relative;
    }

    .hero-text {
        position: relative;
        z-index: 2;
        padding: 20px 0 !important;
    }

    /* Remove text shadow since we have solid background now */
    .hero-slider-caption h1,
    .hero-slider-caption h5,
    .hero-slider-caption p {
        text-shadow: none;
    }
}

/* Mobile menu fixes */
#mobile-menu {
    display: none;
}

@media (max-width: 991px) {
    /* Mobile menu styling */
    #mobile-menu {
        display: block !important;
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        padding-top: 20px;
    }

    #mobile-menu.active {
        left: 0 !important;
    }

    .mobile-menu-header {
        padding: 20px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        justify-content: flex-end;
    }

    .mobile-menu-close {
        background: transparent;
        border: none;
        font-size: 24px;
        color: #0f1328;
        cursor: pointer;
        padding: 5px 10px;
    }

    .mobile-menu-close:hover {
        color: #F17705;
    }

    #mobile-menu ul {
        display: block !important;
        padding: 20px;
        margin: 0;
    }

    #mobile-menu ul li {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #f0f0f0;
    }

    #mobile-menu ul li a {
        display: block !important;
        padding: 15px 10px !important;
        color: #0f1328 !important;
        font-size: 16px !important;
    }

    /* Mobile menu overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }

    .mobile-menu-overlay.active {
        display: block !important;
    }

    /* Hide desktop menu on mobile */
    .header__menu {
        display: none !important;
    }

    /* Show and position mobile menu toggle */
    .side-menu-icon {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        z-index: 10000;
    }

    .side-toggle {
        padding: 10px;
        font-size: 24px !important;
        color: #0f1328;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Ensure header menu area has proper layout on mobile */
    .header-menu-area .row {
        align-items: center !important;
    }

    .header-menu-area .col-md-6,
    .header-menu-area .col-6 {
        display: flex !important;
        align-items: center !important;
    }

    /* Logo on the left */
    .header-menu-area .col-6:first-child {
        justify-content: flex-start !important;
    }

    /* Menu icon on the right */
    .header-menu-area .col-6:last-child {
        justify-content: flex-end !important;
    }

    /* Fix header social icons on mobile */
    .header-social-icons {
        display: none !important;
    }
}

/* Hide hero slider arrow buttons */
.hero-slider .slick-arrow {
    display: none !important;
}

/* Sticky Menu */
.sticky_menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    animation: sticky-animation 0.3s ease-in-out;
}

@keyframes sticky-animation {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Mobile Menu Toggle */
.side-toggle {
    font-size: 20px;
    cursor: pointer;
}

/* Slick Slider Adjustments */
.slick-list {
    overflow: hidden;
}

.slick-track {
    display: flex;
}

.single-slider {
    width: 100% !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Logo adjustments */
.logo img {
    max-width: 80px;
    height: auto;
}

/* Fix event/blog thumbnail sizing */
.latest-news-thumb {
    overflow: hidden;
}

.latest-news-thumb img {
    width: 100%;
    height: auto;
    min-height: 337px;
    object-fit: cover;
}

.latest-news-box-2 .latest-news-thumb img {
    height: 337px;
}

/* FAQ images sizing */
.faq-left-img img,
.faq-pos-front img {
    width: 100%;
    height: auto;
}

/* Fix event card heights - make them equal */
.latest-news-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.latest-news-content-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.latest-news-content {
    flex: 1;
}

/* Ensure all event cards have the same height */
.latest-news-area .row {
    display: flex;
    flex-wrap: wrap;
}

.latest-news-area .row > div {
    display: flex;
}

/* Override flex display for section title container in events area */
.latest-news-area .row > .col-xl-12 {
    display: block !important;
}

/* ========================================
   COMPREHENSIVE MOBILE OPTIMIZATIONS
   ======================================== */

/* Prevent horizontal overflow on all devices */
body {
    overflow-x: hidden !important;
}

html {
    overflow-x: hidden !important;
}

.container-fluid {
    overflow-x: hidden !important;
}

/* Small mobile devices (up to 575px) */
@media (max-width: 575px) {
    /* Fact area - align content to the left on mobile */
    .fact-area .section-title,
    .fact-area .section-button {
        text-align: left !important;
    }

    .fact-area .section-text {
        text-align: left !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .fact-area .section-button-left {
        text-align: left !important;
        display: flex !important;
        justify-content: flex-start !important;
    }

    .fact-area .cta-satisfied {
        padding-left: 0 !important;
    }

    .fact-area .single-satisfied {
        text-align: left !important;
        padding-left: 0 !important;
    }

    /* Hero section mobile fixes */
    .hero-slider-caption h1 {
        font-size: 24px !important;
        line-height: 1.15 !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 15px !important;
        font-weight: 700 !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    .hero-slider-caption h5 {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }

    .hero-slider-caption p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .hero-text {
        padding: 0 15px !important;
    }

    .single-slider {
        padding: 20px 0 !important;
    }

    /* Container padding adjustments */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Section titles */
    .section-title h1,
    .about-title h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .section-title h2,
    .about-title h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .section-title h5,
    .about-title h5 {
        font-size: 14px !important;
    }

    /* Service boxes */
    .service-box h3 {
        font-size: 18px !important;
    }

    /* Team section */
    .team-content h3 {
        font-size: 18px !important;
    }

    .team-content span {
        font-size: 14px !important;
    }

    /* FAQ section */
    .accordion-button {
        font-size: 15px !important;
        padding: 15px !important;
        line-height: 1.4 !important;
    }

    .accordion-body {
        font-size: 14px !important;
        padding: 15px !important;
    }

    /* Event cards */
    .latest-news-content h3 {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    /* Footer */
    .footer-widget h3 {
        font-size: 18px !important;
    }

    /* Buttons */
    .primary_btn,
    .btn-icon,
    .btn-icon-green {
        padding: 12px 25px !important;
        font-size: 14px !important;
    }

    /* Top bar - stack elements on very small screens */
    .top-bar .header-info {
        font-size: 12px !important;
    }
}

/* Medium mobile devices (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-slider-caption h1 {
        font-size: 34px !important;
        line-height: 1.15 !important;
        letter-spacing: -0.5px !important;
        font-weight: 700 !important;
    }

    .section-title h1,
    .about-title h1 {
        font-size: 32px !important;
    }

    .section-title h2,
    .about-title h2 {
        font-size: 28px !important;
    }
}

/* Tablet devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-slider-caption h1 {
        font-size: 42px !important;
        line-height: 1.15 !important;
        letter-spacing: -0.5px !important;
        font-weight: 700 !important;
    }

    .section-title h1,
    .about-title h1 {
        font-size: 36px !important;
    }

    .section-title h2,
    .about-title h2 {
        font-size: 32px !important;
    }
}

/* ========================================
   LEGAL PAGES (Impressum, Datenschutz)
   ======================================== */

.legal-content {
    line-height: 1.7;
}

.legal-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #223645;
    margin-bottom: 15px;
}

.legal-content h5 {
    font-size: 17px;
    font-weight: 600;
    color: #223645;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 15px;
    color: #647589;
}

.legal-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.legal-content ul li {
    margin-bottom: 8px;
    color: #647589;
}

.legal-content a {
    color: #F17705;
}

.legal-content a:hover {
    color: #D66A04;
}

/* Ensure enough space at the bottom of legal content */
.legal-content {
    padding-bottom: 30px;
}

/* Mobile optimization for legal pages */
@media (max-width: 991px) {
    .pt-120 {
        padding-top: 100px !important;
    }
}

@media (max-width: 767px) {
    .pt-120 {
        padding-top: 80px !important;
    }

    .pb-90 {
        padding-bottom: 60px !important;
    }

    .legal-content h4 {
        font-size: 18px;
    }

    .legal-content h5 {
        font-size: 16px;
    }

    .legal-content p,
    .legal-content ul li {
        font-size: 15px;
    }

    .mt-40 {
        margin-top: 30px !important;
    }
}

@media (max-width: 575px) {
    .pt-120 {
        padding-top: 70px !important;
    }

    .pb-90 {
        padding-bottom: 80px !important;
    }

    /* Legal page titles */
    main > section h1 {
        font-size: 26px !important;
        line-height: 1.3 !important;
        word-break: break-word;
    }

    .mb-30 {
        margin-bottom: 20px !important;
    }

    .mb-50 {
        margin-bottom: 30px !important;
    }

    .legal-content h4 {
        font-size: 17px;
    }

    .legal-content h5 {
        font-size: 15px;
    }

    .legal-content p,
    .legal-content ul li {
        font-size: 14px;
        line-height: 1.6;
    }

    .mt-40 {
        margin-top: 25px !important;
    }

    .mt-30 {
        margin-top: 20px !important;
    }
}

/* ========================================
   FOOTER MOBILE OPTIMIZATION
   ======================================== */

@media (max-width: 767px) {
    /* Two column layout for Schnellzugriff and Rechtliches */
    .footer-top .col-xl-2,
    .footer-top .col-lg-3,
    .footer-top .col-md-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Show Rechtliches section on mobile */
    .footer-top .d-md-none {
        display: block !important;
    }

    .footer-widget {
        text-align: center !important;
    }

    .footer-title h3 {
        text-align: center !important;
    }

    .footer-menu ul {
        text-align: center !important;
        padding-left: 0 !important;
    }

    .footer-menu ul li {
        text-align: center !important;
        line-height: 1.8 !important;
    }

    /* Footer bottom */
    .footer-copyright p {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
}
