html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #3b5d82; 
    --primary-dark: #2a435e;
    --secondary-color: #3b82f6; 
    --accent-color: #f3f4f6;
    --text-color: #333333;
    --bg-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: normal;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

/* Navigation mit Diagonale */
header {
    background-color: var(--primary-color);
    padding: 25px 5%; /* Gleicher Abstand oben und unten für perfekte Zentrierung links */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 2rem;
    transform: translateY(-12px); /* Zieht nur das Menü nach oben aus der Schräge heraus */
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

nav a:hover {
    color: #cbd5e0;
}

/* Sections */
section {
    padding: 6rem 5% 4rem;
}

h2, h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Hero Section mit lokalem Hintergrundbild und Diagonale */
#home {
    position: relative;
    height: 100vh;
    min-height: 600px;
    /* Lädt nun das lokale Bild "hintergrund.jpg" aus deinem Ordner */
    /* Der dunklere lineare Farbverlauf sorgt für bessere Lesbarkeit des Textes */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
                url('hintergrund.png') center/cover no-repeat;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    display: flex;
    align-items: center;
    padding: 160px 5% 0; 
}

.hero-content {
    max-width: 650px;
    color: white;
    text-align: left;
    animation: fadeIn 1s ease-out forwards;
}

.hero-content h1 {
    font-size: 3.2rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #e2e8f0;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.9rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 1.1rem;
}

.btn:hover {
    background-color: #2563eb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: -2rem;
    max-width: 1100px; /* begrenzt die gesamtbreite auf maximal 3 kacheln */
    margin-left: auto; /* sorgt für die mittige zentrierung */
    margin-right: auto;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-size: 1.4rem;
}

/* About Section */
#ueber-mich {
    background-color: var(--accent-color);
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 280px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-info {
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: #cbd5e0;
    text-align: center;
    padding: 3rem 2rem;
}

footer a {
    color: #cbd5e0;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column-reverse;
    }
    nav {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    #home {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    header {
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    }
}