/* Website references (/referenzen/). Hero from legal.css (.mlg-hero); cards come from src/references.php. */
.mrf { --mrf-primary: #0A1B65; --mrf-accent: #FD7E14; --mrf-text: #3B4256; --mrf-muted: #6B7290; --mrf-line: #E8EBF4; --mrf-soft: #F4F6FC; background: var(--mrf-soft); }
.mrf .mlg-hero { padding-bottom: 110px; }
.mrf strong { font-weight: 700; }
.mrf-list { padding-bottom: 96px; }
.mrf-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: -64px; }

.mrf-card {
    display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--mrf-line); border-radius: 22px; background: #fff;
    box-shadow: 0 18px 50px rgba(10, 27, 101, .08); transition: transform .2s ease, box-shadow .2s ease;
}
.mrf-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(10, 27, 101, .13); }
.mrf .mrf-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #0A1B65, #142C8C); }
.mrf .mrf-shot::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -1px 0 var(--mrf-line); pointer-events: none; }
.mrf .mrf-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.mrf-card:hover .mrf-shot img { transform: scale(1.03); }
.mrf-shot-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 700; }

.mrf-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 28px 30px 30px; }
.mrf .mrf-company { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--mrf-muted); font-size: 14px; }
.mrf-company span { padding: 3px 10px; border-radius: 999px; background: #FFF1E6; color: #E8590C; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mrf .mrf-card h2 { margin: 0 0 6px; color: var(--mrf-primary); font-family: inherit; font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.mrf .mrf-url { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--mrf-accent); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.mrf .mrf-url:hover { text-decoration: underline; }
.mrf-url svg, .mrf-btn svg { width: 15px; height: 15px; }
.mrf .mrf-desc { margin: 0 0 22px; color: var(--mrf-text); font-size: 15.5px; line-height: 1.7; }
.mrf-services { width: 100%; margin: auto 0 24px; padding-top: 18px; border-top: 1px solid var(--mrf-line); }
.mrf-services > span { display: block; margin-bottom: 10px; color: var(--mrf-muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mrf .mrf-services ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mrf .mrf-services li { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--mrf-soft); color: var(--mrf-primary); font-size: 13.5px; font-weight: 600; }
.mrf-services li svg { width: 16px; height: 16px; color: #E8590C; }
.mrf .mrf-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
    background: linear-gradient(90deg, var(--mrf-accent), #FF5A36); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none;
    box-shadow: 0 10px 24px rgba(253, 126, 20, .28); transition: transform .15s ease;
}
.mrf .mrf-btn:hover { transform: translateY(-1px); color: #fff; }
.mrf .mrf-empty { position: relative; z-index: 2; margin: -64px 0 0; padding: 40px; border-radius: 20px; background: #fff; color: var(--mrf-muted); text-align: center; }

.mrf a:focus-visible { outline: 2px solid var(--mrf-accent); outline-offset: 3px; }
@media (max-width: 900px) { .mrf-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .mrf-grid { margin-top: -56px; gap: 20px; }
    .mrf-body { padding: 22px 20px 24px; }
    .mrf .mrf-card h2 { font-size: 21px; }
    .mrf .mrf-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .mrf * { transition: none !important; } }

/* Toolbar: search + category filter (overlaps the hero instead of the grid) */
.mrf-toolbar { position: relative; z-index: 3; margin-top: -64px; margin-bottom: 18px; padding: 20px; border: 1px solid var(--mrf-line); border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(10, 27, 101, .08); }
.mrf-toolbar[hidden] { display: none; }
.mrf-toolbar:not([hidden]) ~ .mrf-grid { margin-top: 0; }
.mrf-search { position: relative; }
.mrf-search svg { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--mrf-muted); pointer-events: none; }
.mrf .mrf-search input {
    width: 100%; height: 52px; margin: 0; padding: 0 16px 0 46px; border: 1.5px solid var(--mrf-line); border-radius: 12px;
    background: var(--mrf-soft); color: var(--mrf-primary); font: 15.5px "Inter", system-ui, sans-serif; outline: none; box-shadow: none;
}
.mrf .mrf-search input:focus { border-color: var(--mrf-primary); background: #fff; }
.mrf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mrf-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mrf .mrf-filters button,
.mrf .mrf-filters button:hover,
.mrf .mrf-filters button:focus {
    appearance: none; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 16px; cursor: pointer;
    border: 1.5px solid var(--mrf-line); border-radius: 999px; background: #fff; background-image: none; box-shadow: none;
    color: var(--mrf-primary); font: 600 14px/1.2 "Inter", system-ui, sans-serif; letter-spacing: normal; text-transform: none;
}
.mrf .mrf-filters button:hover { border-color: var(--mrf-primary); }
.mrf .mrf-filters button[aria-pressed="true"] { border-color: var(--mrf-primary); background: var(--mrf-primary); color: #fff; }
.mrf-filters button span { padding: 1px 8px; border-radius: 999px; background: var(--mrf-soft); color: var(--mrf-muted); font-size: 12px; }
.mrf .mrf-filters button[aria-pressed="true"] span { background: rgba(255, 255, 255, .18); color: #fff; }
.mrf .mrf-count { margin: 0 0 16px; color: var(--mrf-muted); font-size: 14px; }
.mrf-card[hidden] { display: none; }
.mrf-nomatch { padding: 40px; border-radius: 20px; background: #fff; text-align: center; color: var(--mrf-muted); }
.mrf-nomatch[hidden] { display: none; }
.mrf .mrf-nomatch button { margin-top: 6px; padding: 10px 20px; border: 1.5px solid var(--mrf-primary); border-radius: 999px; background: #fff; color: var(--mrf-primary); font: 600 14px "Inter", system-ui, sans-serif; cursor: pointer; }
@media (max-width: 640px) { .mrf-toolbar { margin-top: -56px; padding: 14px; } }
