.mtf-anchor-link-target {
    position: relative;
}

.mtf-faecher-scroller-acc-right-container {
    min-width: fit-content;
}

.mtf-anchor-link-icon {
    display: inline-block;
    margin-left: 6px;
    margin-right: 6px;
    opacity: 0;
    pointer-events: none;
    position: relative;
    transition: opacity 0.05s ease-in-out;

    font-size: 16px;
    position: relative;
    top: 2px;
    color: #747e97;
}

.mtf-anchor-links-enabled [data-anchor-id]:hover .mtf-anchor-link-icon {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.mtf-anchor-copy-toast {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 6px;
    background: #ffffff;
    color: #4b4b4b;
    font-size: 12px;
    font-weight: normal;
    font-family: inherit;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 8px;
    box-shadow:
        0 2px 10px hsl(0 0% 0% / 12%),
        0 1px 3px hsl(0 0% 0% / 8%);
    opacity: 0;
    transform: translate(-50%, -4px);
    transition:
        opacity 0.1s ease-in-out,
        transform 0.1s ease-in-out;
    white-space: nowrap;
    z-index: 5;
}

.mtf-anchor-copy-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
/* 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-scroller-header-flex .mtf-faecher-fach-icon-container {
    min-width: 100px;
}

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

    max-width: 100%;
    font-size: 14px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-item-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    color: #7a8799;
    font-size: 12px;
    line-height: 1;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-item-meta .mtsr-als-naechstes-row-meta-marked {
    display: inline-flex;
    align-items: center;
    background: #fcffcb;
    border-radius: 6px;
    padding: 2px 3px;
    padding-right: 5px;
    color: #dcac4e;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-item-meta .mtsr-als-naechstes-row-meta-marked-icon {
    display: inline-flex;
    align-items: center;
    margin: 0 2px;
    opacity: 0.7;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-notizen {
    display: inline-flex;
    align-items: center;
    color: #81a87a;

    gap: 4px;
    line-height: 1;
    background: rgb(147 190 133 / 19%);
    /* color: #094479; */
    border-radius: 999px;
    padding: 2px 7px;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mtf-faecher-fach-card-row a.mtf-fach-mtsr-repmode-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.mtf-faecher-fach-card-row a.mtf-fach-mtsr-repmode-link .mtsr-info-row-icon-container {
    border: 1px solid transparent;
    transition:
        box-shadow 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.mtf-faecher-fach-card-row a.mtf-fach-mtsr-repmode-link:hover .mtsr-info-row-icon-container.mtsr-colorful-heute {
    background: #b8e8ef;
    border-color: rgb(9 68 121 / 32%);
    box-shadow: 0 1px 4px rgb(9 68 121 / 16%);
}

.mtf-faecher-fach-card-row a.mtf-fach-mtsr-repmode-link:hover .mtsr-info-row-icon-container.mtsr-colorful-due {
    background: #fde68a;
    border-color: rgb(180 83 9 / 32%);
    box-shadow: 0 1px 4px rgb(180 83 9 / 16%);
}

.mtf-faecher-fach-card-row a.mtf-fach-mtsr-repmode-link:focus-visible {
    outline: 2px solid #3093b7;
    outline-offset: 2px;
    border-radius: 999px;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon-container.mtsr-colorful-zukunft {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
    background: rgb(201 239 244 / 47%);
    color: #094479;
    border-radius: 999px;
    padding: 2px 7px;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon-container.mtsr-colorful-zukunft .mtsr-info-row-icon.mtsr-colorful,
.mtf-faecher-fach-card-row
    .mtf-fach-breadcrumb-mtsr
    .mtsr-info-row-icon-container.mtsr-colorful-zukunft
    .mtsr-info-row-icon.mtsr-colorful
    i.mtsr-main-icon {
    color: var(--mtsr-main-gradient);
    background-image: var(--mtsr-main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon-container.mtsr-colorful-zukunft .mtsr-breadcrumb-rep-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: hsl(202.3deg 61.75% 35.88%);
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon-container.mtsr-colorful-heute {
    background: #c9eff4;
    color: #094479;
    border: 1px solid #09447973;
    border-radius: 999px;
    padding: 2px 7px;
    gap: 4px;
    flex-shrink: 0;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon-container.mtsr-colorful-heute .mtsr-info-row-icon,
.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon-container.mtsr-colorful-heute .mtsr-info-row-icon i,
.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon-container.mtsr-colorful-heute i {
    color: #094479 !important;
    -webkit-text-fill-color: #094479 !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon-container.mtsr-colorful-heute .mtsr-breadcrumb-rep-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon-container.mtsr-colorful-due {
    background: #fef3c7;
    color: #b45309;
    border-radius: 999px;
    padding: 2px 7px;
    gap: 4px;
    flex-shrink: 0;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon-container.mtsr-colorful-due .mtsr-info-row-icon.mtsr-colorful,
.mtf-faecher-fach-card-row
    .mtf-fach-breadcrumb-mtsr
    .mtsr-info-row-icon-container.mtsr-colorful-due
    .mtsr-info-row-icon.mtsr-colorful
    i.mtsr-main-icon {
    color: var(--mtsr-main-gradient);
    background-image: var(--mtsr-main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon-container.mtsr-colorful-due .ic-time {
    color: #b45309 !important;
    -webkit-text-fill-color: #b45309 !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon-container.mtsr-colorful-due .mtsr-breadcrumb-rep-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #b45309;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon-container {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon {
    display: inline-flex;
    align-items: center;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr i.mtsr-main-icon {
    margin-right: 0;
    font-size: 0.9em;
}

.mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .ic-time {
    font-size: 0.85em;
}
/* 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: 600;
    letter-spacing: normal;
}

.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 {
    --mtsr-main-gradient: linear-gradient(45deg, rgb(84 182 201) 0%, rgb(9 68 121) 100%);
    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;
    min-width: 0;
}

/* 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;
    min-width: 0;
    overflow-x: hidden;
    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;
    min-width: 0;
    overflow-x: hidden;
    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;
    min-width: fit-content;
}
.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;
    min-width: 0;
}

.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;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.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-info {
        gap: 2px;
    }
    .mtf-faecher-scroller-post-stats,
    .mtsr-info-row-container {
        font-size: 11px;
    }
    .mtf-thumbs-rating-wrapper .ekp_feedback_count {
        font-size: 10px;
        min-width: 14px;
        text-align: right;
    }
    .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;
    }

    .mtf-faecher-fach-label {
        font-size: 10px;
        padding: 1px 3px;
        min-width: 31px;
    }
    .mtf-faecher-fach-stats-container {
        grid-template-columns: 60px max-content;
        column-gap: 4px;
        font-size: 10px;
    }

    .mtf-faecher-fach-card-row .mtf-fach-breadcrumb-item-meta .mtsr-als-naechstes-row-meta-marked {
        font-size: 10px;
    }
    .mtf-faecher-fach-card-row .mtf-fach-breadcrumb-notizen-text {
        display: none;
    }
    .mtf-faecher-fach-card-row .mtf-fach-breadcrumb-item-meta {
        font-size: 10px;
    }

    .mtf-faecher-fach-card-row .mtf-fach-breadcrumb-mtsr .mtsr-info-row-icon-container .mtsr-breadcrumb-rep-label {
        font-size: 10px !important;
    }
}

/* =========================================================
   Lernplan day-mode: greyed-out missing / empty days
   ========================================================= */

/* Greyed sidebar entry inside a grouped box (a day with no fach / no items) */
.mtf-faecher-scroller-accordion-item-empty {
    margin-bottom: 2px;
    opacity: 0.55;
    cursor: default;
    user-select: none;
}

.mtf-faecher-scroller-accordion-header-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    /* border: 1px dashed rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.02); */
    color: var(--lm-muted, #64748b);
    line-height: 1.2;
    letter-spacing: 0.1px;
}

.mtf-faecher-scroller-accordion-header-empty .mtf-faecher-scroller-acc-title {
    font-weight: 500;
    /* font-style: italic; */
}

.mtf-faecher-scroller-acc-empty-note {
    font-size: 12px;
    font-weight: 500;
    color: var(--lm-muted, #94a3b8);
    min-width: fit-content;
}

/* Standalone empty/non-existent days between boxes (banner rows) */
.mtf-faecher-scroller-empty-day-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 32px;
}

.mtf-faecher-scroller-empty-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 26px;
    border-radius: 14px;
    border: 1px dashed rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.02);
    color: var(--lm-muted, #64748b);
    opacity: 0.7;
    cursor: default;
    user-select: none;
}

.mtf-faecher-scroller-empty-day-title {
    font-size: 16px;
    font-weight: 600;
    font-style: italic;
}

.mtf-faecher-scroller-empty-day-note {
    font-size: 13px;
    font-weight: 500;
    color: var(--lm-muted, #94a3b8);
    min-width: fit-content;
}

/* =========================================================
   Lernplan overview (in-page table of contents on top)
   ========================================================= */
.mtf-lernplan-chunk-nav {
    margin: 0 0 16px;
}

.mtf-lernplan-chunk-nav--bottom {
    margin: 32px 0 0;
}

.mtf-lernplan-chunk-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.85);
}

.mtf-lernplan-chunk-nav-side {
    flex: 1 1 0;
    min-width: 0;
}

.mtf-lernplan-chunk-nav-side--prev {
    text-align: left;
}

.mtf-lernplan-chunk-nav-side--next {
    text-align: right;
}

.mtf-lernplan-chunk-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(36, 182, 228, 0.35);
    background: linear-gradient(180deg, rgba(36, 182, 228, 0.12), rgba(74, 214, 201, 0.1));
    color: var(--lm-text, #0f172a);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.mtf-lernplan-chunk-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border-color: rgba(36, 182, 228, 0.55);
    color: var(--lm-text, #0f172a);
}

.mtf-lernplan-chunk-nav-current {
    flex: 0 1 auto;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--lm-muted, #2b7c93);
    white-space: nowrap;
}

.mtf-lernplan-chunk-nav-current-meta {
    font-weight: 600;
    opacity: 0.75;
}

@media (max-width: 640px) {
    .mtf-lernplan-chunk-nav-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mtf-lernplan-chunk-nav-side {
        flex: 1 1 100%;
        text-align: center;
    }

    .mtf-lernplan-chunk-nav-side--next {
        text-align: center;
    }

    .mtf-lernplan-chunk-nav-current {
        order: -1;
        width: 100%;
    }
}

/*
 * The Lernplan overview reuses the standard Fächer "hero" bigthumbs markup
 * (.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs) so the generic sticky-on-scroll +
 * scroll-spy mechanism in mt-fortschritt-faecher.js applies automatically. The rules below only
 * add the Lernplan-specific "day card" look for the initial (non-sticky) grid; once the JS adds
 * .sticky, the generic bigthumbs.sticky rules in mt-fortschritt-faecher.css take over unopposed
 * (the :not(.sticky) guard keeps these from ever competing with them).
 */
.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview {
    margin: 0 0 40px;
    padding-top: 0;
}

.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview:not(.sticky) .mtf-faecher-section-container {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview:not(.sticky) .mtf-faecher-fach-container {
    gap: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(36, 182, 228, 0.1), rgba(74, 214, 201, 0.08));
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview:not(.sticky) .mtf-faecher-fach-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: rgba(36, 182, 228, 0.4);
    background: linear-gradient(180deg, rgba(36, 182, 228, 0.1), rgba(74, 214, 201, 0.08));
}

.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview:not(.sticky) .mtf-faecher-fach-top-section-front {
    justify-content: center;
}

.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview:not(.sticky) .mtf-faecher-fach-icon-container {
    width: 100%;
    justify-content: center;
    margin-bottom: 4px;
}

.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview:not(.sticky) .mtf-faecher-fach-icon-container img {
    width: 70%;
    max-width: 120px;
    height: auto;
    /* Reserve the box's final size before the image loads (icons are ~square), so the
       card's height can't grow after the sticky-trigger measurements were taken. */
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* Generic MT-logo placeholder (box has no dedicated icon): render it smaller and muted so it
   visually reads as a placeholder rather than a real, deliberately-chosen icon. */
.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview:not(.sticky)
    .mtf-faecher-fach-icon-container.mtf-faecher-fach-icon-container-mtlogo
    img {
    width: 36%;
    max-width: 86px;
    margin-top: 1em;
    opacity: 0.85;
    filter: saturate(0.85);
}

.mtf-lernplan-fach-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    /* text-transform: uppercase; */
    color: var(--lm-muted, #2b7c93);
    opacity: 0.85;
}

.mtf-lernplan-fach-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

/*
 * Sticky (collapsed nav bar) state: keep the day-range eyebrow but as a small separated
 * "Tag X–Y" badge in front of the (shrunk) title, instead of stacked above it. The icon
 * sits between the badge and the title, so re-flow the badge/icon/title as direct flex
 * items of the link (in that order) via `display: contents` on the name wrapper.
 */
.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview.sticky .mtf-faecher-fach-name {
    display: contents;
}

.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview.sticky .mtf-lernplan-fach-eyebrow {
    order: 1;
}

/* Generic MT-logo placeholder in the sticky pill: shrink and mute it too, same reasoning as
   the grid card version above (reads as a placeholder, not a deliberately chosen icon). */
.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview.sticky
    .mtf-faecher-fach-icon-container.mtf-faecher-fach-icon-container-mtlogo
    img {
    width: 14px;
    height: 14px;
    opacity: 0.85;
    filter: saturate(0.85);
}

.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview.sticky .mtf-faecher-fach-top-section-container {
    order: 2;
}

.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview.sticky .mtf-lernplan-fach-title {
    order: 3;
}

.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.sticky .mtf-lernplan-fach-eyebrow {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
    padding: 3px 6px;
    /* border-radius: 999px;
    border: 1px solid currentColor; */
    border-radius: 6px;
    border: 1px solid rgb(146 170 227 / 62%);
    color: rgb(41 63 114 / 62%);
    opacity: 0.65;
}

.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview.sticky .mtf-lernplan-fach-eyebrow {
    /* Spacing to the icon/title now comes from the flex `gap` on `.mtf-faecher-fach-link`. */
    margin-right: 0;
}

.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.sticky .mtf-faecher-fach-container:hover .mtf-lernplan-fach-eyebrow,
.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.sticky .mtf-faecher-fach-container.scroll-active .mtf-lernplan-fach-eyebrow {
    opacity: 0.9;
    color: rgb(9 17 37 / 80%);
}

.mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.sticky .mtf-lernplan-fach-title {
    display: inline;
    vertical-align: middle;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview:not(.sticky) .mtf-faecher-section-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
    .mtf-faecher-section-wrapper.mtf-faecher-flavor-bigthumbs.mtf-lernplan-overview:not(.sticky) .mtf-faecher-fach-container {
        padding: 10px 12px;
    }
    .mtf-lernplan-fach-title {
        font-size: 13px;
    }
}
