:root {
    /* Color Palette - Premium & Trustworthy */
    --color-primary: #0a192f;
    /* Deep Navy */
    --color-secondary: #0097a7;
    /* Darker Teal for better contrast */
    --color-accent: #ff4081;
    /* Pink for forceful CTAs (optional) */
    --color-logo-accent: #ff8c00;
    /* Dark Orange for Logo */
    --color-text-main: #333333;
    --color-text-light: #f4f4f4;
    --color-bg-light: #ffffff;
    --color-bg-off-white: #f9f9f9;
    --color-border: #e0e0e0;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    /* For headings to add class */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows & Radius */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: #0097a7;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section {
    padding: var(--spacing-lg) 0;
}

.bg-off-white {
    background-color: var(--color-bg-off-white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-accent {
    color: var(--color-logo-accent);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    color: var(--color-primary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-secondary);
}

/* Premium Call Button (Hero) */
.phone-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #0097a7, #00acc1);
    color: white !important;
    padding: 16px 40px;
    border-radius: var(--radius-full);
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow:
        0 4px 15px rgba(0, 151, 167, 0.3),
        inset 0 2px 2px rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.phone-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    transition: 0.6s;
}

.phone-badge:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 151, 167, 0.4);
    filter: brightness(1.1);
}

.phone-badge:hover::after {
    left: 100%;
}

.phone-badge .icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    /* Adjusted from height: 80vh */
    background-color: #f8faff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-primary);
    position: relative;
}

/* Removed .hero::after overlay as we are moving to light background */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 3rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

/* Featured Image in Hero */
.hero-featured-image {
    max-width: 1100px;
    /* Slightly larger as requested "noch mehr" */
    width: 100%;
    height: auto;
    display: block;
    margin: 4rem auto 0;
    border-radius: 80px;
    /* Soft blending shadow */
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.02),
        0 30px 70px rgba(0, 0, 0, 0.03);
    border: none;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* THE MAGIC: Fade edges to zero opacity */
    -webkit-mask-image: radial-gradient(circle at center, black 50%, rgba(0, 0, 0, 0.8) 70%, transparent 95%);
    mask-image: radial-gradient(circle at center, black 50%, rgba(0, 0, 0, 0.8) 70%, transparent 95%);

    /* Blending mode to remove any residual white background from the image file */
    mix-blend-mode: multiply;

    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.05));
}

.hero-featured-image:hover {
    transform: translateY(-5px) scale(1.02);
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.08));
}

.contact-featured-image {
    max-width: 450px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Hero Trust Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.badge-item.tuev {
    color: #00509B;
    /* TÜV Blue */
}

.badge-item.stars {
    color: #FFB400;
    /* Star Gold */
}

/* Glassmorphism Icon System */
.glass-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.glass-icon-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.05),
        inset 0 4px 4px rgba(255, 255, 255, 0.4);
}

.glass-icon-container svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Form Styles */
.contact-form {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    display: block;
}

/* Contextual Linking Grid */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.link-item {
    background: white;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.link-item:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* Trust Signals */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* USPs Grid */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.usp-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.usp-item:hover {
    transform: translateY(-5px);
}

.usp-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Swiper Testimonials */
.swiper {
    width: 100%;
    padding-bottom: 3rem;
    /* Space for pagination */
}

.testimonial-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

/* Sticky Mobile Bottom Bar */
.mobile-sticky-bar {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    padding: 10px;
}

.mobile-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    gap: 8px;
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-phone {
    background-color: var(--color-secondary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    position: absolute;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        /* Push content down on mobile to clear fixed navbar */
        min-height: 500px;
        height: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
        /* Adjusted for readability */
    }

    .hamburger {
        display: block;
        /* Show hamburger on mobile */
    }

    /* Mobile Nav Overlay */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
        /* Slide in */
        display: flex;
        /* Ensure it stays flex */
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        /* Large touch targets */
        display: block;
        padding: 10px 20px;
        /* Hit area increase */
    }

    .mobile-sticky-bar {
        display: block;
        /* Show sticky bar on mobile */
    }

    body {
        padding-bottom: 70px;
        /* Space for sticky bar */
    }
}

/* Professional Footer - Fix for oversized icons */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: left;
}

.footer-column h5 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-secondary);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
    transition: transform 0.2s ease;
}

.footer-column ul li:hover {
    transform: translateX(5px);
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-column ul li a:hover {
    color: white;
}

/* CRITICAL: SVG Sizing to prevent large icons */
.footer-icon-inline {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
    opacity: 0.6;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-grid {
        gap: 2rem;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column h5 {
        justify-content: center;
    }

    .footer-column h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column ul li a {
        justify-content: center;
    }
}