


*, *::before, *::after {
    box-sizing: border-box;
}

.content_page {
    background-color: #fff;
    width: 100%;
}


.content_main_frame {
    display: flex;
    flex-direction: column;
    gap: 2em;      
    padding: 0; 
}


.content_header_box {
    padding: 1.5em;
    margin: 1em 0 1em 0;     
    text-align: left;
    border: 0.1em solid black;
    border-radius: 1em;
    background-color: #eee;
    line-height: 1.6;
}

.content_title h1 {
    font-size: 2.2em;
    color: darkblue;
    padding: 0.5em 1em;
    margin: 0;
}

.content_chapter_frame {
    background-color: #fff;
    padding: 1em;
    margin: 0.5em 0 0.5em 0;     
    border-radius: 25px;
    border: darkblue solid 0.1em;

}

/* ... der Rest Ihrer content.css kann unverändert bleiben ... */
.content_chapter_title {
    width: 100%;
    font-size: 1.5em;
    color: darkblue;
    padding: 0.5em 0 0.5em 0;
    margin: 0 0 1.5em 0;
    border-bottom: 2px solid lavender;
}

.content_text_frame {
    padding: 10px;
    margin: 0 0 1.5em 0;
    text-align: justify;
    line-height: 1.7;
}






/* ======== 5. STYLING FÜR VERKNÜPFUNGEN IM GRID ======== */
.linked-group-container {
    padding: 1.5em;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
}
.linked-group-neutral {
    background-color: #ffffff;
    border: 2px solid darkblue;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.linked-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding-top: 1.5em;
    border-top: 2px dashed rgba(0,0,0,0.2);
}


/* --- NEUES, DETAILLIERTES STYLING FÜR DIE KARTEN --- */


.linked-card {
    flex-grow: 0;                   
    flex-shrink: 1;     
      
    width:100%;       
    max-width: 14em;
    height: 14em;
    padding: 0.5em; 
    border-radius: 2em;
    box-sizing: border-box; 
    transition: transform 0.2s;
    
    /* Für den Fall "ohne Bild": Text zentrieren */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.linked-card.link { cursor: pointer; }
.linked-card.link:hover { transform: scale(1.03); }


/* 5b. Der innere Container für Bild und Titel (entspricht .searchlist_box_image_container) */
.linked-card-visuals {
    position: relative; /* Wichtig für die Positionierung des Titels! */
    width: 100%;
    height: 100%;
    border-radius: 1.5em; /* Etwas kleinerer Radius als der äußere Rahmen */
    overflow: hidden;
    border: #444 solid 0.1em;
    background-color: rgba(255, 255, 255, 0.7);
}


/* 5c. Das Bild (Thumbnail) (entspricht .searchlist_box_thumbnail) */
.linked-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Füllt den Container, ohne sich zu verzerren */
    display: block;
}


/* 5d. Der Titel (entspricht .searchlist_box_image_name) */
.linked-title {
    color: #000066;
    font-size: 0.9em;
    font-weight: bold;
    line-height: 1.2;
}

/* Spezialregeln für den Titel, wenn er über einem Bild liegt */
.linked-card-visuals .linked-title {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.75);
    padding: 0.5em;
    margin: 0; /* Wichtig, um Standard-h3-Margin zu überschreiben */
    border-top: #444 solid 0.1em;
    transition: background-color 0.2s, color 0.2s;
}

.linked-card-visuals:hover .linked-title {
    background-color: black;
    color: white;
}


/* 5e. Farb- und Rahmenklassen für die KARTEN (angepasst von .searchlist_box_...) */
.linked-card-green { border: 0.2em solid darkgreen; background-color: rgba(198, 255, 109, .5); }
.linked-card-red   { border: 0.2em solid darkred;   background-color: rgba(255, 161, 168, .5); }
.linked-card-blue  { border: 0.2em solid darkblue;  background-color: rgba(95, 255, 255, .5); }
.linked-card-grey  { border: 0.2em solid dimgrey;   background-color: rgba(200, 190, 180, .5); }
/* Fügen Sie hier bei Bedarf weitere Farben hinzu (yellow, purple etc.) */

/* Hover-Effekte (angepasst von .searchlist_box_image_...) */
.linked-thumb-green-hover:hover { outline: darkgreen 0.5em solid; outline-offset: -0.5em; }
.linked-thumb-red-hover:hover   { outline: darkred 0.5em solid;   outline-offset: -0.5em; }
.linked-thumb-blue-hover:hover  { outline: darkblue 0.5em solid;  outline-offset: -0.5em; }
.linked-thumb-grey-hover:hover  { outline: dimgrey 0.5em solid;   outline-offset: -0.5em; }