/* ========================================
   Root Variables & Reset
   ======================================== */
:root {
    /* Brand Colors with Gradient */
    --accent-primary: #E6C23C;
    --accent-gradient-top: #E5C44D;
    --accent-gradient-bottom: #F3D663;
    --accent-gradient: linear-gradient(135deg, var(--accent-gradient-top) 0%, var(--accent-gradient-bottom) 100%);
    
    /* Base Colors */
    --color-white: #FFFFFF;
    --color-black: #0A0A0A;
    --color-gray-50: #FAFAFA;
    --color-gray-100: #F5F5F5;
    --color-gray-200: #E5E5E5;
    --color-gray-300: #D4D4D4;
    --color-gray-400: #A3A3A3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;
    
    /* Semantic Colors */
    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-info: #3B82F6;
    
    /* Typography */
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-accent: 0 10px 25px rgba(230, 194, 60, 0.2);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 100ms ease;
    --transition-base: 150ms ease;
    --transition-slow: 200ms ease;
    
    /* Z-Index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-notification: 500;
    --z-tooltip: 600;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
}

/* ========================================
   Utility & Performance
   ======================================== */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn:hover,
.risk-card:hover,
.package-card:hover,
.feature-card:hover {
    will-change: transform;
}

section {
    isolation: isolate;
}

.hero,
.problem-section,
.solution-section {
    contain: layout;
}

/* ========================================
   Loading Animation
   ======================================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--color-gray-200);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Progress Indicator
   ======================================== */
.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-gradient);
    z-index: var(--z-tooltip);
    transition: width var(--transition-base);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin-bottom: var(--spacing-md); }

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--accent-gradient-top); }

/* ========================================
   Layout
   ======================================== */
.page-wartung main .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (min-width: 768px) {
    .page-wartung main .container {
        padding: 0 var(--spacing-xl);
    }
}

/* ========================================
   Components: Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--color-white);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 45px -10px rgba(230, 194, 60, 0.5);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-gray-800);
    border-color: var(--color-gray-300);
}

.btn-secondary:hover {
    background: var(--color-gray-50);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: var(--spacing-4xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--accent-gradient);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-description {
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
    color: var(--color-gray-600);
    font-size: 1.125rem;
}

/* ========================================
   Hero Section - FIXED
   ======================================== */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    background: var(--color-white);
    overflow-x: hidden;
    padding-top: var(--spacing-3xl);
    padding-bottom: 150px;
}

.hero-background {
    position: absolute;
    top: 0;
    right: -20%;
    width: 70%;
    height: 100%;
    opacity: 0.1;
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(230, 194, 60, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
}

.hero-title {
    margin-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-gray-700) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-gray-900);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
}

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solar-panel-3d {
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ========================================
   Problem Section
   ======================================== */
.problem-section {
    background: var(--color-gray-50);
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-2xl);
}

.risk-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
}

.risk-card:hover,
.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.risk-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    background: rgba(230, 194, 60, 0.1);
}

/* FIXED: Target the icon element directly for sizing and color */
.risk-icon i {
    font-size: 2rem;
    color: var(--accent-primary);
}

/* SVG Icon Styling */
.risk-svg-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--accent-primary);
}

.risk-icon-wrapper.danger { background: rgba(239, 68, 68, 0.1); }
.risk-icon-wrapper.danger .risk-icon i,
.risk-icon-wrapper.danger .risk-svg-icon { color: var(--color-danger); }

.risk-icon-wrapper.warning { background: rgba(245, 158, 11, 0.1); }
.risk-icon-wrapper.warning .risk-icon i,
.risk-icon-wrapper.warning .risk-svg-icon { color: var(--color-warning); }

/* Risk Indicator with Icons */
.risk-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.risk-badge-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.risk-level {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.risk-level.high {
    background: rgba(230, 194, 60, 0.1);
    color: var(--accent-primary);
}

.risk-level.critical {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

.risk-level.medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}


/* ========================================
   Solution Section - FIXED
   ======================================== */
.solution-section {
    background: var(--color-white);
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
}

/* Gray background line */
.process-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 30px;
    width: 4px;
    height: calc(100% - 60px);
    background: var(--color-gray-200);
    z-index: 1;
}

/* Gold progress line - VISIBLE */
.timeline-progress {
    position: absolute;
    left: 28px;
    top: 30px;
    width: 4px;
    height: 0;
    background: var(--accent-gradient);
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    max-height: calc(100% - 60px);
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-3xl);
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.process-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    position: relative;
    border: 4px solid var(--color-white);
}

.step-content {
    flex: 1;
    margin-left: var(--spacing-2xl);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
}

.step-list {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-lg);
}

.step-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.step-list i {
    color: var(--accent-primary);
    margin-top: 4px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-image {
        display: none;
    }
    .hero-cta-group {
        justify-content: center;
    }
    .hero-benefits {
       justify-items: center;
    }
     .benefit-item {
        justify-content: center;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-cta-group {
        flex-direction: column;
    }
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .process-timeline::before,
    .timeline-progress {
        display: none;
    }
    .step-content {
        margin-left: 0;
        margin-top: var(--spacing-lg);
        width: 100%;
    }
}



.thermography-box {
    margin-top: var(--spacing-4xl);
    background: var(--accent-gradient);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-3xl);
    color: var(--color-white);
}

.thermography-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
    justify-content: center;
}

.thermography-icon {
    font-size: 3rem;
}

.thermography-text {
    flex: 1;
}

.thermography-text h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.thermography-text p {
    color: var(--color-white);
    opacity: 0.95;
    margin: 0;
}

/* ========================================
   Packages Section
   ======================================== */
.packages-section {
    background: var(--color-gray-50);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
    align-items: stretch;
}

.package-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    contain: layout;
}

.package-card.featured {
    border: 2px solid var(--accent-primary);
    transform: scale(1.05);
}

.package-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-gradient);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
}

.package-header {
    margin-bottom: var(--spacing-xl);
}

.package-header h3 {
    margin-bottom: var(--spacing-sm);
}

.package-header p {
    color: var(--color-gray-600);
}

.package-price {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
}

.package-price .currency {
    font-size: 1.25rem;
    color: var(--color-gray-600);
}

.package-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.package-price .period {
    color: var(--color-gray-600);
}

.package-features {
    list-style: none;
    flex: 1;
    margin-bottom: var(--spacing-xl);
    padding: 0;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.package-features li i {
    color: var(--accent-primary);
    margin-top: 4px;
}

.package-features li.highlight i {
    color: var(--accent-gradient-bottom);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    background: var(--color-white);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-2xl);
    background: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
    font-size: 1.125rem;
    font-weight: 700;
    text-align: left;
    font-family: var(--font-sans);
    color: var(--color-gray-900);
    gap: var(--spacing-lg);
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-item.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(230, 194, 60, 0.1);
}

.faq-item.active .faq-question {
    color: var(--accent-primary);
}

.faq-question i {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--accent-primary);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    padding: 0 var(--spacing-2xl);
    background: var(--color-gray-50);
}

.faq-answer p {
    padding: var(--spacing-xl) 0;
    color: var(--color-gray-700);
    line-height: 1.8;
    font-size: 1rem;
}

/* ========================================
   Why Us Section - Modern Design
   ======================================== */
.why-us-section {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-50) 100%);
    position: relative;
    overflow: hidden;
}

.why-us-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-3xl) var(--spacing-xl);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(230, 194, 60, 0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(230, 194, 60, 0.15);
    border-color: var(--accent-primary);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--spacing-xl);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: var(--accent-gradient);
    border-radius: 20px;
    opacity: 0.1;
    transform: rotate(6deg);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.feature-card:hover .feature-icon::before {
    transform: rotate(12deg) scale(1.1);
    opacity: 0.15;
}

.feature-icon i {
    font-size: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-sans);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-primary);
}

.testimonial-quote {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.testimonial-quote i {
    font-size: 2rem;
    color: var(--accent-primary);
    opacity: 0.3;
    margin-bottom: var(--spacing-md);
}

.testimonial-quote p {
    font-style: italic;
    color: var(--color-gray-700);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
}

.author-info strong {
    display: block;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-xs);
}

.rating {
    display: flex;
    gap: 2px;
}

.rating i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-gray-800) 100%);
    color: var(--color-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-info h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-xl);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.contact-item i {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-link {
    color: var(--accent-primary);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-link:hover {
    color: var(--accent-gradient-bottom);
}

/* ========================================
   Contact Form
   ======================================== */
.contact-form {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-2xl);
}

.contact-form.highlight {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0%, 100% {
        box-shadow: var(--shadow-2xl);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(230, 194, 60, 0.5);
    }
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(230, 194, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.checkbox-group label {
    color: var(--color-gray-700);
    font-size: 0.9rem;
}

.checkbox-group label a {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* ========================================
   Notification System
   ======================================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-notification);
    transform: translateX(400px);
    transition: transform var(--transition-base);
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.notification-success {
    border-left: 4px solid var(--color-success);
}

.notification-success i {
    color: var(--color-success);
}

.notification-error {
    border-left: 4px solid var(--color-danger);
}

.notification-error i {
    color: var(--color-danger);
}

.notification-info {
    border-left: 4px solid var(--color-info);
}

.notification-info i {
    color: var(--color-info);
}

/* ========================================
   Image Placeholders
   ======================================== */
.image-fill {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 194, 60, 0.1) 0%, rgba(243, 214, 99, 0.15) 100%);
    border: 2px dashed var(--accent-primary);
    border-radius: var(--radius-xl);
    color: var(--accent-primary);
    transition: all var(--transition-base);
    cursor: pointer;
    min-height: 350px;
}

.image-fill:hover {
    background: linear-gradient(135deg, rgba(230, 194, 60, 0.15) 0%, rgba(243, 214, 99, 0.2) 100%);
    border-color: var(--accent-gradient-bottom);
    transform: scale(1.02);
}

.image-fill i {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.6;
}

.image-fill p {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    opacity: 0.8;
}

.solar-panel-3d .image-fill {
    min-height: 100%;
}

/* Image-Text Grid Layout */
.image-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    margin-top: var(--spacing-4xl);
    margin-bottom: var(--spacing-3xl);
}

.image-text-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-lg);
}

.image-text-content p {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
}

.problem-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.problem-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
    color: var(--color-gray-700);
}

.problem-list i {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

@media (max-width: 968px) {
    .image-text-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .image-fill {
        min-height: 300px;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        display: none;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-4xl: 4rem;
        --spacing-3xl: 3rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .hero-benefits {
        grid-template-columns: 1fr;
    }
    
    .risk-grid,
    .packages-grid,
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .package-card.featured {
        transform: scale(1);
    }
    
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .process-step::before {
        display: none;
    }
    
    .timeline-progress {
        display: none;
    }
    
    .step-content {
        margin-left: 0;
        margin-top: var(--spacing-lg);
        width: 100%;
    }
    
    .thermography-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .page-wartung main .container {
        padding: 0 var(--spacing-md);
    }
    
    .btn-large {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .loader-wrapper,
    .progress-indicator {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ========================================
   Accessibility
   ======================================== */
@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;
    }
}



/* Reale Bilder vollflächig in ihren Boxen anzeigen */
.image-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

/* Hero-spezifisch (damit das Bild die Box füllt) */
.solar-panel-3d img.image-fill {
  border-radius: var(--radius-xl);
  height: 100%;
}

/* ========================================
   CONTACT: EXTRA-COMPACT MOBILE (<= 768px)
   ======================================== */
@media (max-width: 768px) {
  .page-wartung .contact-section {
    padding: var(--spacing-xl) 0;               /* vorher 2xl */
  }

  .page-wartung .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* Typografie im Kontaktbereich gezielt kleiner + straffere Zeilenhöhe */
  .page-wartung .contact-section h2 {
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
    margin-bottom: var(--spacing-md);
  }
  .page-wartung .contact-section p,
  .page-wartung .contact-section li,
  .page-wartung .contact-section label,
  .page-wartung .contact-link {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  /* Kontakt-Infos kompakter */
  .page-wartung .contact-details { gap: var(--spacing-md); }
  .page-wartung .contact-item { gap: var(--spacing-sm); }
  .page-wartung .contact-item i {
    width: 32px; height: 32px; font-size: 0.95rem;
    border-radius: var(--radius-md);
  }
  .page-wartung .contact-link { font-size: 1rem; }

  /* Formular kompakter */
  .page-wartung .contact-form {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  .page-wartung .form-group { margin-bottom: var(--spacing-md); }
  .page-wartung .form-group input,
  .page-wartung .form-group textarea {
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;                    /* vorher größer */
    border-radius: var(--radius-md);
  }
  .page-wartung .form-group textarea { min-height: 96px; }

  .page-wartung .checkbox-group { gap: 0.4rem; }
  .page-wartung .checkbox-group label { font-size: 0.85rem; }

  /* Buttons kleiner, aber noch gut tappbar */
  .page-wartung .contact-form .btn {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
  }
}

/* Ultra-compact phones (<= 480px) */
@media (max-width: 480px) {
  .page-wartung .contact-section { padding: var(--spacing-lg) 0; }

  .page-wartung .contact-section h2 {
    font-size: clamp(1rem, 4.2vw, 1.2rem);
    margin-bottom: var(--spacing-sm);
  }
  .page-wartung .contact-section p,
  .page-wartung .contact-section li,
  .page-wartung .contact-section label,
  .page-wartung .contact-link {
    font-size: 0.85rem;                         /* noch kleiner */
    line-height: 1.4;
  }

  .page-wartung .contact-item i {
    width: 28px; height: 28px; font-size: 0.85rem;
  }

  .page-wartung .contact-form {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
  }
  .page-wartung .form-group input,
  .page-wartung .form-group textarea {
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
  }
  .page-wartung .form-group textarea { min-height: 84px; }

  .page-wartung .contact-form .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
  }
}


/* ========================================
   GLOBAL EXTRA-COMPACT (<= 768px)
   Gilt für alle Sektionen auf der Wartungsseite
   ======================================== */
@media (max-width: 768px) {
  /* Grundschrift & Zeilenhöhe leicht reduziert (nur auf der Wartungsseite) */
  .page-wartung {
    font-size: 0.95rem;                 /* global etwas kleiner */
    line-height: 1.45;
  }

  /* Section-Padding überall straffer */
  .page-wartung section {
    padding: var(--spacing-xl) 0;       /* vorher größer */
  }

  /* Headline/Copy allgemein kleiner + straffere Abstände */
  .page-wartung h1 { font-size: clamp(1.35rem, 6vw, 1.8rem); margin-bottom: var(--spacing-md); }
  .page-wartung h2 { font-size: clamp(1.1rem, 5vw, 1.5rem);  margin-bottom: var(--spacing-sm); }
  .page-wartung h3 { font-size: clamp(1rem, 4.5vw, 1.25rem); margin-bottom: var(--spacing-xs); }
  .page-wartung p  { margin-bottom: var(--spacing-sm); }

  .page-wartung .section-header { margin-bottom: var(--spacing-xl); }
  .page-wartung .section-description { font-size: 1rem; margin-top: var(--spacing-md); }

  /* Container seitlich enger */
  .page-wartung main .container { padding: 0 var(--spacing-md); }

  /* Badges/Chips kleiner */
  .page-wartung .section-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
  }

  /* ---------------- Hero ---------------- */
  .page-wartung .hero {
    min-height: unset;
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
  }
  .page-wartung .hero-badge { margin-bottom: var(--spacing-md); }
  .page-wartung .hero-title { margin-bottom: var(--spacing-md); }
  .page-wartung .hero-subtitle { font-size: 1.05rem; margin-bottom: var(--spacing-lg); }
  .page-wartung .hero-cta-group { gap: var(--spacing-sm); margin-bottom: var(--spacing-lg); }
  /* Bilder im Hero bleiben wie definiert (kein Override nötig) */

  /* ---------------- Image-Text-Layouts ---------------- */
  .page-wartung .image-text-grid {
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
  }
  .page-wartung .image-text-content p { font-size: 0.95rem; margin-bottom: var(--spacing-sm); }
  /* .image-fill NICHT ändern -> Bildgrößen bleiben */

  /* ---------------- Cards/Grids allgemein ---------------- */
  .page-wartung .risk-grid,
  .page-wartung .packages-grid,
  .page-wartung .testimonials,
  .page-wartung .features-grid {
    gap: var(--spacing-lg);
  }

  .page-wartung .risk-card,
  .page-wartung .package-card,
  .page-wartung .testimonial-card,
  .page-wartung .feature-card {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }

  /* Icons allgemein kleiner (Font-Icons und Wrapper) */
  .page-wartung .risk-icon-wrapper { width: 56px; height: 56px; margin-bottom: var(--spacing-md); }
  .page-wartung .risk-icon i,
  .page-wartung .feature-icon i,
  .page-wartung .package-features li i,
  .page-wartung .problem-list i {
    font-size: 1.1rem;
  }
  .page-wartung .risk-svg-icon,
  .page-wartung .feature-icon svg { width: 1.4rem; height: 1.4rem; }

  /* Feature-Icon Container */
  .page-wartung .feature-icon { width: 56px; height: 56px; margin-bottom: var(--spacing-md); }
  .page-wartung .feature-card::before { height: 3px; }

  /* ---------------- Problem-Section ---------------- */
  .page-wartung .problem-section .problem-list li {
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
  }

  /* ---------------- Prozess/Timeline ---------------- */
  .page-wartung .process-step { margin-bottom: var(--spacing-xl); }
  .page-wartung .step-number { width: 44px; height: 44px; font-size: 1rem; }
  .page-wartung .step-content { padding: var(--spacing-md); }

  /* ---------------- Thermografie-Box ---------------- */
  .page-wartung .thermography-box {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-xl);
  }
  .page-wartung .thermography-content { gap: var(--spacing-md); }
  .page-wartung .thermography-icon { font-size: 2rem; }

  /* ---------------- Packages ---------------- */
  .page-wartung .package-card.featured { transform: none; border-width: 1px; }
  .page-wartung .package-header { margin-bottom: var(--spacing-sm); }
  .page-wartung .package-price { gap: var(--spacing-xs); margin-bottom: var(--spacing-md); }
  .page-wartung .package-price .amount { font-size: 1.9rem; }
  .page-wartung .package-features { margin-bottom: var(--spacing-md); }
  .page-wartung .package-features li { gap: var(--spacing-sm); margin-bottom: var(--spacing-sm); font-size: 0.95rem; }

  /* ---------------- FAQ ---------------- */
  .page-wartung .faq-item { margin-bottom: var(--spacing-md); }
  .page-wartung .faq-question {
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: 1rem;
    gap: var(--spacing-md);
  }
  .page-wartung .faq-question i { font-size: 1rem; }
  .page-wartung .faq-answer { padding: 0 var(--spacing-xl); }
  .page-wartung .faq-answer p { padding: var(--spacing-md) 0; font-size: 0.95rem; }

  /* ---------------- Testimonials ---------------- */
  .page-wartung .author-avatar { width: 40px; height: 40px; font-size: 0.9rem; }
  .page-wartung .rating i { font-size: 0.8rem; }

  /* ---------------- Buttons allgemein ---------------- */
  .page-wartung .btn {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
  }
}

/* Ultra-compact phones (<= 480px): noch etwas enger */
@media (max-width: 480px) {
  .page-wartung { font-size: 0.9rem; line-height: 1.4; }
  .page-wartung section { padding: var(--spacing-lg) 0; }

  .page-wartung h1 { font-size: clamp(1.2rem, 6vw, 1.5rem); }
  .page-wartung h2 { font-size: clamp(1rem, 5vw, 1.25rem); }
  .page-wartung h3 { font-size: clamp(0.95rem, 4.5vw, 1.1rem); }

  .page-wartung .section-header { margin-bottom: var(--spacing-lg); }
  .page-wartung main .container { padding: 0 var(--spacing-sm); }

  /* Grids & Cards */
  .page-wartung .risk-grid,
  .page-wartung .packages-grid,
  .page-wartung .testimonials,
  .page-wartung .features-grid { gap: var(--spacing-md); }

  .page-wartung .risk-card,
  .page-wartung .package-card,
  .page-wartung .testimonial-card,
  .page-wartung .feature-card {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
  }

  /* Icon-Downscale */
  .page-wartung .risk-icon-wrapper { width: 48px; height: 48px; }
  .page-wartung .risk-icon i,
  .page-wartung .feature-icon i,
  .page-wartung .package-features li i,
  .page-wartung .problem-list i { font-size: 1rem; }
  .page-wartung .risk-svg-icon,
  .page-wartung .feature-icon svg { width: 1.2rem; height: 1.2rem; }
  .page-wartung .feature-icon { width: 48px; height: 48px; }

  /* Timeline/Prozess */
  .page-wartung .process-step { margin-bottom: var(--spacing-lg); }
  .page-wartung .step-number { width: 40px; height: 40px; font-size: 0.95rem; }
  .page-wartung .step-content { padding: var(--spacing-sm); }

  /* Thermografie */
  .page-wartung .thermography-box { padding: var(--spacing-md); margin-top: var(--spacing-lg); }

  /* FAQ */
  .page-wartung .faq-question { padding: var(--spacing-md) var(--spacing-lg); font-size: 0.95rem; }
  .page-wartung .faq-answer { padding: 0 var(--spacing-lg); }
  .page-wartung .faq-answer p { font-size: 0.9rem; }

  /* Buttons */
  .page-wartung .btn { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
}

/* XS-Phones (<= 360px): Minimalhöhen & Abstände weiter runter */
@media (max-width: 360px) {
  .page-wartung { font-size: 0.875rem; }
  .page-wartung section { padding: var(--spacing-md) 0; }
  .page-wartung .section-header { margin-bottom: var(--spacing-md); }
  .page-wartung .image-text-grid { gap: var(--spacing-md); }
}

