:root {
    --primary: #047fb8;
    --secondary: #000000;
    --light: #ffffff;
    --dark: #000000;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4 {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}




/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar-custom {
    background-color: white;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.sticky-top {
    top: 0;
    transition: .5s;
}

.navbar .navbar-brand {
    height: 50px
}

.navbar a.btn {
    height: auto;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #ffffff;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/

.page-header {
    background: linear-gradient(rgba(4, 127, 184, .6), rgba(4, 127, 184, .6)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Top Feature ***/


/*** Facts & Quote ***/
.facts {
    background: rgba(4, 127, 184, .6);
}


/*** Service ***/


/*** Project Portfolio ***/


/*** Team ***/


/*** Testimonial ***/


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #000000;
}

.copyright a {
    color: #FFFFFF;
}

.copyright a:hover {
    color: var(--primary);
}

/* 
 * B.S. BauTec Redesign - Custom Styles
 * Modern, Clean, Professional
 */

/* --- 0. FONTS --- */
@font-face {
    font-family: 'Geist';
    src: url('../fonts/GeistVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/GeistVariableItalic.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    font-style: italic;
}

/* --- 1. DESIGN SYSTEM VARIABLES --- */
:root {
    /* Colors */
    --color-primary: #000000;
    /* Deep Navy - Professionalism */
    --color-primary-light: #000000;
    --color-accent: #047fb8;
    /* Construction Orange/Red - Action */
    --color-accent-hover: #047fb8;
    --color-bg-light: #ffffff;
    --color-bg-white: #FFFFFF;
    --color-text-dark: #000000;
    --color-text-light: #047fb8;
    --color-border: #9bd9e8;

    /* Bootstrap Color Overrides - Enforce Strict Palette */
    --bs-primary: #047fb8;
    --bs-primary-rgb: 4, 127, 184;
    --bs-secondary: #9bd9e8;
    --bs-secondary-rgb: 155, 217, 232;
    --bs-success: #01a0c7;
    --bs-success-rgb: 1, 160, 199;
    --bs-info: #9bd9e8;
    --bs-info-rgb: 155, 217, 232;
    --bs-warning: #9bd9e8;
    --bs-warning-rgb: 155, 217, 232;
    --bs-danger: #047fb8;
    --bs-danger-rgb: 4, 127, 184;
    --bs-light: #ffffff;
    --bs-light-rgb: 255, 255, 255;
    --bs-dark: #000000;
    --bs-dark-rgb: 0, 0, 0;
    --bs-body-color: #000000;
    --bs-body-bg: #ffffff;
    --bs-link-color: #047fb8;
    --bs-link-hover-color: #01a0c7;

    /* Typography */
    --font-heading: 'Geist', sans-serif;
    --font-body: 'Geist', sans-serif;

    /* Spacing - optimiert für kompakteres Desktop-Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;                           /* War: 2rem → 1.5rem */
    --spacing-lg: clamp(1.5rem, 4vw, 3rem);         /* War: 4rem → 3rem max */
    --spacing-xl: clamp(3rem, 5vw, 4.5rem);         /* War: 8rem → 4.5rem max (72px) */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;

    /* Fluid Typography & Spacing - Optimiert für 100% Zoom auf MacBook */
    --container-padding: clamp(16px, 3vw, 32px);

    /* Typography Scale - reduzierte max-Werte für Desktop */
    --fs-h1: clamp(2rem, 4vw + 1rem, 3.25rem);      /* War: 4rem → Jetzt: 3.25rem (52px max) */
    --fs-h2: clamp(1.5rem, 3vw + 0.75rem, 2.5rem);  /* War: 3rem → Jetzt: 2.5rem (40px max) */
    --fs-h3: clamp(1.25rem, 2vw + 0.5rem, 1.75rem); /* War: 2rem → Jetzt: 1.75rem (28px max) */
    --fs-body: clamp(1rem, 1.5vw + 0.25rem, 1.0625rem); /* 17px max statt 18px */

    /* Section Spacing - reduziert für kompakteres Desktop-Layout */
    --section-padding: clamp(2.5rem, 5vw, 4rem);    /* War: 6rem → Jetzt: 4rem (64px max) */
    --spacing-container: var(--container-padding);
}

/* --- 2. GLOBAL RESET & TYPOGRAPHY --- */
body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Safe Area Support */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    text-size-adjust: 100%;
}

/* Override Bootstrap display classes for kompakteres Layout */
.display-1 { font-size: clamp(2.5rem, 5vw + 1rem, 4rem) !important; }
.display-2 { font-size: clamp(2.25rem, 4.5vw + 1rem, 3.5rem) !important; }
.display-3 { font-size: clamp(2rem, 4vw + 1rem, 3rem) !important; }
.display-4 { font-size: clamp(1.75rem, 3.5vw + 1rem, 2.5rem) !important; }
.display-5 { font-size: clamp(1.5rem, 3vw + 0.75rem, 2.25rem) !important; }
.display-6 { font-size: clamp(1.25rem, 2.5vw + 0.5rem, 2rem) !important; }

.container,
.container-fluid {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-wrap: balance;
    /* Premium text wrapping */
}

p {
    text-wrap: pretty;
    /* Prevent orphans */
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Override Bootstrap text-primary color globally */
.text-primary {
    color: #047fb8 !important;
}

/* Override Bootstrap border-primary color globally */
.border-primary {
    border-color: #047fb8 !important;
}

/* Override Bootstrap btn-outline-primary color globally */
.btn-outline-primary {
    color: #047fb8 !important;
    border-color: #047fb8 !important;
}

.btn-outline-primary:hover {
    color: #FFFFFF !important;
    background-color: #047fb8 !important;
    border-color: #047fb8 !important;
}

/* --- 3. UTILITIES & COMPONENTS --- */

/* Buttons */

.btn-primary-custom {
    background-color: #047fb8;
    color: white;
}

.btn-primary-custom:hover {
    background-color: #047fb8;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-custom {
    background-color: transparent;
    border: 2px solid var(--color-bg-white);
    color: white;
}

.btn-secondary-custom:hover {
    background-color: white;
    color: var(--color-primary);
}

/* Section Spacing */
.section-padding {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
}

.bg-light-custom {
    background-color: var(--color-bg-light);
}

/* Titles */
.section-title {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.section-title .subline {
    display: block;
    color: #047fb8;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.section-title .subline.text-warning,
.subline.text-warning {
    color: #9bd9e8 !important;
}

.section-title h2 {
    font-size: var(--fs-h2);
}

/* --- 4. SECTION SPECIFIC STYLES --- */

/* Intro Features (Roof Tiles) */
@media (max-width: 768px) {
    .roof-tile-row {
        gap: 1rem;
    }

    .roof-tile-card {
        margin-bottom: 0.5rem;
    }
}

.navbar-custom {
    box-shadow: var(--shadow-md);
    /* Stronger shadow */
    background-color: white;
    padding: env(safe-area-inset-top) 0 0 0;
    /* Respect mobile notch */
    /* Let inner spacing handle height */
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0;
    margin-left: 5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.navbar-custom .navbar-toggler {
    border-color: #000000;
    color: #000000;
}

.navbar-custom .navbar-toggler-icon i {
    color: #000000 !important;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
}

.logo-image {
    height: clamp(40px, 5vw, 55px);
    width: auto;
    transition: all 0.3s ease;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

@media (max-width: 991px) {
    .navbar-custom .navbar-inner {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .logo-image {
        height: 48px;
        max-height: 100%;
        width: auto;
    }

    .navbar-brand {
        margin-left: 0;
    }

    .navbar-custom .container {
        padding: 0.4rem 0.75rem;
        /* Minimal padding to allow large logo without excessive header height */
        min-height: 60px;
        display: flex;
        align-items: center;
    }

    .navbar-custom {
        padding: 0;
    }

    /* Cleaner Toggler redesign */
    .navbar-custom .navbar-toggler {
        padding: 0;
        font-size: 1.2rem;
        border: none;
        /* Remove border for cleaner look */
        color: var(--color-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-right: -10px;
        /* Align deeply to the right */
    }

    .navbar-custom .navbar-toggler:focus {
        box-shadow: none;
        /* Remove default glow */
        outline: none;
    }

    .navbar-custom .navbar-collapse {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Offcanvas Custom Styling */
.offcanvas-custom {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    width: 320px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Make logo white in dark offcanvas menu */
.offcanvas-custom .offcanvas-brand img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.offcanvas-custom .offcanvas-brand img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.offcanvas-custom .nav-link {
    color: white !important;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.offcanvas-custom .nav-link:hover,
.offcanvas-custom .nav-link.active {
    background: rgba(4, 127, 184, 0.1);
    color: #9bd9e8 !important;
    padding-left: 1.75rem !important;
}

.bg-light-transparent {
    background: rgba(255, 255, 255, 0.05);
}

.offcanvas-custom .btn-close {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
}

.offcanvas-custom .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   PREMIUM MOBILE DROPDOWN - Leistungen Menu
   ============================================================ */
.mobile-dropdown {
    position: relative;
    margin: 0.25rem 0;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.mobile-dropdown-toggle:hover,
.mobile-dropdown-toggle:focus {
    background: rgba(4, 127, 184, 0.1);
    color: #9bd9e8;
    outline: none;
}

.mobile-dropdown-toggle.active {
    background: rgba(4, 127, 184, 0.15);
    color: #9bd9e8;
}

.mobile-dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.5);
}

.mobile-dropdown-toggle.active .mobile-dropdown-icon {
    transform: rotate(180deg);
    color: #047fb8;
}

/* Dropdown Menu Container */
.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 0 12px 12px;
    margin: 0 0.5rem;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease,
                opacity 0.3s ease;
    opacity: 0;
}

.mobile-dropdown-menu.open {
    max-height: 500px;
    padding: 0.5rem 0;
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
}

/* Individual Dropdown Items */
.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.mobile-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #047fb8, #01a0c7);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.mobile-dropdown-item:hover,
.mobile-dropdown-item:focus {
    background: rgba(4, 127, 184, 0.12);
    color: #9bd9e8;
    padding-left: 1.5rem;
}

.mobile-dropdown-item:hover::before,
.mobile-dropdown-item:focus::before {
    transform: scaleY(1);
}

.mobile-dropdown-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #047fb8;
    background: rgba(4, 127, 184, 0.1);
    border-radius: 6px;
    transition: all 0.25s ease;
}

.mobile-dropdown-item:hover i {
    background: rgba(4, 127, 184, 0.2);
    color: #9bd9e8;
    transform: scale(1.1);
}

.mobile-dropdown-item span {
    flex: 1;
}

/* Navbar Button Alignment */
.navbar-custom .btn-primary-custom {
    margin-top: 0;
    margin-bottom: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background-color: #000000;
    color: white;
}

.navbar-custom .btn-primary-custom:hover {
    background-color: #333333;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (min-width: 992px) {
    .navbar-custom .btn-primary-custom {
        padding: 10px 20px;     /* War: 12px 24px → kompakter */
        font-size: 0.9rem;      /* War: 0.95rem → kompakter */
        line-height: 1.5;
        margin-right: 30%;
    }
}

.topbar-custom {
    background-color: var(--color-primary);
    color: white;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    line-height: 1.2;
}

.topbar-custom .container {
    max-width: 100% !important;
    width: 100% !important;
}

.topbar-custom .container .row .col-lg-auto {
    margin-right: 0;
}

.topbar-custom .text-warning {
    color: #9bd9e8 !important;
}

/* Nav Link Improvements */
.navbar-custom .nav-link {
    color: var(--color-primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 12px !important;
    /* Modern, compact spacing */
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.3s ease;
    line-height: 1.1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #036a9c !important;
}

.navbar-custom .navbar-nav {
    padding: 0.5rem 0 !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(0.25rem, 1vw, 0.75rem);
}

@media (max-width: 991px) {
    .navbar-custom .navbar-nav {
        padding: 0.5rem 0 !important;
    }

    .navbar-custom .nav-link {
        padding: 1rem 1.5rem !important;
        /* Larger touch target */
        font-size: 1.1rem;
        /* Readable font size */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        display: block;
        /* Full width click area */
    }

    .navbar-custom .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-custom .nav-link:hover,
    .navbar-custom .nav-link.active {
        background-color: rgba(4, 127, 184, 0.05);
        padding-left: 1.25rem !important;
    }

    .navbar-custom .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.02);
        margin-left: 1rem;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
    }

    .navbar-custom .dropdown-item {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .navbar-custom .dropdown-item:last-child {
        border-bottom: none;
    }

    .navbar-custom .dropdown-item:hover {
        background-color: rgba(4, 127, 184, 0.08);
        padding-left: 2rem;
    }
}

/* Underline effect for Desktop */
@media (min-width: 992px) {
    /* Centered, high-end professional layout */
    .navbar-custom .container {
        max-width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 0.5rem !important;
        min-height: 50px;
    }

    .navbar-custom .navbar-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 1.5rem;
        min-height: 64px;
    }

    .navbar-custom .navbar-brand {
        margin: 0 !important;
        padding-left: 1.5rem !important;
        /* Align under phone icon */
        flex-shrink: 0;
    }

    .navbar-custom .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
        flex-grow: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding-right: 0 !important;
        transform: none;
    }

    .navbar-custom .navbar-nav {
        margin: 0 !important;
        gap: 1rem !important;
        flex-direction: row !important;
    }

    .navbar-custom .nav-link {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.875rem !important;
        letter-spacing: 0.04em !important;
    }

    .navbar-custom .btn-primary-custom {
        justify-self: end;
        margin-left: 0 !important;
        margin-right: 30% !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
        border-radius: 4px !important;
        /* More professional than pill for roofing */
    }

    .navbar-custom .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0px;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: #047fb8;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .navbar-custom .nav-link:hover::after,
    .navbar-custom .nav-link.active::after {
        width: 80%;
    }
}

/* Dropdown Menu */
.navbar-custom .dropdown-menu {
    background-color: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    padding: 0.75rem 0;
    margin-top: 0 !important;
    /* Align with bottom of header */
}

.navbar-custom .dropdown-item {
    color: var(--color-primary);
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
    position: relative;
    border-left: 3px solid transparent;
}

.navbar-custom .dropdown-item:hover {
    background-color: rgba(4, 127, 184, 0.04);
    color: #047fb8;
    border-left-color: #047fb8;
    padding-left: 1.75rem;
}

.navbar-custom .dropdown-item.active {
    background-color: rgba(4, 127, 184, 0.06) !important;
    color: #047fb8 !important;
    border-left-color: #047fb8;
}

/* Hero Section */
.hero-section {
    position: relative;
    /* Remove static background image */
    /* background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../img/carousel-1.jpg'); */
    background-color: var(--color-primary);
    /* Fallback */
    height: 75vh;           /* War: 85vh → kompakter */
    min-height: 500px;      /* War: 600px → kompakter */
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Ensure video doesn't overflow */
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    /* Fix for some mobile browsers */
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6));
    /* Match subpage overlay for consistent Safari Liquid Glass */
    z-index: 1;
    animation: premiumOverlayFade 2s ease-out both;
}

.video-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(4, 127, 184, 0.15) 0%, transparent 60%);
    animation: premiumGlow 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes premiumOverlayFade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes premiumGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.hero-content {
    z-index: 2;
    padding: clamp(1rem, 5vh, 3rem) 0;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    color: white;
    font-size: var(--fs-h1);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 65ch;
}

.hero-tagline-line {
    display: block;
}

.hero-tagline {
    max-width: none !important;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (max-width: 991px) {
    .hero-content {
        text-align: center;
    }

    .hero-content .row {
        justify-content: center;
        margin: 0;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
}


.hero-content .row {
    margin: 0;
}


    .hero-actions {
        justify-content: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-actions .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hero-actions .btn-primary-custom {
    box-shadow: 0 4px 15px rgba(4, 127, 184, 0.3);
}

.hero-actions .btn-secondary-custom {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-actions .btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-item i {
    color: #9bd9e8;
}


.hero-content .col-lg-10 {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    align-items: center;
}

@media (min-width: 992px) {
    .hero-content .col-lg-10 {
        align-items: flex-start;
    }
}

/* Premium Hero Animations */
.hero-content .badge {
    animation: premiumFadeInUp 1s ease-out 0.2s both;
    transform-origin: center;
}

.hero-content h1 {
    color: white;
    font-size: var(--fs-h1);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    animation: premiumFadeInUp 1.2s ease-out 0.4s both;
    transform-origin: center;
    position: relative;
    letter-spacing: -0.01em;
    max-width: min(100%, 22ch);
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    /* Total width, we'll scale it */
    height: 3px;
    background: linear-gradient(90deg, #047fb8, #9bd9e8);
    transform-origin: left;
    animation: premiumUnderline 1.5s ease-out 1.2s both;
    box-shadow: 0 0 10px rgba(4, 127, 184, 0.5);
    will-change: transform, opacity;
}

.hero-content p {
    animation: premiumFadeInUp 1.2s ease-out 0.6s both;
}

.hero-content .d-flex.flex-column {
    animation: premiumFadeInUp 1.2s ease-out 0.8s both;
}

.hero-content .btn-primary-custom,
.hero-content .btn-secondary-custom {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.hero-content .btn-primary-custom::before,
.hero-content .btn-secondary-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-content .btn-primary-custom:hover::before,
.hero-content .btn-secondary-custom:hover::before {
    width: 300px;
    height: 300px;
}

.hero-content .btn-primary-custom:hover,
.hero-content .btn-secondary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-content .btn-primary-custom:active,
.hero-content .btn-secondary-custom:active {
    transform: translateY(-1px);
}

@keyframes premiumFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes premiumUnderline {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes premiumPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.01);
        opacity: 0.92;
    }
}

.hero-section .badge.bg-warning {
    background-color: rgba(255, 255, 255, 0.16) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    padding: 0.45rem 1rem;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: var(--fs-h1);
        /* Already fluid, but ensuring override removal if any */
    }

    .hero-content h1::after {
        height: 2px;
    }

    .hero-section {
        height: auto;
        padding: 6rem 0;
        /* More padding for mobile browser bars */
        min-height: 80svh;
        /* Modern mobile viewport unit */
    }

    .hero-content .btn-primary-custom,
    .hero-content .btn-secondary-custom {
        width: 100%;
        margin-bottom: 0.75rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.hero-content p {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.4vw + 0.6rem, 1.2rem);
    margin-bottom: 1.5rem;
    max-width: min(100%, 52ch);
    line-height: 1.7;
}

.trust-badges {
    margin-top: 2rem;   /* War: 3rem → kompakter */
    display: flex;
    gap: 1.5rem;        /* War: 2rem → kompakter */
    flex-wrap: wrap;
    animation: premiumFadeInUp 1.2s ease-out 1s both;
}

.trust-item {
    animation: premiumPulse 3s ease-in-out infinite;
    animation-delay: 1.2s;
}

.trust-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.trust-item i {
    color: #047fb8;
}

/* Hero Button Styling */
.hero-section .btn-primary-custom {
    background-color: #047fb8;
    color: white;
    border: none;
}

.hero-section .btn-primary-custom:hover {
    background-color: #047fb8;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Services */
.service-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.service-card .img-wrapper {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.service-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .img-wrapper img {
    transform: scale(1.05);
}

.service-card-body {
    padding: 1.25rem;   /* War: 1.5rem → kompakter */
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card .icon-circle {
    width: 50px;
    height: 50px;
    background-color: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #047fb8;
}

.service-card-body .btn-link,
.service-card-body .text-primary {
    color: #047fb8 !important;
}

.service-card-body .btn-link:hover {
    color: #047fb8 !important;
}

/* About Section - Experience Badge */
.position-absolute .display-5.text-primary {
    color: #01a0c7 !important;
}

/* Why Us */
.usp-list .usp-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    /* Better alignment for multi-line text */
}

/* Process Section Mobile */
@media (max-width: 991px) {
    .process-step {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
}

.usp-item .icon {
    min-width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Process Card Redesign for Premium Feel */
.process-step {
    position: relative;
    padding: 2.5rem 1.75rem;    /* War: 3rem 2rem → kompakter */
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: visible;
    /* Ensure step number isn't clipped */
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), #047fb8);
    color: white;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -4.5rem auto 1.5rem;
    /* Lifted out of the card slightly */
    font-size: 1.25rem;
    box-shadow: 0 5px 15px rgba(4, 127, 184, 0.3);
    position: relative;
    z-index: 2;
    border: 4px solid white;
}

.process-step h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.process-step p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials */
.testimonial-card {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    position: relative;
}

.stars {
    color: #9bd9e8;
    margin-bottom: 0.5rem;
}

/* Parallax Fix for Mobile */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll !important;
        /* Fixed bg often jitters or is zoomed wrong on mobile */
        background-position: center;
        background-size: cover;
    }
}

/* Range Specific Overrides */

/* Tiny Mobile (<= 360px) */
@media (max-width: 360px) {
    :root {
        --fs-h1: 1.75rem;
        --fs-h2: 1.5rem;
    }

    .hero-content .btn-primary-custom,
    .hero-content .btn-secondary-custom {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Modern Mobile (361px - 480px) */
@media (min-width: 361px) and (max-width: 480px) {

    /* Adjust specific gaps if needed */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.accordion-button:not(.collapsed) {
    background-color: #9bd9e8 !important;
    color: var(--color-primary) !important;
}

.accordion-button:not(.collapsed):hover {
    background-color: #9bd9e8 !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(155, 217, 232, 0.25);
}

/* Footer */
.footer-custom {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding-top: clamp(2.5rem, 4vw, 3.5rem);  /* War: 4rem → kompakter */
}

.footer-custom h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-custom a {
    color: #FFFFFF !important;
    display: inline-block;
    padding: 0.5rem 0;
    min-height: 44px;
}

.footer-custom a:hover {
    color: #9bd9e8 !important;
    padding-left: 8px;
}

.footer-custom .text-warning {
    color: #9bd9e8 !important;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.25rem 0;     /* War: 1.5rem → kompakter */
    margin-top: 2.5rem;     /* War: 3rem → kompakter */
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    /* Add safe area support */
}

/* CTA Banner */
.cta-section {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
}

.cta-section .d-flex {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
}

.cta-section .btn-light {
    background-color: #01a0c7 !important;
    color: #000000 !important;
    border: none;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    background-color: #01a0c7 !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 160, 199, 0.4);
}

@media (max-width: 576px) {
    .cta-section .btn {
        padding: 1rem 1.5rem !important;
        font-size: 0.9rem !important;
        width: 100%;
    }

    .cta-section .d-flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* Floating Actions */

/* Parallax & Transparency */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Navy overlay */
    z-index: -1;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(4, 127, 184, 0.15);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Haltbarkeit Badge */
.position-relative .bg-primary {
    background-color: #047fb8 !important;
}

/* Check Icons */
.fa-check.text-primary {
    color: #047fb8 !important;
}

/* Shield and Tools Icons */
.fa-shield-alt.text-primary,
.fa-tools.text-primary {
    color: #047fb8 !important;
}

/* Roof Anatomy Section */
.roof-anatomy-section .text-primary {
    color: #047fb8 !important;
}

/* Timeline Process Section */
.timeline-process-section .text-primary {
    color: #047fb8 !important;
}

.timeline-process-section h6.text-primary {
    color: #047fb8 !important;
}

/* Expertise Section */
.container-xxl h6.text-primary.text-uppercase {
    color: #047fb8 !important;
}

/* Add more spacing after hero sections */
.page-header+.container-xxl {
    padding-top: 4rem !important;
    margin-top: 2rem;
}

/* Mobile Trust Badges Animation */
@media (max-width: 768px) {
    .trust-badges {
        position: relative;
        height: 40px;
        /* Adjust based on content height */
        justify-content: center;
        overflow: hidden;
        margin-top: 2rem;
        /* Reduce top margin on mobile */
    }

    .trust-item {
        position: absolute;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 100%;
        justify-content: center;
        opacity: 0;
        animation: trustBadgeCycle 9s infinite;
    }

    /* Stagger the animations: 3 items, 9s total, 3s each */
    .trust-item:nth-child(1) {
        animation-delay: 0s;
    }

    .trust-item:nth-child(2) {
        animation-delay: 3s;
    }

    .trust-item:nth-child(3) {
        animation-delay: 6s;
    }

    @keyframes trustBadgeCycle {
        0% {
            opacity: 0;
            transform: translateY(10px);
        }

        5% {
            opacity: 1;
            transform: translateY(0);
        }

        28% {
            opacity: 1;
            transform: translateY(0);
        }

        33% {
            opacity: 0;
            transform: translateY(-10px);
        }

        100% {
            opacity: 0;
            transform: translateY(-10px);
        }
    }
}

/* Mobile Call Button */
.mobile-call-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #047fb8;
    /* Primary Blue */
    font-size: 1.2rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: transparent;
    /* Clean look */
}

.mobile-call-btn:hover {
    background-color: rgba(4, 127, 184, 0.1);
    color: #047fb8;
}

/* Global Tap Targets & Icon Buttons */
.btn-square {
    width: 44px !important;
    height: 44px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.footer-custom .btn-square {
    margin-bottom: 0.5rem;
}

/* Roof Tile Feature Design */
.roof-tile-row {
    padding-bottom: 2rem;
}

/* Faster animations for roof tiles - 20% faster (0.8s instead of 1s) */
.roof-tile-row .wow {
    animation-duration: 0.8s !important;
}

/* Even faster on mobile - 30% faster (0.56s) */
@media (max-width: 768px) {
    .roof-tile-row .wow {
        animation-duration: 0.56s !important;
    }
}

.roof-tile-card {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    /* Dark slate/navy gradient */
    border-radius: 20px 20px 4px 4px;
    /* Shape: Top rounded like a tile */
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.3),
        0 4px 6px -2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    /* Top highlight */
    border-bottom: 4px solid #047fb8;
    /* Accent bottom border */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roof-tile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.roof-tile-card .tile-icon {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #9bd9e8 !important;
    /* Cyan accent */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Staggered overlapping effect on Desktop */
@media (min-width: 992px) {
    .roof-tile-row .col-lg-4:nth-child(2) {
        position: relative;
        top: -15px;
        z-index: 2;
    }

    .roof-tile-row .col-lg-4:nth-child(1),
    .roof-tile-row .col-lg-4:nth-child(3) {
        z-index: 1;
    }

    .roof-tile-card {
        border-radius: 20px 20px 10px 10px;
    }
}

/* --- 5. UNIQUE ABOUT PAGE STYLES --- */

/* Immersive Hero */
.about-hero {
    position: relative;
    height: auto;
    min-height: clamp(28rem, 70vh, 42rem);
    min-height: clamp(28rem, 70svh, 42rem);
    min-height: clamp(28rem, 70svh, 42rem);
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    animation: zoomSlow 20s infinite alternate;
}

@keyframes zoomSlow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.about-hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.about-hero h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.25rem); /* War: 4rem hart → Jetzt fluid */
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
    color: white;
}

.about-hero .lead {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Philosophy Section */
.philosophy-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;  /* War: 6rem → kompakter */
    background-color: #ffffff;
}

.philosophy-statement h2 {
    font-size: clamp(1.75rem, 3vw + 0.75rem, 2.5rem); /* War: 3rem hart → Jetzt fluid */
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 1.75rem;
}

.philosophy-text {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    line-height: 1.8;
}

.founder-signature {
    font-family: 'Geist', sans-serif;
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-top: 2rem;
    font-style: italic;
}

/* Timeline */
.timeline-section {
    background-color: var(--color-bg-light);
    padding: clamp(3rem, 5vw, 4.5rem) 0;  /* War: 6rem → kompakter */
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-primary);
    /* Use primary color */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    opacity: 0.2;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: white;
    border: 3px solid #047fb8;
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -8px;
}

.timeline-content {
    padding: 16px 24px;     /* War: 20px 30px → kompakter */
    background-color: white;
    position: relative;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 4px solid #047fb8;
}

.timeline-year {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(4, 127, 184, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

/* Values Grid */
.values-section {
    background-color: #000000;
    /* Dark Navy */
    padding: clamp(3rem, 5vw, 4.5rem) 0;  /* War: 6rem → kompakter */
    color: white;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    /* Glass dark */
    padding: 2.5rem 1.75rem;    /* War: 3rem 2rem → kompakter */
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: #047fb8;
}

.value-icon {
    font-size: 3rem;
    color: #047fb8;
    margin-bottom: 1.5rem;
}

.value-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.value-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* Tablet / Mobile adjustments for Timeline */
@media screen and (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 23px;
    }

    .left::after,
    .right::after {
        left: 23px;
    }

    .right {
        left: 0%;
    }
}

/* --- 6. UNIQUE PROJECT PAGE STYLES --- */

/* Project Hero */
.project-hero {
    background-color: var(--color-bg-light);
    /* Or a subtle blueprint texture? */
    padding: 6rem 0 3rem;   /* War: 8rem 0 4rem → kompakter */
    text-align: center;
}

.project-hero h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3rem); /* War: 3.5rem → fluid */
    color: var(--color-primary);
}

.project-hero .subline {
    font-family: serif;
    font-style: italic;
    color: #047fb8;
    font-size: 1.5rem;
}

/* Signature Projects */
.signature-project-section {
    padding: 0;
}

.signature-project {
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;      /* War: 600px → kompakter */
    position: relative;
    overflow: hidden;
}

.signature-project:nth-child(even) {
    flex-direction: row-reverse;
}

.signature-img-col {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.signature-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.signature-project:hover .signature-img-col img {
    transform: scale(1.03);
}

.signature-text-col {
    flex: 1;
    min-width: 300px;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 3rem;          /* War: 4rem → kompakter */
    position: relative;
    z-index: 1;
}

.signature-content {
    max-width: 500px;
    margin: 0 auto;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
}

.project-meta span i {
    color: #047fb8;
    margin-right: 5px;
}

.signature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.signature-content p {
    color: #000000;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Before After Section */
.before-after-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;  /* War: 6rem → kompakter */
    background: #000000;
    color: white;
}

.comparison-container {
    position: relative;
    width: 100%;
    max-width: 800px;       /* War: 900px → kompakter */
    margin: 0 auto;
    height: 420px;          /* War: 500px → kompakter */
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    cursor: col-resize;
    user-select: none;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Let events pass to container */
}

/* The 'After' image container that changes width */
.img-after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    /* Start at 50% */
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 3px solid white;
}

/* Ensure image stays full width inside the wrapper */
/* Ensure image stays full width inside the wrapper */
.img-after-wrapper .img-after {
    height: 100%;
    object-fit: cover;
    /* We will set width via JS to match container width to prevent squishing */
    width: auto;
    max-width: none;
}

.comparison-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

/* Handle */
.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: col-resize;
    pointer-events: none;
    /* Interaction is on container */
}

/* Project Map Section (Concept) */

/* Gallery Grid Modern */

/* Responsive Sig Project */
@media (max-width: 991px) {
    .signature-project {
        min-height: auto;
    }

    .signature-img-col {
        min-height: 300px;
    }

    .signature-text-col {
        padding: 3rem 1.5rem;
    }
}


/* --- 7. UNIQUE CONTACT PAGE STYLES --- */

/* Contact Hero */
.contact-hero {
    position: relative;
    height: auto;
    min-height: clamp(24rem, 55vh, 34rem);
    min-height: clamp(24rem, 55svh, 34rem);
    min-height: clamp(24rem, 55svh, 34rem);
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/contact_hero_handshake.webp') center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    color: white;
}

.contact-hero h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.25rem); /* War: 4rem hart → Jetzt fluid */
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.contact-cards-section {
    position: relative;
    margin-top: -100px;
    /* Overlap hero */
    z-index: 10;
    padding-bottom: 4rem;
}

/* Contact Cards (Business Card Style) */
.contact-card {
    background: white;
    padding: 2rem;      /* War: 2.5rem → kompakter */
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
    border-left: 4px solid #047fb8;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card.emergency {
    background: #000000;
    color: white;
    border-left: 4px solid #047fb8;
    /* Red warning */
}

.contact-card.emergency h3,
.contact-card.emergency p,
.contact-card.emergency a {
    color: white;
}

.card-icon {
    font-size: 2rem;
    color: #047fb8;
    margin-bottom: 1.5rem;
}

.contact-card.emergency .card-icon {
    color: #047fb8;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-link {
    font-size: 1.2rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}

.contact-link:hover {
    color: #047fb8;
}

/* Intelligent Form */
.form-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;  /* War: 6rem → kompakter */
    background-color: #ffffff;
}

.smart-form {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .smart-form {
        padding: 2.5rem;
    }
}

.form-floating-input {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-floating-input input,
.form-floating-input textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
}

.form-floating-input input:focus,
.form-floating-input textarea:focus {
    outline: none;
    border-color: #047fb8;
    box-shadow: 0 0 0 4px rgba(4, 127, 184, 0.1);
}

.form-floating-input label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: #fff;
    padding: 0 0.25rem;
}

.form-floating-input input:focus ~ label,
.form-floating-input input:not(:placeholder-shown) ~ label,
.form-floating-input textarea:focus ~ label,
.form-floating-input textarea:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.85rem;
    color: #047fb8;
}

.form-select-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-select-wrapper select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: #fff;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select-wrapper select:focus {
    outline: none;
    border-color: #047fb8;
    box-shadow: 0 0 0 4px rgba(4, 127, 184, 0.1);
}

.form-select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.textarea-wrapper {
    margin-bottom: 1.5rem;
}

.textarea-wrapper textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-form-submit {
    background-color: #047fb8;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-form-submit:hover {
    background-color: #047fb8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-form-submit:active {
    transform: translateY(0);
}

@media (max-width: 576px) {
    .btn-form-submit {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .form-floating-input input,
    .form-floating-input textarea,
    .form-select-wrapper select {
        padding: 1.25rem 1rem;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .smart-form .row > .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* FAQ Accordion */
.faq-section {
    padding: 0;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.faq-button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary);
}

.faq-button:hover {
    color: #047fb8;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--color-text-dark);
}

.faq-content p {
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-content {
    max-height: 200px;
    /* Approx height */
}

/* Google Map Overlay */
.map-overlay-card {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 300px;
    z-index: 10;
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-cards-section {
        margin-top: 2rem;
    }

    .map-overlay-card {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Fix horizontal scroll on liquid comparison slider */
    .comparison-container {
        max-width: 100%;
        height: 350px;
        margin: 0 auto;
    }

    .liquid-slider-section .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        overflow-x: hidden;
    }
}

/* --- 8. SERVICE PAGE: DACHDECKER UNIQUE FEATURES --- */

/* Feature 1: Roof Anatomy */
.roof-anatomy-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;  /* War: 6rem → kompakter */
    background-color: #ffffff;
}

.anatomy-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    filter: drop-shadow(0 15px 20px -5px rgba(0, 0, 0, 0.1), 0 6px 8px -4px rgba(0, 0, 0, 0.1)); /* War: 20px 25px / 8px 10px → kompakter */
}

@media (min-width: 992px) {
    .anatomy-container {
        max-width: 550px;       /* War: 700px → nochmal kompakter für Detailbilder */
    }
}

.anatomy-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.anatomy-hotspot {
    position: absolute;
    width: 32px;                /* War: 36px → kompakter */
    height: 32px;               /* War: 36px → kompakter */
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #047fb8;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.anatomy-hotspot:hover,
.anatomy-hotspot.active {
    transform: scale(1.2);
    background: #047fb8;
}

.anatomy-hotspot:focus {
    outline: none;
}

.anatomy-tooltip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: white;
    padding: 0.875rem;          /* War: 1rem → kompakter */
    border-radius: 8px;
    width: 220px;               /* War: 250px → kompakter */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.anatomy-hotspot:hover .anatomy-tooltip,
.anatomy-hotspot.active .anatomy-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 120%;
}

@media (max-width: 768px) {
    .anatomy-hotspot {
        width: 44px;
        height: 44px;
    }
    
    .anatomy-tooltip {
        width: 200px;
        padding: 0.75rem;
    }
    
    .anatomy-tooltip h4 {
        font-size: 1rem;
    }
    
    .anatomy-tooltip p {
        font-size: 0.85rem;
    }
}

.anatomy-tooltip h4 {
    color: #9bd9e8;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.anatomy-tooltip p {
    font-size: 0.9rem;
    margin: 0;
    color: #9bd9e8;
}

/* Feature 2: Material Atelier */
.material-atelier-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;  /* War: 6rem → kompakter */
    background-color: #000000;
    /* Dark Slate */
    color: white;
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.material-card {
    position: relative;
    height: 350px;      /* War: 400px → kompakter */
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;

}

.material-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    filter: brightness(0.8);
}

.material-card:hover .material-bg {
    transform: scale(1.1);
    filter: brightness(1);
}

.material-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.material-card:hover .material-overlay {
    transform: translateY(0);
}

.material-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.material-desc {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
    color: #9bd9e8;
}

.material-card:hover .material-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Feature 3: Sorglos Timeline */
.timeline-process-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;  /* War: 6rem → kompakter */
}

.timeline-steps {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #9bd9e8;
    transform: translateX(-50%);
}

.timeline-step {
    position: relative;
    margin-bottom: 4rem;
    width: 50%;
}

.timeline-step:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-step:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
    text-align: left;
}

.step-number-tl {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    background: #047fb8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 0 0 8px white;
    z-index: 2;
}

.timeline-step:nth-child(odd) .step-number-tl {
    right: -25px;
}

.timeline-step:nth-child(even) .step-number-tl {
    left: -25px;
}

.step-content h3 {
    color: #000000;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #047fb8;
}

@media (max-width: 768px) {
    .timeline-steps::before {
        left: 25px;
    }

    .timeline-step {
        width: 100%;
        left: 0 !important;
        padding-left: 70px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .step-number-tl {
        left: 0 !important;
    }
}



/* --- 9. SERVICE PAGE: LIQUID PLASTIC UNIQUE FEATURES --- */

/* Feature 1: Zero-Joint Slider Section */
.liquid-slider-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;  /* War: 6rem → kompakter */
    background-color: white;
}

.liquid-slider-section h6.text-primary {
    color: #047fb8 !important;
}

/* Feature 2: Elasticity Section */
.elasticity-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;  /* War: 6rem → kompakter */
    background-color: #000000;
    /* Dark Blue */
    color: white;
}

.elasticity-visual {
    padding: 1.5rem;            /* War: 2rem → kompakter */
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.elasticity-section .fa-check-circle {
    color: #047fb8;
    /* Ensure primary color visibility on dark bg */
}

/* Feature 3: Problem Solver Section */
.problem-solver-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;  /* War: 6rem → kompakter */
    background-color: #ffffff;
    /* Light grey for contrast */
}



/* --- 10. SERVICE PAGE: METAL ROOFING UNIQUE FEATURES --- */

/* Feature 1: Patina Evolution Section */
.patina-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;  /* War: 6rem → kompakter */
    background-color: white;
}

.patina-section h6.text-uppercase {
    color: #047fb8 !important;
}

.patina-display {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.patina-display img {
    max-width: 100%;
    height: auto;
}

.patina-labels {
    font-size: 0.8rem;
    color: #047fb8;
    margin-top: 1rem;
    border-top: 1px solid #9bd9e8;
    padding-top: 1rem;
}

/* Feature 2: Drainage/Invisible Shield Section */
.drainage-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;  /* War: 6rem → kompakter */
    background-color: #ffffff;
}

.drainage-section h6.text-primary {
    color: #047fb8 !important;
}

.drainage-visual {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.drainage-section .alert-light {
    background-color: white;
    color: #000000;
    border: none;
    box-shadow: var(--shadow-sm);
}

/* Footer Overrides for Mobile */
.footer .btn.btn-link {
    display: block;
    margin-bottom: 12px;
    /* Increased spacing */
    padding: 8px 0;
    /* Larger touch area */
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
    font-size: 1.1rem;
    /* More readable on mobile */
}

/* Ensure no horizontal overflow - use clip to preserve sticky positioning */
body {
    overflow-x: clip;
    width: 100%;
}

section,
.container,
.container-fluid,
.container-xxl {
    max-width: 100vw;
}

/* Fix WOW.js animation overflow on mobile */
@media (max-width: 991px) {
    /* Force all sections to clip overflow */
    section {
        overflow-x: hidden !important;
    }

    .services-section-premium {
        overflow: hidden !important;
    }

    .services-section-premium .row {
        overflow: hidden !important;
        max-width: 100vw;
    }

    .services-section-premium .col-lg-4,
    .services-section-premium .col-md-6 {
        overflow: hidden !important;
    }
}

/* --- BOOTSTRAP COLOR CLASS OVERRIDES --- */
/* Force strict color palette on all Bootstrap utility classes */

.text-primary {
    color: #047fb8 !important;
}

.text-success {
    color: #01a0c7 !important;
}

.text-warning {
    color: #9bd9e8 !important;
}

.text-light {
    color: #ffffff !important;
}

.text-dark {
    color: #000000 !important;
}

.text-muted {
    color: #047fb8 !important;
}

.text-white {
    color: #ffffff !important;
}

.bg-primary {
    background-color: #047fb8 !important;
}

.bg-warning {
    background-color: #9bd9e8 !important;
}

.bg-light {
    background-color: #ffffff !important;
}

.bg-dark {
    background-color: #000000 !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.btn-primary {
    background-color: #047fb8 !important;
    border-color: #047fb8 !important;
}

.btn-primary:hover {
    background-color: #01a0c7 !important;
    border-color: #01a0c7 !important;
}

.border-primary {
    border-color: #047fb8 !important;
}

a {
    color: #047fb8;
}

a:hover {
    color: #01a0c7;
}

/* --- MOBILE ANIMATION SPEED FIX --- */
/* Balanced animations on mobile devices (middle ground) */
@media (max-width: 991px) {

    /* Speed up all WOW/Animate.css animations - balanced */
    .animated {
        animation-duration: 0.5s !important;
    }

    /* Reduce all data-wow-delay values by half */

    /* Specific animation speed overrides - balanced */
    .fadeIn,
    .fadeInUp,
    .fadeInLeft,
    .fadeInRight,
    .slideInUp,
    .slideInDown {
        animation-duration: 0.5s !important;
    }
}

/* --- ABOUT PAGE MOBILE OPTIMIZATION --- */
@media (max-width: 991px) {
    /* Philosophy Section Mobile */
    .philosophy-section {
        padding: 3rem 0;
    }
    
    .philosophy-statement h2 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
    
    .philosophy-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .founder-signature {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    /* Timeline Section Mobile */
    .timeline-section {
        padding: 3rem 0;
    }
    
    .timeline {
        padding: 0 10px;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 55px;
        padding-right: 15px;
    }
    
    .timeline-item::after {
        left: 12px;
    }
    
    .left::after,
    .right::after {
        left: 12px;
    }
    
    .right {
        left: 0;
    }
    
    .timeline-content {
        padding: 15px 20px;
    }
    
    .timeline-year {
        font-size: 2rem;
        top: 5px;
        right: 10px;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }

    /* Values Section Mobile */
    .values-section {
        padding: 3rem 0;
    }
    
    .values-section h2 {
        font-size: 1.75rem;
    }
    
    .value-card {
        padding: 2rem 1.5rem;
    }
    
    .value-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .value-card h3 {
        font-size: 1.25rem;
    }
    
    .value-card p {
        font-size: 0.95rem;
    }

    /* CTA Section Mobile */
    .cta-section {
        padding: 3rem 0 !important;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .cta-section p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
    
    .cta-section .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    .about-hero {
        height: auto;
        min-height: clamp(24rem, 80svh, 36rem);
        min-height: clamp(24rem, 80svh, 36rem);
    }
    
    .about-hero h1 {
        font-size: 1.5rem;
    }
    
    .about-hero .lead {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .philosophy-section {
        padding: 2rem 0;
    }
    
    .philosophy-statement h2 {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
    }
    
    .philosophy-text p {
        font-size: 0.95rem;
    }
    
    .timeline-section {
        padding: 2rem 0;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .timeline-content {
        padding: 12px 15px;
    }
    
    .timeline-year {
        font-size: 1.5rem;
    }
    
    .timeline-content h4 {
        font-size: 1rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    .values-section {
        padding: 2rem 0;
    }
    
    .values-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem !important;
    }
    
    .values-section .text-white-50 {
        font-size: 0.9rem;
    }
    
    .value-card {
        padding: 1.5rem 1rem;
    }
    
    .value-icon {
        font-size: 2rem;
    }
    
    .value-card h3 {
        font-size: 1.1rem;
    }
    
    .cta-section {
        padding: 2rem 0 !important;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section .btn {
        padding: 12px 20px !important;
        font-size: 0.9rem;
    }
}

/* ============================================================
   LAPTOP RANGE OPTIMIZATION (MacBook 13" @ 100% Zoom)
   Target: 1280px - 1535px viewport width
   Purpose: More compact layout without affecting 16" MacBooks
   ============================================================ */
@media (min-width: 1280px) and (max-width: 1535px) {
    :root {
        /* Spacing Tokens - reduced for compact laptop screens */
        --section-padding: clamp(2rem, 4vw, 3rem);          /* 32-48px (was 40-64px) */
        --spacing-xl: clamp(2.5rem, 4vw, 3.5rem);           /* 40-56px (was 48-72px) */
        --spacing-lg: clamp(1.25rem, 3vw, 2rem);            /* 20-32px (was 24-48px) */
        --spacing-md: 1.25rem;                               /* 20px (was 24px) */

        /* Typography - slightly more compact */
        --fs-h1: clamp(1.875rem, 3.5vw + 0.75rem, 2.75rem); /* 30-44px (was 32-52px) */
        --fs-h2: clamp(1.375rem, 2.5vw + 0.5rem, 2rem);     /* 22-32px (was 24-40px) */
        --fs-h3: clamp(1.125rem, 1.75vw + 0.5rem, 1.5rem);  /* 18-24px (was 20-28px) */
        --fs-body: 1rem;                                     /* 16px base */

        /* Container padding - tighter for laptops */
        --container-padding: clamp(12px, 2vw, 24px);
    }

    /* Bootstrap Display Classes - compact for laptop range */
    .display-1 { font-size: clamp(2.25rem, 4vw + 0.75rem, 3.25rem) !important; }  /* 36-52px */
    .display-2 { font-size: clamp(2rem, 3.5vw + 0.75rem, 2.75rem) !important; }   /* 32-44px */
    .display-3 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem) !important; }    /* 28-40px */
    .display-4 { font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem) !important; }     /* 24-32px */
    .display-5 { font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem) !important; }   /* 20-28px */
    .display-6 { font-size: clamp(1.125rem, 1.75vw + 0.5rem, 1.5rem) !important; } /* 18-24px */

    /* Hero Section - reduced height for 13" screens */
    .hero-section {
        height: 75vh;               /* Same as default */
        min-height: 500px;          /* Same as default */
    }

    /* Hero content adjustments */
    .hero-content p {
        font-size: 1.0625rem;       /* 17px instead of 18px */
        margin-bottom: 1.5rem;      /* Reduced from 1.75rem */
    }
    
    .hero-tagline {
        max-width: none !important;
    }

    .trust-badges {
        margin-top: 1.5rem;         /* Reduced from 2rem */
        gap: 1.25rem;               /* Reduced from 1.5rem */
    }

    /* Service Page Heroes - compact */
    .reparatur-hero,
    .daemmung-hero,
    .sanierung-hero,
    .klempner-hero,
    .liquid-hero,
    .about-hero,
    .contact-hero {
        height: auto;
        min-height: clamp(26rem, 65vh, 38rem);
        min-height: clamp(26rem, 65svh, 38rem);
        min-height: clamp(26rem, 65svh, 38rem);
    }

    /* Section Title spacing */
    .section-title {
        margin-bottom: 1.25rem;     /* Reduced from 1.5rem */
    }

    .section-title h2 {
        margin-bottom: 0.75rem;
    }

    /* Service Cards - tighter padding */
    .service-card-body {
        padding: 1rem;              /* Reduced from 1.25rem */
    }

    .service-card h3 {
        font-size: 1.125rem;        /* 18px instead of 20px */
        margin-bottom: 0.5rem;
    }

    /* Process Steps - compact */
    .process-step {
        padding: 2rem 1.5rem;       /* Reduced from 2.5rem 1.75rem */
    }

    .step-number {
        width: 44px;                /* Reduced from 50px */
        height: 44px;
        margin: -4rem auto 1.25rem; /* Adjusted offset */
        font-size: 1.125rem;
    }

    /* Cards general - tighter */
    .value-card,
    .testimonial-card,
    .contact-card {
        padding: 1.5rem;            /* Reduced from 2rem */
    }

    /* Glass cards on service pages */
    .glass-card {
        padding: 1.5rem;            /* Reduced from p-4/p-5 */
    }

    /* Timeline content */
    .timeline-content {
        padding: 14px 20px;         /* Reduced from 16px 24px */
    }

    /* USP List tighter */
    .usp-list .usp-item {
        margin-bottom: 1.25rem;     /* Reduced from 1.5rem */
    }

    /* Footer compact */
    .footer-custom {
        padding-top: 2.5rem;        /* Reduced from 3rem */
    }

    .footer-bottom {
        padding: 1rem 0;            /* Reduced from 1.25rem */
        margin-top: 2rem;           /* Reduced from 2.5rem */
    }

    /* Roof Tile Cards */
    .roof-tile-card .d-flex.align-items-center {
        padding: 1rem;              /* Tighter padding */
    }

    /* Anatomy section */
    .anatomy-container {
        max-width: 480px;           /* Reduced from 550px */
    }

    .anatomy-hotspot {
        width: 28px;                /* Reduced from 32px */
        height: 28px;
    }

    /* Material Cards */
    .material-card {
        height: 300px;              /* Reduced from 350px */
    }

    /* Before/After comparison */
    .comparison-container {
        max-width: 720px;           /* Reduced from 800px */
        height: 380px;              /* Reduced from 420px */
    }

    /* Signature Projects */
    .signature-project {
        min-height: 420px;          /* Reduced from 500px */
    }

    .signature-text-col {
        padding: 2.5rem;            /* Reduced from 3rem */
    }
}

/* ============================================================
   TOKEN COMPLIANCE ENFORCEMENT
   Ensures all service pages use global tokens, not page-specific values
   ============================================================ */

/* Force section-padding to use token on ALL pages */
section.section-padding,
div.section-padding,
.section-padding {
    padding-top: var(--section-padding, clamp(2.5rem, 5vw, 4rem));
    padding-bottom: var(--section-padding, clamp(2.5rem, 5vw, 4rem));
}

/* Prevent page-specific overrides from breaking the scale */
@media (min-width: 1280px) and (max-width: 1535px) {
    /* Service page specific section overrides - laptop range */
    .bg-premium-dark.section-padding,
    .bg-white.section-padding,
    .bg-light.section-padding {
        padding-top: var(--section-padding) !important;
        padding-bottom: var(--section-padding) !important;
    }
}

/* ============================================================
   RESPONSIVE SAFE-AREA + MOTION OVERRIDES
   ============================================================ */

:root {
    --sat: env(safe-area-inset-top, 0px);
    --sar: env(safe-area-inset-right, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-sm: clamp(0.75rem, 1.5vw, 1.25rem);
    --spacing-md: clamp(1rem, 2vw, 1.75rem);
    --spacing-lg: clamp(1.5rem, 3.5vw, 3rem);
    --spacing-xl: clamp(2.5rem, 5vw, 4.5rem);
    --container-padding: clamp(1rem, 2.8vw, 2.5rem);
    --header-height: clamp(64px, 8vw, 88px);
}

html {
    scroll-padding-top: calc(var(--header-height) + var(--sat));
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    padding-left: var(--sal);
    padding-right: var(--sar);
}

.container,
.container-xxl,
.container-fluid {
    padding-left: calc(var(--container-padding) + var(--sal));
    padding-right: calc(var(--container-padding) + var(--sar));
}

@media (min-width: 1280px) {
    .container,
    .container-xxl {
        max-width: 1200px;
    }
}

@media (min-width: 1600px) {
    .container,
    .container-xxl {
        max-width: 1320px;
    }
}

.navbar-custom {
    min-height: calc(var(--header-height) + var(--sat));
    padding-top: var(--sat);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.navbar-custom.is-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.topbar-custom {
    padding-top: var(--sat);
}

.hero-section {
    height: auto;
    min-height: clamp(32rem, 100vh, 52rem);
    min-height: clamp(32rem, 100svh, 52rem);
    padding-top: calc(clamp(4rem, 8vh, 6rem) + var(--sat));
    padding-bottom: calc(clamp(3rem, 7vh, 5rem) + var(--sab));
}

@media (min-width: 1280px) and (max-width: 1535px) {
    .hero-section {
        min-height: clamp(24rem, 65vh, 36rem);
        padding-top: calc(clamp(2rem, 5vh, 4rem) + var(--sat));
        padding-bottom: calc(clamp(1.5rem, 4vh, 3rem) + var(--sab));
    }

    .hero-content {
        padding: 3rem 0 !important;
    }

    .hero-eyebrow {
        margin-bottom: 1.25rem !important;
    }

    .hero-content h1 {
        margin-bottom: 1rem !important;
        font-size: 2.85rem !important;
    }

    .hero-content p {
        margin-bottom: 2rem !important;
        font-size: 1.125rem !important;
    }

    .hero-actions {
        margin-bottom: 2rem !important;
    }

    .trust-badges {
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: clamp(28rem, 100svh, 44rem);
        padding-top: calc(clamp(4rem, 10vh, 6rem) + var(--sat));
        padding-bottom: calc(clamp(3rem, 8vh, 5rem) + var(--sab));
    }
}

.video-container,
.hero-section {
    overflow-x: clip;
}

.offcanvas-custom {
    padding-top: var(--sat);
    padding-bottom: var(--sab);
}

.offcanvas-custom .offcanvas-header,
.offcanvas-custom .offcanvas-body {
    padding-left: calc(1.5rem + var(--sal));
    padding-right: calc(1.5rem + var(--sar));
}

.offcanvas-custom .offcanvas-body {
    padding-bottom: calc(1.5rem + var(--sab));
}

@media (max-width: 991.98px) {
    .offcanvas-custom {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 768px) {
    .navbar-toggler,
    .mobile-call-btn,
    .mobile-dropdown-toggle,
    .offcanvas-custom .nav-link {
        min-height: 44px;
    }
}

img,
video {
    max-width: 100%;
    height: auto;
}

@media (pointer: coarse) {
    .hero-content h1::after,
    .video-overlay::before {
        animation: none !important;
    }

    .hero-content .btn-primary-custom,
    .hero-content .btn-secondary-custom {
        transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.service-card,
.value-card,
.testimonial-card,
.contact-card,
.material-card,
.roof-tile-card,
.map-overlay-card,
.glass-card {
    box-shadow: 0 12px 26px rgba(8, 28, 47, 0.08);
    border-color: rgba(8, 28, 47, 0.12);
}

/* --- TYPOGRAPHY REFINEMENTS (GLOBAL OVERRIDES) --- */
/* Enforcing lighter weights and better readability */

body {
    line-height: 1.65 !important;
    font-weight: 400 !important;
}

h1, .h1 {
    font-weight: 600 !important;
    letter-spacing: -0.02em;
}

h2, .h2 {
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

h3, .h3 {
    font-weight: 500 !important;
}

h4, .h4, h5, .h5, h6, .h6 {
    font-weight: 500 !important;
}

/* Relaxed reading experience */
main p, 
main li,
.hero-content p {
    max-width: 65ch;
    margin-bottom: 1.25em; /* Typographic margin */
}

/* Fix for centering text with max-width */
.text-center p, 
.text-center > p,
[class*="text-center"] p,
.cta-section p,
.roof-anatomy-section p {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Micro-spacing adjustments */
p + p {
    margin-top: 0.5em !important;
}

h2 + p, 
h3 + p {
    margin-top: 0.75em !important;
}

/* Lighter UI elements */
.btn {
    font-weight: 500 !important;
    letter-spacing: 0.02em;
}

.badge {
    font-weight: 500 !important;
    letter-spacing: 0.03em;
}

/* ============================================================
   iOS Safari Navbar Auto-Hide + Theme Color Support
   ============================================================ */

/* Navbar Auto-Hide - Fixed positioning with smooth transitions */
.navbar-autohide {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar-autohide.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-autohide.navbar-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Offcanvas Backdrop dunkler für iOS Theme-Color */
.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.85) !important;
}

/* Body padding-top für fixed navbar */
body {
    padding-top: calc(var(--header-height, 70px) + env(safe-area-inset-top, 0px));
}

/* Auf Mobile kein padding-top wenn Hero vorhanden (Hero geht bis oben) */
@media (max-width: 991.98px) {
    body:has(.hero-section) {
        padding-top: 0;
    }
}

