/*
 Theme Name:   Consalt Child - Staude Steuerberater
 Theme URI:    https://steuerberater-fuer-apotheken.de/
 Description:  Child theme for Consalt - Staude Steuerberater custom design
 Author:       Staude Steuerberater
 Template:     consalt
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  consalt-child
*/

/* ==========================================================
   1. VARIABLES & RESET
   ========================================================== */
:root {
    --navy:        #1e3a5f;
    --navy-dark:   #152d4a;
    --blue:        #2a6496;
    --blue-light:  #3a7fc2;
    --bg-light:    #f0f4f8;
    --bg-section:  #f7f9fc;
    --white:       #ffffff;
    --text-dark:   #1a2d42;
    --text-body:   #4a5568;
    --text-muted:  #718096;
    --border:      #e2e8f0;
    --green:       #38a169;
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
    --shadow-md:   0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg:   0 8px 30px rgba(0,0,0,0.12);
    --radius:      8px;
    --transition:  0.3s ease;
    --header-h:    110px;
    --font:        "Helvetica Neue", Helvetica, Arial, sans-serif;
}


/* ==========================================================
   2. TYPOGRAPHY (Punkt 8)
   ========================================================== */
body,
body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.icofont):not([class*="icofont-"]):not([class*="flaticon-"]):not([class*="ti-"]) {
    font-family: var(--font) !important;
}

body {
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-y: auto !important;
    overflow-x: hidden;
}
html {
    overflow-y: auto !important;
}
.site-wrapper {
    overflow: visible !important;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; }


/* ==========================================================
   3. UKRYCIE ELEMENTÓW PARENT THEME
   Chowamy oryginalny header i footer Consalt,
   nasze custom wersje żyją w header.php i footer.php
   ========================================================== */

/* Ukryj oryginalny header motywu */
.em40_header_area_main,
.consalt-header-top,
.home-2.mbm,
.mobile_logo_area {
    display: none !important;
}

/* Ukryj oryginalny footer motywu */
.witrfm_area {
    display: none !important;
}


/* ==========================================================
   4. HEADER / NAWIGACJA (Punkt 1 + 2 + 4)
   ========================================================== */
/* Header fixed na WSZYSTKICH stronach */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: background-color var(--transition),
                box-shadow var(--transition);
}

/* --- Stan: transparentny --- */
.site-header--transparent {
    background-color: transparent;
}

/* Homepage (dark hero = bialy tekst) */
.site-header--dark-hero.site-header--transparent .nav-menu a,
.site-header--dark-hero.site-header--transparent .nav-toggle span {
    color: #fff;
}
.site-header--dark-hero.site-header--transparent .nav-menu a:hover {
    color: var(--navy-dark);
}
.site-header--dark-hero.site-header--transparent .nav-cta {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: transparent;
}
.site-header--dark-hero.site-header--transparent .nav-cta:hover {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

/* Podstrony (light hero = granatowy tekst) */
.site-header--light-hero.site-header--transparent .nav-menu a {
    color: var(--navy);
}
.site-header--light-hero.site-header--transparent .nav-toggle span {
    background-color: var(--navy);
}
.site-header--light-hero.site-header--transparent .nav-menu a:hover {
    color: var(--navy-dark);
}
.site-header--light-hero.site-header--transparent .nav-cta {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.site-header--light-hero.site-header--transparent .nav-cta:hover {
    background: var(--blue);
    border-color: var(--blue);
}

/* --- Stan: po scrollu (na wszystkich stronach) --- */
.site-header--scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
}

.site-header--scrolled .nav-menu a {
    color: var(--navy);
}
.site-header--scrolled .nav-menu a:hover {
    color: var(--navy-dark);
}

.site-header--scrolled .nav-toggle span {
    background-color: var(--navy);
}

.site-header--scrolled .nav-cta {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.site-header--scrolled .nav-cta:hover {
    background: var(--blue);
    border-color: var(--blue);
}

/* --- Nav inner layout --- */
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo img {
    height: 90px;
    width: auto;
    transition: opacity var(--transition);
}

@media (max-width: 991px) {
    .site-logo img {
        height: 72px;
    }
}
@media (max-width: 575px) {
    .site-logo img {
        height: 62px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}
.nav-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}
.nav-menu li a:hover {
    background: rgba(0,0,0,0.05);
}

.nav-cta {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}

/* --- Hamburger toggle --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 99999;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle.active span {
    background-color: #fff !important;
}
.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);
}

/* Kiedy mobile menu otwarte - header transparentny (bez białego paska) */
body.mobile-menu-open .site-header {
    background: transparent !important;
    box-shadow: none !important;
}

/* --- Mobile menu --- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy-dark);
    z-index: 9998;
    padding: 100px 30px 40px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-nav.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-menu li a {
    display: block;
    padding: 16px 0;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color var(--transition);
}
.mobile-menu li a:hover {
    color: var(--blue-light);
}
.mobile-nav .mobile-cta {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 32px;
    background: var(--blue);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
}


/* ==========================================================
   5. CONTENT SPACER (żeby header nie przykrywał treści)
   ========================================================== */

/* Spacer pod fixed header - wysokość dopasowuje się automatycznie */
.header-spacer {
    height: var(--header-h);
}

/* Homepage slider: padding-top żeby header nie zasłaniał tekstu */
body.home .witr_swiper_height,
body.home .witr_sw_text_area {
    padding-top: calc(var(--header-h) + 20px) !important;
}

/* Homepage slider na mobile: jeszcze więcej miejsca */
@media (max-width: 767px) {
    body.home .witr_swiper_height,
    body.home .witr_sw_text_area {
        padding-top: calc(var(--header-h) + 40px) !important;
    }
    body.home .swiper-slide {
        min-height: 100vh !important;
    }
}

/* Slider: fade effect na wszystkich urzadzeniach (Beispiel 4 style) */
.witr_swiper_area .swiper-slide {
    transform: none !important;
    opacity: 0 !important;
    transition: opacity 1.2s ease !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}
.witr_swiper_area .swiper-slide-active {
    opacity: 1 !important;
    position: relative !important;
    z-index: 2;
}

/* Slider background images - wycentrowane na wszystkich urządzeniach */
.swiper-slide,
.swiper-slide.txbdslider {
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}


/* ==========================================================
   6. BREADCRUMBS (Punkt 3)
   ========================================================== */
/* Breadcrumbs - usunięte, hero na podstronach przejmuje role */


/* ==========================================================
   7. FOOTER (Punkt 5, 6, 9, 10, 12)
   ========================================================== */
.site-footer {
    background: var(--bg-light);
    color: var(--text-body);
    margin-top: 0;
}

.footer-main {
    max-width: 1170px;
    margin: 0 auto;
    padding: 60px 20px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
    font-size: 14px;
    color: var(--text-body);
    text-decoration: none;
    line-height: 1.8;
}
.footer-col a:hover {
    color: var(--blue);
}

/* Contact items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.contact-item i {
    color: var(--blue);
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.contact-item span,
.contact-item a {
    font-size: 14px;
}

/* Opening hours (Punkt 6) */
.opening-hours {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.opening-hours h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}
.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    max-width: 280px;
    margin-bottom: 2px;
}
.hours-time {
    font-weight: 600;
    color: var(--text-dark);
}

/* Footer nav lists */
.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav li {
    margin-bottom: 8px;
}
.footer-nav li a {
    font-size: 14px;
    color: var(--text-body);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-nav li a:hover {
    color: var(--blue);
}
.footer-nav-extra {
    margin-top: 0;
    padding-top: 0;
}

/* DATEV seal (Punkt 9) */
.datev-seal {
    max-width: 110px;
    height: auto;
    margin-top: 20px;
    display: block;
}
/* Desktop: pokaz DATEV w kolumnie, ukryj mobilny */
.datev-mobile {
    display: none;
}

/* Footer map (Punkt 5) */
.footer-map iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.location-details {
    font-size: 13px;
}
.location-details a {
    color: var(--blue);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px;
    text-align: center;
}
.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Footer responsive */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}
@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 30px;
    }
    /* Kontakt kolumna - pelna szerokosc */
    .footer-grid .footer-col:first-child {
        grid-column: 1 / -1;
    }
    /* Hauptseiten i Allgemeines obok siebie */
    .footer-grid .footer-col:nth-child(2),
    .footer-grid .footer-col:nth-child(3) {
        grid-column: auto;
    }
    /* Ukryj DATEV w kolumnie Allgemeines na mobile */
    .datev-desktop {
        display: none !important;
    }
    /* Pokaz DATEV mobilny - wyrownany do kolumny Allgemeines (prawa), NAD mapa */
    .datev-mobile {
        display: block !important;
        grid-column: 2 / 3;
        text-align: left;
        order: 4;
    }
    .datev-mobile .datev-seal {
        max-width: 100px;
        margin: 0;
        display: block;
    }
    /* Standort/mapa - pelna szerokosc, PO DATEV */
    .footer-grid .footer-col:nth-child(4) {
        grid-column: 1 / -1;
        order: 5;
    }
    .footer-main {
        padding: 40px 20px 30px;
    }
}


/* ==========================================================
   8. SCROLL-TO-TOP BUTTON (Punkt 11)
   ========================================================== */
.scroll-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 44px !important;
    height: 44px !important;
    background: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer;
    z-index: 99998 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.scroll-top-arrow {
    display: block;
    width: 12px;
    height: 12px;
    border-left: 2.5px solid #888;
    border-top: 2.5px solid #888;
    transform: rotate(45deg);
    margin-top: 4px;
}
.scroll-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}
.scroll-top:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Mobile: scroll-top wyżej (nad Call Now Button) */
@media (max-width: 767px) {
    .scroll-top {
        bottom: 90px !important;
        right: 20px !important;
        width: 42px !important;
        height: 42px !important;
    }
}

/* Ukryj stary scroll-up button z parent theme */
.scrollup,
#scrollUp {
    display: none !important;
}
html {
    scroll-behavior: smooth;
}


/* ==========================================================
   FAQ - ukrycie haczykow i numeracji (Punkt 8 poprawek)
   ========================================================== */
.elementor-toggle .elementor-toggle-icon,
.elementor-accordion .elementor-accordion-icon {
    display: none !important;
}
.elementor-toggle .elementor-tab-title,
.elementor-accordion .elementor-tab-title {
    list-style: none !important;
    counter-increment: none !important;
}
.elementor-toggle .elementor-tab-title::before,
.elementor-accordion .elementor-tab-title::before,
.elementor-toggle .elementor-tab-title::marker,
.elementor-accordion .elementor-tab-title::marker {
    content: none !important;
    display: none !important;
}


/* ==========================================================
   9. ELEMENTOR OVERRIDES (Punkt 12 - ładniejszy design)
   ========================================================== */

/* Sekcje Elementora */
.elementor-section {
    /* Czyste przejścia między sekcjami */
}

/* Nagłówki w treści */
.elementor-heading-title {
    color: var(--text-dark);
    line-height: 1.3;
}

/* Tekst w treści */
.elementor-widget-text-editor p {
    color: var(--text-body);
    line-height: 1.8;
}
.elementor-widget-text-editor a {
    color: var(--blue);
}
.elementor-widget-text-editor a:hover {
    color: var(--blue-light);
}

/* Slider na homepage - biały tekst */
.home .witr_swiper_content h2,
.home .witr_swiper_content p,
.home .witr_swiper_content {
    color: #fff !important;
}

/* Slider buttony */
.witr_btn,
a.witr_btn {
    font-family: var(--font) !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    transition: all var(--transition) !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
}

/* Elementor buttony */
.elementor-button {
    border-radius: var(--radius) !important;
    font-family: var(--font) !important;
    font-weight: 600 !important;
    transition: all var(--transition) !important;
}

/* Service / Feature boxy */
.witr_single_feature,
.single_service_d,
.witr_service_s {
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
}
.witr_single_feature:hover,
.single_service_d:hover,
.witr_service_s:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Team members */
.witr_team_section {
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.witr_team_section:hover {
    box-shadow: var(--shadow-lg);
}

/* Section titles */
.witr_section_title h2,
.witr_section_title_2 h2 {
    color: var(--text-dark);
}
.witr_section_title p,
.witr_section_title_2 p {
    color: var(--text-body);
}

/* Elementor columns - lepsza responsywność */
@media (max-width: 767px) {
    .elementor-column {
        margin-bottom: 20px;
    }
}

/* Icon boxy */
.elementor-icon {
    transition: transform var(--transition);
}
.elementor-icon:hover {
    transform: scale(1.1);
}

/* Image widgets */
.elementor-widget-image img {
    border-radius: var(--radius);
}

/* Dividers */
.elementor-divider-separator {
    border-color: var(--border) !important;
}

/* Service widget - ikona + tekst w jednej linii, wyśrodkowane pionowo */
.em-service2 .text_box.witr_s_flex,
.text_box.witr_s_flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
}
.em-service2 .service_top_text,
.text_box.witr_s_flex .service_top_text {
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.em-service2 .em-service-inner,
.text_box.witr_s_flex .em-service-inner {
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.em-service2 .em-service-title,
.em-service2 .em-service-title h3,
.text_box.witr_s_flex .em-service-title,
.text_box.witr_s_flex .em-service-title h3 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
.em-service2 .em-service-desc:empty {
    display: none !important;
}



/* ==========================================================
   10. RESPONSIVE - mobile menu breakpoint
   ========================================================== */
@media (max-width: 991px) {
    .nav-menu,
    .nav-cta {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
}

@media (min-width: 992px) {
    .mobile-nav {
        display: none !important;
    }
}

/* ==========================================================
   11. PRINT STYLES
   ========================================================== */
@media print {
    .site-header,
    .scroll-top,
    .breadcrumb-bar {
        display: none !important;
    }
    body:not(.home) .site-content {
        padding-top: 0;
    }
}
