/* ========================================= */
/*  Banner                                   */
/* ========================================= */

.banner {
    height: 300px;
    background: url('../images/banner.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 10px;
    text-align: center;
}

.banner h1 {
    color: var(--white);
    font-size: 32px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.25);
    padding: 8px 16px;
    border-radius: 6px;
}

/* ========================================= */
/*  Container                                */
/* ========================================= */

.main-container {
    max-width: 100%; 
    margin: 0 auto;
    padding: 5px;
}

.flex-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap; /* WICHTIG: Erlaubt Blöcken, die ganze Zeile zu nutzen */
}

/* ========================================= */
/*  Blöcke                                   */
/* ========================================= */
.block {
    background-color: #ffffff; /* Weißer Hintergrund */
    border: 1px solid rgba(11, 79, 46, 0.219); /* Dünner grüner Rahmen */
    border-radius: 12px;       /* Abgerundete Ecken */
    padding: 20px;
    margin: 5px 1px;               /* 5px Abstand nach allen Seiten */
    box-sizing: border-box;
}

/* Dieser Block erzwingt nun die volle Breite */
.block-full {
    flex: 1 0 100%; 
    width: 100%;
    box-sizing: border-box;
}

.block-main23 { flex: 2; }
.block-sidebar23 { flex: 1; }
.block-main12 { flex: 1; }
.block-sidebar12 { flex: 1; }
.block-main13 { 
    flex: 1; 
    min-width: 0;
}
.block-sidebar13 {
    flex: 2; 
    min-width: 0;
    }

.termine-liste {
    min-width: 0;
}
.termine-liste a {
    overflow-wrap: anywhere;
}
.termin-monat strong {
    display: inline-block;
    white-space: normal;
}

/* Flexcontainer */

.flex-container {
    display: flex;
    align-items: center; /* Zentriert den Button vertikal zum Text */
    gap: 20px;           /* Erzeugt einen Abstand zwischen Text und Button */
}

.flex-container p {
    margin: 0;           /* Entfernt Standardabstände des Textes */
    flex: 1;             /* Der Text nimmt den restlichen verfügbaren Platz ein */
}

.block-colored {
    background: var(--light2, #F7FAF8);; /* Beispiel: sehr helles Grün/Grau */
    border-color: rgba(11,79,46,0.25); /* optional: Rahmen anpassen */
}

/* Block 2/3 ohne Rahmen

/* Container-Setup */
.block-23randlos {
    display: flex;
    flex-wrap: wrap; /* Erlaubt das Umbrechen auf mobilen Geräten */
    gap: 30px;       /* Abstand zwischen Text und Karte */
}

.left23 {
    flex: 2;     /* 2/3 Platzanteil */
}

.right13 {
    flex: 1; /* Nimmt 1/3 des Platzes ein */
    display: flex;
    justify-content: center; /* Zentriert die Karte mobil */
}


/* ========================================= */
/*  Bildumlaufender Text                     */
/* ========================================= */

.float-img-re {
    float: right;
    margin: 15px 10px 10px 10px;
    max-width: 300px;
    width: 100%;          /* ← NEU: Bild darf schrumpfen */
    height: auto;
    border-radius: 8px;
}
.float-img-re400 {
    float: right;
    margin: 15px 10px 10px 10px;
    max-width: 400px;
    width: 100%;          /* ← NEU: Bild darf schrumpfen */
    height: auto;
    border-radius: 8px;
}
.float-img-li {
    float: left;
    margin: 5px 20px 10px 2px;
    max-width: 300px;
    width: 100%;          /* ← NEU: Bild darf schrumpfen */
    height: auto;
    border-radius: 8px;
}
.float-img-li400 {
    float: left;
    margin: 5px 20px 10px 2px;
    max-width: 400px;
    width: 100%;          /* ← NEU: Bild darf schrumpfen */
    height: auto;
    border-radius: 8px;
}
.float-img-li450 {
    float: left;
    margin: 5px 20px 10px 2px;
    max-width: 400px;
    width: 100%;          /* ← NEU: Bild darf schrumpfen */
    height: auto;
    border-radius: 8px;
}

/* ========================================= */
/*  Button Text                              */
/* ========================================= */

.mitglied-button {
    display: inline-block;
    background: var(--green);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
}

.mitglied-button:hover {
    background: var(--orange);
    color: darkgreen;
}

/* ========================================= */
/*  Responsiv (Umbruch bei 980px)            */
/* ========================================= */

@media (max-width: 980px) {
    .flex-wrapper {
        flex-direction: column;
    }
   
    .block-main, .block-sidebar {
        width: 100%;
        margin: 5px 0;
    }

    .flex-container {
        flex-direction: column; /* Stapelt die Elemente untereinander */
    }

    .flex-container p {
        margin-bottom: 5px;    /* Kleiner Abstand zum Button unten */
    }
  
    .right13 {
        flex: 1 0 100%; /* Nimmt die volle Breite ein */
        display: flex;      /* Nutzt Flexbox zum Zentrieren */
        justify-content: center;
    }
}

@media (max-width: 625px) {
    .float-img-re {
        float: none;          /* ← kein Umfließen */
        display: block;
        margin: 0 auto 12px;  /* ← zentriert über dem Text */
        max-width: 300px;     /* ← nie größer als Original */
        width: 100%;          /* ← darf kleiner werden */
    }
        .float-img-re400 {
        float: none;          /* ← kein Umfließen */
        display: block;
        margin: 0 auto 12px;  /* ← zentriert über dem Text */
        max-width: 400px;     /* ← nie größer als Original */
        width: 100%;          /* ← darf kleiner werden */
    }
        .float-img-li {
        float: none;          /* ← kein Umfließen */
        display: block;
        margin: 0 auto 12px;  /* ← zentriert über dem Text */
        max-width: 300px;     /* ← nie größer als Original */
        width: 100%;          /* ← darf kleiner werden */
    }
        .float-img-li400 {
        float: none;          /* ← kein Umfließen */
        display: block;
        margin: 0 auto 12px;  /* ← zentriert über dem Text */
        max-width: 400px;     /* ← nie größer als Original */
        width: 100%;          /* ← darf kleiner werden */
    }
}
