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

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

img {
    max-width: 100%;
    height: auto;
}

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


/*************************************************
    3) BANNER - KONTAKT
  **************************************************/
.banner {
    position: relative;
    height: 40em;
    /* anpassbar */
}

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

/* Optional: zentriertes Logo im Banner */
.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 (Überschriften-Block)
  **************************************************/
main {
    background-image: url("img/grunge-wand-textur.jpg");
    background-repeat: round;
    background-attachment: fixed;
    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) KONTAKT-FORMULAR
  **************************************************/
.block-kontakt {
    background-color: #fff;
    padding: 3em 1em;
    width: 80%;
    max-width: 1200px;
    margin: 0em auto;
    border-radius: 0.25em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.block-kontakt form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.block-kontakt label {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 0.3em;
    color: #333;
}

.block-kontakt input[type="text"],
.block-kontakt input[type="email"],
.block-kontakt textarea {
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1em;
    padding: 0.75em;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

.block-kontakt input[type="submit"] {
    background-color: #47A938;
    /* Grün */
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 1.1em;
    font-weight: bold;
    padding: 0.75em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.block-kontakt input[type="submit"]:hover {
    background-color: #3d9131;
    transform: scale(1.02);
}

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

/* 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
  **************************************************/
@media screen and (max-width: 768px) {
    .menubutton {
        display: block;
    }

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

    header nav {
        display: none;
        /* Via JS togglen */
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 1em 2em;
    }

    header nav li {
        margin: 0.5em 0;
    }

    /* 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 (max-width: 480px) {
    /* Optional: Kontaktformular 100% Breite etc.
       Ist dank width: 80%; margin: auto; schon ok
    */
}

@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);
}
