/* =========================
   GRUNDLAGEN
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #2b2b2b;
    background-color: #f5f5f5;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   HERO / HEADER
========================= */

.hero {
    background: #ffffff;
    padding: 80px 20px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text h1 {
    margin: 0;
    line-height: 1.1;
}

.name-top {
    font-size: 64px;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: #2f5d2f;
}

.name-bottom {
    font-size: 78px;
    font-weight: 300;
    letter-spacing: 0.14em;
    color: #7fbf3f;
}

.hero-sub {
    margin: 25px 0;
    font-size: 18px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: #2f5d2f;
    color: #ffffff;
    font-weight: 600;
}

/* Logo */
.hero-logo img {
    width: 840px;      /* ca. doppelt so groß */
    opacity: 0.8;      /* 20 % transparenter */
}

/* =========================
   NAVIGATION
========================= */

.main-nav {
    background: #2f5d2f;
    text-align: center;
    padding: 14px;
}

.main-nav a {
    margin: 0 16px;
    font-weight: 600;
    color: #ffffff;
}

/* =========================
   SECTIONS
========================= */

.section {
    padding: 70px 20px;
}

.section.light {
    background: #ffffff;
}

.section.dark {
    background: #2f5d2f;
    color: #ffffff;
}

.section h2 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 40px;
}

.center-text {
    text-align: center;
}

/* =========================
   LEISTUNGEN
========================= */

.card-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: #f0f0f0;
    padding: 30px;
    font-size: 18px;
    border-left: 6px solid #7fbf3f;
}

/* =========================
   ÜBER MICH (MIT BILD)
========================= */

.ueber-mich-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.ueber-mich-bild img,
.ueber-mich-foto {
    width: 260px;
    border: 1px solid #dcdcdc;
}

.ueber-mich-text {
    font-size: 17px;
}

/* =========================
   GALERIE
========================= */

.gallery {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery figure {
    background: #ffffff;
    padding: 8px;
    border: 1px solid #dcdcdc;
    text-align: center;
}

.gallery img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

figcaption {
    margin-top: 8px;
    font-size: 14px;
}

.gallery-center {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.gallery-center figure {
    width: 30%;
}

/* =========================
   KONTAKT
========================= */

.kontakt-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kontakt-form input,
.kontakt-form textarea {
    padding: 12px;
    font-size: 16px;
}

.kontakt-form button {
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: #7fbf3f;
    border: none;
    cursor: pointer;
}

/* =========================
   FOOTER
========================= */

footer {
    background: #1f3f1f;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

footer a {
    text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-logo img {
        width: 280px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-center {
        flex-direction: column;
        align-items: center;
    }

    .gallery-center figure {
        width: 90%;
    }

    .ueber-mich-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .name-top {
        font-size: 42px;
    }

    .name-bottom {
        font-size: 52px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}
