/*
 Theme Name:   Traub-Maler AG
 Theme URI:    https://maler-traub.elsahost.ch
 Description:  Modernes Child Theme für Traub-Maler AG – Eidg. dipl. Malermeister
 Author:       Traub-Maler AG
 Author URI:   https://maler-traub.elsahost.ch
 Template:     kadence
 Version:      2.4.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  traub-maler
*/

/* ============================================
   TRAUB-MALER AG – Custom Design System
   ============================================ */

/* === CSS Custom Properties (Design Tokens) === */
:root {
    /* Brand Colors */
    --tm-blue: #2B5EA7;
    --tm-blue-dark: #1E4478;
    --tm-blue-light: #4A7AB5;
    --tm-red: #C8232C;
    --tm-red-dark: #A01B22;
    --tm-yellow: #F5C518;
    --tm-yellow-dark: #D4A80E;

    /* Neutrals */
    --tm-white: #FFFFFF;
    --tm-off-white: #F8F9FA;
    --tm-gray-100: #F1F3F5;
    --tm-gray-200: #E9ECEF;
    --tm-gray-300: #DEE2E6;
    --tm-gray-400: #CED4DA;
    --tm-gray-500: #ADB5BD;
    --tm-gray-600: #6C757D;
    --tm-gray-700: #495057;
    --tm-gray-800: #343A40;
    --tm-gray-900: #212529;

    /* Typography */
    --tm-font-heading: 'Inter', 'Segoe UI', sans-serif;
    --tm-font-body: 'Inter', 'Segoe UI', sans-serif;

    /* Spacing */
    --tm-section-padding: clamp(60px, 8vw, 120px);
    --tm-container-max: 1200px;

    /* Transitions */
    --tm-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tm-transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --tm-header-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Header */
    --tm-header-height: 120px;
    --tm-header-height-scrolled: 75px;

    /* Shadows */
    --tm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --tm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --tm-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --tm-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --tm-radius-sm: 6px;
    --tm-radius-md: 12px;
    --tm-radius-lg: 20px;
}

/* === Google Fonts === */
/* Loaded via wp_enqueue_style in functions.php for better performance */

/* === Global Styles === */
body {
    font-family: var(--tm-font-body);
    color: var(--tm-gray-800);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--tm-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tm-gray-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: 1.05rem;
    color: var(--tm-gray-700);
    max-width: 70ch;
}

/* === Links & Buttons === */
a {
    color: var(--tm-blue);
    text-decoration: none;
    transition: var(--tm-transition);
}

a:hover {
    color: var(--tm-blue-dark);
}

/* Primary Button */
.wp-block-button__link,
.tm-btn-primary {
    background: linear-gradient(135deg, var(--tm-blue), var(--tm-blue-dark)) !important;
    color: var(--tm-white) !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: var(--tm-radius-sm) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    letter-spacing: 0.3px;
    transition: var(--tm-transition) !important;
    box-shadow: var(--tm-shadow-md);
    cursor: pointer;
    display: inline-block;
    text-transform: none;
}

.wp-block-button__link:hover,
.tm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--tm-shadow-lg) !important;
    background: linear-gradient(135deg, var(--tm-blue-light), var(--tm-blue)) !important;
}

/* Secondary Button */
.tm-btn-secondary,
.is-style-outline .wp-block-button__link {
    background: var(--tm-white) !important;
    color: var(--tm-blue) !important;
    border: 2px solid var(--tm-blue) !important;
    padding: 12px 30px !important;
    border-radius: var(--tm-radius-sm) !important;
    font-weight: 600 !important;
    transition: var(--tm-transition) !important;
}

.tm-btn-secondary:hover,
.is-style-outline .wp-block-button__link:hover {
    background: var(--tm-blue) !important;
    color: var(--tm-white) !important;
    transform: translateY(-2px);
}

/* Hero-specific outline button – more visible on dark background */
.tm-hero .is-style-outline .wp-block-button__link,
.tm-hero .tm-btn-secondary {
    color: var(--tm-white) !important;
    border: 2.5px solid rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tm-hero .is-style-outline .wp-block-button__link:hover,
.tm-hero .tm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: var(--tm-white) !important;
    color: var(--tm-white) !important;
    transform: translateY(-2px);
}

/* Fix: overflow:hidden/clip auf Kadence-/WP-Wrappern bricht position:sticky */
#wrapper,
.wp-site-blocks,
.wp-site-blocks > *,
#page,
#main,
.content-area,
.site-content,
.entry-content,
.site,
html {
    overflow: visible !important;
    overflow-x: clip !important;
}

/* === Header === */
.site-header {
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: var(--tm-header-transition);
    overflow: visible !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Prevent Kadence inner elements from going transparent on scroll-back */
.site-header .site-header-wrap,
.site-header .site-header-inner-wrap,
.site-header .site-header-row-container-inner,
.site-header .site-main-header-wrap {
    background: transparent !important;
    overflow: visible !important;
}

/* Scrolled state: solid white + elevated shadow + subtle border */
.site-header.tm-header-scrolled {
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Logo – contained within header, scales on scroll */
.site-main-header-inner-wrap {
    height: var(--tm-header-height) !important;
    max-height: var(--tm-header-height) !important;
    overflow: visible !important;
    transition: var(--tm-header-transition);
}

.site-header.tm-header-scrolled .site-main-header-inner-wrap,
.site-header.item-is-fixed .site-main-header-inner-wrap {
    height: var(--tm-header-height-scrolled) !important;
    max-height: var(--tm-header-height-scrolled) !important;
}

.site-branding {
    overflow: visible !important;
    position: relative;
    z-index: 100;
    display: flex !important;
    align-items: center !important;
    height: var(--tm-header-height) !important;
    min-width: 270px;
    transition: var(--tm-header-transition);
}

.site-header.tm-header-scrolled .site-branding,
.site-header.item-is-fixed .site-branding {
    height: var(--tm-header-height-scrolled) !important;
}

.site-branding .brand {
    display: block !important;
    overflow: visible !important;
    position: relative;
    height: var(--tm-header-height) !important;
    transition: var(--tm-header-transition);
}

.site-header.tm-header-scrolled .site-branding .brand,
.site-header.item-is-fixed .site-branding .brand {
    height: var(--tm-header-height-scrolled) !important;
}

/* Logo: inline im Flow, höhenbasiert damit es im Header bleibt */
.site-branding .custom-logo {
    display: block !important;
    position: relative !important;
    width: auto !important;
    height: 95px !important;
    max-height: 95px !important;
    max-width: none !important;
    z-index: 100;
    transition: var(--tm-header-transition);
}

/* Logo: kompakt wenn scrolled */
.site-header.tm-header-scrolled .site-branding .custom-logo,
.site-header.item-is-fixed .site-branding .custom-logo {
    width: auto !important;
    height: 60px !important;
    max-height: 60px !important;
}

/* Navigation Links */
.header-navigation .menu-item>a {
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.5px;
    color: var(--tm-gray-800) !important;
    transition: color var(--tm-transition), transform var(--tm-transition);
    position: relative;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.header-navigation .menu-item>a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tm-blue), var(--tm-blue-light));
    transition: width var(--tm-transition);
    transform: translateX(-50%);
    border-radius: 1px;
}

/* Hover: underline expands + micro-lift */
.header-navigation .menu-item>a:hover::after {
    width: 100%;
}

.header-navigation .menu-item>a:hover {
    color: var(--tm-blue) !important;
    transform: translateY(-1px);
}

/* Active nav item: pill instead of underline */
.header-navigation .menu-item.current-menu-item>a::after {
    display: none;
}

/* Active nav item: pill highlight */
.header-navigation .menu-item.current-menu-item>a {
    background: var(--tm-blue) !important;
    color: var(--tm-white) !important;
    border-radius: var(--tm-radius-sm);
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.header-navigation .menu-item.current-menu-item>a:hover {
    transform: none;
}

/* === Mobile Hamburger Toggle (3-bar icon) === */
.tm-mobile-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid var(--tm-blue);
    border-radius: var(--tm-radius-sm);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    position: relative;
    z-index: 1100;
    transition: border-color var(--tm-transition), background var(--tm-transition);
    flex-shrink: 0;
}

.tm-mobile-toggle:hover {
    background: rgba(43, 94, 167, 0.1);
}

/* Hamburger bars */
.tm-mobile-toggle .tm-bar {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--tm-blue);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Transform to X when active */
.tm-mobile-toggle.is-active .tm-bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.tm-mobile-toggle.is-active .tm-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.tm-mobile-toggle.is-active .tm-bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* === Mobile Menu Overlay === */
.tm-mobile-overlay {
    position: fixed;
    top: var(--tm-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.tm-mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Adjust top when header is scrolled (smaller) */
.site-header.tm-header-scrolled ~ .tm-mobile-overlay,
.tm-mobile-overlay.tm-scrolled-top {
    top: var(--tm-header-height-scrolled);
}

.tm-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tm-mobile-nav a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--tm-gray-800);
    text-decoration: none;
    border-radius: var(--tm-radius-sm);
    transition: background var(--tm-transition), color var(--tm-transition);
}

.tm-mobile-nav a:hover,
.tm-mobile-nav a.is-active {
    background: rgba(43, 94, 167, 0.08);
    color: var(--tm-blue);
}

.tm-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--tm-gray-200);
    margin-top: 1.5rem;
}

.tm-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--tm-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--tm-transition);
}

.tm-mobile-cta .tm-btn-mobile-primary {
    background: linear-gradient(135deg, var(--tm-blue), var(--tm-blue-dark));
    color: var(--tm-white);
    box-shadow: var(--tm-shadow-md);
}

.tm-mobile-cta .tm-btn-mobile-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--tm-shadow-lg);
}

.tm-mobile-cta .tm-btn-mobile-secondary {
    background: transparent;
    color: var(--tm-blue);
    border: 1.5px solid var(--tm-gray-300);
}

.tm-mobile-cta .tm-btn-mobile-secondary:hover {
    border-color: var(--tm-blue);
    background: rgba(43, 94, 167, 0.05);
}

/* Body scroll lock when mobile menu is open */
body.tm-menu-open {
    overflow: hidden !important;
}

/* === Kadence Mobile Drawer Override === */
/* Hide Kadence's default dark popup drawer entirely */
.popup-drawer,
.kadence-mobile-drawer,
.mobile-drawer-overlay,
.drawer-overlay,
body.showing-popup-drawer-from-right .popup-drawer,
body.showing-popup-drawer-from-left .popup-drawer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Prevent Kadence drawer body classes from doing anything */
body.showing-popup-drawer-from-right,
body.showing-popup-drawer-from-left {
    overflow: auto !important;
}

/* Hide Kadence's own mobile toggle button */
.menu-toggle,
.mobile-toggle-open,
#mobile-toggle,
.site-header .menu-toggle-open,
.kadence-menu-toggle-togle {
    display: none !important;
}

/* Mobile overlay logo area */
.tm-mobile-overlay-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--tm-gray-200);
}

.tm-mobile-overlay-header img {
    height: 48px;
    width: auto;
    display: block;
}

/* === Mobile Layout Fixes === */
@media (max-width: 768px) {

    /* Show our custom hamburger toggle */
    .tm-mobile-toggle {
        display: flex !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }

    /* Hide desktop navigation */
    .header-navigation,
    .site-header .header-navigation {
        display: none !important;
    }

    /* Force logo to be visible on mobile */
    .site-header .site-header-item[data-section="title_tagline"],
    .site-header .site-header-section-left,
    .site-header .site-branding,
    .site-header .site-branding .brand,
    .site-header .site-header-item {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        display: flex !important;
        align-items: center !important;
        overflow: visible !important;
    }

    /* Logo sizing on mobile */
    .site-branding .custom-logo {
        height: 60px !important;
        width: auto !important;
        max-width: 240px !important;
        display: block !important;
    }

    .site-header.tm-header-scrolled .site-branding .custom-logo {
        height: 48px !important;
    }

    /* Header row layout on mobile: logo left, hamburger right */
    .site-main-header-inner-wrap,
    .site-header-row-container-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 12px !important;
    }

    /* Adjust header heights for mobile */
    .site-main-header-inner-wrap {
        height: 130px !important;
        max-height: 130px !important;
    }

    .site-header.tm-header-scrolled .site-main-header-inner-wrap {
        height: 80px !important;
        max-height: 80px !important;
    }

    .site-branding,
    .site-branding .brand {
        height: 130px !important;
    }

    .site-header.tm-header-scrolled .site-branding,
    .site-header.tm-header-scrolled .site-branding .brand {
        height: 80px !important;
    }

    /* Mobile overlay: use device-safe top */
    .tm-mobile-overlay {
        top: 130px;
    }

    .tm-mobile-overlay.tm-scrolled-top {
        top: 80px;
    }

    /* Hide any other Kadence mobile elements we don't want */
    .site-header .site-header-item[data-section="popup:mobile"] {
        display: none !important;
    }

    /* Kadence mobile header container — make it visible with our content */
    #mobile-header {
        display: block !important;
        overflow: visible !important;
    }

    #mobile-header .site-header-row-container-inner,
    #mobile-header .site-main-header-inner-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 130px !important;
        padding: 0 12px !important;
        overflow: visible !important;
    }

    .site-header.tm-header-scrolled #mobile-header .site-header-row-container-inner,
    .site-header.tm-header-scrolled #mobile-header .site-main-header-inner-wrap {
        height: 80px !important;
    }

    /* Our custom mobile header row */
    .tm-mobile-header-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 100% !important;
    }

    .tm-mobile-logo img {
        height: 120px !important;
        width: auto !important;
        transition: height 0.3s ease;
    }

    .site-header.tm-header-scrolled .tm-mobile-logo img {
        height: 80px !important;
    }

    /* Hide desktop header on mobile */
    #main-header {
        display: none !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-main-header-inner-wrap,
    .site-branding,
    .site-branding .brand,
    .site-branding .custom-logo,
    .header-navigation .menu-item>a,
    .header-navigation .menu-item>a::after,
    .tm-mobile-toggle svg,
    .tm-mobile-toggle .tm-hamburger-path,
    .tm-mobile-overlay {
        transition: none !important;
    }
}

/* === Hero Section === */
.tm-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tm-hero::before {
    display: none;
}

/* Remove WordPress Cover Block's built-in blue overlay (hero only) */
.wp-block-cover:first-of-type > .wp-block-cover__background {
    display: none !important;
}

/* Wave divider at bottom of hero */
.tm-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--tm-off-white);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
    pointer-events: none;
}

.tm-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.tm-hero h1 {
    color: var(--tm-white) !important;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tm-hero h2 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tm-hero p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6), 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* All text inside WP cover block hero */
.wp-block-cover__inner-container,
.wp-block-cover__inner-container h1,
.wp-block-cover__inner-container h2,
.wp-block-cover__inner-container h3,
.wp-block-cover__inner-container p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.wp-block-cover__inner-container .wp-block-button__link {
    text-shadow: none;
}

/* === Section Styles === */
.tm-section {
    padding: var(--tm-section-padding) 0;
}

.tm-section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.tm-section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tm-blue), var(--tm-red));
    margin: 16px auto 0;
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.tm-section-title.tm-visible::after {
    width: 60px;
}

.tm-section-subtitle {
    text-align: center;
    color: var(--tm-gray-600) !important;
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 3rem;
}

/* === Stats / Key Numbers === */
.tm-stats-section {
    position: relative;
    background-image: url('https://maler-traub.elsahost.ch/wp-content/uploads/2026/02/team-team-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--tm-section-padding) 0;
}

.tm-stats-section::before {
    display: none;
}

.tm-stats-section .container-default {
    position: relative;
    z-index: 2;
}

.tm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.tm-stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--tm-radius-md);
    padding: 2rem 1.5rem;
    transition: var(--tm-transition);
}

.tm-stat-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}

.tm-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--tm-gray-900) !important;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.tm-stat-label {
    font-size: 0.95rem;
    color: var(--tm-gray-700) !important;
    font-weight: 500;
}

/* === Google Review Stat Item === */
a.tm-stat-google-review {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    grid-column: span 2;
    transition: var(--tm-transition);
}

a.tm-stat-google-review:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tm-google-review-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.tm-google-review-stars {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tm-google-icon {
    flex-shrink: 0;
}

.tm-google-stars-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tm-google-rating {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--tm-gray-900) !important;
    line-height: 1;
}

.tm-stars {
    display: flex;
    gap: 2px;
}

.tm-stars svg {
    filter: drop-shadow(0 1px 2px rgba(251, 188, 5, 0.3));
}

a.tm-stat-google-review .tm-stat-label {
    font-size: 0.95rem;
    color: var(--tm-gray-700) !important;
    font-weight: 500;
}

/* Mobile: Google review goes full width */
@media (max-width: 768px) {
    a.tm-stat-google-review {
        grid-column: 1 / -1;
    }
}

/* === Service Cards === */
.tm-service-card {
    position: relative;
    border-radius: var(--tm-radius-md);
    overflow: hidden;
    min-height: 320px;
    box-shadow: var(--tm-shadow-md);
    transition: var(--tm-transition);
    border: none !important;
    /* Fallback gradient when no photo is set */
    background-image: linear-gradient(135deg, var(--tm-blue), var(--tm-blue-dark));
    background-size: cover;
    background-position: center;
}

.tm-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(15, 35, 70, 0.88) 0%,
            rgba(15, 35, 70, 0.3) 60%,
            transparent 100%);
    transition: var(--tm-transition);
    z-index: 1;
}

.tm-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tm-shadow-xl);
}

.tm-service-card:hover::before {
    background: linear-gradient(to top,
            rgba(15, 35, 70, 0.92) 0%,
            rgba(43, 94, 167, 0.4) 60%,
            transparent 100%);
}

.tm-service-card-glass {
    position: relative;
    margin-top: 220px;
    padding: 1.5rem;
    background: var(--tm-blue-dark);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: none;
    z-index: 2;
}

.tm-service-card-glass h3 {
    color: var(--tm-white) !important;
    font-size: 1.2rem !important;
    margin-bottom: 0.8rem;
}



.tm-service-card-glass p {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.9rem !important;
    line-height: 1.5;
    margin: 0;
    max-width: none;
}

/* Legacy service card (icon+text style, kept for fallback) */
.tm-service-card .tm-service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--tm-blue), var(--tm-blue-light));
    border-radius: var(--tm-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--tm-white);
    font-size: 1.5rem;
}

/* === Social Banner Section === */
.tm-social-banner {
    background: var(--tm-white);
    position: relative;
    z-index: 5;
    padding: 60px 0;
}

.tm-social-banner-inner {
    max-width: var(--tm-container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

.tm-social-banner-bubble {
    position: relative;
    background: var(--tm-yellow);
    padding: 2rem 2.5rem;
    border: 3px solid var(--tm-gray-900);
    border-radius: var(--tm-radius-sm);
    transform: rotate(-3deg);
    box-shadow: 6px 6px 0 var(--tm-gray-900);
    flex-shrink: 0;
}

.tm-social-banner-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 35px;
    border-width: 20px 20px 0 0;
    border-style: solid;
    border-color: var(--tm-yellow) transparent transparent transparent;
    display: block;
    width: 0;
}

.tm-social-banner-bubble::before {
    content: '';
    position: absolute;
    bottom: -26px;
    right: 32px;
    border-width: 25px 25px 0 0;
    border-style: solid;
    border-color: var(--tm-gray-900) transparent transparent transparent;
    display: block;
    width: 0;
    z-index: -1;
}

.tm-social-banner-bubble h3 {
    margin: 0;
    font-size: 2.4rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--tm-gray-900) !important;
}

.tm-social-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 650px;
}

.tm-social-banner-icons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    padding-top: 4px;
}

.tm-social-banner-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: var(--tm-white) !important;
    transition: transform var(--tm-transition), box-shadow var(--tm-transition);
}

.tm-social-banner-icons a:hover {
    transform: translateY(-4px);
    box-shadow: var(--tm-shadow-md);
}

.tm-social-ig-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.tm-social-fb-btn {
    background: #1877F2;
}

.tm-social-banner-text p.tm-social-lead {
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1.3;
    color: var(--tm-gray-900) !important;
    margin-bottom: 0.5rem;
}

.tm-social-banner-text p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--tm-gray-700) !important;
}

@media (max-width: 900px) {
    .tm-social-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 3.5rem;
    }
    
    .tm-social-banner-bubble {
        transform: rotate(0);
        margin: 0 auto;
    }

    .tm-social-banner-bubble::after,
    .tm-social-banner-bubble::before {
        right: 50%;
        transform: translateX(50%);
    }

    .tm-social-banner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tm-social-banner-icons {
        flex-direction: row;
        padding-top: 0;
        margin-bottom: 1rem;
    }
}

/* === About / Portrait Section === */
.tm-about-section {
    background: var(--tm-off-white);
}

.tm-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Graceful degradation: if only one column has content, go full-width */
.tm-about-content > :only-child {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
}

.tm-about-image {
    border-radius: var(--tm-radius-lg);
    overflow: hidden;
    box-shadow: var(--tm-shadow-lg);
}

.tm-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--tm-transition-slow);
}

.tm-about-image:hover img {
    transform: scale(1.03);
}

/* === Leitsätze Accordion === */
.tm-leitsaetze {
    background: var(--tm-off-white);
}

.tm-accordion {
    max-width: 860px;
    margin: 0 auto;
}

.tm-accordion-item {
    border-bottom: 1px solid var(--tm-gray-200);
}

.tm-accordion-item:first-child {
    border-top: 1px solid var(--tm-gray-200);
}

.tm-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--tm-font-heading);
}

.tm-accordion-trigger:hover .tm-accordion-title {
    color: var(--tm-blue);
}

.tm-accordion-number {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--tm-red);
    min-width: 2.5rem;
    line-height: 1;
}

.tm-accordion-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tm-gray-900);
    flex: 1;
    transition: color var(--tm-transition);
}

.tm-chevron {
    flex-shrink: 0;
    transition: transform var(--tm-transition);
    color: var(--tm-gray-500);
}

.tm-accordion-item.is-open .tm-chevron {
    transform: rotate(180deg);
    color: var(--tm-blue);
}

.tm-accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 4rem;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s ease;
    color: var(--tm-gray-600);
    font-size: 1rem;
    line-height: 1.7;
}

.tm-accordion-item.is-open .tm-accordion-body {
    max-height: 800px;
    padding: 0 0 1.5rem 4rem;
}

/* === Referenzen / Gallery === */
.tm-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.tm-filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    background: var(--tm-gray-200);
    color: var(--tm-gray-700);
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: var(--tm-font-body);
    transition: var(--tm-transition);
}

.tm-filter-btn.is-active,
.tm-filter-btn:hover {
    background: var(--tm-blue);
    color: var(--tm-white);
}

.tm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tm-gallery-item {
    position: relative;
    border-radius: var(--tm-radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--tm-shadow-md);
    transition: var(--tm-transition);
    cursor: zoom-in;
}

.tm-gallery-item.is-hidden {
    display: none;
}

.tm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--tm-transition-slow);
}

.tm-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: var(--tm-transition);
}

.tm-gallery-item:hover img {
    transform: scale(1.08);
}

.tm-gallery-item:hover::after {
    opacity: 1;
}

/* === Partner Logos Marquee === */
.tm-partners {
    background: var(--tm-off-white);
    padding: 3rem 0;
    overflow: hidden;
}

.tm-partners-header {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tm-gray-500);
}

.tm-partners-track-wrap {
    overflow: hidden;
    position: relative;
}

/* Fade edges */
.tm-partners-track-wrap::before,
.tm-partners-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.tm-partners-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--tm-off-white), transparent);
}

.tm-partners-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--tm-off-white), transparent);
}

@keyframes tm-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.tm-partners-track {
    display: flex;
    width: max-content;
    animation: tm-marquee 28s linear infinite;
}

.tm-partners-track-wrap:hover .tm-partners-track {
    animation-play-state: paused;
}

.tm-partners-logo {
    min-width: 180px;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: var(--tm-transition);
    font-weight: 600;
    color: var(--tm-gray-600);
    font-size: 1rem;
    white-space: nowrap;
}

.tm-partners-logo:hover {
    opacity: 1;
    filter: none;
    color: var(--tm-blue);
}

.tm-partners-logo img {
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
    .tm-partners-track {
        animation: none;
    }
}

/* === Offerten-Kalkulator === */
.tm-kalkulator {
    background: var(--tm-gray-100);
}

.tm-kalkulator-frame-wrap {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--tm-radius-lg);
    overflow: hidden;
    box-shadow: var(--tm-shadow-xl);
    background: var(--tm-white);
}

/* Fallback for old iOS Safari */
@supports not (aspect-ratio: 4/3) {
    .tm-kalkulator-frame-wrap {
        padding-bottom: 75%;
        height: 0;
    }
}

.tm-kalkulator-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tm-kalkulator-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--tm-gray-100);
    transition: opacity 0.4s ease;
    z-index: 1;
}

.tm-kalkulator-loader p {
    color: var(--tm-gray-500);
    font-size: 0.9rem;
    margin: 0;
    max-width: none;
}

.tm-kalkulator-frame-wrap.is-loaded .tm-kalkulator-loader {
    opacity: 0;
    pointer-events: none;
}

/* Kalkulator-iframe ausgeblendet bis Tool verfügbar */
.tm-kalkulator-frame-wrap {
    display: none !important;
}

@keyframes tm-spin {
    to {
        transform: rotate(360deg);
    }
}

.tm-kalkulator-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--tm-gray-300);
    border-top-color: var(--tm-blue);
    border-radius: 50%;
    animation: tm-spin 0.8s linear infinite;
}

/* === Contact Section === */
.tm-contact-section {
    background: var(--tm-gray-900);
    color: var(--tm-white);
}

.tm-contact-section h2 {
    color: var(--tm-white) !important;
}

.tm-contact-section p {
    color: var(--tm-gray-400) !important;
}

.tm-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tm-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tm-contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(43, 94, 167, 0.2);
    border-radius: var(--tm-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-blue-light);
    flex-shrink: 0;
}

/* === Footer === */
.site-footer {
    background: var(--tm-gray-900) !important;
    color: var(--tm-gray-400);
    padding: 0 !important;
}

.site-footer a {
    color: var(--tm-gray-400) !important;
    transition: var(--tm-transition);
}

.site-footer a:hover {
    color: var(--tm-white) !important;
}

/* === Professional Footer (Custom) === */
.tm-footer {
    background: var(--tm-gray-900);
    color: var(--tm-gray-400);
    padding: 4rem 0 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.tm-footer-inner {
    max-width: var(--tm-container-max);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr;
    gap: 3rem;
}

/* Footer Logo */
.tm-footer-logo {
    height: 70px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
    transition: opacity var(--tm-transition);
}

.tm-footer-logo:hover {
    opacity: 0.85;
}

.tm-footer-tagline {
    color: var(--tm-gray-500) !important;
    font-size: 0.9rem !important;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    max-width: 320px;
}

/* Footer Social Icons */
.tm-footer-socials {
    display: flex;
    gap: 10px;
}

.tm-footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--tm-gray-400) !important;
    transition: var(--tm-transition);
}

.tm-footer-social-icon:hover {
    background: var(--tm-blue);
    color: var(--tm-white) !important;
    transform: translateY(-2px);
}

/* Footer Column Headings */
.tm-footer-heading {
    color: var(--tm-white) !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.tm-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--tm-blue), var(--tm-blue-light));
    border-radius: 1px;
}

/* Footer Contact List */
.tm-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tm-footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.85rem;
    color: var(--tm-gray-400);
}

.tm-footer-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--tm-blue-light);
    opacity: 0.7;
}

.tm-footer-list li a {
    color: var(--tm-gray-400) !important;
    text-decoration: none;
}

.tm-footer-list li a:hover {
    color: var(--tm-white) !important;
}

/* Footer Quick Links */
.tm-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tm-footer-links li {
    margin-bottom: 0.6rem;
}

.tm-footer-links li a {
    color: var(--tm-gray-400) !important;
    text-decoration: none;
    position: relative;
    transition: color var(--tm-transition), padding-left var(--tm-transition);
}

.tm-footer-links li a::before {
    content: '›';
    position: absolute;
    left: -14px;
    opacity: 0;
    color: var(--tm-blue-light);
    font-weight: 700;
    transition: opacity var(--tm-transition), left var(--tm-transition);
}

.tm-footer-links li a:hover {
    color: var(--tm-white) !important;
    padding-left: 14px;
}

.tm-footer-links li a:hover::before {
    opacity: 1;
    left: 0;
}

/* Footer Bottom Bar */
.tm-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
    max-width: var(--tm-container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tm-footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--tm-gray-600) !important;
}

.tm-footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.tm-footer-legal a {
    color: var(--tm-gray-500) !important;
    text-decoration: none;
    transition: var(--tm-transition);
}

.tm-footer-legal a:hover {
    color: var(--tm-white) !important;
}

.tm-footer-divider {
    color: var(--tm-gray-700);
    user-select: none;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .tm-footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .tm-footer-tagline {
        max-width: none;
    }

    .tm-footer-socials {
        justify-content: center;
    }

    .tm-footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .tm-footer-list li {
        justify-content: center;
    }

    .tm-footer-links li a:hover {
        padding-left: 0;
    }

    .tm-footer-links li a::before {
        display: none;
    }

    .tm-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* === Back to Top Button === */
.tm-back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 998;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--tm-white);
    color: var(--tm-blue);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, background var(--tm-transition), color var(--tm-transition), box-shadow var(--tm-transition);
}

.tm-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tm-back-to-top:hover {
    background: var(--tm-blue);
    color: var(--tm-white);
    box-shadow: 0 6px 24px rgba(43, 94, 167, 0.35);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .tm-back-to-top {
        bottom: 1.25rem;
        left: 1.25rem;
        width: 40px;
        height: 40px;
    }
}

/* === Team Cards === */
.tm-team-member {
    text-align: center;
    background: var(--tm-white);
    border-radius: var(--tm-radius-md);
    padding: 2rem;
    box-shadow: var(--tm-shadow-sm);
    transition: var(--tm-transition);
    border: 1px solid var(--tm-gray-200);
}

.tm-team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--tm-shadow-lg);
}

.tm-team-member img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--tm-blue-light);
    margin-bottom: 1.5rem;
}

.tm-team-member h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.tm-team-member .tm-role {
    color: var(--tm-blue);
    font-weight: 500;
    font-size: 0.9rem;
}

/* === Blue Accent Section === */
.tm-accent-section {
    background: linear-gradient(135deg, var(--tm-blue), var(--tm-blue-dark));
    color: var(--tm-white);
    padding: var(--tm-section-padding) 0;
}

.tm-accent-section h2 {
    color: var(--tm-white) !important;
}

.tm-accent-section p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* === Brush Stroke Heading (Roller-Effekt) === */
.tm-brush-heading {
    position: relative;
    display: block;
    width: fit-content;
    z-index: 0;
}

.has-text-align-center.tm-brush-heading {
    margin-left: auto;
    margin-right: auto;
}

.tm-brush-heading::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -30%;
    width: 115%;
    min-width: 350px;
    height: 160%;
    background-image: url("img/roller-gelb.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.tm-brush-heading.tm-brush-visible::before {
    clip-path: inset(0 0 0 0);
}

.tm-brush-heading--red::before {
    background-image: url("img/roller-rot.png");
}

.tm-brush-heading--blue::before {
    background-image: url("img/roller-blau.png");
}

/* Hide stray Kadence separators after brush-stroke headings */
.tm-brush-heading + .wp-block-separator,
.tm-brush-heading + hr,
.has-text-align-center.tm-brush-heading + .wp-block-separator,
.wp-block-heading.tm-brush-heading + .wp-block-separator {
    display: none !important;
}

/* === Floating CTA Button === */
.tm-cta-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--tm-red), var(--tm-red-dark));
    color: var(--tm-white) !important;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--tm-font-body);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(200, 35, 44, 0.4);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow var(--tm-transition);
}

.tm-cta-float.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tm-cta-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(200, 35, 44, 0.55);
    color: var(--tm-white) !important;
    text-decoration: none;
}

/* === Scroll Animations === */
.tm-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.tm-fade-in.tm-visible {
    opacity: 1;
    transform: translateY(0);
}

.tm-fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.tm-fade-in-left.tm-visible {
    opacity: 1;
    transform: translateX(0);
}

.tm-fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.tm-fade-in-right.tm-visible {
    opacity: 1;
    transform: translateX(0);
}

/* === Responsive === */
@media (max-width: 768px) {
    .tm-about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tm-hero {
        min-height: 70vh;
    }

    .tm-hero::after {
        height: 50px;
    }

    .tm-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .tm-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .tm-service-card {
        min-height: 260px;
    }

    .tm-kalkulator-frame-wrap {
        aspect-ratio: unset;
        min-height: 520px;
    }

    .tm-accordion-body {
        padding-left: 0;
    }

    .tm-accordion-item.is-open .tm-accordion-body {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .tm-stats {
        grid-template-columns: 1fr;
    }

    .tm-hero {
        min-height: 60vh;
    }

    .tm-cta-float span {
        display: none;
    }

    .tm-cta-float {
        padding: 14px;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tm-fade-in,
    .tm-fade-in-left,
    .tm-fade-in-right {
        transition: none;
    }

    .tm-brush-heading::before {
        transition: none;
    }

    .tm-partners-track {
        animation: none;
    }
}

/* === WPForms Custom Styling === */
.wpforms-container .wpforms-form .wpforms-field-label {
    font-weight: 600;
    color: var(--tm-gray-800);
}

.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form textarea {
    border: 2px solid var(--tm-gray-300) !important;
    border-radius: var(--tm-radius-sm) !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    transition: var(--tm-transition);
}

.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form textarea:focus {
    border-color: var(--tm-blue) !important;
    box-shadow: 0 0 0 3px rgba(43, 94, 167, 0.15) !important;
    outline: none !important;
}

.wpforms-container .wpforms-form .wpforms-submit-container button {
    background: linear-gradient(135deg, var(--tm-blue), var(--tm-blue-dark)) !important;
    border: none !important;
    padding: 14px 40px !important;
    border-radius: var(--tm-radius-sm) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: var(--tm-transition) !important;
}

.wpforms-container .wpforms-form .wpforms-submit-container button:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--tm-shadow-lg) !important;
}

/* === Selection Color === */
::selection {
    background: var(--tm-blue);
    color: var(--tm-white);
}

/* === Scrollbar (Webkit) === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--tm-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--tm-gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tm-blue);
}

/* === Contact Form Styles === */
.tm-contact-form input:focus,
.tm-contact-form textarea:focus {
    outline: none;
    border-color: var(--tm-red) !important;
    box-shadow: 0 0 0 2px rgba(200, 35, 44, 0.15);
}

.tm-contact-form input::placeholder,
.tm-contact-form textarea::placeholder {
    color: var(--tm-gray-500);
}

/* === Service Card Detail Lists === */
.wp-block-column .wp-block-list {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
    border-top: 1px solid var(--tm-gray-200);
    padding-top: 12px;
}

.wp-block-column .wp-block-list li {
    padding: 3px 0;
    position: relative;
    padding-left: 16px;
}

.wp-block-column .wp-block-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--tm-red);
    font-weight: 700;
}

/* Google Maps iframe responsive */
.wp-block-cover iframe {
    max-width: 100%;
}

/* === Gallery Lightbox === */
.tm-lightbox {
    border: none;
    background: transparent;
    max-width: 92vw;
    max-height: 92vh;
    padding: 0;
    overflow: visible;
    position: fixed;
    inset: 0;
    margin: auto;
    width: fit-content;
    height: fit-content;
}

.tm-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tm-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--tm-radius-md);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    display: block;
}

.tm-lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    color: var(--tm-white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tm-transition);
    line-height: 1;
}

.tm-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.tm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    color: var(--tm-white);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tm-transition);
}

.tm-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.tm-lightbox-prev {
    left: -64px;
}

.tm-lightbox-next {
    right: -64px;
}

.tm-lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .tm-lightbox-prev {
        left: 8px;
        top: auto;
        bottom: -52px;
        transform: none;
    }

    .tm-lightbox-next {
        right: 8px;
        top: auto;
        bottom: -52px;
        transform: none;
    }

    .tm-lightbox-nav:hover {
        transform: scale(1.1);
    }

    .tm-lightbox-counter {
        bottom: -36px;
    }

    .tm-lightbox-close {
        top: -44px;
        right: 4px;
    }
}

/* === Geschichte Section Image === */
.tm-geschichte-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: var(--tm-radius-md);
    box-shadow: var(--tm-shadow-md);
    margin-bottom: 24px;
    opacity: 0;
    animation: tmGeschichteFadeIn 0.8s ease forwards;
    object-fit: cover;
}

@keyframes tmGeschichteFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

@media (max-width: 781px) {
    .tm-geschichte-img {
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

/* === Maler-Lehre (Apprenticeship) Section === */
.tm-lehre-section {
    background: var(--tm-off-white);
    padding: 4rem 0;
}

.tm-lehre-inner {
    max-width: var(--tm-container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.tm-lehre-visual {
    position: sticky;
    top: 120px;
}

/* Badge cards container */
.tm-lehre-badges {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: center;
}

/* Individual badge card (brush stroke) */
.tm-lehre-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    min-height: 110px;
    padding: 10px 24px;
    text-decoration: none !important;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.tm-lehre-badge:hover {
    transform: translateY(-3px) scale(1.03);
    text-decoration: none !important;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
}

.tm-lehre-badge-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    z-index: 2;
}

/* Red badge - Die Kreativen am Bau */
.tm-lehre-badge--red {
    background-image: url('img/roller-rot.png');
    color: var(--tm-white) !important;
}

.tm-lehre-badge--red:hover {
    color: var(--tm-white) !important;
}

/* Blue badge - Top Ausbildungsbetrieb */
.tm-lehre-badge--blue {
    background-image: url('img/roller-blau.png');
    color: var(--tm-white) !important;
}

.tm-lehre-badge--blue:hover {
    color: var(--tm-white) !important;
}

/* Yellow badge - schnuppy.ch */
.tm-lehre-badge--yellow {
    background-image: url('img/roller-gelb.png');
    color: var(--tm-gray-900) !important;
}

.tm-lehre-badge--yellow:hover {
    color: var(--tm-gray-900) !important;
}

.tm-lehre-badge--yellow .tm-lehre-badge-sub {
    color: rgba(33, 37, 41, 0.8);
}

/* Badge text */
.tm-lehre-badge-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.tm-lehre-badge-label {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: 0.1px;
}

.tm-lehre-badge-sub {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 2px;
}

/* Badge logo (small favicon thumbnail) */
.tm-lehre-badge-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tm-lehre-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--tm-gray-900) !important;
    margin: 0 0 0.3rem;
    line-height: 1.3;
}

.tm-lehre-content h2 .tm-emoji {
    display: inline-block;
    font-size: 0.9em;
}

.tm-lehre-underline {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--tm-blue), var(--tm-red));
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.tm-lehre-text {
    font-size: 1rem;
    color: var(--tm-gray-700) !important;
    line-height: 1.75;
    margin-bottom: 1.2rem;
    max-width: 100%;
}

.tm-lehre-highlight {
    background: var(--tm-white);
    border: 1px solid var(--tm-gray-200);
    border-left: 3px solid var(--tm-blue);
    padding: 1.2rem 1.5rem;
    border-radius: var(--tm-radius-sm);
    margin: 1.5rem 0;
}

.tm-lehre-highlight h3 {
    color: var(--tm-blue) !important;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.tm-lehre-highlight p {
    color: var(--tm-gray-600) !important;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
    max-width: 100%;
}

.tm-lehre-schnuppy {
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: var(--tm-white);
    border-radius: var(--tm-radius-sm);
    border: 1px solid var(--tm-gray-200);
    border-left: 3px solid var(--tm-blue);
}

.tm-lehre-schnuppy p {
    font-size: 0.95rem;
    color: var(--tm-gray-700) !important;
    margin: 0 0 0.3rem;
    line-height: 1.6;
    max-width: 100%;
}

.tm-lehre-schnuppy p:last-child {
    margin-bottom: 0;
}

.tm-lehre-schnuppy a {
    color: var(--tm-blue) !important;
    font-weight: 600;
    text-decoration: underline;
    transition: var(--tm-transition);
}

.tm-lehre-schnuppy a:hover {
    color: var(--tm-blue-dark) !important;
}

.tm-lehre-closing {
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--tm-gray-800) !important;
}

@media (max-width: 768px) {
    .tm-lehre-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .tm-lehre-visual {
        position: static;
        display: flex;
        justify-content: center;
    }

    .tm-lehre-badges {
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .tm-lehre-badge {
        width: 100%;
        max-width: 280px;
        min-height: 100px;
        padding: 10px 16px;
    }

    .tm-lehre-badge-content {
        gap: 12px;
    }

    .tm-lehre-badge-logo {
        width: 36px;
        height: 36px;
    }

    .tm-lehre-underline {
        margin-left: auto;
        margin-right: auto;
    }

    .tm-lehre-highlight,
    .tm-lehre-schnuppy {
        text-align: left;
    }
}

/* === Modern Contact Section === */
/* Override the WP Cover Block for the contact section */
#kontakt {
    scroll-margin-top: 120px;
}

/* The contact cover block — convert from dark to light modern design */
.wp-block-cover:has(#kontakt) {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 50%, #f5f7fa 100%) !important;
    min-height: auto !important;
}

.wp-block-cover:has(#kontakt) > .wp-block-cover__background {
    background: transparent !important;
    opacity: 0 !important;
}

/* Override ALL text colors inside contact section */
.wp-block-cover:has(#kontakt) #kontakt {
    color: var(--tm-blue) !important;
    font-size: 2.2rem !important;
    text-shadow: none !important;
}

.wp-block-cover:has(#kontakt) .wp-block-separator {
    background-color: var(--tm-red) !important;
    height: 3px !important;
    width: 60px !important;
    margin: 12px 0 24px !important;
}

.wp-block-cover:has(#kontakt) p.has-text-color,
.wp-block-cover:has(#kontakt) p {
    color: var(--tm-gray-700) !important;
    text-shadow: none !important;
}

.wp-block-cover:has(#kontakt) p.has-text-color a {
    color: var(--tm-blue) !important;
    font-weight: 600;
    text-decoration: none;
    transition: var(--tm-transition);
}

.wp-block-cover:has(#kontakt) p.has-text-color a:hover {
    color: var(--tm-blue-dark) !important;
}

.wp-block-cover:has(#kontakt) p.has-text-color strong {
    color: var(--tm-gray-900) !important;
}

.wp-block-cover:has(#kontakt) h3.wp-block-heading {
    color: var(--tm-gray-900) !important;
    text-shadow: none !important;
    font-size: 1.4rem !important;
}

/* Google Maps iframe */
.wp-block-cover:has(#kontakt) iframe {
    border-radius: var(--tm-radius-md) !important;
    box-shadow: var(--tm-shadow-md) !important;
}

/* Contact Form Styling */
.wp-block-cover:has(#kontakt) .tm-cf7-form label {
    color: var(--tm-gray-700) !important;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: block;
}

.wp-block-cover:has(#kontakt) .tm-cf7-form input[type="text"],
.wp-block-cover:has(#kontakt) .tm-cf7-form input[type="email"],
.wp-block-cover:has(#kontakt) .tm-cf7-form input[type="tel"],
.wp-block-cover:has(#kontakt) .tm-cf7-form select,
.wp-block-cover:has(#kontakt) .tm-cf7-form textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1.5px solid var(--tm-gray-300) !important;
    border-radius: var(--tm-radius-sm) !important;
    background: var(--tm-white) !important;
    color: var(--tm-gray-800) !important;
    font-size: 0.95rem !important;
    font-family: var(--tm-font-body) !important;
    transition: border-color var(--tm-transition), box-shadow var(--tm-transition) !important;
    outline: none !important;
}

.wp-block-cover:has(#kontakt) .tm-cf7-form input:focus,
.wp-block-cover:has(#kontakt) .tm-cf7-form select:focus,
.wp-block-cover:has(#kontakt) .tm-cf7-form textarea:focus {
    border-color: var(--tm-blue) !important;
    box-shadow: 0 0 0 3px rgba(43, 94, 167, 0.12) !important;
}

.wp-block-cover:has(#kontakt) .tm-cf7-form textarea {
    min-height: 120px !important;
    resize: vertical;
}

.wp-block-cover:has(#kontakt) .tm-cf7-form input[type="submit"] {
    background: linear-gradient(135deg, var(--tm-blue), var(--tm-blue-dark)) !important;
    color: var(--tm-white) !important;
    border: none !important;
    padding: 14px 36px !important;
    border-radius: var(--tm-radius-sm) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: var(--tm-transition) !important;
    box-shadow: var(--tm-shadow-md) !important;
    width: auto !important;
}

.wp-block-cover:has(#kontakt) .tm-cf7-form input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--tm-shadow-lg) !important;
    background: linear-gradient(135deg, var(--tm-blue-light), var(--tm-blue)) !important;
}

.wp-block-cover:has(#kontakt) .tm-cf7-form input[type="file"] {
    padding: 8px !important;
    border: 1.5px dashed var(--tm-gray-300) !important;
    border-radius: var(--tm-radius-sm) !important;
    background: var(--tm-off-white) !important;
    color: var(--tm-gray-600) !important;
    cursor: pointer;
}

/* Left column — contact info card */
.wp-block-cover:has(#kontakt) > .wp-block-cover__inner-container > .wp-block-columns > .wp-block-column:first-child {
    background: var(--tm-white);
    padding: 36px;
    border-radius: var(--tm-radius-md);
    box-shadow: var(--tm-shadow-md);
}

/* Right column — form card */
.wp-block-cover:has(#kontakt) > .wp-block-cover__inner-container > .wp-block-columns > .wp-block-column:last-child {
    background: var(--tm-white);
    padding: 36px;
    border-radius: var(--tm-radius-md);
    box-shadow: var(--tm-shadow-md);
}

/* Subtitle text */
.wp-block-cover:has(#kontakt) .wpcf7 + p,
.wp-block-cover:has(#kontakt) h3 + p {
    color: var(--tm-gray-500) !important;
}

/* Inner container text-shadow reset */
.wp-block-cover:has(#kontakt) .wp-block-cover__inner-container,
.wp-block-cover:has(#kontakt) .wp-block-cover__inner-container * {
    text-shadow: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .wp-block-cover:has(#kontakt) > .wp-block-cover__inner-container > .wp-block-columns > .wp-block-column:first-child,
    .wp-block-cover:has(#kontakt) > .wp-block-cover__inner-container > .wp-block-columns > .wp-block-column:last-child {
        padding: 24px;
    }
}

/* === Team Page – Card Alignment === */
/* Layout handled via JavaScript for precision */

/* === FAQ Section === */
.tm-faq-section {
    background: var(--tm-white);
    padding: var(--tm-section-padding) 0;
}

.tm-faq-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tm-faq-title {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--tm-gray-900) !important;
}

.tm-faq-subtitle {
    text-align: center;
    color: var(--tm-gray-500) !important;
    font-size: 1.05rem;
    margin: 0 auto 2.5rem;
    max-width: 500px;
}

.tm-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tm-faq-item {
    border-bottom: 1px solid var(--tm-gray-200);
}

.tm-faq-item:first-child {
    border-top: 1px solid var(--tm-gray-200);
}

.tm-faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--tm-font-heading);
    transition: color var(--tm-transition);
}

.tm-faq-trigger:hover {
    color: var(--tm-blue);
}

.tm-faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tm-gray-800);
    flex: 1;
    transition: color var(--tm-transition);
}

.tm-faq-trigger:hover .tm-faq-question {
    color: var(--tm-blue);
}

.tm-faq-chevron {
    flex-shrink: 0;
    color: var(--tm-gray-400);
    transition: transform var(--tm-transition), color var(--tm-transition);
}

.tm-faq-item.is-open .tm-faq-chevron {
    transform: rotate(180deg);
    color: var(--tm-blue);
}

.tm-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s ease;
    padding: 0 0 0 0;
}

.tm-faq-item.is-open .tm-faq-body {
    max-height: 400px;
    padding: 0 0 1.25rem 0;
}

.tm-faq-body p {
    color: var(--tm-gray-600) !important;
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
    max-width: none;
}

.tm-faq-body a {
    color: var(--tm-blue) !important;
    font-weight: 600;
    text-decoration: underline;
}

.tm-faq-body a:hover {
    color: var(--tm-blue-dark) !important;
}

/* === WhatsApp Floating Button === */
.tm-whatsapp-float {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    z-index: 998;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: var(--tm-white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform var(--tm-transition), box-shadow var(--tm-transition);
    text-decoration: none;
}

.tm-whatsapp-float:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
    color: var(--tm-white) !important;
}

/* Pulse animation on WhatsApp button */
.tm-whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: tm-wa-pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes tm-wa-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0; }
}

@media (max-width: 480px) {
    .tm-whatsapp-float {
        bottom: 5rem;
        right: 1.25rem;
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tm-whatsapp-float::before {
        animation: none;
    }
}

/* === Team Image Below Google Maps (Contact Section) === */
.tm-contact-team-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 24px;
    border-radius: var(--tm-radius-md);
}

.tm-contact-team-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--tm-radius-md);
}

.tm-contact-team-inner img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    border-radius: var(--tm-radius-md);
    filter: brightness(0.92);
    transition: filter 0.6s ease;
}

.tm-contact-team-image:hover .tm-contact-team-inner img {
    filter: brightness(0.88);
}

.tm-contact-team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px;
    border-radius: 0 0 var(--tm-radius-md) var(--tm-radius-md);
    background: linear-gradient(
        to top,
        rgba(30, 68, 120, 0.75) 0%,
        rgba(30, 68, 120, 0.35) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.tm-contact-team-overlay span {
    font-family: var(--tm-font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .tm-contact-team-image {
        margin-top: 20px;
    }

    .tm-contact-team-inner img {
        max-height: 250px;
    }

    .tm-contact-team-overlay {
        padding: 16px 20px;
    }

    .tm-contact-team-overlay span {
        font-size: 0.9rem;
    }
}
