/* =========================
   EINSTELLUNGEN
   ========================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


:root {
    --green: #3f6b35;
    --dark-green: #294825;

    --background: #f5f6f2;
    --white: #ffffff;

    --text: #222222;
}


/* =========================
   BODY
   ========================= */

body {
    margin: 0;

    font-family: "Montserrat", sans-serif;

    color: var(--text);
    background-color: var(--background);

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}


/* =========================
   HEADER / NAVI
   ========================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px 6%;

    background-color: var(--white);

    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);

    transition: background-color 0.3s ease;
}


.logo {
    position: absolute;
    left: 6%;

    font-size: 25px;
    font-weight: 700;
}


nav {
    display: flex;

    gap: 30px;
}


nav a {
    position: relative;

    color: var(--text);

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}


nav a:hover {
    color: var(--green);
}


/* Linia pod linkiem */

nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background-color: var(--green);

    transition: width 0.2s ease;
}


nav a:hover::after {
    width: 100%;
}


/* =========================
   THEME BUTTON
   ========================= */

#theme-toggle {
    position: absolute;
    right: 6%;

    padding: 9px 16px;

    border: none;
    border-radius: 6px;

    background-color: var(--green);
    color: white;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


#theme-toggle:hover {
    background-color: var(--dark-green);

    transform: translateY(-2px);
}


/* =========================
   HERO / STARTSEITE
   ========================= */

.hero {
    min-height: 80vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.35)
        ),
        url("images/Mainphoto.jpg");

    background-size: cover;
    background-position: center;
}


.hero-content {
    max-width: 700px;

    padding: 40px;

    color: white;
}


.hero h1 {
    margin: 0 0 15px;

    font-size: 52px;
    font-weight: 700;
}


.hero p {
    margin: 0;

    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
}


/* =========================
   BUTTON
   ========================= */

.button {
    display: inline-block;

    margin-top: 25px;
    padding: 14px 28px;

    background-color: var(--green);
    color: white;

    text-decoration: none;

    font-weight: 600;

    border-radius: 6px;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.button:hover {
    background-color: var(--dark-green);

    transform: translateY(-2px);
}


/* =========================
   SECTIONS
   ========================= */

.section {
    max-width: 1200px;

    margin: 0 auto;

    padding: 100px 6%;
}


.section h2 {
    margin: 0 0 50px;

    text-align: center;

    font-size: 36px;
    font-weight: 700;
}


/* =========================
   LEISTUNGEN
   ========================= */

.services {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}


.service {
    overflow: hidden;

    background-color: var(--white);

    text-align: center;

    border-radius: 10px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.3s ease;
}


.service:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}


.service img {
    display: block;

    width: 100%;
    height: 400px;

    object-fit: cover;
}


.service h3 {
    margin: 25px 20px 20px;

    font-size: 24px;
    font-weight: 600;
}


.service p {
    margin: 0 20px 20px;

    line-height: 1.6;
}


/* =========================
   WEITERE ARBEITEN
   ========================= */

.additional-work {
    margin-top: 80px;

    text-align: center;
}


.additional-work h3 {
    margin: 0 0 15px;

    font-size: 30px;
    font-weight: 700;
}


.additional-work-text {
    max-width: 750px;

    margin: 0 auto 40px;

    line-height: 1.7;
}


/* =========================
   GALERIE
   ========================= */

.additional-gallery {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


.gallery-item {
    overflow: hidden;

    height: 300px;

    background-color: var(--white);

    border-radius: 10px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.gallery-item:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}


.gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;
}


.gallery-item:hover img {
    transform: scale(1.05);
}


/* =========================
   INFO
   ========================= */

.info {
    max-width: 800px;

    margin: 50px auto 0;
    padding: 25px 30px;

    text-align: center;

    background-color: var(--white);

    border-radius: 10px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}


.info h3 {
    margin: 0;

    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
}


/* =========================
   KONTAKT
   ========================= */

.contact {
    max-width: none;

    text-align: center;

    background-color: var(--white);

    transition: background-color 0.3s ease;
}


.contact-info {
    display: flex;

    justify-content: center;

    gap: 80px;
}


.contact-item h3 {
    margin-bottom: 10px;

    font-weight: 600;
}


.contact-item a {
    color: var(--green);

    text-decoration: none;

    font-weight: 500;
}


.contact-item a:hover {
    text-decoration: underline;
}


/* =========================
   DARK MODE
   ========================= */

body.dark {
    --background: #181d18;
    --white: #222822;

    --text: #f2f2f2;
}


body.dark header {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}


body.dark .service {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}


body.dark .gallery-item {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}


body.dark .contact {
    background-color: #141814;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    header {
        flex-direction: column;

        gap: 15px;

        padding: 20px;
    }


    .logo {
        position: static;
    }


    nav {
        gap: 15px;
    }


    nav a {
        font-size: 14px;
    }


    #theme-toggle {
        position: static;

        padding: 8px 14px;
    }


    .hero {
        min-height: 70vh;
    }


    .hero-content {
        margin: 20px;

        padding: 30px 20px;
    }


    .hero h1 {
        font-size: 38px;
    }


    .hero p {
        font-size: 18px;
    }


    .section {
        padding: 70px 20px;
    }


    .section h2 {
        font-size: 30px;
    }


    .services {
        grid-template-columns: 1fr;
    }


    .additional-work {
        margin-top: 60px;
    }


    .additional-work h3 {
        font-size: 26px;
    }


    .additional-gallery {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .gallery-item {
        height: 300px;
    }


    .contact-info {
        flex-direction: column;

        gap: 30px;
    }

}
