/* CARD --------------------------------------------------------------- */

.material-card {
    background: #3B3B3B;
    border: 1px solid rgba(255, 179, 0, 0.25);
    border-radius: 14px;
    margin: 25px 0;
    overflow: hidden;
    color: #FFFFFF;
    transition: 0.3s ease;
}

.material-card:hover {
    border-color: rgba(255, 179, 0, 0.55);
    box-shadow: 0 0 25px rgba(255, 179, 0, 0.18);
    transform: translateY(-4px);
}

/* HEADER ------------------------------------------------------------- */

.material-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 22px 28px 10px;
}

/* LEFT SIDE: TITLE + META ------------------------------------------- */

.material-header-left {
    display: flex;
    flex-direction: column;
}

.material-title {
    font-size: 1.6em;
    font-weight: 800;
    color: #FFB300;
    margin: 0;
}

/* META-INFOS */
.material-editinfo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75em;
    color: #AEAEAE;
    margin-top: 4px;
}

.material-editinfo .edit-date {
    color: #FFFFFF;
    font-weight: 600;
}

.material-editinfo .edit-icon {
    font-size: 1em;
    color: #FFB300;
}

.material-editinfo .edit-menu {
    display: inline-flex;
    align-items: center;
}

/* RIGHT SIDE: CATEGORY BADGES -------------------------------------- */

.material-badge {
    background: #FFB300;
    color: #3B3B3B;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.75em;
    font-weight: 700;
    white-space: nowrap;
}


.material-category-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}



/* BODY --------------------------------------------------------------- */

.material-body {
    display: flex;
    width: 100%;
    padding: 20px 28px;
}

/* LEFT SIDE */
.material-left {
    width: 50%;
    padding-right: 25px;
    border-right: 1px solid rgba(255, 179, 0, 0.25);
}

.material-field {
    margin-bottom: 15px;
}

.material-field-title {
    font-weight: 700;
    font-size: 0.9em;
    color: #FFB300;
}

.material-field-content {
    font-size: 0.95em;
    color: #FFFFFF;
 word-wrap: break-word;
    overflow-wrap: anywhere;

}

/* LINKFARBEN --------------------------------------------------------- */

.material-card a,
.material-card a:visited {
    color: #4FC3F7 !important;  /* Linkfarbe */
    text-decoration: none;
    font-weight: 600;
}

.material-card a:hover {
    color: #81D4FA !important;  /* Hover-Linkfarbe */
    text-decoration: underline;
}

/* RIGHT SIDE: IMAGE -------------------------------------------------- */

.material-right {
    width: 50%;
    padding-left: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.material-image-box {
    width: 100%;
    height: 260px;
    border: 3px solid #FFB300;   /* durchgezogener gelber Rahmen */
    border-radius: 12px;
    background: #FFB300;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 179, 0, 0.5);
    overflow: hidden;
}


.material-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RESPONSIVE --------------------------------------------------------- */

@media (max-width: 900px) {
    .material-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .material-header-right {
        margin-top: 10px;
    }

    .material-category-badges {
        justify-content: flex-start;
    }

    .material-body {
        flex-direction: column;
    }

    .material-left,
    .material-right {
        width: 100%;
        padding: 0;
        border: none;
    }

    .material-right {
        margin-top: 20px;
    }
}

/* FILTER-BADGES ------------------------------------------------------ */

.ref-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-badge {
    background: #FFB300;
    color: #3B3B3B;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 0.8em;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.filter-badge:hover {
    filter: brightness(1.15);
}

.filter-badge.active {
    background: #3B3B3B;
    color: #FFB300;
    border: 1px solid #FFB300;
}


.title-row {
    display: flex;
    align-items: center;
    gap: 10px;            /* Abstand zwischen Titel und Menü */
}

.title-row .edit-menu {
    display: flex;
    align-items: center;
}
