@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #ff6b35;
    --primary-blue: #1e3a8a;
    --accent-yellow: #fbbf24;
    --dark-blue: #0f172a;
    --light-gray: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --red: #dc2626;
    --green: #16a34a;
    --touch-target: 44px;
    
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --spacing-xxl: 60px;
    --spacing-section: 80px;
    
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 15px 40px rgba(0,0,0,0.2);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero {
    background:
        linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.5)),
        url('../../images/industrie/hellstrahler-gh-18-hangar-1200.jpg') center 45% / cover no-repeat;
    padding: 150px 0 80px 0;
    min-height: 55vh;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: var(--spacing-md);
    opacity: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.7s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Products Section - FIXED VERSION */
.products {
    padding: var(--spacing-section) 0;
    background: var(--light-gray);
    position: relative;
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-title {
    text-align: center;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    color: var(--primary-blue) !important;
    margin-bottom: var(--spacing-xxl);
    position: relative;
    letter-spacing: -0.02em;
}

.products-intro {
    text-align: center;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    color: var(--white) !important;
    margin-bottom: var(--spacing-xxl);
    position: relative;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
}

.products-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl) auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* FIXED: Improved grid layout for consistent card heights */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch; /* This ensures all cards have the same height */
}

/* FIXED: Enhanced product card with consistent height */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures all cards take full height */
    min-height: 600px; /* FIXED: Minimum height for consistency */
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-orange);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.product-card img {
    width: 100%;
    height: 220px; /* Fixed height for all images */
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

/* FIXED: Improved content layout with flex-grow */
.product-content {
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-xl) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* This makes the content area expand to fill available space */
    justify-content: space-between; /* Distributes content evenly */
}

.product-content h3 {
    color: var(--primary-blue);
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.product-content h4 {
    color: var(--primary-orange);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.product-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

/* FIXED: Improved features list with consistent spacing */
.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md) 0;
    flex-grow: 1; /* This allows the features list to expand */
}

.product-features li {
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.product-features li::before {
    content: '•';
    color: var(--primary-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* FIXED: Button positioning */
.product-btn {
    color: var(--primary-blue) !important;
    font-weight: bold;
    text-decoration: none !important;
    transition: color 0.2s;
    display: inline-block;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: auto; /* This pushes the button to the bottom */
    align-self: flex-start; /* Aligns button to the left */
}

.product-btn:hover,
.product-btn:focus {
    color: var(--primary-orange) !important;
    transform: none !important;
    box-shadow: none !important;
}

.product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Product Links Container */
.product-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
    flex-wrap: wrap;
}

/* Secondary Button Style */
.product-btn.secondary {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
}

.product-btn.secondary:hover,
.product-btn.secondary:focus {
    color: var(--primary-orange) !important;
}

@media (max-width: 768px) {
    .product-links {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .product-btn.secondary {
        font-size: 0.85rem;
    }
}



/* Heating Comparison Section */
.heating-comparison {
    background: var(--dark-blue);
    padding: var(--spacing-section) 0;
    position: relative;
    overflow: hidden;
}

.comparison-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

/* Spezifische Regel NUR für Heating Comparison Titel */
.heating-comparison .comparison-container .section-title {
    color: var(--white) !important;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* After-Element nur für Heating Comparison Titel */
.heating-comparison .comparison-container .section-title::after {
    background: var(--accent-yellow);
}

.comparison-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--white);
    opacity: 1;
}

/* Hauptlayout für Temperaturvergleich */
.temperature-comparison-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
    padding: 40px 20px;
    min-height: 400px;
}

/* Linke und rechte Informationsbereiche */
.heating-info {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.left-info {
    text-align: right;
    padding-right: 20px;
}

.right-info {
    text-align: left;
    padding-left: 20px;
}

.heating-highlight {
    font-size: 28px;
    font-weight: 600;
    color: var(--accent-yellow);
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    margin-bottom: 15px;
}

.heating-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.heating-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--white);
    margin-bottom: 25px;
    opacity: 1;
    font-weight: 400;
}

.heating-features {
    margin-top: 20px;
}

.heating-features p {
    color: var(--white);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
    opacity: 1;
    font-weight: 600;
}

.left-info .heating-features p {
    color: #ffcccb;
}

.right-info .heating-features p {
    color: #90ee90;
}

/* Zentrale Temperaturbalken */
.temperature-bars-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.temperature-bar-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    height: 350px;
    padding: 20px;
}

.temp-bar-column {
    display: flex;
    flex-direction: column;
    width: 170px;
    height: 320px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.temp-segment {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    transform: scaleY(0);
    transform-origin: top;
    animation: segmentGrowDown 1.5s ease-out forwards;
    animation-play-state: paused;
}

.temp-segment:last-child {
    border-bottom: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.temp-segment:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Warmluftheizung Farbverläufe - zeigt Temperaturunterschiede (oben wärmer) */
.warmair-column .temp-segment.ceiling-temp {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%); /* 28°C - Rot */
    animation-delay: 0.6s;
}

.warmair-column .temp-segment.middle-temp {
    background: linear-gradient(180deg, #f97316 0%, #ea580c 100%); /* 25°C - Orange */
    animation-delay: 0.4s;
}

.warmair-column .temp-segment.floor-temp {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%); /* 20°C - Blau */
    animation-delay: 0.2s;
}

/* Strahlungsheizung Farbverläufe - alle grün, leicht unterschiedliche Nuancen */
.radiant-column .temp-segment.ceiling-temp {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%); /* 22°C - Grün */
    animation-delay: 0.6s;
}

.radiant-column .temp-segment.middle-temp {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%); /* 20°C - Grün */
    animation-delay: 0.4s;
}

.radiant-column .temp-segment.floor-temp {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%); /* 18°C - Grün */
    animation-delay: 0.2s;
}

.temp-label {
    color: var(--white);
    font-weight: 600;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    position: relative;
    z-index: 2;
}

/* Segment-Animationen von oben nach unten */
@keyframes segmentGrowDown {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Hover-Effekte */
.temp-segment:hover {
    transform: scaleY(1.05) scaleX(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 10;
    transition: all 0.3s ease;
}

/* Video Section */
.video-section {
    padding: var(--spacing-section) 0;
    background: var(--white);
    position: relative;
}

.video-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.video-card {
    display: flex;
    align-items: center;
}

.video-card video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.video-description-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-description-card h3 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
}

.video-description-card p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.video-description-card p:last-child {
    margin-bottom: 0;
}

.video-description-card strong {
    color: var(--primary-orange);
    font-weight: 600;
}

/* Benefits Section */
.benefits {
    padding: var(--spacing-section) 0;
    background: var(--light-gray);
    position: relative;
}

.benefits-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.benefits-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl) auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

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

.benefit-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-orange);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 107, 53, 0.1);
}

.benefit-card h3 {
    color: var(--primary-blue);
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.benefit-card p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

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

.benefit-list li {
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.1rem;
}

.benefit-list li:hover {
    color: var(--primary-blue);
    padding-left: 30px;
}

/* Applications Section */
.applications {
    padding: var(--spacing-section) 0;
    background: var(--light-gray);
    position: relative;
}

.applications-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.applications-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl) auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Simple Applications Section */
.applications-simple-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.applications-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.applications-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.applications-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    width: 100%;
    margin: 0 auto;
}

.app-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.app-name {
    display: block;
    padding: var(--spacing-xs) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    transition: all 0.2s ease;
}

.app-name:hover {
    color: var(--primary-blue);
    background-color: rgba(30, 58, 138, 0.05);
}

/* Legacy grid for backward compatibility */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.application-item {
    background: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.application-item:hover {
    background: rgba(30, 58, 138, 0.05);
    border-color: rgba(30, 58, 138, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.application-item span {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .temperature-comparison-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .left-info, .right-info {
        text-align: center;
        padding: 0;
    }
    
    .temperature-bars-center {
        order: -1;
    }
    
    .heating-highlight {
        font-size: 24px;
    }
    
    .heating-title {
        font-size: 22px;
    }
    
    .heating-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .hero {
        padding: 120px var(--spacing-md) 50px var(--spacing-md);
    }
    
    .products, .benefits, .applications, .heating-comparison {
        padding: 60px 0;
    }
    
    .products-container, .benefits-container, 
    .applications-container, .comparison-container {
        padding: 0 var(--spacing-md);
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    /* FIXED: Improved mobile responsive for products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .product-card {
        margin: 0 auto;
        max-width: 400px;
        min-height: auto; /* Remove fixed height on mobile */
    }
    
    .product-content {
        padding: var(--spacing-md);
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .video-description-card h3 {
        font-size: 1.4rem;
        margin-bottom: var(--spacing-md);
    }

    .video-description-card p {
        font-size: 0.95rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .benefit-card {
        padding: var(--spacing-lg);
    }

    .applications-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-sm);
    }

    /* Mobile responsive for simple applications */
    .applications-table {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
    
    .app-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
        margin-bottom: var(--spacing-md);
    }

    .app-name {
        display: block;
        margin-bottom: var(--spacing-xs);
        padding: var(--spacing-sm);
        border-bottom: 1px solid rgba(30, 58, 138, 0.1);
        border-radius: var(--radius-sm);
    }

    .applications-title {
        font-size: 1.8rem;
    }

    .application-item {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .temperature-bar-wrapper {
        gap: 20px;
        height: 280px;
        padding: 15px;
    }
    
    .temp-bar-column {
        width: 80px;
        height: 240px;
    }
    
    .temp-label {
        font-size: 16px;
    }
    
    .heating-highlight {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .heating-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .heating-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .heating-features p {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .temperature-comparison-layout {
        gap: 30px;
        padding: 20px 10px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .video-description-card h3 {
        font-size: 1.3rem;
    }

    .video-description-card p {
        font-size: 0.9rem;
    }

    .benefit-card {
        padding: var(--spacing-md);
    }
    
    .temperature-bar-wrapper {
        gap: 15px;
        height: 220px;
    }
    
    .temp-bar-column {
        width: 70px;
        height: 200px;
    }
    
    .temp-label {
        font-size: 14px;
    }
    
    .heating-highlight {
        font-size: 20px;
    }
    
    .heating-title {
        font-size: 18px;
    }
    
    .heating-description {
        font-size: 14px;
    }
    
    .heating-features p {
        font-size: 13px;
    }
}

/* Very small screens */
@media (max-width: 375px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-content h3 {
        font-size: 1.3rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow-lg);
    }
    
    .product-card:hover img {
        transform: none;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
}

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero::before {
        animation: none;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Tablets (ab 768px) */
@media (min-width: 768px) {
    :root {
        --spacing-section: 100px;
    }
}

/* Desktop (ab 1024px) */
@media (min-width: 1024px) {
    :root {
        --spacing-section: 120px;
    }
}



/* LIGHTBOX STYLES - Verstärkte Positionierung für Server-Kompatibilität */
.lightbox {
    display: none;
    position: fixed !important;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(5px);
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

.lightbox.show {
    display: flex !important;
    opacity: 1;
}

.lightbox-content {
    position: relative !important;
    max-width: 90% !important;
    max-height: 90% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    animation: lightboxSlideIn 0.3s ease-out;
    z-index: 1000000 !important;
    margin: 0 !important;
    padding: 0 !important;
}

@keyframes lightboxSlideIn {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute !important;
    top: -50px !important;
    right: -10px !important;
    color: var(--white) !important;
    font-size: 40px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 1000001 !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    transition: all 0.3s ease;
    user-select: none;
    border: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lightbox-close:hover {
    background: var(--primary-orange) !important;
    transform: scale(1.1);
}

#lightbox-image {
    max-width: 100% !important;
    max-height: 80vh !important;
    object-fit: contain !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

.lightbox-caption {
    color: var(--white) !important;
    text-align: center !important;
    margin-top: var(--spacing-md) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    max-width: 600px !important;
    line-height: 1.5 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    border-radius: var(--radius-md) !important;
    backdrop-filter: blur(10px);
    border: none !important;
    outline: none !important;
}

.lightbox-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    pointer-events: none !important;
    z-index: 1000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.7) !important;
    color: var(--white) !important;
    border: none !important;
    font-size: 30px !important;
    font-weight: bold !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    user-select: none;
    backdrop-filter: blur(10px);
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lightbox-prev {
    margin-left: -80px !important;
}

.lightbox-next {
    margin-right: -80px !important;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-orange) !important;
    transform: scale(1.1);
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: scale(0.95);
}

/* Mobile Lightbox Optimierungen */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95% !important;
        max-height: 95% !important;
    }

    .lightbox-close {
        top: -40px !important;
        right: 0 !important;
        font-size: 30px !important;
        width: 40px !important;
        height: 40px !important;
    }

    #lightbox-image {
        max-height: 70vh !important;
    }

    .lightbox-caption {
        font-size: 1rem !important;
        margin-top: var(--spacing-sm) !important;
        padding: var(--spacing-xs) var(--spacing-sm) !important;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 24px !important;
        width: 50px !important;
        height: 50px !important;
    }

    .lightbox-prev {
        margin-left: -60px !important;
    }

    .lightbox-next {
        margin-right: -60px !important;
    }
}

/* Extra kleine Bildschirme */
@media (max-width: 480px) {
    .lightbox-prev {
        margin-left: -25px !important;
        position: fixed !important;
        left: 10px !important;
    }

    .lightbox-next {
        margin-right: -25px !important;
        position: fixed !important;
        right: 10px !important;
    }

    .lightbox-close {
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
    }

    .lightbox-caption {
        position: fixed !important;
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
        margin: 0 !important;
        max-width: none !important;
    }
}

/* Accessibility Verbesserungen */
.lightbox:focus {
    outline: none !important;
}

.lightbox-prev:focus,
.lightbox-next:focus,
.lightbox-close:focus {
    outline: 2px solid var(--accent-yellow) !important;
    outline-offset: 2px !important;
}

/* Touch-optimierte Bereiche für Mobile */
@media (hover: none) and (pointer: coarse) {
    .lightbox-prev,
    .lightbox-next {
        width: 60px !important;
        height: 60px !important;
        font-size: 28px !important;
    }

    .lightbox-close {
        width: 50px !important;
        height: 50px !important;
        font-size: 32px !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .lightbox,
    .lightbox-content,
    #lightbox-image,
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        animation: none !important;
        transition: none !important;
    }
}

/* Zusätzliche Sicherheitsregeln für Server-Kompatibilität */
body.lightbox-open {
    overflow: hidden !important;
}

.lightbox * {
    box-sizing: border-box !important;
}

/* Extracted inline styles */
.benefit-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    cursor: pointer;
}

.lightbox-image {
    min-width: 60vw;
    min-height: 60vh;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.catrey-link {
    font-weight: bold;
    color: var(--accent-yellow);
}

/* NAVIGATION FONT-WEIGHT FIX - Ensures consistent navigation font weight */
nav a,
.language-toggle,
.language-link {
    font-weight: 500 !important;
}

.language-link.active {
    font-weight: 500 !important;
}



/* Heizsysteme im Vergleich - Abstand */
.heizsysteme-vergleich {
  margin-block: clamp(28px, 6vw, 64px);
}

.heizsysteme-vergleich .benefit-card h3 {
  margin-bottom: 8px;
}

.heizsysteme-vergleich ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.heizsysteme-vergleich .product-hint {
  font-size: 0.95rem;
  opacity: 1;
}

@media (max-width: 480px) {
  .heizsysteme-vergleich {
    margin-block: 28px;
  }
}


/* === Systems Compare Table (spec-table) === */
.systems-compare .spec-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.95rem}
.systems-compare thead th{position:sticky;top:0;background:#f3f4f6;text-align:left;font-weight:600;padding:12px 14px;border-bottom:1px solid #e5e7eb;z-index:1}
.systems-compare tbody tr:nth-child(odd){background:#fafafa}
.systems-compare tbody tr:hover{background:#f5f7ff}
@media (max-width: 720px){
  .systems-compare thead{display:none}
  .systems-compare table,.systems-compare tbody,.systems-compare tr,.systems-compare td{display:block;width:100%}
  .systems-compare tr{border-bottom:1px solid #e5e7eb;margin-bottom:8px}
  .systems-compare td{padding:8px 12px;border:none}
}


/* Extra spacing for Heizsysteme im Vergleich section */
.systems-compare {
  margin-top: 80px;
  margin-bottom: 80px;
}

/* Compact Applications Grid for Benefits Card */
.applications-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 15px;
}

.application-item-compact {
  background: var(--primary-blue);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.application-item-compact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.application-item-compact span {
  display: block;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .applications-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px;
  }
  
  .application-item-compact {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}


/* Increased spacing for Heizsysteme im Vergleich and further systems tables */
.systems-compare,
.heizsysteme-vergleich {
  margin-top: 100px;
  margin-bottom: 100px;
}

/* More space between Praxis-Tipp and table */
.praxis-tipp {
  margin-bottom: 30px;
}

/* Match Praxis-Tipp label width to text block width */
.praxis-tipp strong {
  display: inline-block;
  min-width: 180px;
}


/* Galerie-Bilder Hover-Effekt */
.hellstrahler-gallery .gallery-item img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hellstrahler-gallery .gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* Harmonized social icon visibility */
.social-icons img,
.social-icons svg,
.adress_footer .social-icons img,
.adress_footer .social-icons svg,
#adress_footer .social-icons img,
#adress_footer .social-icons svg {
  filter: none !important;
  opacity: 1 !important;
}


/* Praxis-Tipp photo hover (match product card feel) */
.praxis-grid figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.praxis-grid figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.praxis-grid img.praxis-photo {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 12px;
}

.praxis-grid figure:hover img.praxis-photo {
  transform: scale(1.08);
}

/* Praxis-Tipp Section Styling */
.praxis-tipp {
  padding: 80px 0;
  background: var(--white);
  margin-bottom: 30px;
}

.praxis-tipp .comparison-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  text-align: center;
}

.praxis-tipp .section-title {
  margin-bottom: 16px;
  text-shadow: none;
}

.praxis-tipp p {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 32px auto;
}

.praxis-tipp a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.praxis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.praxis-grid figure {
  margin: 0;
}

/* ===== FAQ SECTION STYLES ===== */
/* Integrated from faq.css */

.faq-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Category Filter Buttons */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.faq-row-main, .faq-row-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.faq-row-downloads {
    margin-bottom: 0;
}

.category-btn {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    background-color: white;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.category-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.category-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.category-btn-compact {
    padding: 8px 16px !important;
    font-size: 14px !important;
    min-width: auto !important;
    white-space: nowrap !important;
}

/* FAQ Groups and Items */
.faq-group {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    max-width: 800px;
    margin: 0 auto;
}

.faq-group.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.faq-section.scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.faq-section.visible {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.faq-group.force-visible {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    display: block !important;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f8fafc;
    color: #3b82f6;
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3b82f6;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: #f8fafc;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 24px 24px 24px;
}

.faq-answer p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.faq-answer ul {
    color: #475569;
    line-height: 1.7;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

/* Special RADIAMON Button Override */
.radiamon-button {
    background: #ff6b35 !important;
    color: white !important;
    border-color: #ff6b35 !important;
    font-weight: 600;
}

.radiamon-button:hover {
    background: #e55a2b !important;
    border-color: #e55a2b !important;
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-row-main,
    .faq-row-downloads {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .category-btn-compact {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .faq-answer.active {
        padding: 0 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .faq-container {
        padding: 0 15px;
    }
    
    .faq-row-main,
    .faq-row-downloads {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn-compact {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
