/* Globale Stile & Farbdefinitionen */
:root {
    --background-color: #f2eee3;
    --text-color: #041e35;
    --accent-color: #ed5807;
    --white: #ffffff;
    --light-gray: #e0e0e0; /* Helleres Grau für Ränder etc. */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modernere, systemnahe Schriftart */
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7; /* Etwas mehr Zeilenabstand */
}

h1, h2, h3 {
    color: var(--text-color);
    font-weight: 600; /* Etwas leichter */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--text-color);
    text-decoration: none; /* Keine Unterstreichung beim Hover */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px; /* Leichte Abrundung für Bilder */
}

section {
    padding: 50px 0 50px 20px; /* Rechtes Padding entfernt */
    text-align: center;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    /* Entferne box-shadow für Schlichtheit */
    border-bottom: 1px solid var(--light-gray); /* Dezente Trennlinie */
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Stellt sicher, dass Logo und Menü vertikal zentriert sind */
    max-width: 1100px; /* Etwas schmaler */
    margin: 0 auto;
    padding: 15px 20px; /* Angepasstes Padding */
}

.logo {
    /* Entferne font-size und font-weight, da es jetzt ein Bild ist */
    /* font-size: 1.4em; */
    /* font-weight: 700; */
    /* color: var(--text-color); */
    line-height: 0; /* Verhindert zusätzlichen Leerraum unter dem Bild */
}

/* Styling für das Logo-Bild */
.logo img {
    max-height: 100px; /* Beispielhöhe, passen Sie dies nach Bedarf an */
    width: auto;      /* Behält das Seitenverhältnis bei */
    display: block;   /* Verhindert zusätzlichen Leerraum */
}


/* Entferne Akzentfarbe für Text-Logo */
/* .logo .accent {
    color: var(--accent-color);
} */

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px; /* Etwas mehr Abstand */
}

nav ul li a {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text-color); /* Standardfarbe Text */
}

nav ul li a:hover {
    color: var(--accent-color); /* Akzentfarbe beim Hover */
}

/* Hero Section - REMOVED as inline styles in index.html take precedence */
/* .hero { ... } */
/* .hero-video { ... } */
/* .hero::before { ... } */
/* .hero-content { ... } */
/* .hero h1 { ... } */
/* .hero p { ... } */

.cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 22px; /* Etwas kleiner */
    border: none;
    border-radius: 4px; /* Kleinere Rundung */
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block; /* Wichtig für Padding etc. */
}

.cta-button:hover {
    background-color: #ed5807;
    text-decoration: none;
    color: var(--white);
    transform: translateY(-2px); /* Leichter Hover-Effekt */
}

/* Services Section */
#services {
    background-color: var(--background-color); /* Hintergrundfarbe der Seite */
}

/* Wrapper für H2 und Bild */
.services-header {
    display: flex;
    justify-content: space-between; /* H2 links, Bild rechts */
    align-items: center; /* Vertikal zentrieren */
    width: 100%; /* Volle Breite */
    margin: 0 0 40px 0; /* Zentrierung entfernt, Abstand unten beibehalten */
    padding: 0 0 0 20px; /* Nur links Innenabstand (wie Sektion) */
    box-sizing: border-box; /* Padding in Breite einbeziehen */
}

/* Bild im Services Header */
.services-header img {
    max-height: 500px; /* 5x größer (100px * 5) */
    width: auto;
    border-radius: 4px 0 0 4px; /* Rechte Ecken nicht abrunden */
    object-fit: contain; /* Bild anpassen */
    display: block; /* Sicherstellen, dass es ein Blockelement ist */
}

.service-container {
    display: grid; /* Grid für modernere Ausrichtung */
    grid-template-columns: repeat(2, 1fr); /* Explizit 2 Spalten */
    gap: 30px; /* Abstand zwischen den Items */
    max-width: 1100px;
    margin: 200px 0 0 20px; /* Oberen Abstand auf 200px erhöht */
}

.service-item {
    background-color: transparent; /* Hintergrund transparent */
    padding: 25px;
    border-radius: 6px;
    /* Entferne Schatten für Schlichtheit */
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.08); */
    border: none; /* Kein Rand */
    text-align: left; /* Text linksbündig */
    display: flex; /* Flexbox für interne Ausrichtung */
    flex-direction: column; /* Inhalt untereinander */
    align-items: flex-start; /* Horizontale Ausrichtung nach links */
    /* Entferne Hover-Effekt */
    /* transition: transform 0.3s ease; */
}

/* Wrapper für Bild und H3 */
.service-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Abstand zum Paragraphen */
}

/* Entferne Hover-Effekt */
/* .service-item:hover {
    transform: translateY(-5px);
} */

.service-item img {
    max-height: 50px; /* Kleinere Höhe für Inline-Darstellung */
    width: auto; /* Automatische Breite */
    object-fit: contain; /* Bild anpassen, ohne es zu verzerren */
    margin-bottom: 0; /* Entfernt, da im Header-Wrapper */
    margin-right: 15px; /* Abstand zur Überschrift */
    border-radius: 4px;
    flex-shrink: 0; /* Verhindert, dass das Bild schrumpft */
}

.service-item h3 {
    color: var(--text-color); /* Normale Textfarbe für Titel */
    margin-bottom: 0; /* Entfernt, da im Header-Wrapper */
    font-size: 1.2em;
}

.service-item p {
    font-size: 0.95em;
    color: #555; /* Etwas hellerer Text */
}


/* About Section */
#about {
    max-width: 800px; /* Schmaler */
    margin: 0 auto;
    background-color: var(--white); /* Weißer Hintergrund */
    padding: 50px 40px; /* Innenabstand */
    border-radius: 6px;
    border: 1px solid var(--light-gray);
}
.about-image {
    margin-top: 30px;
    border-radius: 4px;
}


/* Contact Section */
#contact {
    background-color: var(--background-color); /* Hintergrundfarbe der Seite */
}

#contact h2 {
    margin-bottom: 15px;
}

#contact p {
    max-width: 600px;
    margin: 0 auto 30px auto; /* Zentriert und mit Abstand */
    font-size: 1.05em;
}

#contact form {
    max-width: 600px;
    margin: 30px auto;
    padding: 0; /* Kein extra Padding/Background für Form */
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

#contact label {
    display: block;
    margin-bottom: 5px; /* Weniger Abstand */
    font-weight: 600;
    font-size: 0.9em;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%; /* Volle Breite */
    padding: 12px; /* Mehr Padding */
    margin-bottom: 15px; /* Weniger Abstand */
    border: 1px solid var(--light-gray); /* Dezenter Rand */
    border-radius: 4px;
    font-size: 1em;
    color: var(--text-color);
    background-color: var(--white); /* Weißer Hintergrund */
    box-sizing: border-box; /* Wichtig für volle Breite inkl. Padding/Border */
}

#contact textarea {
    resize: vertical;
    min-height: 120px;
}

#contact button[type="submit"] {
    display: inline-block; /* Nicht volle Breite */
    width: auto; /* Automatische Breite */
    margin-top: 10px; /* Abstand nach oben */
}

#contact p:last-of-type { /* Styling für die Kontaktinfo unter dem Formular */
    margin-top: 40px;
    font-size: 0.95em;
    color: #555;
}
#contact p a {
    font-weight: 600;
}


/* Footer */
footer {
    background-color: var(--white); /* Heller Footer */
    color: var(--text-color);
    text-align: center;
    padding: 25px 20px;
    margin-top: 50px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.9em;
}

/* Responsive Design Anpassungen */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 10px 20px;
    }
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap; /* Umbruch bei Bedarf */
        justify-content: center;
    }
    nav ul li {
        margin: 5px 10px; /* Anpassung für Umbruch */
    }
    .service-container {
        grid-template-columns: 1fr; /* Eine Spalte auf Mobilgeräten */
        gap: 20px;
        margin-left: auto; /* Zentriere Container auf Mobilgeräten wieder */
        margin-right: auto; /* Zentriere Container auf Mobilgeräten wieder */
        padding-left: 15px; /* Etwas Padding links/rechts */
        padding-right: 15px;
        max-width: 90%; /* Begrenze Breite auf Mobilgeräten */
    }
    .service-item {
        align-items: center; /* Zentriere Inhalt im Item auf Mobilgeräten wieder */
        text-align: center; /* Zentriere Text im Item auf Mobilgeräten wieder */
    }
    /* Responsive Anpassung für Header */
    .service-item-header {
        flex-direction: column; /* Bild über H3 auf Mobilgeräten */
        align-items: center; /* Zentriert Bild und H3 */
        margin-bottom: 15px;
    }
    .service-item img {
        margin-right: 0; /* Kein rechter Rand auf Mobilgeräten */
        margin-bottom: 10px; /* Abstand unter Bild auf Mobilgeräten */
        max-height: 150px; /* Ggf. Höhe anpassen für mobile Ansicht */
    }
    #about {
        padding: 40px 20px;
    }
    #contact form {
        padding: 0 10px; /* Kleiner Rand auf Mobilgeräten */
    }
    /* Responsive Anpassung für Services Header */
    .services-header {
        flex-direction: column; /* Untereinander auf Mobilgeräten */
        align-items: center; /* Zentrieren */
        margin-bottom: 30px;
        padding: 0; /* Kein Padding auf Mobilgeräten */
    }
    section {
        padding: 40px 20px; /* Padding für Mobilgeräte wiederherstellen/anpassen */
    }
    /* Responsive Anpassung für Services Header */
    .services-header h2 {
        text-align: center; /* Überschrift zentrieren */
        margin-bottom: 20px; /* Abstand zum Bild */
        padding-right: 0; /* Kein rechter Abstand auf Mobilgeräten */
    }
    .services-header img {
        max-height: 250px; /* Höhe für Mobilgeräte anpassen */
        width: 100%; /* Volle Breite auf Mobilgeräten */
        border-radius: 4px; /* Alle Ecken abrunden */
        object-fit: cover; /* Bild ggf. beschneiden, um Container zu füllen */
    }
}
