/* Globale Stile und Variablen */
:root {
    --primary-color: #0a2b4c; /* Dunkles Blau */
    --secondary-color: #f4f7fa; /* Sehr helles Grau */
    --accent-color: #00b894; /* Helles Türkis/Grün */
    --text-color: #333;
    --light-text-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    color: #555;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #00a082;
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: var(--light-text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
}

.header-cta {
    font-size: 0.9rem;
}

/* Hero Sektion */
.hero {
    background: linear-gradient(rgba(10, 43, 76, 0.7), rgba(10, 43, 76, 0.7)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2070&auto=format&fit=crop') center center/cover no-repeat;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Über Mich Sektion */
.about-me {
    background-color: var(--secondary-color);
}
.about-me-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-me-image img {
    width: 100%;
    max-width: 350px; /* WIEDERHERGESTELLT */
    height: 350px;    /* WIEDERHERGESTELLT */
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.image-placeholder {
    width: 100%;
    max-width: 350px;
    height: 350px;
    background-color: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    margin: 0 auto;
}
.about-me-text {
    flex: 2;
}
.about-me-text h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}
.about-me-text p {
    margin-bottom: 15px;
}

/* Dienstleistungen Sektion */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Projekte Sektion */
.projects {
    background-color: var(--secondary-color);
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 20px;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.project-card h3 {
    color: var(--primary-color);
    padding: 0 0 10px 0;
}
.project-card p {
    padding: 0;
}

/* Kontakt Sektion */
.contact {
    text-align: center;
}
.contact-info {
    margin: 40px 0;
    font-size: 1.2rem;
}
.contact-info p {
    margin-bottom: 15px;
}
.contact-info i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 20px 0;
    text-align: center;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-links a {
    color: var(--light-text-color);
    text-decoration: none;
    margin-left: 20px;
}
.footer-links a:hover {
    text-decoration: underline;
}

/* Impressum Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
}
.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}
.modal-content p {
    margin-bottom: 10px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .header-cta { display: none; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content .subtitle { font-size: 1rem; }

    .about-me-content { flex-direction: column; }
    .about-me-image { margin-bottom: 30px; }

    .footer .container { flex-direction: column; gap: 10px; }
}
/* Mobile Menü */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--light-text-color);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    .about-me-image {
        display: flex;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .cta-button {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}
@media (max-width: 768px) {
    .about-me-image img {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .about-me-image {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-placeholder {
        width: 200px;
        height: 200px;
    }
}
