/* Grundlegende Stile */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    color: #222;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header & Navigation */
header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Bereich */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area .logo {
    height: 50px;
    width: auto;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 15px;
}

header nav a {
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    transition: color 0.3s;
}

header nav a:hover {
    color: #007BFF;
}

/* Sektionen */
section {
    padding: 40px 0;
}

section:nth-of-type(even) {
    background-color: #e9e9e9;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Dienstleistungen (Mobile-First: Gestapelt) */
#dienstleistungen .services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.services-row {
    display: flex;
    flex-direction: column; /* Mobile: Elemente in der Reihe untereinander */
    gap: 20px;
}

.service-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

/* Über mich (Mobile-First: Gestapelt) */
#ueber-mich .about-content {
    display: flex;
    flex-direction: column; /* Mobile: Bild über Text */
    gap: 30px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-image {
    max-width: 100%;
}

.about-image .profile-pic {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-text p {
    text-align: center; /* Text auf Mobile zentriert */
}

/* Kontaktformular & Infos */
/* (Unveränderte Stile für Kontakt, wurden bereits als mobil-freundlich implementiert) */
.contact-info {
    text-align: center;
    margin-top: 30px;
}

.contact-info p {
    margin: 5px 0;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer nav ul {
    margin-top: 10px;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
}

footer nav a {
    color: #fff;
    font-weight: bold;
}

/* Desktop-Layout (> 769px): Schaltet auf 2 Spalten um */
@media (min-width: 769px) {
    /* Dienstleistungen in 2 Spalten */
    .services-row {
        flex-direction: row; /* Desktop: Elemente in der Reihe nebeneinander */
    }
    .service-card {
        flex: 1;
    }

    /* Über mich in 2 Spalten */
    #ueber-mich .about-content {
        flex-direction: row; /* Desktop: Bild und Text nebeneinander */
        text-align: left;
        align-items: flex-start;
    }

    .about-image {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .about-text {
        flex: 0 0 60%;
        padding-left: 30px;
    }
    
    .about-text p {
        text-align: left; /* Text auf Desktop linksbündig */
    }
}

/* Zusätzliche Mobile-Optimierung (bis 768px) */
@media (max-width: 768px) {
    /* Header-Struktur für Mobile */
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-area {
        flex-direction: column;
        gap: 5px;
    }

    header nav ul {
        margin-top: 10px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .service-card {
        padding: 15px;
    }

    /* Footer-Struktur für Mobile */
    footer .container {
        flex-direction: column;
    }
    
    footer nav ul {
        flex-direction: column;
        gap: 10px;
    }
}