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

/* Entferne starre Font-Sizes für h1, h2 etc. */

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 (Hamburger) */
.topbar {
    background-color: #fff;
    padding: 0.5em 1em;
    height: 20px;
    text-align: center;
    position: relative;
}

/* Navigation */
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%);
}

/* Großes Logo oben, zentriert */
#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;
    margin-top: -20px;
    padding: 1.5em 2em;
    justify-content: center;
}

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-ueberuns {
    background-image: url("img/ueberuns/Hintergrundbild_Uber_Uns.JPG");
    background-position: center center;
    background-size: cover;
    background-attachment: scroll;
    position: absolute;
    top: 0; left: 0;
    right: 0; bottom: 0;
    z-index: -1;
}

/* Logo in der Banner-H (zentriertes Bild) */
.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-BEREICH
************************************************/
main {
    background-image: url("img/grunge-wand-textur.jpg");
    background-repeat: round;
    background-attachment: fixed;
    width: 100%;
    min-height: 100%;
}

/* Überschriften-Abschnitt */
.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;
    font-size: 2em;
}

/************************************************
  5) "WER WIR SIND"
************************************************/
.block-uberuns1 {
    padding: 2% 0;
}

#container-ueberuns {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    max-width: 1400px;
    margin: 2em auto;
    background-color: #333;
    color: #fff;
    padding: 2rem;
    border-radius: 0.25rem;
}

#container-ueberuns-text1 {
    flex: 1 1 50%;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#container-ueberuns-text1 h1 {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 1rem;
}

#container-ueberuns-text1 p {
    font-size: 1em;
    line-height: 1.8em;
}

/* Rechte Spalte (Bild) */
#container-ueberuns-bild1 {
    flex: 1 1 50%;
    overflow: hidden;
    display: flex;
}

#container-ueberuns-bild1 img {
    width: 100%;
    max-height: 550px;
    height: 100%;
    object-fit: cover;
}

/************************************************
  6) "UNSERE STÄRKEN" BLOCK
************************************************/
.block-leistungen2 {
    display: flex;
    width: 90%;
    max-width: 1000px;
    margin: 2em auto;
    padding: 2em;
    gap: 2rem;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
}

#leistung-bild1-u,
#leistung-bild2-u {
    width: 50%;
}

#leistung-text-u {
    width: 50%;
    background-color: #f7f7f7;
    padding: 1em;
    font-size: 1.2em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
}

#leistung-text-u h2 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    color: #333;
}

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

#leistung-text-u li i.fa.fa-check {
    font-size: 1.3em;
    color: #47A938;
    margin-right: 0.6em;
}

/************************************************
  7) GESCHÄFTSFÜHRUNG (Karten-Design)
************************************************/
.block-ueberuns3 {
    background-color: #cecece;
    text-align: center;
    padding: 4em 0;
    /* entfernt das riesige font-size: 2em, 
       damit Headings per clamp() skalieren */
}

/* Überschrift für den Bereich */
.geschaefts-h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2f2c2c;
}

/* Flex-Container für die Karten */
#container-ueberuns-führung {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

/* EINHEITLICHES KARTEN-DESIGN FÜR GF & ASSISTENZ */
.business-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    flex: 1 1 240px;
    max-width: 300px;
    min-width: 260px;
    padding: 2em;
    text-align: center;
}

.business-card h3 {
    color: #2f2c2c;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    line-height: 1.2;
}

.business-card h1 {
    color: #333;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.business-card .role {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 1rem;
}

.business-card .contact-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #47A938;
    text-decoration: none;
    font-weight: 600;
}

.business-card .contact-link i {
    margin-right: 0.4em;
}

.contact-link a {
    font-size: 0.75em;
}

.business-card .contact-link:hover {
    text-decoration: underline;
}

/* Kontakt-Button (zentriert darunter) */
#block-geschäft-button {
    margin-top: 1rem;
}

#button-geschäft {
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(90deg, #4CAF50, #6ABD63);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    font-weight: 700;
}

#button-geschäft:hover {
    background: linear-gradient(90deg, #6ABD63, #4CAF50);
}

/************************************************
  8) 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 & Hotline */
#footer-logo {
    flex: 1 1 200px;
    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, Bürozeiten, QR */
#footer-adresse,
#footer-bürozeiten,
#footer-qr {
    flex: 1 1 200px;
    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;
}

/************************************************
  9) RESPONSIVE-ANPASSUNGEN
************************************************/
@media screen and (max-width: 768px) {
    .menubutton {
        display: block;
    }

    .block-abschnitt1 #block-abstand {
        border: none;
    }

    header nav {
        display: none; /* per JS Toggle */
    }
    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 1em 2em;
    }
    header nav li {
        margin: 0.5em 0;
    }

    /* "Wer wir sind" – Spalten untereinander */
    #container-ueberuns {
        flex-direction: column;
    }
    #container-ueberuns-text1,
    #container-ueberuns-bild1 {
        width: 100%;
        padding: 1rem;
    }

    /* Stärken-Bereich untereinander */
    .block-leistungen2 {
        flex-direction: column;
        gap: 1rem;
    }
    #leistung-bild1-u,
    #leistung-bild2-u,
    #leistung-text-u {
        width: 100%;
    }

    /* Führungsteam-Karten untereinander */
    #container-ueberuns-führung {
        flex-direction: column;
    }
    .business-card {
        max-width: 90%;
        margin: 0 auto;
    }

    /* 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;
    }
}

@media screen and (min-width: 1400px) {
    /* Für sehr große Bildschirme */
    .footer-container {
        max-width: 1400px;
        gap: 3rem;
    }
}

/*************************************************
  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 */
h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}
/* H2 */
h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
}
/* H3 */
h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}
/* H4–H6 */
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);
}
