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

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #444;
    /* Grundfarbe für Texte */
    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;
    /* Ganz oben über allen Elementen */
    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;
    /* Standard: im Desktop-Modus ausgeblendet */
    width: 2.5em;
    height: auto;

    /* Absolute Positionierung: links, mittig in der Höhe */
    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;
    /* Navigation mittig */
}

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%;
}


/* Hauptinhalt */
main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px
}



section h2 {
    font-size: 24px;
    margin-top: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px
}

/* Absätze in den Abschnitten */
section p {
    font-size: 16px;
    margin: 0;
    line-height: 1.5
}

/* Haftungsausschluss */
section h3 {
    font-size: 20px;
    margin-top: 0;
    color: #333;
    font-weight: 700
}

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


/* MOBILE STYLE */

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

    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%;
    }

    #container-ueberuns-führung {
        flex-direction: column;
        align-items: center;
    }

    #blockgeschäftsführung,
    #blocksekretärin {
        width: 80%;
        margin: 0 auto;
        margin-bottom: 1rem;
    }

    /* 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)
**************************************************/
/* 
   Diese Regeln vereinheitlichen das Überschriften-Design
   und sorgen per clamp() dafür, dass die Schriftgrößen 
   automatisch an verschiedene Viewports angepasst werden.
*/
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; /* Einheitliche Textfarbe für alle Headings */
}

/* H1: größer auf Desktop, aber verkleinert sich je nach Bildschirmbreite */
h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

/* H2: etwas kleiner als H1 */
h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
}

/* H3: noch kleiner */
h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

/* H4–H6 nach Bedarf anpassen */
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);
}
