/* meditricks-kapitel.css */

/* Category Header Anchor */
.mtf-faecher-scroller-category-header-anchor {
    scroll-margin-top: var(--sticky-scroll-offset, 150px); /* Dynamic offset set by JS */
}

/* Category Header */
.mtf-faecher-scroller-category-header {
    /* margin-bottom: 2rem; */
    background: white;
    border-radius: 25px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin: 0;
    padding: 4px 10px;
    padding-bottom: 2rem;
}

.mtf-faecher-scroller-header-flex {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mtf-faecher-scroller-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mtf-faecher-scroller-header-left.has-description {
    flex: 0 0 30%;
}

.mtf-faecher-scroller-header-icon {
    width: 100px;
    height: auto;
}
.mtf-faecher-scroller-header-info {
    display: flex;
    flex-direction: column;
}
.mtf-faecher-fach-icon-container-mtlogo .mtf-faecher-scroller-header-icon {
    width: 64px;
}

.mtf-faecher-fach-card-row {
    display: flex;
    justify-content: space-between;

    max-width: 350px;
    font-size: 14px;
    flex-wrap: wrap;
}
.mtsr-info-row-container,
.mtsr-info-row-icon-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mtsr-info-row-container {
    color: hsl(202.3deg 61.75% 35.88%);
}
/* Thumbs Rating Wrapper */
.mtf-thumbs-rating-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    overflow: visible;
}


/* Rating number - fixed width for alignment */
.mtf-thumbs-rating-wrapper .ekp_feedback_count {
    font-size: 12px;
    min-width: 28px;
    text-align: left;
    color: hsl(120deg 100% 25.1% / 50%);
    position: relative;
    user-select: none;
}

/* Tooltip for rating number */
.mtf-thumbs-rating-wrapper .ekp_feedback_count[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #555;
    font-size: 10px;
    font-weight: 400;
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 0 2px 10px hsl(0 0% 0% / 12%), 0 1px 3px hsl(0 0% 0% / 8%);
    /* white-space: nowrap; */
     white-space: pre-line;  /* Changed from nowrap to pre-line */
    max-width: 320px;  
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease 0.8s, visibility 0.2s ease 0.8s;
    z-index: 1000;
    pointer-events: none;

 
}
/* .mtf-thumbs-rating-wrapper .ekp_feedback_count[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #555;
    font-size: 10px;
    font-weight: 400;
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 0 2px 10px hsl(0 0% 0% / 12%), 0 1px 3px hsl(0 0% 0% / 8%);
    white-space: pre-line;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease 0.8s, visibility 0.2s ease 0.8s;
    z-index: 1000;
    pointer-events: none;
    overflow: visible;
} */

/* Tooltip arrow */
.mtf-thumbs-rating-wrapper .ekp_feedback_count[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease 0.8s, visibility 0.2s ease 0.8s;
    z-index: 1001;
    pointer-events: none;
}

/* Show tooltip on hover after delay */
.mtf-thumbs-rating-wrapper .ekp_feedback_count[data-tooltip]:hover::after,
.mtf-thumbs-rating-wrapper .ekp_feedback_count[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Main Thumbs Container */
.mtf-thumbs-rating-container {
    display: inline-flex;
    align-items: center;
    position: relative;
}

/* Static thumb display - clean and minimal */
.mtf-thumb-display {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 2px;
}

.mtf-thumb-display .thumb {
    font-size: 13px;
    line-height: 1;
}

/* Green for thumbs up */
.mtf-thumb-display .thumbs-up {
    color: hsl(120deg 100% 25.1% / 50%);
}

/* Red for thumbs down */
.mtf-thumb-display .thumbs-down {
    color: hsl(0deg 58% 45% / 70%);
}

/* Mirror thumbs-up icon */
.mtf-thumb-display .thumbs-up i {
    transform: rotateY(180deg);
}

/* Dropdown - hidden by default */
.mtf-thumb-hover-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 4px;
    z-index: 100;
}

/* Show dropdown only on thumb hover */
.mtf-thumbs-rating-container:hover .mtf-thumb-hover-dropdown {
    display: block;
}

/* Dropdown content box - compact */
.mtf-thumb-hover-dropdown-content {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px hsl(0 0% 0% / 12%), 0 1px 4px hsl(0 0% 0% / 8%);
    white-space: nowrap;
}

/* Arrow pointing up */
.mtf-thumb-hover-dropdown-content::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: white;
}

/* Feedback link buttons in dropdown - compact */
.mtf-feedback-link-a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1;
    transition: all 0.15s ease;
}

/* Thumbs Up button */
.mtf-feedback-link-a.feedback-up {
    color: hsl(120deg 100% 25.1% / 60%);
}

.mtf-feedback-link-a.feedback-up:hover {
    background-color: hsl(120deg 60% 95%);
    color: hsl(120deg 60% 30%);
}

/* Mirror thumbs-up icon */
.mtf-feedback-link-a.feedback-up i {
    transform: rotateY(180deg);
}

/* Thumbs Down button - RED */
.mtf-feedback-link-a.feedback-down {
    color: hsl(0deg 58% 45% / 80%);
}

.mtf-feedback-link-a.feedback-down:hover {
    background-color: hsl(0deg 90% 95%);
    color: hsl(0deg 60% 45%);
}

/* By default show light icons, hide solid/clicked icons */
.mtf-feedback-link-a i.solid.clicked {
    display: none;
}

/* When the container is clicked-up, show clicked icon for up, hide light */
.mtf-thumbs-rating-container.clicked-up .mtf-feedback-link-a.feedback-up i.solid.clicked {
    display: inline-block;
}
.mtf-thumbs-rating-container.clicked-up .mtf-feedback-link-a.feedback-up i.light {
    display: none;
}

/* When the container is clicked-down, show clicked icon for down, hide light */
.mtf-thumbs-rating-container.clicked-down .mtf-feedback-link-a.feedback-down i.solid.clicked {
    display: inline-block;
}
.mtf-thumbs-rating-container.clicked-down .mtf-feedback-link-a.feedback-down i.light {
    display: none;
}

/* Active state styling - show which is selected */
.mtf-thumbs-rating-container.clicked-up .mtf-feedback-link-a.feedback-up {
    background-color: hsl(120deg 60% 92%);
}

.mtf-thumbs-rating-container.clicked-down .mtf-feedback-link-a.feedback-down {
    background-color: hsl(0deg 90% 94%);
}
.mtf-faecher-fach-labels-container {
    display: flex;
    gap: 4px;
    align-items: center;
}
.mtf-faecher-fach-label {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.2;
    min-width: 48px;
    display: inline-block;
    text-align: center;
}
.mtf-faecher-fach-label-coredeep-core {
    background: rgba(64, 175, 197, 0.6);
    color: rgb(19 87 104 / 85%);
}
.mtf-faecher-fach-label-coredeep-deep {
    background: rgba(24, 76, 172, 0.39);
    color: rgb(26 64 147 / 73%);
}
.mtf-faecher-fach-label-lernplan-m1 {
    color: rgb(131 131 24);
    background: rgb(193 197 64 / 50%);
}
.mtf-faecher-fach-label-lernplan-m2 {
    color: rgb(131 131 24);
    background: rgb(193 197 64 / 50%);
}

.mtf-faecher-fach-label-lernplan-m3 {
    color: rgb(131 131 24);
    background: rgb(193 197 64 / 50%);
}

.mtf-faecher-scroller-category-title {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 300;
}

.mtf-faecher-scroller-progress-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    /* max-width: 50%; */
    width: max-content;
    margin-left: 10%;
}

.mtf-faecher-scroller-progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
}

.mtf-faecher-scroller-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    width: 0%;
    transition: width 0.5s ease;
}

/* Wrapper: 1/3 Accordion/Sidebar, 2/3 Details */
.mtf-faecher-scroller-wrapper {
    display: flex;
    gap: 2rem;
    background-color: #fff;
    margin-bottom: 140px;
    height: calc(100vh - var(--sticky-scroll-offset, 150px) - 150px);
    min-height: 400px;
    max-height: 800px;
    /* background: rgb(217, 217, 217); */
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
}

/* Accordion (left) */

/* ==== Modern left menu / sidebar (scroller accordion) ==== */

/* subtle “shine” */
.mtf-faecher-scroller-accordion::before {
    content: "";
    position: absolute;
    inset: -40% -30% auto -30%;
    height: 70%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
    transform: rotate(-8deg);
    pointer-events: none;
}
/* 
.mtf-faecher-scroller-accordion::-webkit-scrollbar {
    width: 6px;
}

.mtf-faecher-scroller-accordion::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.18);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}
*/

/* new */

/* new end */

/* header behaves like a modern menu link */
.mtf-faecher-scroller-accordion-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.mtf-faecher-scroller-accordion-header:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

/* active item */

/* active indicator bar */
/* .mtf-faecher-scroller-accordion-item.active .mtf-faecher-scroller-accordion-header::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 1), rgba(2, 132, 199, 1));
} */

.mtf-faecher-scroller-accordion-content {
    display: none;
    padding: 2px 12px 8px;
}

.mtf-faecher-scroller-accordion-item.active .mtf-faecher-scroller-accordion-content {
    display: block;
}

/* list reset */
.mtf-faecher-scroller-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

/* submenu item */
.mtf-faecher-scroller-sidebar-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    color: rgba(15, 23, 42, 0.62);
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.mtf-faecher-scroller-sidebar-item:hover {
    background: rgba(2, 132, 199, 0.08);
    transform: translateX(2px);
    color: #0f172a;
}

/* Details (right) */
.mtf-faecher-scroller-details {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Sort Buttons */
.mtf-faecher-scroller-sort-buttons {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
    /* margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0; */
}

.mtf-faecher-scroller-sort-label {
    font-size: 0.75rem;
    color: #aaa;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    line-height: 1em;
    position: relative;
    top: 1px;
}

.mtf-faecher-scroller-sort-btn {
    padding: 5px 10px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #999;
    transition: all 0.15s ease;
    line-height: 1;
    font-weight: 500;
}

.mtf-faecher-scroller-sort-btn:hover {
    background: rgba(72, 127, 161, 0.08);
    color: #487fa1;
}

.mtf-faecher-scroller-sort-btn.active {
    background: rgba(72, 127, 161, 0.12);
    color: #487fa1;
    /* box-shadow: inset 0 -2px 0 #487fa1; */
}

.mtf-faecher-scroller-details-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}
.mtf-faecher-scroller-details-content.active {
    display: flex;
    flex-direction: column;
}

.mtf-faecher-scroller-details-content::-webkit-scrollbar {
    background-color: transparent;
    width: 10px;
}

.mtf-faecher-scroller-details-content::-webkit-scrollbar-thumb {
    background-color: #c8c8c8;
}
.mtf-faecher-scroller-details-content::-webkit-scrollbar-thumb {
    background-color: #e4e4e4;
}
.mtf-faecher-scroller-details-content::-webkit-scrollbar-corner {
    background: transparent;
}
.mtf-faecher-scroller-details-content::-webkit-resizer {
    background: transparent;
}

.mtf-faecher-scroller-details-content::-webkit-scrollbar {
    width: 10px;
}
.mtf-faecher-scroller-details-content::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.18);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.mtf-faecher-scroller-details-content::-webkit-scrollbar-track {
    background: transparent;
}
.mtf-faecher-scroller-details-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.mtf-faecher-scroller-details-top-row-left {
    display: flex;
    gap: 6px;
    /* color: #323c54; */
    color: #797e88;
    font-size: 14px;
    align-items: center;
}
.mtf-faecher-scroller-details-top-row-left-icon {
    font-size: 10px;
}

.mtf-faecher-scroller-main-description {
    flex: 1;
    padding: 0.5rem 1rem;
    color: #323c54;
    line-height: 1.5;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.mtf-faecher-scroller-main-description p {
    margin: 0;
}

.mtf-faecher-scroller-sub-description {
    margin-bottom: 2rem;
    color: #555;
    color: #323c54;
    line-height: 1.6;
}

/* Post List */
.mtf-faecher-scroller-post-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mtf-faecher-scroller-post-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 8px;
}

.mtf-faecher-scroller-post-item.hovered {
    background: rgba(2, 132, 199, 0.1);
    /* box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.16); */
    border-radius: 12px;
}

.mtf-faecher-scroller-post-thumb img {
    width: 180px;
    height: auto;
    width: 140px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-shadow: 1px 2px 8px rgb(0 0 0 / 25%);
    box-shadow: 1px 2px 10px rgb(0 0 0 / 12%);
}

.mtf-faecher-scroller-post-info {
    flex: 1;
}

.mtf-faecher-scroller-post-title {
    /* margin: 0 0 0.5rem 0; */
    margin: 0;
    font-size: 1.2rem;
}

.mtf-faecher-scroller-post-title .mtf-ratedot {
    display: inline-block;
    width: 14px;
    line-height: 1em;
    position: relative;
    top: -1px;
}

.mtf-faecher-scroller-post-title a {
    color: #333;
    text-decoration: none;
}

.mtf-faecher-fach-stats-container {
    display: grid;
    grid-template-columns: 76px max-content; /* facts | duration */
    column-gap: 12px;
    align-items: center;
}

.mtf-faecher-scroller-post-stats {
    font-size: 0.9rem;
    font-size: 14px;
    color: #a0a0a0;
    display: flex;
    gap: 16px;
    color: hsl(0 0% 70% / 1);

    display: contents;
}
.mtf-faecher-scroller-post-stats > span:first-child {
    grid-column: 1;
    width: 76px;
}
.mtf-faecher-scroller-post-stats-duration {
    grid-column: 2;
    justify-self: start;
    white-space: nowrap;
}
.mtf-faecher-scroller-post-stats-icon {
    font-size: 11px;
    color: hsl(0 0% 90% / 1);
}
.mtf-faecher-scroller-post-actions {
    display: flex;
    gap: 0.5rem;
}

.mtf-faecher-scroller-action-icon {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
    border: 1px solid #ddd;
    cursor: pointer;
}

/* whole menu */
/* =========================================================
   Left Menu UI v2 (clean + modern, no double-background)
   - one glass panel
   - clear section headers + subtle separators
   - nicer active + hover
   - inset scrollbar (thumb starts/ends before corners)
   ========================================================= */
/* =========================================================
   Sleek Modern Left Menu (single panel + active section panel)
   - background for whole accordion (outer)
   - background for ACTIVE accordion item (inner highlight)
   - inset scrollbar (thumb doesn't touch rounded corners)
   ========================================================= */

:root {
    --lm-radius: 22px;
    --lm-inset: 12px;
    --lm-pad: 14px;

    /* whole panel bg */
    --lm-bg1: rgba(248, 252, 255, 0.94);
    --lm-bg2: rgba(231, 241, 252, 0.82);

    --lm-border: rgba(15, 23, 42, 0.1);
    --lm-shadow: 0 4px 8px rgba(15, 23, 42, 0.05);

    --lm-text: #323c54; /* #0f172a; */
    --lm-muted: rgba(15, 23, 42, 0.62);

    --lm-hover: rgba(2, 132, 199, 0.1);

    /* active section bg */
    --lm-active-bg: rgba(37, 99, 235, 0.09);
    --lm-active-border: rgba(37, 99, 235, 0.16);

    /* accents */
    --lm-accent1: rgba(37, 99, 235, 1);
    --lm-accent2: rgba(2, 132, 199, 1);

    /* scrollbar */
    --lm-scroll-w: 8px;
    --lm-thumb: rgba(15, 23, 42, 0.18);
}

/* OUTER panel (whole accordion background) */
.mtf-faecher-scroller-accordion {
    flex: 0 0 30%;
    border-right: none;

    position: relative;
    border-radius: var(--lm-radius);
    background: linear-gradient(180deg, var(--lm-bg1), var(--lm-bg2));
    background: linear-gradient(180deg, rgb(248 252 255 / 58%), rgb(231 241 252 / 22%));
    border: 1px solid rgb(15 23 42 / 5%);
    box-shadow: var(--lm-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    isolation: isolate;
}

/* Sleek shine + inner edge (very subtle) */
.mtf-faecher-scroller-accordion::before {
    content: "";
    position: absolute;
    inset: -60% -40% auto -40%;
    height: 90%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
    transform: rotate(-10deg);
    pointer-events: none;
    z-index: 0;
}
.mtf-faecher-scroller-accordion::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    z-index: 0;
}

/* INNER scroller (inset = thumb start/end before corners) */
.mtf-faecher-scroll {
    position: absolute;
    inset: var(--lm-inset) 0 var(--lm-inset) 0;
    overflow-y: auto;
    overflow-x: hidden;

    padding: var(--lm-pad);
    padding-right: calc(var(--lm-pad) + 10px);

    padding-top: 0px;

    z-index: 1;
    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color: var(--lm-thumb) transparent;
}

/* WebKit scrollbar */
.mtf-faecher-scroll::-webkit-scrollbar {
    width: 10px;
}
.mtf-faecher-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.mtf-faecher-scroll::-webkit-scrollbar-thumb {
    background: var(--lm-thumb);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.mtf-faecher-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.26);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* =========================================================
   Accordion items
   ========================================================= */
.mtf-faecher-scroller-accordion-item {
    margin-bottom: 2px;
    scroll-margin-top: var(--sticky-scroll-offset, 150px);
}

/* ACTIVE item gets its own background (sleek section panel) */
.mtf-faecher-scroller-accordion-item.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
    /* border: 1px solid rgba(15, 23, 42, 0.02); */
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.05);
    box-shadow: 0 4px 18px rgb(15 23 42 / 0.04);
    margin: 8px 0px;
    border: 1px solid rgb(15 23 42 / 3%);
    border: 2px solid rgb(188 233 239);
}

/* Header row */
.mtf-faecher-scroller-accordion-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 11px 12px;
    border-radius: 14px;

    color: var(--lm-text);
    /* font-weight: 800; */
    letter-spacing: 0.1px;
    line-height: 1.2;

    cursor: pointer;
    user-select: none;

    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.mtf-faecher-scroller-acc-count {
    font-size: 14px;
    color: rgb(50 60 84 / 59%);
    font-weight: 400;
    font-weight: 600;
    line-height: 1em;
    min-width: fit-content;
}
/* Hover */
.mtf-faecher-scroller-accordion-item:not(.active) .mtf-faecher-scroller-accordion-header:hover {
    background: var(--lm-hover);
    /* transform: translateX(2px); */
}

/* Focus */
.mtf-faecher-scroller-accordion-header:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

/* Active header background (clear but minimal) */
.mtf-faecher-scroller-accordion-item.active .mtf-faecher-scroller-accordion-header {
    background: var(--lm-active-bg);
    background: linear-gradient(346deg, rgba(36, 182, 228, 0.44), rgba(74, 214, 201, 0.34));
    /* box-shadow: inset 0 0 0 1px var(--lm-active-border); */
}

/* Active indicator (very slim) */
/* .mtf-faecher-scroller-accordion-item.active .mtf-faecher-scroller-accordion-header::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--lm-accent1), var(--lm-accent2));
    opacity: 0.95;
} */

/* Content */
.mtf-faecher-scroller-accordion-content {
    display: none;
    padding: 10px 4px 2px;
}
.mtf-faecher-scroller-accordion-item.active .mtf-faecher-scroller-accordion-content {
    display: block;
}

/* =========================================================
   Submenu list + items (sleek)
   ========================================================= */
.mtf-faecher-scroller-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

/* Submenu item */
.mtf-faecher-scroller-sidebar-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2px;

    padding: 0;
    border-radius: 12px;

    background: transparent;
    color: var(--lm-muted);
    font-weight: 500;
    line-height: 1.25;
    font-size: 14px;

    cursor: pointer;

    transition: background-color 0.15s ease, transform 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mtf-faecher-scroller-sidebar-item-link {
    display: block;
    width: 100%;
    padding: 6px 10px;
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
    transition: inherit;
}

.mtf-faecher-scroller-sidebar-item:hover {
    background: rgba(2, 132, 199, 0.08);
    transform: translateX(2px);
    color: var(--lm-text);
}

.mtf-faecher-scroller-sidebar-item:hover .mtf-faecher-scroller-sidebar-item-link {
    color: var(--lm-text);
}

/* Active submenu item */
.mtf-faecher-scroller-sidebar-item.active,
.mtf-faecher-scroller-sidebar-item[aria-current="page"],
.mtf-faecher-scroller-sidebar-item[aria-current="true"] {
    background: rgba(37, 99, 235, 0.1);
    color: var(--lm-text);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.mtf-faecher-scroller-sidebar-item.active .mtf-faecher-scroller-sidebar-item-link,
.mtf-faecher-scroller-sidebar-item[aria-current="page"] .mtf-faecher-scroller-sidebar-item-link,
.mtf-faecher-scroller-sidebar-item[aria-current="true"] .mtf-faecher-scroller-sidebar-item-link {
    color: var(--lm-text);
}

/* Better wrapping for long titles */
.mtf-faecher-scroller-sidebar-item,
.mtf-faecher-scroller-accordion-header {
    text-wrap: pretty;
    word-break: break-word;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .mtf-faecher-scroller-accordion-header,
    .mtf-faecher-scroller-sidebar-item {
        transition: none;
        transform: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mtf-faecher-scroller-header-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .mtf-faecher-scroller-header-left,
    .mtf-faecher-scroller-header-left.has-description {
        flex: none;
    }
    .mtf-faecher-scroller-main-description {
        flex: none;
    }
    .mtf-faecher-scroller-wrapper {
        flex-direction: column;
        height: auto;
        min-height: auto;
        max-height: none;
    }
    .mtf-faecher-scroller-accordion {
        flex: none;
        overflow-y: visible;
        border-bottom: 1px solid #eee;
        padding-bottom: 1rem;
        padding-right: 0;
        min-height: 300px;
    }
    .mtf-faecher-scroll {
        inset: 9px 4px 9px 0;
        padding-right: none;
    }
    .mtf-faecher-scroller-details {
        overflow-y: visible;
    }
    .mtf-faecher-scroller-sidebar-list {
        gap: 2px;
    }
    .mtf-faecher-scroller-accordion-item .mtf-faecher-scroller-accordion-header {
        padding: 6px 8px;
    }
    .mtf-faecher-scroller-accordion-content {
        padding-top: 4px;
    }
    .mtf-faecher-scroller-post-title {
        font-size: 1.1rem;
    }
}
@media (max-width: 480px) {
    .mtf-faecher-scroller-wrapper {
        margin-bottom: 76px;
    }
    .mtf-faecher-scroller-accordion-header {
        font-size: 0.9rem;
    }
    .mtf-faecher-scroller-post-title {
        font-size: 1rem;
    }
    .mtf-faecher-scroller-post-stats {
        font-size: 12px;
    }
    .mtf-faecher-scroller-post-thumb img {
        width: 100px;
    }
    .mtf-faecher-scroller-details-top-row-left-text {
        font-size: 12px;
    }
    .mtf-faecher-scroller-sidebar-list {
        gap: 1px;
    }
    .mtf-faecher-scroller-category-title {
        font-size: 2rem;
    }
    .mtf-faecher-fach-icon-container.mtf-faecher-fach-icon-container-mtlogo {
        position: relative;
        top: -2px;
    }
    .mtf-faecher-fach-icon-container-mtlogo .mtf-faecher-scroller-header-icon {
        width: 46px;
    }
    .mtf-faecher-scroller-sort-label {
        display: none;
    }
    .mtf-faecher-scroller-sort-btn {
        padding: 4px 6px;
    }
}
