/*
 Theme Name:   Astra Child - Smok & Zahn
 Theme URI:    https://sz-kaelteklima.de
 Description:  Schlankes Child-Theme für Smok & Zahn Kälte Klima GmbH. Performance-optimiert, ohne Ballast.
 Author:       Smok & Zahn
 Author URI:   https://sz-kaelteklima.de
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  astra-child-sz
*/

/* ==========================================================================
   CSS-Variablen / Farbschema
   ========================================================================== */
:root {
    --sz-primary: #046289;
    --sz-primary-dark: #035070;
    --sz-primary-light: #0891B2;
    --sz-text-dark: #1B1B1B;
    --sz-text-light: #4B5563;
    --sz-bg-light: #F5F7FA;
    --sz-bg-white: #FFFFFF;
    --sz-accent: #F59E0B;
    --sz-success: #10B981;
    --sz-border: #E5E7EB;
    --sz-radius: 8px;
    --sz-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --sz-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Basis-Styles
   ========================================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--sz-text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.ast-primary-header-bar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Sticky Header Schatten */
.ast-header-sticked .ast-primary-header-bar {
    box-shadow: var(--sz-shadow);
}

/* Navigation Links */
.ast-header-break-point .main-header-menu .menu-link,
.main-header-menu > .menu-item > .menu-link {
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.main-header-menu > .menu-item > .menu-link:hover {
    color: var(--sz-primary) !important;
}

/* Header CTA Button */
.ast-header-button-1 .ast-custom-button {
    background-color: var(--sz-primary) !important;
    color: #fff !important;
    border-radius: var(--sz-radius) !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.ast-header-button-1 .ast-custom-button:hover {
    background-color: var(--sz-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--sz-shadow);
}

/* ==========================================================================
   Buttons (Global)
   ========================================================================== */
.wp-block-button__link,
.uagb-infobox-cta-link,
.ast-custom-button {
    border-radius: var(--sz-radius) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wp-block-button__link:hover,
.uagb-infobox-cta-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--sz-shadow-lg);
}

/* Primärer Button */
.wp-block-button.is-style-fill .wp-block-button__link {
    background-color: var(--sz-primary);
    color: #fff;
}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background-color: var(--sz-primary-dark);
}

/* Outline Button */
.wp-block-button.is-style-outline .wp-block-button__link {
    border: 2px solid var(--sz-primary);
    color: var(--sz-primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--sz-primary);
    color: #fff;
}

/* ==========================================================================
   Sektionen / Container
   ========================================================================== */
.sz-section {
    padding: 80px 0;
}

.sz-section-gray {
    background-color: var(--sz-bg-light);
}

/* Spectra Container Verbesserungen */
.uagb-container-inner-blocks-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Hero-Bereich
   ========================================================================== */
.sz-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.sz-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(4, 98, 137, 0.9) 0%, rgba(3, 80, 112, 0.7) 100%);
    z-index: 1;
}

/* ==========================================================================
   Info-Boxen / Service-Karten
   ========================================================================== */
.uagb-infobox__content-wrap {
    border-radius: var(--sz-radius);
    transition: all 0.3s ease;
}

.uagb-infobox__content-wrap:hover {
    transform: translateY(-4px);
    box-shadow: var(--sz-shadow-lg);
}

/* Service Nummerierung */
.uagb-ifb-title-prefix {
    color: var(--sz-primary) !important;
    font-weight: 700;
}

/* ==========================================================================
   Counter / Statistiken
   ========================================================================== */
.wp-block-uagb-counter .wp-block-uagb-counter__number {
    color: var(--sz-primary);
    font-weight: 800;
}

.wp-block-uagb-counter .wp-block-uagb-counter__title {
    color: var(--sz-text-light);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.uagb-tm__content {
    border-radius: var(--sz-radius);
    padding: 30px;
}

.uagb-tm__desc {
    font-style: italic;
    line-height: 1.8;
}

/* Star Rating */
.uag-star-rating .uag-star {
    color: var(--sz-accent);
}

/* ==========================================================================
   Kontaktformular (SureForms oder eigenes)
   ========================================================================== */
.srfm-form-container input[type="text"],
.srfm-form-container input[type="email"],
.srfm-form-container textarea,
.sz-contact-form input[type="text"],
.sz-contact-form input[type="email"],
.sz-contact-form textarea {
    border: 1px solid var(--sz-border);
    border-radius: var(--sz-radius);
    padding: 12px 16px;
    width: 100%;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.srfm-form-container input:focus,
.srfm-form-container textarea:focus,
.sz-contact-form input:focus,
.sz-contact-form textarea:focus {
    border-color: var(--sz-primary);
    box-shadow: 0 0 0 3px rgba(4, 98, 137, 0.15);
    outline: none;
}

.sz-contact-form button[type="submit"] {
    background-color: var(--sz-primary);
    color: #fff;
    border: none;
    border-radius: var(--sz-radius);
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.sz-contact-form button[type="submit"]:hover {
    background-color: var(--sz-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--sz-shadow);
}

/* Erfolgsmeldung */
.sz-form-success {
    background-color: #D1FAE5;
    color: #065F46;
    padding: 16px 20px;
    border-radius: var(--sz-radius);
    border-left: 4px solid var(--sz-success);
    margin-top: 16px;
}

/* ==========================================================================
   Team-Bereich
   ========================================================================== */
.sz-team-card {
    text-align: center;
    padding: 30px 20px;
}

.sz-team-card img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 16px;
}

/* ==========================================================================
   Partner-Logos
   ========================================================================== */
.sz-partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.sz-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ast-footer-copyright {
    font-size: 14px;
    color: var(--sz-text-light);
}

/* ==========================================================================
   Responsive Anpassungen
   ========================================================================== */
@media (max-width: 921px) {
    .sz-hero {
        min-height: 400px;
    }
    
    .sz-section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 32px !important;
    }
    
    h2 {
        font-size: 26px !important;
    }
}

@media (max-width: 544px) {
    .sz-hero {
        min-height: 350px;
    }
    
    h1 {
        font-size: 28px !important;
    }
    
    .wp-block-uagb-counter .wp-block-uagb-counter__number {
        font-size: 36px;
    }
}

/* ==========================================================================
   Google Maps
   ========================================================================== */
.sz-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--sz-radius);
}

/* ==========================================================================
   Animationen (dezent)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    .uagb-infobox__content-wrap,
    .wp-block-button__link,
    .sz-team-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
}

/* ==========================================================================
   Print-Styles
   ========================================================================== */
@media print {
    .ast-primary-header-bar,
    .ast-footer-overlay,
    .wp-block-button {
        display: none !important;
    }
}
