/*
====================================
1. Allgemeine Variablen & Reset
====================================
*/
:root {
    /* Helle Standard-Farben (Light Mode) */
    --primary-color: #0D59A5; 
    --background-light: #ffffff;
    --background-gray: #f8f9fa; 
    --text-color: #343a40; 
    --hero-overlay-color: rgba(0, 0, 0, 0.4); 
    --box-border: #e9ecef; 
    --nav-bg: #ffffff;
    --nav-border: #e9ecef;
    --card-bg: #ffffff; 
    --card-border: #e9ecef;
    --icon-bg: #e6f0ff; 
    
    /* Farben für die Feature-Boxen (Firma/Kontakt) */
    --feature-bg: #ffffff; 
    --feature-border: #e9ecef;
    --contact-bg: #ffffff; 
    
    /* NEU: Farben für die Fußzeile */
    --footer-bg: #343a40; /* Dunkelgrauer Hintergrund */
    --footer-text-color: #f8f9fa; /* Heller Text */
    --footer-border: #495057; /* Dunkle Trennlinie */

    /* NEU: CTA Button Farben */
    --cta-bg: var(--primary-color);
    --cta-text: #ffffff;
    --cta-hover-bg: #0A4786; 
}

/* Dark Mode Variablen (werden angewendet, wenn data-theme="dark" gesetzt ist) */
html[data-theme='dark'] {
    --primary-color: #4da6ff; 
    --background-light: #121212; 
    --background-gray: #1e1e1e; 
    --text-color: #e0e0e0; 
    --hero-overlay-color: rgba(0, 0, 0, 0.6);
    --box-border: #333333;
    --nav-bg: #1e1e1e;
    --nav-border: #333333;
    --card-bg: #1e1e1e; 
    --card-border: #333333;
    --icon-bg: #2a3a50; 

    /* Farben für die Feature-Boxen im Dark Mode */
    --feature-bg: #1e1e1e;
    --feature-border: #333333;
    --contact-bg: #1e1e1e; 
    
    /* NEU: Farben für die Fußzeile im Dark Mode */
    --footer-bg: #0d1117; 
    --footer-text-color: #c9d1d9; 
    --footer-border: #21262d; 

    /* NEU: CTA Button Farben im Dark Mode */
    --cta-bg: var(--primary-color);
    --cta-text: #1e1e1e; 
    --cta-hover-bg: #7abfff;
}

/* Setzt Farben basierend auf den Variablen */
body {
    font-family: Arial, sans-serif; /* GEÄNDERT: Schriftart auf Arial, sans-serif gesetzt */
    line-height: 1.6;
    margin: 0;
    padding-top: 60px; /* Platz für die feste Navbar */
    background-color: var(--background-light);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Setzt Hervorhebung (strong-Tags) auf die primäre Farbe, außer im Logo-Container */
h2 strong strong, h3 strong {
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/*
====================================
2. Navigation (Navbar)
====================================
*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Leichter Schatten */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-color); 
    min-width: 150px; 
}

/* Setzt nur den starken Teil des Logos auf die Akzentfarbe */
.logo strong {
    color: var(--primary-color); 
}

/* Logo-Text-Element für den Fade-Effekt im JS */
#logo-text {
    display: inline-block;
}

.nav-links {
    display: flex; 
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 20px;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* CTA-Button für Fernwartung in der Navigation */
.cta-button {
    background-color: var(--cta-bg) !important;
    color: var(--cta-text) !important;
    padding: 8px 15px !important;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    margin-left: 30px;
    display: inline-flex;
    align-items: center;
}

.cta-button:hover {
    background-color: var(--cta-hover-bg) !important;
    color: var(--cta-text) !important;
    text-decoration: none;
}

.cta-button i {
    margin-right: 8px;
    font-size: 1em;
}

.hamburger, #theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 15px;
    padding: 5px;
    /* Wichtig für die korrekte Ausrichtung */
    align-self: center; 
}

/* Dark Mode Icon im Dark Mode hervorheben */
html[data-theme='dark'] #theme-toggle i {
    color: var(--primary-color);
}

.hamburger {
    display: none; /* Standardmäßig ausblenden (Desktop) */
}

/*
====================================
3. Hero-Sektion (Header-Slider)
====================================
*/
.hero-section {
    position: relative;
    height: 40vh; 
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('./background.jpg');  
    background-size: cover;
    background-position: center;
    color: white; 
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hero-overlay-color);
    background-image: linear-gradient(rgba(0, 80, 200, 0.2), rgba(0, 80, 200, 0.2));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 0.1em;
}

.hero-content p {
    font-size: 1.5em;
    font-weight: 300;
    margin-top: 0;
}

.slider-dots {
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
}

.dot.active {
    background-color: white;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 1.5em;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-arrow.right {
    right: 0;
}

/*
====================================
4. Inhaltssektionen
====================================
*/
.content-section {
    padding: 60px 0;
    text-align: center;
}

.about-section {
    background-color: var(--background-light);
}

.services-section {
    background-color: var(--background-gray); 
}

/* Hintergrundfarbe für den Produkt-Abschnitt */
.products-section {
    background-color: var(--background-light);
}

/* Hintergrundfarbe für den Firmen-Abschnitt */
.company-section {
    background-color: var(--background-gray);
}


.content-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.content-section .subtitle {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: var(--text-color);
}

.text-box {
    max-width: 700px;
    margin: 20px auto;
    padding: 30px;
    border: 1px solid var(--box-border);
    border-radius: 8px;
    background-color: var(--background-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.text-box p {
    margin: 0;
    font-size: 1.1em;
}

.service-point h3 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 40px; 
}

/* --- SERVICE GRID STYLES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    text-align: left;
    margin-top: 40px;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-card h4 {
    font-size: 1.1em;
    margin-top: 10px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.service-card p {
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.7; 
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--icon-bg);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 1.2em;
    margin-bottom: 10px;
}
/* ---------------------------------- */


/* --- PRODUKTE STYLES --- */
.products-content-box {
    max-width: 800px;
    margin: 20px auto;
}

.product-intro {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-list {
    list-style: none; 
    padding: 0;
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.product-list li {
    font-size: 1em;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.product-list li i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px; 
    font-size: 1.1em;
}
/* ---------------------------------- */


/* --- FIRMA STYLES (Grid) --- */
.company-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.company-feature {
    background-color: var(--feature-bg);
    border: 1px solid var(--feature-border);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 100%; 
}

.feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.company-feature i {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--icon-bg);
    border-radius: 8px;
}

.company-feature h3 {
    margin: 0;
    font-size: 1.2em;
}

.company-feature p {
    font-size: 0.95em;
}

.reference-note {
    max-width: 800px;
    margin: 60px auto 0 auto; 
    font-style: italic;
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.8;
}

/* NEU: Spacer für den zusätzlichen Abstand am Ende der Sektion */
.spacer-bottom {
    height: 40px; 
}
/* ---------------------------------- */


/*
====================================
5. FUSSZEILE (FOOTER)
====================================
*/
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    padding-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 30px;
    padding-bottom: 40px;
}

.footer-block h4 {
    color: var(--footer-text-color);
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--footer-border);
    padding-bottom: 5px;
}

.footer-block p {
    margin: 5px 0;
    font-size: 0.95em;
    display: flex;
    align-items: center;
}

.footer-block p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-block a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-block a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-block ul li {
    margin-bottom: 8px;
}

/* Styling für den WKO Link in der Fußzeile */
.footer-wko-link {
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    color: var(--primary-color); 
    margin-top: 0; 
}
.footer-wko-link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-wko-link i {
    color: var(--primary-color);
    margin-left: 8px; 
}
html[data-theme='dark'] .footer-wko-link i {
    color: var(--primary-color); 
}


/* Spezielle Formatierung für den Kundenportal-Link in der Fußzeile */
.footer-portal-link {
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    margin-top: 10px;
}
.footer-portal-link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-portal-link i {
    color: var(--primary-color);
    margin-right: 8px;
}
html[data-theme='dark'] .footer-portal-link i {
    color: var(--primary-color); 
}


.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 15px 0;
    text-align: center;
    font-size: 0.85em;
    color: #adb5bd;
}

/*
====================================
6. Responsives Design (Mobile)
====================================
*/
@media (max-width: 992px) {
    
    /* Nav-Links im Mobile Menü öffnen */
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 60px; 
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        border-top: 1px solid var(--nav-border);
        padding: 10px 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    .nav-links.open {
        transform: translateX(0);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links a {
        margin: 5px 0;
        padding: 10px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hamburger {
        display: block; 
    }
    
    /* Fernwartung Button im Mobile Menü */
    .cta-button {
        margin: 10px 20px !important;
        width: calc(100% - 40px) !important;
        justify-content: center;
    }
    
    /* FUSSZEILE (FOOTER) Tablet-Anpassung */
    .footer-grid {
        grid-template-columns: 1fr 1fr; 
    }
    .footer-legal {
        grid-column: 1 / 3; 
        text-align: center;
    }
    .footer-legal h4 {
        text-align: center;
    }
    .footer-legal ul {
        display: flex;
        justify-content: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1.2em;
    }

    .services-grid {
        grid-template-columns: 1fr; 
    }
    
    .company-features-grid {
        grid-template-columns: 1fr;
    }
    
    /* FUSSZEILE (FOOTER) Mobile-Anpassung */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-block h4 {
        text-align: center;
    }
    
    .footer-block p {
        justify-content: center;
    }
    
    .footer-legal {
        grid-column: 1 / 2;
    }
    .footer-legal ul {
        flex-direction: column;
        gap: 0;
    }
    .footer-legal ul li {
        margin-bottom: 5px;
    }
}