/* Allgemeine Einstellungen */
body {
    font-family: 'Roboto', sans-serif; /* Standard-Schriftart */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #000; /* Tiefschwarzer Hintergrund */
    color: #E0E0E0; /* Helles Grau für Text */
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif; /* Akzent-Schriftart für Überschriften */
    color: #4CAF50; /* Grüner Akzent für Überschriften */
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 4.5rem;
    color: #FFFFFF; /* Weiß für Haupt-Firmennamen */
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.5); /* Leichter grüner Glüheffekt */
}

h2 {
    font-size: 2.8rem;
    padding-bottom: 15px;
    margin-top: 0;
    border-bottom: 2px solid rgba(76, 175, 80, 0.3); /* Dezenter grüner Unterstrich */
}

h3 {
    font-size: 2rem;
    color: #4CAF50; /* Grün für Sub-Überschriften */
    margin-bottom: 15px;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
}

a {
    color: #4CAF50; /* Links in Grün */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #66BB6A; /* Helleres Grün beim Hover */
    text-decoration: underline;
}

/* Button Styling */
.cta-button {
    display: inline-block;
    background-color: #4CAF50; /* Grüner Button */
    color: #000; /* Schwarzer Text auf Grün */
    padding: 15px 30px;
    border-radius: 50px; /* Abgerundeter Button */
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    margin-top: 30px;
}

.cta-button:hover {
    background-color: #66BB6A; /* Helleres Grün beim Hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.secondary-button {
    background-color: #003366; /* Dunkelblau für Sekundär-Button */
    color: #fff;
}

.secondary-button:hover {
    background-color: #004080; /* Etwas heller beim Hover */
}

/* Hero Section (Header) - Hintergrundbild KI.jpg */
.hero-section {
    position: relative;
    height: 100vh; /* Volle Bildschirmhöhe */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background-image: url('KI.jpg'); /* BILD: Roboterhand (KI.jpg) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Überlagerung auf 40% reduziert, damit das Bild heller ist */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
}

.company-name {
    font-size: 5.5rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
    animation: fadeInDown 1s ease-out;
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #E0E0E0;
    animation: fadeInLeft 1s ease-out 0.3s forwards;
    opacity: 0;
}

.sub-tagline {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #B0B0B0;
    animation: fadeInRight 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* WICHTIGE ÄNDERUNG: Abstand nach dem Warum-Meycore-Abschnitt entfernen */
#warum-meycore {
    padding-bottom: 0;
    border-bottom: none; /* Entfernt die Trennlinie */
}

.dark-bg {
    background-color: #0A0A0A;
}

.light-bg {
    background-color: #1A1A1A;
}

/* Allgemeine Klasse für Sektionen mit Hintergrundbildern */
.section-with-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff; /* Textfarbe für überliegende Inhalte */
    padding: 100px 0; /* Standard Padding für Hintergrundbilder */
    overflow: hidden;
}

.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dunkle Überlagerung */
    z-index: 1;
}

.section-with-bg .container {
    position: relative;
    z-index: 2; /* Inhalt über der Überlagerung */
}

/* Spezifische Hintergrundbilder für Sektionen */
/* #ueber-uns.section-with-bg wurde entfernt und bleibt ohne Hintergrund */

#kompetenzen.section-with-bg {
    background-image: url('Engineering.jpg'); /* BILD: Baupläne (Engineering.jpg) */
    background-position: top center; /* Anpassung für Baupläne */
}

/* GEÄNDERT: Bildsektion "Überwachung Datacenter.jpg" als Hintergrund - HÖHE VERLÄNGERT */
.image-section.dark-bg {
    background-image: url('ueberwachungdatacenter.jpg'); /* HIER WURDE DER DATEINAME KORRIGIERT */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh; /* Deutlich erhöhte Höhe, um mehr vom Bild zu zeigen */
    padding: 0; /* Padding auf 0 setzen, da min-height die Größe steuert */
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom wurde entfernt, um Lücke zu schließen */
    border-bottom: none; /* Entfernt Trennlinie */
}

.image-section.dark-bg::before { /* Überlagerung für Lesbarkeit */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Leichtere Überlagerung, damit das Bild sichtbar ist */
    z-index: 1;
}

/* Wir entfernen den Stil für das img-Tag in dieser Sektion, da es nun als Hintergrund ist */
.content-image-datacenter {
    display: none; /* Versteckt das img-Tag, da es nun als Hintergrund ist */
}


/* Kernkompetenzen Grid */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.comp-card {
    background-color: rgba(0, 0, 0, 0.7); /* Leicht transparenter Hintergrund, wenn Sektion ein BG-Bild hat */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    border: 1px solid rgba(76, 175, 80, 0.3); /* Grüner Rahmen */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.comp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.9); /* Dunkler beim Hover */
}

.icon-large {
    font-size: 3.5rem;
    color: #4CAF50;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
}

.comp-card h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.comp-card p {
    font-size: 1rem;
    color: #B0B0B0;
}

/* Why Meycore Section */
.advantage-list {
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.advantage-list p {
    background-color: #1A1A1A;
    padding: 15px 25px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 5px solid #4CAF50;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.advantage-list p i {
    color: #4CAF50;
    margin-right: 15px;
    font-size: 1.5rem;
}

/* Contact & CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: #0A0A0A;
}

/* WICHTIGE ÄNDERUNG: Abstand nach dem Impressum entfernen */
#impressum {
    border-bottom: none; /* Entfernt die Trennlinie */
}

.cta-section h2 {
    color: #4CAF50;
    margin-bottom: 30px;
}

.cta-section .contact-details {
    margin-top: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.cta-section .contact-details a {
    font-weight: 600;
}

/* Footer Styling */
footer {
    background-color: #000;
    color: #888;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- Impressum-Styling (kleinere Schriftgrößen & Abstände) ---- */
#impressum h2 {
    font-size: 2rem; /* Überschrift H2 verkleinert */
    margin-bottom: 10px;
    padding-bottom: 5px;
}

#impressum h3 {
    font-size: 1.4rem; /* Überschrift H3 verkleinert */
    margin-top: 25px;
    margin-bottom: 5px;
}

#impressum p {
    font-size: 0.9rem; /* Textabsätze verkleinert */
    line-height: 1.4;
    margin-bottom: 5px;
}

#impressum strong {
    font-size: 1rem; /* Fettgedruckter Text bleibt lesbar */
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    .tagline {
        font-size: 2rem;
    }
    .sub-tagline {
        font-size: 1.1rem;
    }
    .hero-section {
        height: 80vh; /* Etwas kleiner auf Tablets */
    }
    .image-section.dark-bg { /* Anpassung der Höhe für Responsive */
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px 0;
    }
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.6rem;
    }
    .tagline {
        font-size: 1.6rem;
    }
    .sub-tagline {
        font-size: 1rem;
    }
    .competencies-grid {
        grid-template-columns: 1fr;
    }
    .comp-card {
        padding: 20px;
    }
    .icon-large {
        font-size: 3rem;
    }
    .content-section {
        padding: 50px 0;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .section-with-bg {
        padding: 60px 0; /* Etwas weniger Padding auf kleinen Bildschirmen */
    }
    .image-section.dark-bg { /* Anpassung der Höhe für Responsive */
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 2.5rem;
    }
    .tagline {
        font-size: 1.4rem;
    }
    .sub-tagline {
        font-size: 0.9rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    p {
        font-size: 1rem;
    }
    .image-section.dark-bg { /* Noch kleinere Höhe für sehr kleine Bildschirme */
        min-height: 250px;
    }
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Sprachumschalter-Styling */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
    margin-left: 5px;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background-color: #4CAF50; /* Aktive Sprache in Grün hervorheben */
    border-color: #4CAF50;
    color: #000;
}