/*
Theme Name: EDV-Crew Child Theme
Theme URI: https://edv-crew.de
Description: Custom Child Theme für EDV-Crew basierend auf Hello Elementor
Author: EDV-Crew
Author URI: https://edv-crew.de
Template: hello-elementor
Version: 1.0.20
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edv-crew-child
*/

/* ============================================
   EDV-Crew Custom Styles
   ============================================ */

:root {
    --navy-blue: #001F5C;
    --ocean-blue: #0033A0;
    --accent-teal: #00A8B5;
    --light-gray: #F5F7FA;
    --medium-gray: #E8EDF3;
    --text-dark: #1a2332;
    --text-gray: #5a6c7d;
}

#reparatur,
#bewerbung {
    scroll-margin-top: 120px;
}

/* ============================================
   Sticky Header Shrink Effect
   ============================================ */

/* Header Normal State */
.elementor-location-header {
    transition: all 0.3s ease;
}

/* Header beim Scrollen */
.elementor-sticky--effects {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Logo verkleinern beim Scrollen */
.elementor-sticky--effects .elementor-widget-image img {
    max-height: 45px !important;
    transition: all 0.3s ease;
}

/* Navigation verkleinern beim Scrollen */
.elementor-sticky--effects .elementor-nav-menu {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* ============================================
   Button Styles
   ============================================ */

.elementor-button.btn-primary {
    background-color: var(--accent-teal) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.elementor-button.btn-primary:hover {
    background-color: #008999 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 168, 181, 0.3) !important;
}

.elementor-button.btn-secondary {
    background-color: transparent !important;
    color: var(--ocean-blue) !important;
    border: 2px solid var(--ocean-blue) !important;
    transition: all 0.3s ease !important;
}

.elementor-button.btn-secondary:hover {
    background-color: var(--ocean-blue) !important;
    color: white !important;
}

/* ============================================
   Service Cards Hover Effects
   ============================================ */

.service-card {
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12) !important;
    border-top-color: var(--accent-teal) !important;
}

/* ============================================
   Navigation Hover Effects
   ============================================ */

.elementor-nav-menu--main .elementor-item {
    position: relative;
    transition: color 0.3s ease;
}

.elementor-nav-menu--main .elementor-item:hover {
    color: var(--accent-teal) !important;
}

.elementor-nav-menu--main .elementor-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-teal);
    transition: width 0.3s ease;
}

.elementor-nav-menu--main .elementor-item:hover::after {
    width: 100%;
}

/* ============================================
   Smooth Scrolling
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   Service Icon Gradient
   ============================================ */

.service-icon-gradient {
    background: linear-gradient(135deg, var(--ocean-blue), var(--accent-teal)) !important;
}

/* ============================================
   Hero Section Shape Divider
   ============================================ */

.hero-wave svg {
    fill: white;
}

/* ============================================
   Counter/Stats Animation
   ============================================ */

.elementor-counter-number {
    color: var(--ocean-blue) !important;
    font-weight: 700 !important;
}

/* ============================================
   Scroll to Top Button
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-teal);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 168, 181, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover {
    background: #008999;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 168, 181, 0.4);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 1024px) {
    /* Tablet Anpassungen */
    .elementor-sticky--effects .elementor-widget-image img {
        max-height: 40px !important;
    }
}

@media (min-width: 768px) and (max-width: 1415px) {
    body:is(.page-id-3605, .page-id-3101, .page-id-3008, .page-id-2883, .page-id-2670, .page-id-2507, .page-id-2373) .elementor-widget-form .elementor-form-fields-wrapper {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 849px) {
    body.page-id-3605 .elementor-element.elementor-element-094a6d3 .elementor-icon-box-title span {
        font-size: 21px !important;
    }
}

@media (min-width: 768px) and (max-width: 793px) {
    body.page-id-3101 .elementor-element.elementor-element-dcb1d94 .eael-data-table-wrap {
        overflow-x: auto;
    }
}

@media (min-width: 768px) and (max-width: 776px) {
    body.page-id-2670 .elementor-element.elementor-element-1379055 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ============================================
   Homepage Google Reviews Spacing (LAYOUT-HOME-REVIEWS-SPACE)
   Tightens only the review plugin's default chrome spacing
   inside homepage shortcode widget 1b24aaa. Review content,
   cards, arrows, and slider behavior are not changed.
   ============================================ */

body.page-id-3605 .elementor-element.elementor-element-1b24aaa .grwp_grid > .grwp_body {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.page-id-3605 .elementor-element.elementor-element-1b24aaa .swiper.reviews_embedder_slider {
    padding-top: 0 !important;
    padding-bottom: 48px !important;
}

@media (max-width: 768px) {
    /* Mobile Anpassungen */
    .elementor-sticky--effects .elementor-widget-image img {
        max-height: 35px !important;
    }
    
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* ============================================
   Custom List Styles (Checkmarks)
   ============================================ */

.service-list li::before {
    content: '✓';
    color: var(--accent-teal);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ============================================
   Partner Logos Section
   ============================================ */

.partner-logo {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

/* ============================================
   Contact Form Styling
   ============================================ */

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    padding: 12px;
    transition: border-color 0.3s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    border-color: var(--accent-teal);
    outline: none;
}

.wpcf7-form input[type="submit"] {
    background-color: var(--accent-teal) !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #008999 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 168, 181, 0.3) !important;
}

/* ============================================
   Maritime Accents (optional)
   ============================================ */

.maritime-element {
    position: relative;
}

.maritime-element::before {
    content: '';
    position: absolute;
    /* Subtle rope/anchor decoration if needed */
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .elementor-location-header,
    .elementor-location-footer,
    .scroll-to-top {
        display: none !important;
    }
}

/* ============================================
   Accessibility Improvements
   ============================================ */

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--navy-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

/* ============================================
   Performance Optimizations
   ============================================ */

/* GPU Acceleration for Animations */
.service-card,
.elementor-button,
.scroll-to-top {
    will-change: transform;
    transform: translateZ(0);
}

/* Smooth Font Rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Link Farben in Formularen (DeklarationintValue)
   ============================================ */

.elementor-form a {
    color: inherit !important;
}

.elementor-form a:hover {
    color: var(--accent-teal) !important;
}

/* ============================================
   Footer Link Anpassungen
   ============================================ */

.elementor-location-footer .elementor-item {
    color: #FFFFFFCC !important;
    transition: color 0.3s ease;
}

.elementor-location-footer .elementor-item:hover {
    color: var(--accent-teal) !important;
}

.elementor-location-footer a {
    color: #FFFFFFCC !important;
}

.elementor-location-footer a:hover {
    color: var(--accent-teal) !important;
}

.elementor-location-footer .elementor-element.elementor-element-de343ff .elementor-icon-list-item:first-child {
    white-space: nowrap;
}

@media (min-width: 1201px) {
    .elementor-location-footer .elementor-element.elementor-element-7c0ee9b > .e-con-inner > .elementor-element.elementor-element-b6ab770 {
        flex: 0 0 256px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-location-footer .elementor-element.elementor-element-7c0ee9b > .e-con-inner > .elementor-element.elementor-element-b6ab770 {
        flex: 0 0 256px;
    }
}

@media (min-width: 1400px) {
    .elementor-location-footer .elementor-element.elementor-element-7c0ee9b > .e-con-inner > .elementor-element.elementor-element-20495fb {
        flex: 0 0 305px;
    }

    .elementor-location-footer .elementor-element.elementor-element-7c0ee9b > .e-con-inner > .elementor-element.elementor-element-1bd0570 {
        flex: 0 0 250px;
    }

    .elementor-location-footer .elementor-element.elementor-element-7c0ee9b > .e-con-inner > .elementor-element.elementor-element-107112b {
        flex: 0 0 174px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .elementor-location-footer .elementor-element.elementor-element-7c0ee9b > .e-con-inner {
        flex-wrap: wrap;
        row-gap: 30px;
    }
}

/* ============================================
   Header Link Anpassungen (Sticky Header auf dunklem Hintergrund)
   ============================================ */

.elementor-location-header .elementor-item:hover,
.elementor-sticky--effects .elementor-item:hover {
    color: var(--accent-teal) !important;
}

/* ============================================
   Visual QA fixes: responsive layout & access
   ============================================ */

html,
body {
    max-width: 100%;
}

.elementor-heading-title,
.elementor-heading-title b,
.elementor-heading-title strong {
    overflow-wrap: anywhere;
}

/* Keep the homepage hero type fluid across Elementor's tablet breakpoint. */
.elementor-element-050554a .elementor-heading-title {
    font-size: clamp(2rem, 4.6vw, 4.125rem) !important;
    line-height: 1.1 !important;
}

/* Accessible labels added to legacy placeholder-only Elementor fields. */
.elementor-form .edv-crew-generated-label {
    display: block;
    flex-basis: 100%;
    margin: 0 0 0.45rem;
    color: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

/* Compact, unobtrusive presentation for the custom arithmetic spam check. */
.elementor-form .elementor-field-group-spam_check {
    margin-bottom: 8px !important;
}

.elementor-form .elementor-field-group-spam_check > .edv-crew-generated-label {
    display: none !important;
}

.elementor-form .elementor-field-group-spam_check > div {
    max-width: 320px !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    gap: 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    opacity: 0.78 !important;
}

.elementor-form .elementor-field-group-spam_check > div > div:first-child {
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
}

.elementor-form .elementor-field-group-spam_check > div > div:nth-child(2) {
    gap: 8px !important;
}

.elementor-form .elementor-field-group-spam_check > div > div:nth-child(2) > div {
    padding: 0 !important;
    gap: 6px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.elementor-form .elementor-field-group-spam_check #reset-math {
    width: 18px !important;
    height: 18px !important;
    padding: 13px !important;
    margin: -13px 0 -13px -13px !important;
    box-sizing: content-box !important;
    opacity: 0.55 !important;
}

.elementor-form .elementor-field-group-spam_check #math-question {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

.elementor-form .elementor-field-group-spam_check #math-answer {
    width: 64px !important;
    min-height: 44px !important;
    padding: 6px 8px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    font-size: 15px !important;
}

.elementor-form .elementor-field-group-spam_check #math-answer:focus {
    outline: 2px solid var(--accent-teal) !important;
    outline-offset: 2px !important;
}

.edv-crew-visually-hidden-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.elementor-form input:not([type="checkbox"]):not([type="radio"]),
.elementor-form select,
.elementor-form button,
.elementor-form .elementor-button {
    min-height: 44px;
}

/* Make wide comparison tables discoverable and keyboard-scrollable. */
.eael-data-table-wrap.edv-crew-scrollable-table {
    position: relative;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--ocean-blue) var(--medium-gray);
    scrollbar-width: auto;
}

.eael-data-table-wrap.edv-crew-scrollable-table:focus-visible {
    outline: 3px solid var(--accent-teal);
    outline-offset: 3px;
}

.edv-crew-table-scroll-hint {
    display: none;
}

/* Helpful recovery page instead of the parent theme's dead end. */
.edv-crew-404 {
    padding: clamp(3rem, 8vw, 7rem) 1rem;
    background: linear-gradient(145deg, #f5f7fa 0%, #e8edf3 100%);
}

.edv-crew-404__inner {
    width: min(100%, 780px);
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    background: #fff;
    border-top: 5px solid var(--accent-teal);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 31, 92, 0.12);
}

.edv-crew-404__eyebrow {
    margin: 0 0 0.5rem;
    color: var(--ocean-blue);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.edv-crew-404 h1 {
    margin: 0 0 1rem;
    color: var(--navy-blue);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.08;
}

.edv-crew-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 2.25rem;
}

.edv-crew-404__button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.15rem;
    border: 2px solid var(--ocean-blue);
    border-radius: 5px;
    color: var(--ocean-blue);
    font-weight: 700;
    text-decoration: none;
}

.edv-crew-404__button--primary,
.edv-crew-404__button:hover {
    background: var(--ocean-blue);
    color: #fff !important;
}

.edv-crew-404__search {
    padding-top: 1.5rem;
    border-top: 1px solid var(--medium-gray);
}

.edv-crew-404__search h2 {
    margin-top: 0;
    color: var(--navy-blue);
    font-size: 1.35rem;
}

.edv-crew-404 .search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.edv-crew-404 .search-field {
    min-width: min(100%, 280px);
    min-height: 44px;
    flex: 1 1 280px;
}

.edv-crew-404 .search-submit {
    min-height: 44px;
    padding-inline: 1.2rem;
    border-color: var(--accent-teal);
    background: var(--accent-teal);
    color: #fff;
}

.edv-crew-404__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1.5rem;
}

.edv-crew-404__links a {
    color: var(--ocean-blue);
    font-weight: 600;
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* The former 70 px widget margin forced the fourth main item onto a new row. */
    .elementor-location-header .elementor-element-5624420 > .elementor-widget-container {
        margin-right: 0 !important;
    }

    .elementor-location-header .elementor-element-5624420 {
        width: 100%;
        --e-nav-menu-horizontal-menu-item-margin: calc(10px / 2) !important;
    }
}

@media (max-width: 767px) {
    /* Keep the mobile control inside the 80 px header and make it a valid touch target. */
    .elementor-location-header .elementor-element-294ad74 {
        display: none !important;
    }

    .elementor-location-header .elementor-element-e929973 {
        top: 0 !important;
        min-height: 80px;
        z-index: 100000 !important;
        pointer-events: none;
    }

    .elementor-location-header .elementor-element-e929973 > .e-con-inner {
        min-height: 80px;
        justify-content: center !important;
        align-items: flex-end !important;
        padding: 0 15px !important;
    }

    .elementor-location-header .elementor-element-5624420 {
        width: auto !important;
        pointer-events: auto;
    }

    .elementor-location-header .elementor-element-5624420 > .elementor-widget-container {
        margin-right: 0 !important;
    }

    .elementor-location-header .elementor-element-5624420 .elementor-menu-toggle {
        width: 44px !important;
        height: 44px !important;
        padding: 8px !important;
        border: 2px solid rgba(255, 255, 255, 0.9) !important;
        border-radius: 5px !important;
        background: var(--ocean-blue) !important;
        color: #fff !important;
        box-shadow: 0 3px 10px rgba(0, 31, 92, 0.25);
    }

    .elementor-location-header .edv-crew-mobile-utility-start {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(0, 31, 92, 0.18);
    }

    .elementor-location-header .edv-crew-mobile-utility-item > a::before {
        content: '›';
        margin-right: 0.5rem;
        color: var(--accent-teal);
        font-weight: 700;
    }

    .edv-crew-table-scroll-hint {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        margin: 0 0 0.65rem;
        color: var(--text-gray);
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.35;
    }

    .edv-crew-table-scroll-hint::before {
        content: '↔';
        color: var(--ocean-blue);
        font-size: 1.25rem;
        line-height: 1;
    }

    .eael-data-table-wrap.edv-crew-scrollable-table th:first-child,
    .eael-data-table-wrap.edv-crew-scrollable-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background: #fff;
        box-shadow: 5px 0 8px -7px rgba(0, 31, 92, 0.55);
    }

    .eael-data-table-wrap.edv-crew-scrollable-table thead th:first-child {
        z-index: 3;
    }

    /* On small screens the floating control obscured table and form actions. */
    .scroll-to-top,
    .scroll-to-top.visible {
        display: none !important;
    }

    .edv-crew-404__actions {
        flex-direction: column;
    }

    .edv-crew-404__button {
        width: 100%;
    }
}

/* ============================================
   Partner logos & homepage Heise news
   ============================================ */

/* Let every logo keep its natural aspect ratio and use one fixed visual gap. */
.edv-crew-logo-carousel .swiper-wrapper {
    align-items: center;
}

.edv-crew-logo-carousel .swiper-slide {
    display: flex;
    width: auto !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.edv-crew-logo-carousel .swiper-slide-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.edv-crew-logo-carousel .swiper-slide-image {
    --edv-logo-height: 40px;
    width: auto !important;
    max-width: none !important;
    height: var(--edv-logo-height) !important;
    object-fit: contain;
}

/* Compensate transparent canvas space in the individual source files. */
.edv-crew-logo-carousel img[src*="fach-microsoft-1.png"] {
    --edv-logo-height: 50px;
}

.edv-crew-logo-carousel img[src*="Yeastar_Logo.png"] {
    --edv-logo-height: 58px;
}

.edv-crew-logo-carousel img[src*="easybell-1.png"] {
    --edv-logo-height: 96px;
}

.edv-crew-logo-carousel img[src*="Yealink_logo_logotype"] {
    --edv-logo-height: 42px;
}

.edv-crew-logo-carousel img[src*="Snom_logo_logotype"] {
    --edv-logo-height: 46px;
}

.edv-crew-logo-carousel img[src*="auerswald3-1.png"] {
    --edv-logo-height: 92px;
}

/* Share one central axis across the Heise intro and the news widget below. */
body.page-id-3605 .elementor-element-7452122 {
    width: 100% !important;
    max-width: 1140px;
    margin-inline: auto;
    align-items: center;
}

body.page-id-3605 .elementor-element-b5db228,
body.page-id-3605 .elementor-element-b5db228 .elementor-heading-title,
body.page-id-3605 .elementor-element-1425402,
body.page-id-3605 .elementor-element-1425402 .elementor-widget-container {
    width: 100%;
    text-align: center !important;
}

@media (max-width: 1024px) {
    .edv-crew-logo-carousel .swiper-slide-image {
        height: calc(var(--edv-logo-height) * 0.875) !important;
    }
}

@media (max-width: 767px) {
    .edv-crew-logo-carousel .swiper-slide-image {
        height: calc(var(--edv-logo-height) * 0.8) !important;
    }

    body.page-id-3605 .elementor-element-7452122 {
        padding-inline: 15px;
    }
}
