/*
 Theme Name:   IT-Worms Child Theme
 Theme URI:    https://it-worms.de
 Description:  Hello Elementor Child Theme für IT-Worms.de – Ihr mobiler IT Service in und um Worms
 Author:       Suppora GmbH
 Author URI:   https://suppora.eu
 Template:     hello-elementor
 Version:      2.1.0
 License:      GNU General Public License v2 or later
 Text Domain:  it-worms-child
*/

/* ═══════════════════════════════════════
   CSS VARIABLEN (Global)
   ═══════════════════════════════════════ */
:root {
    --itw-primary: #0A1628;
    --itw-primary-light: #132844;
    --itw-accent: #2B7DE9;
    --itw-accent-hover: #1A6AD4;
    --itw-accent-subtle: #E8F1FD;
    --itw-accent-dark: #1565C0;
    --itw-surface: #F7F9FC;
    --itw-border: #E2E8F0;
    --itw-border-light: #EDF2F7;
    --itw-text: #1A202C;
    --itw-text-secondary: #4A5568;
    --itw-text-tertiary: #718096;
    --itw-white: #FFFFFF;
    --itw-whatsapp: #25D366;
    --itw-shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --itw-shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 10px 20px rgba(0,0,0,0.04);
    --itw-shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
    --itw-radius: 12px;
    --itw-radius-sm: 8px;
    --itw-radius-lg: 16px;
    --itw-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --itw-font-display: 'Instrument Serif', Georgia, serif;
}

/* ═══════════════════════════════════════
   GLOBALE RESETS
   ═══════════════════════════════════════ */
body {
    font-family: var(--itw-font);
    -webkit-font-smoothing: antialiased;
    color: var(--itw-text);
}

/* ═══════════════════════════════════════
   HIDE ALL DEFAULT WP / HELLO ELEMENTOR
   ═══════════════════════════════════════ */
#site-header,
.site-header,
.dynamic-header,
header.site-header,
.ehf-header,
#masthead,
#colophon,
.site-footer,
footer.site-footer,
#site-footer,
.ehf-footer,
.site-branding,
.skip-link,
a.skip-link,
.entry-header,
.page .entry-title,
.page-header,
.hfe-header,
.hfe-footer,
.powered-by-wordpress,
p.powered-by-wordpress {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-main,
.page-content,
.entry-content,
.elementor {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site-description {
    display: none !important;
}

/* Hide ITW Header/Footer inside Elementor Editor */
.elementor-editor-active #itw-header,
.elementor-editor-active #itw-footer,
.elementor-editor-active .itw-whatsapp-float,
.elementor-editor-active .itw-mobile-menu {
    display: none !important;
}
.elementor-editor-active body,
.elementor-editor-active body.page,
.elementor-editor-active body.home {
    padding-top: 0 !important;
}

/* Elementor Overrides */
.elementor-widget-html {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.elementor-element {
    --widgets-spacing: 0px;
}
.elementor-section {
    padding: 0 !important;
}

/* ═══════════════════════════════════════
   IFRAME CONTAINER STYLING
   ═══════════════════════════════════════ */
.itw-iframe-wrap {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.itw-iframe-wrap iframe {
    width: 100%;
    border: none;
    display: block;
    overflow: hidden;
}

/* Body Padding für Fixed Header */
body,
body.page,
body.home {
    padding-top: 150px !important;
}

/* ═══════════════════════════════════════
   GLOBAL HEADER
   ═══════════════════════════════════════ */
#itw-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--itw-border);
    transition: all 0.3s ease;
    font-family: var(--itw-font);
}
#itw-header.scrolled {
    box-shadow: var(--itw-shadow-md);
}
.itw-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    max-width: 1400px;
    margin: 0 auto;
}
.itw-logo-group {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.itw-logo-img {
    height: 130px;
    max-width: 520px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}
.itw-logo-group:hover .itw-logo-img {
    opacity: 0.85;
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.itw-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.itw-nav > a,
.itw-nav-trigger {
    text-decoration: none;
    color: var(--itw-text-secondary);
    font-size: 14.5px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--itw-radius-sm);
    transition: all 0.2s ease;
    font-family: var(--itw-font);
    display: flex;
    align-items: center;
    gap: 5px;
}
.itw-nav > a:hover,
.itw-nav-trigger:hover {
    color: var(--itw-text);
    background: var(--itw-surface);
}
.itw-nav-trigger i {
    font-size: 9px;
    transition: transform 0.2s;
    opacity: 0.5;
}

/* ═══════ DROPDOWN ═══════ */
.itw-nav-dropdown {
    position: relative;
}
.itw-nav-dropdown:hover .itw-nav-trigger i {
    transform: rotate(180deg);
}
.itw-nav-dropdown:hover .itw-nav-trigger {
    color: var(--itw-accent);
    background: var(--itw-accent-subtle);
}
.itw-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 320px;
    background: var(--itw-white);
    border: 1px solid var(--itw-border);
    border-radius: var(--itw-radius);
    box-shadow: var(--itw-shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 100;
}
.itw-nav-dropdown:hover .itw-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* Invisible bridge to prevent gap hover loss */
.itw-dropdown-panel::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.itw-dd-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--itw-radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
}
.itw-dd-item:hover {
    background: var(--itw-surface);
}
.itw-dd-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--itw-radius-sm);
    background: var(--itw-accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--itw-accent);
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.15s;
}
.itw-dd-item:hover .itw-dd-icon {
    background: var(--itw-accent);
    color: var(--itw-white);
}
.itw-dd-text {
    display: flex;
    flex-direction: column;
}
.itw-dd-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--itw-text);
    line-height: 1.3;
}
.itw-dd-desc {
    font-size: 12.5px;
    color: var(--itw-text-tertiary);
    line-height: 1.4;
}

/* ═══════ HEADER CONTACT ═══════ */
.itw-header-contact {
    display: flex;
    align-items: center;
    gap: 16px;
}
.itw-header-phone,
.itw-header-whatsapp {
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: var(--itw-font);
}
.itw-header-phone {
    color: var(--itw-text-secondary);
}
.itw-header-phone:hover {
    color: var(--itw-text);
}
.itw-header-phone i,
.itw-header-whatsapp i {
    font-size: 14px;
}
.itw-header-whatsapp {
    color: var(--itw-whatsapp);
    font-weight: 600;
}
.itw-header-whatsapp:hover {
    color: #1DA851;
}
.itw-btn-header {
    background: var(--itw-accent);
    color: var(--itw-white) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--itw-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--itw-font);
}
.itw-btn-header:hover {
    background: var(--itw-accent-hover);
    color: var(--itw-white) !important;
}

/* ═══════ MOBILE TOGGLE ═══════ */
.itw-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100001;
}
.itw-mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--itw-primary);
    border-radius: 2px;
    transition: all 0.3s;
}
.itw-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.itw-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.itw-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════ MOBILE MENU ═══════ */
.itw-mobile-menu {
    display: none;
    position: fixed;
    top: 150px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    z-index: 99998;
    flex-direction: column;
    padding: 24px 24px 40px;
    gap: 4px;
    overflow-y: auto;
}
.itw-mobile-menu.active {
    display: flex;
}
.itw-mobile-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--itw-text-tertiary);
    padding: 20px 16px 8px;
    border-top: 1px solid var(--itw-border-light);
    margin-top: 4px;
}
.itw-mobile-section-label:first-child {
    border-top: none;
    padding-top: 8px;
    margin-top: 0;
}
.itw-mobile-menu > a {
    text-decoration: none;
    color: var(--itw-text);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--itw-radius-sm);
    transition: all 0.2s;
    font-family: var(--itw-font);
    display: flex;
    align-items: center;
    gap: 12px;
}
.itw-mobile-menu > a i {
    width: 20px;
    text-align: center;
    color: var(--itw-accent);
    font-size: 14px;
}
.itw-mobile-menu > a:hover {
    background: var(--itw-accent-subtle);
    color: var(--itw-accent);
}
.itw-mobile-menu .itw-mobile-cta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--itw-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.itw-mobile-menu .itw-btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: var(--itw-radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    font-family: var(--itw-font);
}
.itw-mobile-menu .itw-btn-mobile.primary {
    background: var(--itw-accent);
    color: var(--itw-white);
}
.itw-mobile-menu .itw-btn-mobile.whatsapp {
    background: var(--itw-whatsapp);
    color: var(--itw-white);
}
.itw-mobile-menu .itw-btn-mobile.phone {
    background: var(--itw-surface);
    color: var(--itw-text);
    border: 1px solid var(--itw-border);
}

/* ═══════════════════════════════════════
   GLOBAL FOOTER
   ═══════════════════════════════════════ */
#itw-footer {
    background: var(--itw-primary);
    padding: 64px 0 0;
    color: rgba(255,255,255,0.5);
    font-family: var(--itw-font);
}
.itw-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
.itw-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.itw-footer-brand .itw-footer-logo {
    height: 60px;
    max-width: 240px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 12px;
}
.itw-footer-brand .itw-fbrand-tagline {
    color: var(--itw-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.itw-footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.itw-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}
.itw-footer-contact-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}
.itw-footer-contact-item a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.itw-footer-contact-item a:hover {
    color: var(--itw-accent);
}
.itw-footer-social {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}
.itw-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--itw-radius-sm);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.itw-footer-social a:hover {
    background: var(--itw-accent);
    color: var(--itw-white);
}
.itw-footer-col h4 {
    color: var(--itw-white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}
.itw-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.itw-footer-col li {
    margin-bottom: 12px;
}
.itw-footer-col a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.itw-footer-col a:hover {
    color: var(--itw-accent);
    padding-left: 4px;
}
.itw-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.itw-footer-legal {
    display: flex;
    gap: 24px;
}
.itw-footer-legal a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
}
.itw-footer-legal a:hover {
    color: var(--itw-accent);
}

/* ═══════════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ═══════════════════════════════════════ */
.itw-whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99997;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--itw-whatsapp);
    color: var(--itw-white);
    text-decoration: none;
    padding: 14px 24px 14px 18px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    font-family: var(--itw-font);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}
.itw-whatsapp-float:hover {
    background: #1DA851;
    color: var(--itw-white);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
}
.itw-whatsapp-float svg {
    width: 26px;
    height: 26px;
    fill: var(--itw-white);
    flex-shrink: 0;
}
.itw-whatsapp-float .itw-wa-text {
    line-height: 1.2;
}
.itw-whatsapp-float .itw-wa-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
    display: block;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1200px) {
    .itw-header-phone,
    .itw-header-whatsapp {
        display: none;
    }
}

@media (max-width: 1024px) {
    .itw-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .itw-nav {
        display: none;
    }
    .itw-mobile-toggle {
        display: flex;
    }
    body,
    body.page,
    body.home {
        padding-top: 120px !important;
    }
    .itw-logo-img {
        height: 95px;
        max-width: 380px;
    }
    .itw-mobile-menu {
        top: 120px;
    }
}

@media (max-width: 768px) {
    body,
    body.page,
    body.home {
        padding-top: 90px !important;
    }
    .itw-logo-img {
        height: 70px;
        max-width: 280px;
    }
    .itw-mobile-menu {
        top: 90px;
    }
    .itw-header-inner {
        padding: 12px 16px;
    }
    .itw-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .itw-footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .itw-whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 14px;
        border-radius: 50%;
    }
    .itw-whatsapp-float .itw-wa-text {
        display: none;
    }
    .itw-whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
