/*************************************************
  1) GRUNDEINSTELLUNGEN & FARBSchema
**************************************************/
* {
    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 (STICKY)
  **************************************************/
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 */
#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%;
}

/*************************************************
    3) BANNER - PARTNER
  **************************************************/
.banner {
    position: relative;
    height: 50em;
    /* z.B. 40em, anpassbar */
}

.background-image-partner {
    background-image: url("img/partner_banner.jpg");
    /* Dein Partner-Banner */
    background-position: center center;
    background-size: cover;
    background-attachment: scroll;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* Banner-Logo optional */
.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-color: #f3f3f3;
    width: 100%;
    min-height: 100%;
}

.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) PARTNER-BEREICH
  **************************************************/
.block-partner1 {
    padding: 2em 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    /* optionaler Abstand zwischen den Items */
}

.partner-item {
    flex: 1 1 calc(50% - 1rem);
    /* Zwei Partner pro Zeile bei Platz >= 768px */
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    display: flex;
    padding: 1rem;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 160px;
    /* oder auto, je nach Logo-Format */
    display: block;
    margin: 0 auto;
}

.partner-text {
    flex: 1 1 auto;
}

.partner-text h2 {
    color: #2f2c2c;
    margin: 0.5em 0;
    font-size: 1.4em;
}

.partner-text p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.6em;
    color: #555;
}

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

/*************************************************
    7) RESPONSIVE-ANPASSUNGEN
  **************************************************/
/* Smartphone / Tablet < 768px */
@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;
    }

    /* Partner: 1 pro Zeile */
    .partner-row {
        flex-direction: column;
    }

    .partner-item {
        flex: 1 1 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;
    }
}

/* Sehr große Bildschirme */
@media screen and (min-width: 1400px) {
    .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);
}
