/* --- FARBPALETTE UND GRUNDEINSTELLUNGEN --- */
:root {
    --primary-color: #38b6ff;  /* MGA BAU Blau */
    --secondary-color: #545454; /* MGA BAU Grau */
    
    /* NEU: Ein sanftes Hellgrau für den Hintergrund statt grellem Weiß */
    --bg-main: #f0f2f5;         
    
    /* Weiße Boxen für einen edlen Kontrast auf dem grauen Hintergrund */
    --bg-panel: #ffffff;        
    --text-dark: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--secondary-color);
    line-height: 1.6;
    background-color: var(--bg-main); /* Hier wird das neue sanfte Grau angewendet */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
}

/* --- LOGO-NAVIGATION --- */
header {
    background: var(--bg-panel); /* Header bleibt weiß */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding-bottom: 5px;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* --- SEITENBEREICHE & CONTAINER --- */
.container {
    width: 90%;           /* Auf dem Handy nutzt der Text 90% der Breite */
    max-width: 1100px;    /* Auf dem PC wird es nie breiter als 1100px (sieht edler aus) */
    margin: 0 auto;       /* Schiebt die Kiste in die Mitte */
    padding: 20px 0;      /* Ein bisschen Abstand nach oben und unten */
}

.content-box {
    width: 100%;          /* Die Box passt sich immer dem Container an */
    box-sizing: border-box; /* Sorgt dafür, dass Abstände (Padding) die Box nicht sprengen */
}

h1, h2, h3 {
    margin-top: 0;
}

h1 { font-size: 2.8rem; color: var(--secondary-color); }
h1 span, h2 span { color: var(--primary-color); }
h2 { font-size: 2.2rem; margin-bottom: 1rem; color: var(--secondary-color); text-transform: uppercase; text-align: center;}
h3 { color: var(--secondary-color); font-size: 1.3rem;}

/* --- BILDPLATZHALTER UTILITY CLASS --- */
.img-placeholder {
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- STARTSEITE (INDEX.HTML) --- */

/* Hero Bereich */
.hero {
    background-color: #e0e0e0; 
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    margin-top: 2rem;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.7); 
    border-radius: 8px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 1rem auto 2rem auto;
}

/* Leistungen Raster */
.services-grid {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-panel); /* Karte bleibt weiß */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-card:hover { transform: translateY(-5px); }

.service-img { height: 200px; width: 100%; }

.service-text { padding: 1.5rem; text-align: center; }

/* Referenzen Raster */
.references-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.reference-card {
    height: 250px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

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

.btn-large { font-size: 1.1rem; }
.btn-secondary { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-secondary:hover { background: var(--primary-color); color: #ffffff; }

/* --- ALLGEMEINE INHALTSBOXEN (KONTAKT, IMPRESSUM) --- */
.content-box {
    background: var(--bg-panel); /* Inhaltsbox bleibt weiß */
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

/* --- KONTAKTFORMULAR --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: var(--secondary-color); }
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 5px rgba(56, 182, 255, 0.2); }

/* --- FUSSZEILE --- */
footer {
    background: var(--secondary-color);
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* --- ANIMATIONEN --- */
.animate-fade { animation: fadeIn 1s ease forwards; }
.animate-slide { opacity: 0; animation: slideUp 0.8s ease forwards; animation-delay: 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Für Tablets (unter 1024px Breite) */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr 1fr; /* Nur 2 Spalten statt 3 */
    }
}

/* Für Smartphones (unter 768px Breite) */
@media (max-width: 768px) {
    /* Menü untereinander stapeln */
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Alle Spalten werden zu einer Liste untereinander */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Überschriften etwas kleiner machen, damit sie nicht umbrechen */
    h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
}