/* Buttons */
.startseite_menue button {
    border: none;
    background-color: transparent;
}

.startseite_menue button a:hover {
    color: #667A66;
    text-decoration: none;
}

/* Überschriften */
.subline, .startseite_ueberschriften {
    margin: 10px 0;
    padding: 0;
}

.subline {
    color: #667A66;
    font-size: 22px;
    font-weight: 400;
}

.startseite_ueberschriften {
    font-size: 26px;
    font-weight: bold;
}

.custom-line {
    border: 0;
    height: 2px; /* Höhe der Linie */
    background: #667A66; /* Farbe der Linie */
    width: 10%; /* Breite der Linie */
    margin: 30px 0;
}

/* Startseite Bild */
.image-container {
    display: flex; /* flexibles Layout erstellen */
    position: relative;
    align-items: center;
    padding-bottom: 20px;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Bildschrift: vertikal mittig auf dem Startbild. Das Bild ist immer
   fensterbreit im Format 1536 x 688, seine Mitte liegt also bei
   Navbar (100px) + 22.4vw – so passt es auf jeder Bildschirmgröße. */
.titel {
    position: absolute;
    top: calc(100px + 22.4vw);
    transform: translateY(-50%);
    color: #f2f2f2;
    z-index: 1;
}

.headline {
    font-size: 32px; /* Schriftgröße anpassen */
}

.unterschrift {
    font-size: 26px;
}

/* Erste Reihe auf der Startseite */
.firstrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.inhaltsverzeichnis {
    background-color: #E7F1E5;
    padding: 30px;
    border-radius: 36px;
    flex: 1;
    margin-right: clamp(20px, 8vw, 150px);
}

.staatsminsteriumlogo, .zfklogo {
    flex: 1;
    justify-content: center;
}

.staatsminsteriumlogo {
    display: ruby;
    margin-left: 10px;
}

.staatsminsteriumlogo img:hover, .zfklogo img:hover {
    scale: 110%;
}

.zfklogo {
    display: flex;
    margin-right: 10px;
}

/* Inhaltsverzeichnis */
.inhaltsverzeichnis ul.startseite_menue {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.inhaltsverzeichnis ul.startseite_menue li {
    margin: 10px 0;
}

.startseite_menue li a {
    color: #353535;
    font-family: Montserrat, serif;
}

.ersterabsatz {
    margin-bottom: 50px;
    text-align: justify;
}

/* Große Überschrift Startseite */
.nachhaltigkeitueberschrift {
    margin-bottom: 50px;
    font-size: 32px;
}

/* Vollbreite Abschnitte: brechen aus dem Seitenrand von .content aus und
   gehen über die ganze Fensterbreite. Ihr Text steht über --rand wieder
   bündig mit dem restlichen Inhalt. */
.whatisgreenhospital-container,
.einschub,
.missionen-container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.whatisgreenhospital,
.missionen-content {
    padding: 0 var(--rand);
}

/* Was ist GreenHospital - Absatz */
.whatisgreenhospital-container {
    position: relative;
    padding: 50px 0;
    background-color: #E7F1E5;
    overflow: hidden;
}

.hintergrundbildwhatisgreenhospital {
    position: absolute; /* Absolut positioniert, damit es unter dem Text liegt */
    top: 0;
    left: 0;
    width: 100%; /* Vollständige Breite des Containers */
    height: 100%; /* Vollständige Höhe des Containers */
    z-index: 0; /* Hintergrundbild hinter den Inhalt legen */
    overflow: hidden; /* Verhindert, dass das Bild über den Container hinausgeht */
}

.hintergrundbildwhatisgreenhospital img {
    width: 100%; /* Passt die Breite des Bildes an den Container an */
    height: 100%; /* Passt die Höhe des Bildes an den Container an */
    object-fit: cover; /* Beschneidet das Bild, um es proportional an den Container anzupassen */
    opacity: 0.1; /* Setzt die Transparenz des Bildes */
}

.whatisgreenhospital {
    position: relative; /* Text liegt über dem Hintergrundbild */
    z-index: 1;
}

.whatisgreenhospital p,
.whatisgreenhospital h3,
.whatisgreenhospital hr {
    position: relative;
    z-index: 2;
    text-align: justify;
}

/* Schaubild Einstellungen */
.schaubild {
    width: 85%;
    padding: 50px 0;
    margin: 0 auto;
    text-align: center;
}

.schaubild img {
    display: inline-block;
}

/* Einschübe: leichter Farbverlauf und etwas mehr Luft, damit sie sich
   dezent vom Fließtext abheben. */
.einschub {
    position: relative;
    padding: 60px var(--rand);
    background: linear-gradient(135deg, #5f725f 0%, #667A66 50%, #74887a 100%);
    text-align: center;
    color: #ffffff;
}

.einschub p {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
}

.einschub .buttonlight {
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Überschrift im Einschub (z. B. „Quick Check“) */
.einschub-titel {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

/* Mehrere Buttons in einem Einschub: nebeneinander, auf dem Handy untereinander */
.einschub-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Missionen Container */
.missionen-container {
    padding: 50px 0;
    background-color: #E7F1E5;
}

.missionen-content p,
.missionen-content h3,
.missionen-content hr {
    text-align: justify;
}

/* Anleitung Container */
.anleitung-container {
    margin: 50px 0;
}

.anleitung {
    width: 90%;
    padding: 50px 0;
    margin: 0 auto;
    text-align: center;
}

.anleitung img {
    display: inline-block;
}

/* Cookie Popup */
#cookie-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px 50px;
    background-color: #667A66;
    color: #ffffff;
    z-index: 9999;
}

#cookie-popup p {
    margin: 0;
    padding-bottom: 15px;
}

#cookie-popup p a {
    padding: 0;
    font-size: 16px;
}

#cookie-popup p a:hover {
    color: #fcd28d;
    cursor: pointer;
}

#cookies {
  scroll-margin-top: 80px; /* Höhe des Headers */
}

/* ===== Tablet (bis 1023px) ===== */
@media (max-width: 1023px) {
    .firstrow {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }

    .inhaltsverzeichnis {
        flex: 1 1 100%;
        margin: 0;
    }

    /* Logos teilen sich die Zeile: der Link füllt den Logo-Block, das Bild
       den Link (die Logo-Dateien haben selbst viel Weißraum) */
    .staatsminsteriumlogo, .zfklogo {
        display: flex;
        flex: 1 1 0;
        margin: 0;
    }

    .staatsminsteriumlogo a, .zfklogo a {
        width: 100%;
        padding: 0;
    }

    .schaubild {
        width: 100%;
    }

    .headline {
        font-size: 28px;
    }

    .unterschrift {
        font-size: 22px;
    }

    #cookie-popup {
        padding: 30px;
    }
}

/* ===== Handy (bis 599px) ===== */
@media (max-width: 599px) {
    .einschub-titel {
        font-size: 22px;
    }

    .einschub p {
        font-size: 16px;
    }

    .headline {
        font-size: 20px;
        line-height: 26px;
        margin: 0 0 4px;
    }

    .unterschrift {
        font-size: 15px;
        line-height: 20px;
        margin: 0;
    }

    .nachhaltigkeitueberschrift {
        font-size: 24px;
    }

    .startseite_ueberschriften {
        font-size: 20px;
    }

    .inhaltsverzeichnis {
        padding: 20px 24px;
        border-radius: 24px;
    }


    /* Logos untereinander und größer */
    .staatsminsteriumlogo, .zfklogo {
        flex: 1 1 100%;
        justify-content: center;
    }

    .staatsminsteriumlogo a, .zfklogo a {
        width: min(100%, 320px);
    }

    .ersterabsatz, .whatisgreenhospital p, .missionen-content p {
        text-align: left;
    }

    .schaubild, .anleitung {
        width: 100%;
        padding: 30px 0;
    }

    .einschub-buttons {
        flex-direction: column;
        align-items: center;
    }

    #cookie-popup {
        padding: 20px;
    }
}
