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

:root {
    --primary: #004d99; /* Deep Construction Blue */
    --primary-dark: #003366;
    --primary-light: #0066cc;
    --secondary: #f4f6f9;
    --accent: #ff9900; /* Safety Orange */
    --accent-hover: #e68a00;
    --text-dark: #2c3e50;
    --text-light: #596b7e;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px rgba(0,18,50,0.1);
    --shadow-lg: 0 15px 30px rgba(0,18,50,0.15);
    --radius: 6px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--white);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0, 77, 153, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

nav > ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 5px;
    font-size: 0.95rem;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

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

nav li {
    position: relative;
}

nav .submenu {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: var(--transition);
    z-index: 1001;
}

nav .submenu li {
    padding: 0;
}

nav .submenu a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

nav .submenu a::after {
    display: none;
}

nav .submenu a:hover {
    background: #f8fafc;
    color: var(--primary);
}

nav li.nav-dropdown:hover > .submenu,
nav li.nav-dropdown:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    margin-bottom: 30px; /* Space to content */
    background: transparent; /* Cleaner look without "boxed" bg */
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: var(--text-light);
}
.breadcrumbs a { color: var(--primary); font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 8px; color: #cbd5e0; }
.breadcrumbs .current { color: var(--text-dark); font-weight: 600; }

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 30, 80, 0.8), rgba(0, 20, 60, 0.8)), url('assets/Ausgiessen_Spannbetonplatten.avif') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--white);
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

.hero .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 10, 30, 0.4); /* Darkens bg image slightly */
    z-index: 1;
}

.hero .hero-content {
    z-index: 2;
    position: relative;
    padding-top: 40px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:last-of-type {
    padding-bottom: 100px;
}

.section-bg {
    background-color: var(--secondary);
}

.section-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 70px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-top: 20px;
    border-radius: 2px;
}

/* Spotlight / Feature Focus */
.spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.spotlight-text h4 { margin-bottom: 15px; }
.spotlight-text h2 { margin-bottom: 25px; color: var(--text-dark); }
.spotlight-text p { margin-bottom: 20px; font-size: 1.05rem; }

.spotlight-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

/* Features Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eaeff5;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; color: var(--text-light); }

/* Gallery - Improved Image Handling */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
    overflow: hidden; /* Clips the zooming image */
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3; /* Enforces uniform height for images */
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.08); /* Gentle zoom effect */
}

.gallery-caption {
    position: relative; 
    background: var(--white);
    padding: 15px 20px;
    text-align: left; /* Left align looks cleaner with descriptions */
    border-top: 1px solid #f1f5f9;
    z-index: 10;
}

.gallery-caption h4 {
    margin: 0 0 6px 0; /* Space between title and text */
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
}

.gallery-caption p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.gallery-item:hover .gallery-caption h4 {
    color: var(--primary);
}

/* Lightbox */
.lightbox {
    position: fixed;
    z-index: 10000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 20, 30, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lightbox.hidden {
    opacity: 0;
    pointer-events: none;
    display: none; /* Ensure it doesn't take up space or show text */
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-height: 90vh;
    max-width: 90vw;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    object-fit: contain; /* Full image visible */
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 0.8;
}

/* Contact Section & Footer */
.contact-section-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-info {
    background: var(--primary);
    color: var(--white);
    padding: 50px;
}

.contact-info h3, .contact-info h4, .contact-info strong {
    color: var(--white); /* Force white text for headers against blue bg */
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-form-box { padding: 50px; background: var(--white); }

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dce4ec;
    border-radius: 4px;
    background-color: #f8fafc;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 77, 153, 0.1);
}

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

.download-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.download-icon {
    background: rgba(255, 153, 0, 0.1); /* Accent tint */
    color: var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 70px 0 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid #1e293b;
}

.footer-column h4 { color: #f1f5f9; margin-bottom: 25px; }
.footer-column a { color: #94a3b8; display: block; margin-bottom: 12px; }
.footer-column a:hover { color: var(--accent); transform: translateX(5px); display: inline-block; }

.footer-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 26px;
    margin-bottom: 30px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,153,0,0.18), rgba(0,77,153,0.1));
    border: 1px solid rgba(255,255,255,0.08);
}

.footer-cta-text h4 {
    color: #f8fafc;
    margin-bottom: 6px;
}

.footer-cta-text p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-cta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #0f172a;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1rem;
}

.footer-cta-primary:hover {
    background: var(--accent-hover);
    color: #0f172a;
    transform: translateY(-1px);
}

.footer-cta-secondary {
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
}

.footer-cta-secondary:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.footer-bottom {
    background: #020617;
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Tables & Sidebar */
.tech-table {
    width: 100%;
    min-width: 500px; /* Force scroll on mobile to keep data readable */
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}
.tech-table th, .tech-table td { padding: 16px 20px; border-bottom: 1px solid #e2e8f0; }
.tech-table th { background: var(--primary); color: var(--white); font-weight: 500; text-align: left; width: 35%; }
.tech-table tr:last-child td { border-bottom: none; }
.tech-table tr:nth-child(even) { background-color: #f8fafc; }

.page-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 50px;
    align-items: start; /* Prevents sidebar from stretching to full height */
}

/* Grid blowout fix */
.product-main, aside {
    min-width: 0;
}

/* Sticky Sidebar Support */
.sticky-sidebar {
    position: sticky;
    top: 100px; /* Header height + padding */
    z-index: 90;
}

.sidebar-box {
    background: #f1f5f9;
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border-top: 4px solid var(--accent);
}

/* Calculator specific */
.calculator-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.calc-input-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }

.calc-result {
    background: #eff6ff; 
    color: var(--primary-dark);
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    border: 1px solid #dbeafe;
}
.calc-result-value {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .spotlight { grid-template-columns: 1fr; gap: 40px; }
    .page-grid { grid-template-columns: 1fr; gap: 30px; } /* Reduced gap for mobile */
    .contact-section-wrapper { grid-template-columns: 1fr; }
    .calc-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .section { padding: 50px 0; } /* Reduced padding for mobile */
    
    /* Disable sticky on mobile */
    .sticky-sidebar { position: static; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-cta-bar { flex-direction: column; align-items: flex-start; }
    .footer-cta-actions { justify-content: flex-start; width: 100%; }
}

/* --- Utilities & Helpers --- */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 1px; }

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

.border-top-accent { border-top: 4px solid var(--accent); }
.border-top-primary { border-top: 4px solid var(--primary); }
.border-primary { border-color: var(--primary) !important; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-between { justify-content: space-between; }
.gap-30 { gap: 30px; }

.p-0 { padding: 0 !important; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-60 { margin-bottom: 60px; }

/* --- Animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* --- Accordion (FAQ) --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    border: 1px solid #e2e8f0;
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background: var(--white);
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: #f8fafc;
    color: var(--primary);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 300;
}

.accordion-item.active .accordion-header::after {
    content: '-';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background: #f8fafc;
}

.accordion-content p {
    padding: 20px 25px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    border-top: 1px solid #f1f5f9;
}

/* --- Comparison Table --- */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px; /* Ensure readability on mobile */
}

.comparison-table th, .comparison-table td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: #f1f5f9;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .highlight-col {
    background: #f0f9ff;
    border-left: 2px solid var(--primary-light);
    border-right: 2px solid var(--primary-light);
}

.comparison-table th.highlight-col {
    background: var(--primary);
    color: var(--white);
    border-top: 2px solid var(--primary);
}

.comparison-table td strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 4px;
}


/* Knowledge Section (Dark) */
.knowledge-bar {
    background: #0f172a; /* Matches footer dark blue but slightly lighter or same */
    color: white;
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.knowledge-item h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.knowledge-item p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 90%;
    line-height: 1.6;
}

.knowledge-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    transition: var(--transition);
}

.knowledge-link:hover {
    color: #fff;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .knowledge-grid { grid-template-columns: 1fr; gap: 50px; }
    .knowledge-item[style*='border-left'] { border-left: none !important; padding-left: 0 !important; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 50px; }
}


/* Mobile Navigation */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none; /* JS will toggle this */
        border-top: 1px solid #f1f1f1;
    }
    nav.active {
        display: block;
    }
    nav > ul {
        flex-direction: column;
        gap: 15px;
    }

    nav .submenu {
        position: static;
        min-width: auto;
        box-shadow: none;
        border: none;
        padding: 8px 0 0 12px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    nav .submenu a {
        padding: 6px 0;
        white-space: normal;
    }
}

/* --- Legacy / Specific Page Support (Anwendungen) --- */

/* Hero for detailed pages */
.detail-hero {
    height: 350px; /* Shorter than main hero */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 0;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 30, 60, 0.6);
}

.detail-hero h1 {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-size: 2.5rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Breadcrumb legacy wrapper */
.breadcrumb {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
    margin-bottom: 50px;
    font-size: 0.9rem;
    color: var(--text-light);
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* Grid Layout matching .page-grid */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 80px;
}

/* Sidebar elements */
.detail-sidebar aside { display: flex; flex-direction: column; gap: 30px; }

.download-box, .related-links {
    background: #f1f5f9;
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border-top: 4px solid var(--accent);
}

.download-box h3, .related-links h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}
.download-link:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.related-links ul { list-style: none; }
.related-links li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #e2e8f0; }
.related-links li:last-child { border-bottom: none; }
.related-links a { color: var(--text-light); transition: color 0.2s; }
.related-links a:hover { color: var(--primary); padding-left: 5px; }

/* Footer Legacy Support */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h3 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; }
.footer-col p, .footer-col a { color: #94a3b8; display: block; margin-bottom: 10px; font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }

@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Detail Content Typography Spacing */
.detail-main h2 {
    color: var(--primary);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.detail-main h3 {
    color: var(--text-dark);
    margin-top: 2.5rem; /* Increased top spacing for sections like "Vorteile" */
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.detail-main p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.detail-main ul {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
}

.detail-main li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
}


/* New additions for calculator/landing page */

/* Custom Range Slider */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    margin: 10px 0;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

/* Track */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 4px;
    border: 1px solid #dcdcdc;
    transition: background 0.2s;
}

input[type=range]:hover::-webkit-slider-runnable-track {
    background: #cbd5e0;
}

/* Thumb */
input[type=range]::-webkit-slider-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary);
    cursor: grab;
    -webkit-appearance: none;
    margin-top: -9px; /* Centers thumb on track */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: var(--accent);
    border-color: var(--accent);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 4px;
}

input[type=range]::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Check List Styling */
.check-list {
    list-style: none;
    margin-left: 0 !important;
    padding-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.check-list li::before {
    content: '\f00c'; /* FontAwesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #27ae60;
    font-size: 1.1rem;
}

/* Landing Page Grid */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .calc-wrapper {
        order: -1; /* Move calculator to top on mobile */
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        border-top: none !important;
    }
    
    .sticky-sidebar {
        position: static !important;
        top: auto !important;
    }
}

.calc-range-group label {
    font-size: 0.95rem;
    font-weight: 600; 
}
