body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

header {
    background: url('header-image.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(header.jpeg);
    background-size: 100% auto;
    background-position: center;
}

header h1 {
    font-size: 48px;
    margin: 0;
}

header p {
    font-size: 20px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

.angebot {
    background: #fff;
    padding: 20px;
    text-align: center;
    font-size: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: solid 6px green;
}

.angebot h2 {
    color: rgb(56, 101, 56);
    font-size: 30px;
}

.angebot button {
    background: rgb(56, 101, 56);
    ;
    color: white;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    margin-top: 10px;
}

.angebot button:hover {
    background: green;
}

.leistungen {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.leistung {
    width: 46%;
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.l1 {
    background-color: rgb(38, 75, 38);
}

.l2 {
    background-color: rgb(15, 49, 15);
}

.l3 {
    background-color: rgb(60, 132, 60);
}

.l4 {
    background-color: rgb(59, 95, 59);
}

.portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 70px;
    padding: 40px;
    padding-bottom: 100px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    padding-top: 40px;
}

.gallery img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out, z-index 0s 0.3s;
    cursor: pointer;
    border-radius: 8px;
}
.gallery img:hover {
    transform: scale(1.5);
    position: relative;
    z-index: 10;
}
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}
.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}
.lightbox .prev, .lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    user-select: none;
}
.lightbox .prev {
    left: 20px;
}
.lightbox .next {
    right: 20px;
}
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.geschichte {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.geschichte>h2 {
    font-size: 30px;
    text-align: center;
    padding-bottom: 40px;
}

.geschichte-item {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 40px;
}

.geschichte-item:nth-child(even) {
    flex-direction: row-reverse;
}

.geschichte-item img {
    width: 50%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(1);
}

.geschichte-text {
    width: 55%;
    padding: 20px;
}

.kontakt {
    text-align: center;
    background: rgb(56, 101, 56);
    color: white;
    padding: 40px;
    border-radius: 8px;
}

.kontakt input,
.kontakt textarea {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: none;
}

.kontakt button {
    background: white;
    color: rgb(56, 101, 56);
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
}

.kontakt button:hover {
    background: #ddd;
}

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer-links {
    margin-top: 10px;
}

.footer-button {
    background: white;
    color: rgb(56, 101, 56);
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    margin: 5px;
    display: inline-block;
    border: 1px solid rgb(56, 101, 56);
    transition: background 0.3s ease;
}

.footer-button:hover {
    background: rgb(56, 101, 56);
    color: white;
}

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

@media only screen and (max-width: 760px) {
    header {
        padding: 50px 20px;
    }

    .leistung {
        width: 100%;
    }
}

@media only screen and (min-width: 761px) and (max-width: 1124px) {
    .leistung {
        width: 44%;
    }
}