/* ==== GLOBALE EINSTELLUNGEN & VARIABLES ==== */
:root {
    /* Primärfarbe (Blue-Q Hellblau) */
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --primary-light-tint: rgba(33, 150, 243, 0.1);

    /* Text Schwarz/Dunkelgrau */
    --text-dark: #222222;
    --text-medium: #555555;
    
    --bg-white: #ffffff;
    --bg-light: #f4f8fd; 
    --border-light: #eaeaea;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    
    --section-spacing: 80px; 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-medium);
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

main {
    flex: 1; 
    width: 100%; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 { 
    font-weight: 800; 
    letter-spacing: 2px;
} 

h2 { font-size: 2.5rem; text-align: center; }

/* ==== MODERN BUTTONS ==== */
.cta-button {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.4);
    color: #fff;
}

/* ==== NAVBAR ==== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar-container {
    width: 100%;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar .logo img {
    height: 85px;
    width: auto;
    display: block;
}

.navbar nav {
    transition: all 0.4s ease;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar nav ul li {
    margin-left: 40px;
}

.navbar nav ul li a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
    color: var(--primary-color);
}

.navbar.scrolled nav {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    pointer-events: none;
}

.navbar.scrolled {
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.95);
}
.navbar.scrolled .logo img {
    height: 60px;
}

/* ==== HERO SECTION ==== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
    background-color: var(--text-dark);
}

.video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.4), rgba(20, 20, 20, 0.5));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px; 
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
}

/* ==== SECTIONS ALLGEMEIN ==== */
section {
    padding: var(--section-spacing) 0;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* ==== LEISTUNGEN (Produkt Raster) ==== */
.product-section {
    background: var(--bg-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
}

.product-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px 20px; 
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card::before {
    content: '\f1b2';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 80px; 
    color: var(--primary-light-tint);
    opacity: 0.5;
    z-index: 0;
    transition: all 0.4s ease;
}

.product-card:nth-child(2)::before { content: '\f5fd'; }
.product-card:nth-child(3)::before { content: '\f4b8'; }

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--primary-color);
}

.product-card:hover::before {
    color: var(--primary-color);
    opacity: 0.1;
    transform: rotate(10deg) scale(1.1);
}

.product-card-content {
    position: relative;
    z-index: 1;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.product-card p {
    margin-bottom: 20px;
    font-size: 1rem; 
}

.check-list {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
    font-size: 0.95rem; 
}

.check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.check-list li::before {
    content: '\f00c'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-color);
    font-size: 0.9em;
}

.product-card .text-link {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    margin-top: auto; 
}

.product-card .text-link i {
    margin-left: 8px;
    transition: margin 0.3s ease;
}

.product-card .text-link:hover i {
    margin-left: 12px;
}

/* ==== SERVICE SECTION & ABOUT ==== */
.about-section {
    background: var(--bg-light);
    position: relative;
}

.about-content-wrapper {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

/* ==== TEASER AUF STARTSEITE ==== */
.teaser-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.teaser-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.teaser-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-medium);
}

/* Standard Teaser Bild */
.teaser-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* Fader Styles */
.image-fader {
    position: relative;
    width: 100%;
    height: 320px; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: #eee;
}

.image-fader img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0; 
    animation-duration: 8s; 
    animation-iteration-count: infinite;
}

.image-fader img:nth-child(1) { animation-name: fade1; }
.image-fader img:nth-child(2) { animation-name: fade2; }

@keyframes fade1 {
    0% { opacity: 1; }
    45% { opacity: 1; }
    50% { opacity: 0; }
    95% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fade2 {
    0% { opacity: 0; }
    45% { opacity: 0; }
    50% { opacity: 1; }
    95% { opacity: 1; }
    100% { opacity: 0; }
}


/* ==== SUBPAGES HEADER ==== */
.page-header {
    background: linear-gradient(135deg, #1976D2, #64b5f6);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    margin-bottom: 40px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.pexels.com/photos/3637785/pexels-photo-3637785.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1'); 
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

/* ==== SERVICE LISTE ==== */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-item {
    background: #fff;
    padding: 30px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-size: 1.3rem;
}

.service-item h3 i { margin-right: 12px; min-width: 25px; text-align: center; }

.service-item p {
    font-size: 1rem;
}

/* ==== KONTAKT SEITE STYLES ==== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section h2 {
    margin-bottom: 20px;
}

.contact-section p {
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.contact-info-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: left;
}

.contact-detail-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-detail-row:last-child { margin-bottom: 0; }

.contact-icon {
    min-width: 50px;
    height: 50px;
    background-color: var(--primary-light-tint);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 20px;
}

.contact-detail-text h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-detail-text p, .contact-detail-text a {
    font-size: 1rem;
    color: var(--text-medium);
}

.contact-map-container {
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-sm);
    background-color: #eee;
}

.contact-map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: none;
    display: block;
}

/* ==== RECHTLICHE TEXTE ==== */
.legal-text-block {
    max-width: 800px;
    margin: 0 auto 50px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    word-wrap: break-word;
}

.legal-text-block h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-top: 30px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 10px;
}

.legal-text-block h2:first-child { margin-top: 0; }

.legal-text-block h3 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-text-block h4 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.legal-text-block p {
    margin-bottom: 15px;
}

.legal-text-block ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

/* ==== FOOTER DESIGN ==== */
.main-footer {
    background-color: #1a1a1a; 
    color: #b0b0b0;
    padding: 70px 0 0 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo img {
    max-width: 180px; 
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #b0b0b0;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    margin-bottom: 15px;
    list-style: none;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 12px;
    margin-top: 4px;
}

.footer-bottom {
    background-color: #0a0a0a;
    padding: 25px 0;
    border-top: 1px solid #222;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-legal ul {
    list-style: none;
    display: flex;
}

.footer-legal ul li {
    margin-left: 20px;
}

.footer-legal ul li a {
    color: #777;
    font-size: 0.85rem;
}

.footer-legal ul li a:hover {
    color: #fff;
}

/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 50px; 
    }

    h1, h2, h3, h4, p {
        word-wrap: break-word;
        hyphens: auto;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .container {
        padding: 0 25px; 
    }

    .navbar { 
        padding: 10px 0; 
        position: relative; 
        top: auto;
    }
    
    .navbar-container { 
        padding: 0 20px; 
        flex-direction: column; 
        align-items: center;
    }
    
    .navbar .logo img { 
        height: 45px; 
        margin-bottom: 10px; 
    }
    
    .navbar nav ul { 
        margin: 0; 
        padding: 0; 
        justify-content: center; 
        flex-wrap: wrap;
        flex-direction: column; 
        text-align: center;
    }
    
    .navbar nav ul li { 
        display: block; 
        margin: 2px 0;
        font-size: 0.9rem; 
    }

    .hero { 
        height: 60vh; 
        min-height: 400px; 
    }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .teaser-grid, 
    .contact-layout,
    .product-grid { 
        grid-template-columns: 1fr; 
        gap: 40px;
    }
    
    .teaser-grid .teaser-image,
    .teaser-grid .image-fader {
        order: -1; 
    }
    
    .image-fader { height: 220px; } 

    .page-header { height: 200px; }
    .page-header h1 { font-size: 2rem; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col { margin-bottom: 30px; }
    .footer-logo img { margin: 0 auto 20px auto; }
    .footer-contact li { justify-content: center; }
    
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .footer-legal ul { 
        margin-top: 15px; 
        padding: 0; 
        justify-content: center;
        flex-wrap: wrap;
    }
    .footer-legal ul li { margin: 5px 10px; }
}
