/* Color Variables - Dezentes Grün */
:root {
    --primary-color: #5b8266; /* Dezentes, elegantes Grün */
    --primary-light: #e6ece8;
    --primary-dark: #3a5341;
    --text-color: #2c3e35;
    --text-light: #667b6d;
    --bg-color: #f7f9f8;
    --white: #ffffff;
    --hero-overlay: rgba(247, 249, 248, 0.85); /* Overlay für das Hintergrundbild */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    color: var(--primary-dark);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 6px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--primary-color);
  padding: 0 2rem;
}

/* Overlay für dezente Integration */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hero-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.greeting {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 130, 102, 0.2);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 130, 102, 0.3);
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Logos in der About-Sektion */
.about-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.about-logo-img {
    height: auto;
    max-height: 60px; /* Begrenzung der Höhe */
    max-width: 150px; /* Begrenzung der Breite */
    opacity: 0.8; /* Dezente Integration */
    transition: opacity 0.3s ease;
}

.about-logo-img:hover {
    opacity: 1; /* Volle Opazität bei Hover */
}

/* Works Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.work-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.work-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.work-card p {
    flex-grow: 1;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-btn:hover {
    color: var(--primary-dark);
}

/* Mini Projects */
.projects {
    background-color: var(--bg-color);
    padding-top: 0;
}

.mini-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.mini-card {
    text-decoration: none;
    color: var(--text-color);
    padding: 1.5rem;
    text-align: center;
    border-top: none;
    border-left: 4px solid var(--primary-color);
}

.mini-card:hover {
    background-color: var(--primary-light);
}

.mini-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    background-color: var(--primary-light);
    text-align: center;
}

.contact p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info a {
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--white);
    padding: 1rem 2rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.contact-info a:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

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

/* Responsive */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 60px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: right 0.3s ease;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Burger Animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}
