* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Futura Lt BT";
    src: url("./fonts/futuraltbt-webfont.woff2") format("woff2"),
         url("./fonts/futuraltbt-webfont.woff") format("woff");
}

@font-face {
    font-family: "Ostrich Sans Rounded Medium";
    src: url("./fonts/ostrich-rounded-webfont.woff2") format("woff2"),
         url("./fonts/ostrich-rounded-webfont.woff") format("woff");
}

body {
    background-color: #fcfcfc; /* #f7f7f7; */
    color: #333;
    font-family: "Futura Lt BT", Arial, sans-serif;
    line-height: 1.0;
}

/******************** Kopfbereich ********************/
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 50;

    background-color: #667c63;
    color: white;
    padding: 15px 40px;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    background: #667c63;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);

    opacity: 0; /* erstmal unsichtbar */
    visibility: hidden;
}

.top-bar.shrink {
    opacity: 1; /* dann sichtbar */
    visibility: visible;
    transition: content-visibility 0.3s allow-discrete, opacity 0.3s ease;
}

.header-row-one {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    padding-top: 10px;
    margin-bottom: 24px;
}

.header-row-two {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.header-row-single {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-row-title {
    text-decoration: none;
    font-family: "Ostrich Sans Rounded Medium", Arial, sans-serif;
    font-size: 128px;
    font-weight: 600;
    line-height: 1.2em;
    padding: 16px 0 0 0;
}

.header-row-subtitle {
    text-decoration: none;
    font-family: "Ostrich Sans Rounded Medium", Arial, sans-serif;
    font-size: 48px;
    font-weight: 600;
    padding: 16px 0 16px 0;
}

.header-row-single-title {
    text-decoration: none;
    font-family: "Ostrich Sans Rounded Medium", Arial, sans-serif;
    font-size: 3rem;
    font-weight: bold;
}

.header-row-single-subtitle {
    text-decoration: none;
    font-family: "Ostrich Sans Rounded Medium", Arial, sans-serif;
    font-size: 2rem;
    font-weight: bold;
}

nav {
    font-weight: bold;
    font-size: 20px;
}

.nav-main {
    margin-top: 48px;
    margin-bottom: 12px;
}

.nav-sub {
    margin-top: 6px;
    margin-bottom: 12px;
}

.mainmenu {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.mainmenu > li {
    position: relative;
}

.mainmenu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
}

.mainmenu a:hover {
    color: black;
}

.mainmenu > li:hover {
    color: black;
}

.mainmenu li:hover > a {
    color: black;
}

.submenu1 {
    list-style: none;
    display: none;
    position: absolute;
    top: 100%; /* Direkt unter dem Hauptmenüpunkt */
    left: 0;
    background-color: #667c63;
    margin: 0;
    padding: 0;
    min-width: 200px;
    z-index: 100;
}

.submenu1 li a {
    color: white;
    padding: 10px 15px;
}

.submenu1 li a:hover {
    color: black;
}

.has-submenu:hover .submenu1 {
    display: block;
}

.submenu1right {
    list-style: none;
    display: none;
    position: absolute;
    top: 100%; /* Direkt unter dem Hauptmenüpunkt */
    right: 0;
    text-align: right;
    background-color: #667c63;
    margin: 0;
    padding: 0;
    min-width: 200px;
    z-index: 100;
}

.submenu1right li a {
    color: white;
    padding: 10px 15px;
}

.submenu1right li a:hover {
    color: black;
}

.has-submenu:hover .submenu1right {
    display: block;
}

/******************** Inhaltsbereich ********************/
main {
    padding-top: 100px;

    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.content-block {
    margin-bottom: 40px;
}

.content-block h1 {
    color: #667c63;
    font-size: 3rem;
    margin-top: 36px;
    margin-bottom: 24px;
}

.content-block h2 {
    color: #667c63;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 24px;
    margin-bottom: 20px;
}

.content-block h3 {
    color: #667c63;
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 16px;
}

.content-block h4 {
    color: #667c63;
    font-size: 1.6rem;
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 12px;
}

.content-block h5 {
    color: #667c63;
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 8px;
}

/* Bilder nebeneinander */
.image-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    height: auto;
}

.image-row img {
    flex: 1;
    min-width: 250px;
/*    width: auto;*/
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
/*    border-radius: 10px;*/
}

.image-row figure {
    flex: 1;
    min-width: 250px;
    margin: 0;
    text-align: center;
}

figcaption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
}

.grid-item {
    display: flex;
    flex-direction: column; /* Bild und Text untereinander anordnen */
    margin: 0;
}

.grid-item img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Bild füllt den Bereich aus, ohne das Seitenverhältnis zu verlieren */
    object-position: center; /* Zentriert das Bild im Container */
}

.grid-item figcaption {
    text-align: center; /* Text zentrieren */
    margin-top: 10px;   /* Etwas Abstand zum Bild */
    font-size: 0.9em;
    color: #555;
}

.content-block li {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-left: 25px;
    margin-bottom: 10px;
}

.content-block p {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.middle {
    background-color: #667c63;
    color: white;
    padding: 30px 40px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    font-size: 2.0rem;
    margin-bottom: 40px;
}

.middle p {
    font-size: 2.0rem;
}





details {
    margin-bottom: 40px;
}

details summary::marker {
    content: none;
}

details summary::before {
    content: '';
    display: inline-block;
    width: 32px;  /* Passe die Breite an dein Bild an */
    height: 30px; /* Passe die Höhe an dein Bild an */
    background-image: url(images/ask.png);
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    margin-left: 10px;
    margin-right: 20px;
}

details summary {
    background-color: #def3e5; /* #A6C9A1; */
    border: 1px solid black;
    list-style-type: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 10px;
    margin-bottom: 10px;
}

details summary:hover {
    font-weight: bold;
}

details[open] summary::before {
    transform: rotate(180deg);
}

details[open] summary {
    font-weight: bold;
}

details[open] summary:hover {
    font-weight: bold;
}

details p {
    font-size: 1.5rem;
}

details ::details-content {
    overflow: hidden;
    transition: opacity 0.5s ease, height 0.5s ease;
    height: 0;
    opacity: 0;
}

details[open] ::details-content {
    height: auto;
    opacity: 1;
}

.question {
}

.answer {
    flex-direction: column;
}




/***** Kontaktformular *****/
.form-group {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: "Futura Lt BT", Arial, sans-serif;
    font-size: 1.5rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #667c63;
    outline: none;
    box-shadow: 0 0 0 4px rgba(166,201,161,0.15);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.button-area {
    text-align: right;
}

button {
    background: #667c63;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease,
                transform 0.1s ease;
}

button:hover {
    color: black;
}

button:active {
    transform: scale(0.9);
}

/******************** Fußbereich ********************/
footer {
    background-color: #667c63;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

footer a:hover {
    color: black;
}

/***** Social Media Icons *****/
.socials {
    display: flex;
    gap: 18px;
}

.socials a {
    color: white;
    font-size: 1.4rem;
    transition: transform 0.3s, opacity 0.3s;
}

.socials a:hover {
    color: white;
    transform: scale(1.2);
    opacity: 0.8;
}

/******************** Responsive ********************/
@media (max-width: 768px) {
    .header-row-one {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        margin-bottom: 12px;
    }

    .header-row-two {
        flex-direction: column;
        text-align: center;
        margin-bottom: 12px;
    }

    header h1 {
        line-height: 1.0em;
        padding: 8px 0 0 0;
    }

    header h2 {
        padding: 8px 0 8px 0;
    }

    .mainmenu {
        justify-content: space-between;
        gap: 0;
    }

    .image-row img {
        border-radius: 10px;
    }

    .form-group {
        grid-template-columns: 1fr;
    }

    .middle {
        border-radius: 10px;
    }

    .button-area {
        text-align: center;
    }

    details summary {
        border-radius: 10px;
    }

    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
