/*************************************************
  1) GRUNDEINSTELLUNGEN
**************************************************/
* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #444; 
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

/*************************************************
  2) HEADER & NAVIGATION
**************************************************/
header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #fff;
}

.topbar {
    background-color: #fff;
    padding: 0.5em 1em;
    height: 20px;
    text-align: center;
    position: relative;
}

header nav {
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menubutton {
    display: none;
    width: 2.5em;
    height: auto;
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
}

#logo {
    text-align: center;
    margin-top: 10px;
    position: relative;
    z-index: 9998;
}

#logo img {
    max-width: 200px;
    border: 0.3em solid #333;
    border-radius: 0.25em;
    background-color: #fff;
}

#logo:hover {
    opacity: 0.8;
}

header nav ul {
    display: flex;
    list-style: none;
    padding: 1.5em 2em;
    justify-content: center;
    margin-top: -20px; 
}

header nav li {
    margin: 0 1em;
}

header nav a {
    text-decoration: none;
    font-size: 1.2em;
    color: #333;
    position: relative;
    padding: 0.5em 0;
}

header nav a:after {
    content: "";
    display: block;
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: green;
    transition: width 0.2s ease-in-out;
}

header nav a:hover:after {
    width: 100%;
}

/*************************************************
  3) BANNER
**************************************************/
.banner {
    position: relative;
    height: 50em;
}

.background-image-startseite {
    background-image: url("img/banner.jpeg");
    background-position: center center;
    background-size: cover;
    background-attachment: scroll;
    position: absolute;
    top: 0; left: 0;
    right: 0; bottom: 0;
    z-index: -1;
}

.banner-h {
    position: relative;
    text-align: center;
    margin-top: -3em;
}

.banner-h img {
    max-width: 200px;
    border: 0.3em solid #333;
    border-radius: 0.25em;
    background-color: #fff;
}

/*************************************************
  4) MAIN (Hintergrund etc.)
**************************************************/
main {
    background-image: url("img/grunge-wand-textur.jpg");
    background-repeat: round;
    background-attachment: fixed;
    width: 100%;
    min-height: 100%;
}

/*************************************************
  5) BLOCK ABSCHNITT 1 (Überschrift / Claim)
**************************************************/
.block-abschnitt1 {
    background-color: #f7f7f7;
    padding-top: 1%;
    padding-bottom: 1%;
    text-align: center;
}

.block-abschnitt1 #block-abstand {
    width: 80%;
    margin: 0 auto;
    border-left: #358029 solid 2px;
    border-right: #358029 solid 2px;
}

.block-abschnitt1 h1 {
    color: #2f2c2c;
    line-height: 1.2;
    padding: 2.5% 0 1.5% 0;
    /* restliche Styles via clamp() */
}

/*************************************************
  6) BLOCK LEISTUNGEN
**************************************************/
.block-leistungen1 {
    display: flex;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em 0;
    justify-content: space-between;
    flex-wrap: wrap;
}

#leistung-bild1,
#leistung-bild2 {
    flex: 1 1 300px;
    margin: 1em;
}

#leistung-text {
    flex: 1 1 300px;
    background-color: #f9f9f9;
    padding: 1.5em;
    border: 1px solid #ccc;
    margin: 1em;
    border-radius: 0.5em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#leistung-text h2 {
    color: #333;
    margin-bottom: 0.75em;
}

#leistung-text ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#leistung-text ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.7em;
    padding: 0.5em;
    border-radius: 0.25em;
    transition: background 0.2s;
}

#leistung-text ul li:hover {
    background-color: #fff;
}

#leistung-text ul li i.fa-check {
    color: #47A938;
    margin-right: 0.8rem;
    font-size: 1.3em;
    flex-shrink: 0;
}

#leistung-text ul li span {
    color: #333;
    font-size: 1em;
    line-height: 1.4;
}

/*************************************************
  7) DIVERSE LEISTUNGS-SEKTIONEN
**************************************************/
.block-leistung1 {
    background-color: #f7f7f7;
    padding: 1% 0;
}

#container-leistung1,
#container-leistung2,
#container-leistung3 {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

#container-inhalt-leistung1,
#container-inhalt-leistung2 {
    flex: 1 1 400px;
    text-align: center;
    font-size: 1.1em;
    color: #000;
    padding: 20px 40px;
    box-sizing: border-box;
    border-right: 2px solid #358029;
}

#container-inhalt-leistung2 {
    border-right: none; 
}

#container-inhalt-leistung1 h1,
#container-inhalt-leistung2 h1 {
    color: #2f2c2c;
    margin-bottom: 0.5em;
}

#container-inhalt-leistung1 p,
#container-inhalt-leistung2 p {
    margin: 0 auto;
    line-height: 1.6;
    max-width: 600px;
}

/*************************************************
  8) BILDER-GALLERIEN (block-bilder2)
**************************************************/
.block-bilder2 {
    text-align: center;
    padding: 2% 0;
}

#container-bilder {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 80%;
    margin: 0 auto;
}

#zwei-container-bild1,
#zwei-container-bild2,
#zwei-container-bild3,
#zwei-container-bild4 {
    width: 300px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#zwei-container-bild1 img,
#zwei-container-bild2 img,
#zwei-container-bild3 img,
#zwei-container-bild4 img {
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#zwei-container-bild1 img:hover,
#zwei-container-bild2 img:hover,
#zwei-container-bild3 img:hover,
#zwei-container-bild4 img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/*************************************************
  9) FOOTER
**************************************************/
footer {
    background-color: #2f2c2c;
    padding: 20px 0;
    color: #fff;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

#footer-logo,
#footer-adresse,
#footer-bürozeiten,
#footer-qr {
    flex: 1 1 200px;
    margin-bottom: 1rem;
}

#footer-logo {
    text-align: center;
    color: #358029;
    line-height: 1.5em;
}

#footer-logo img {
    width: 70%;
    padding: 1em 0;
}

#footer-logo p {
    color: #fff;
}

#footer-logo a {
    color: #358029;
    text-decoration: none;
}
#footer-logo a:hover {
    color: #fff;
}

#footer-adresse,
#footer-bürozeiten,
#footer-qr {
    text-align: left;
    color: #358029;
    line-height: 1.5em;
}

#footer-adresse h1,
#footer-bürozeiten h1,
#footer-qr h1 {
    line-height: 2em;
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 0.5rem;
}

#footer-adresse p,
#footer-bürozeiten p {
    color: #fff;
    margin-bottom: 1rem;
}

#footer-qr img {
    width: 35%;
    display: block;
    margin-top: 1rem;
}

/*************************************************
  10) RESPONSIVE-ANPASSUNGEN
**************************************************/
@media screen and (min-width: 1400px) {
    .footer-container {
        max-width: 1400px;
        gap: 3rem;
    }
}

@media screen and (max-width: 992px) {
    .banner {
        height: 30em;
    }
}

@media screen and (max-width: 768px) {
    .menubutton {
        display: block;
    }
    /* Kleineres Banner */
    .block-abschnitt1 #block-abstand {
        border: none;
    }
    header nav {
        display: none;
    }
    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 1em 2em;
    }
    header nav li {
        margin: 0.5em 0;
    }

    /* Container block-leistungen1 übereinander */
    .block-leistungen1 {
        flex-direction: column;
        align-items: center;
    }

    /* Container-Inhalte übereinander */
    #container-leistung1,
    #container-leistung2,
    #container-leistung3 {
        flex-direction: column;
    }

    /* Entferne border-right, setze width: 100% */
    #container-inhalt-leistung1,
    #container-inhalt-leistung2 {
        border-right: none;
        border-bottom: 2px solid #358029;
        margin-bottom: 1rem;
        width: 100%;
    }

    /* 2 Bilder pro Zeile */
    #zwei-container-bild1,
    #zwei-container-bild2,
    #zwei-container-bild3,
    #zwei-container-bild4 {
        width: calc(50% - 1rem);
    }
}

@media screen and (max-width: 480px) {
    /* Noch kleinere Bildcontainer => 1 Bild pro Zeile */
    #zwei-container-bild1,
    #zwei-container-bild2,
    #zwei-container-bild3,
    #zwei-container-bild4 {
        width: 100%;
    }

    /* Footer-Spalten untereinander */
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    #footer-logo,
    #footer-adresse,
    #footer-bürozeiten,
    #footer-qr {
        width: 100%;
        text-align: center;
    }
}

/*************************************************
  11) GLOBALE RESPONSIVE ÜBERSCHRIFTEN (H1–H6)
**************************************************/
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2f2c2c;
}
h1 {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
}
h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
}
h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}
h4 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
}
h5 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}
h6 {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}
