@import url('/custom/assets/fonts/fonts.css');

/* ==========================================================================
   motormagazin.com — Redaktionelles Auto-Magazin
   Rot (#dc0006) als Markenfarbe, Asphalt-Anthrazit als Gegenpol,
   warmes Papier-Grau als Seitenhintergrund.
   ========================================================================== */

:root {
    --mm-red:        #dc0006;
    --mm-red-dark:   #b30005;
    --mm-red-tint:   #fdeceb;
    --mm-asphalt:    #181b20;
    --mm-asphalt-2:  #23272e;
    --mm-ink:        #15171a;
    --mm-steel:      #596069;
    --mm-line:       #e1ddd6;
    --mm-paper:      #f3f1ed;
    --mm-card:       #ffffff;
    --mm-header-bg:  #ffffff;

    --mm-font-head:  'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --mm-font-body:  'Barlow', 'Helvetica Neue', Arial, sans-serif;

    --mm-radius:     3px;
    --mm-shadow:     0 1px 2px rgba(20, 23, 26, .06), 0 8px 24px -12px rgba(20, 23, 26, .18);
    --mm-shadow-up:  0 2px 4px rgba(20, 23, 26, .08), 0 18px 36px -14px rgba(20, 23, 26, .28);
    --mm-logo-h:     80px;
}

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; }

body {
    background: var(--mm-paper);
    color: var(--mm-ink);
    font-family: var(--mm-font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--mm-red); text-decoration: none; }
a:hover { color: var(--mm-red-dark); }
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--mm-red);
    outline-offset: 2px;
}

h1, h2, h3, h4 {
    font-family: var(--mm-font-head);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.005em;
    color: var(--mm-ink);
}

.row { --bs-gutter-x: 2.25rem; }

.mm-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.mm-main { flex: 1 0 auto; padding-bottom: 72px; }

.mm-skip {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--mm-ink); color: #fff; padding: 10px 16px; border-radius: var(--mm-radius);
}
.mm-skip:focus { top: 12px; color: #fff; }

/* ---------- Header / Hauptmenü ---------- */
.site-header,
.outer-mainmenu-container {
    background-color: var(--mm-header-bg);
    border-bottom: 1px solid var(--mm-line);
    position: relative;
    z-index: 100;
}
.site-header::after {              /* rote Rennstreifen-Kante */
    content: '';
    position: absolute; left: 0; right: 0; bottom: -1px; height: 4px;
    background: linear-gradient(90deg, var(--mm-red) 0, var(--mm-red) 30%, var(--mm-asphalt) 30%, var(--mm-asphalt) 100%);
}

.mm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 18px;
}

.mm-logo { display: block; flex: 0 0 auto; line-height: 0; }
.mm-logo img { height: var(--mm-logo-h); width: auto; }

.mm-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end;
}
.mm-nav a {
    display: block;
    font-family: var(--mm-font-head);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mm-ink);
    padding: 10px 14px;
    position: relative;
    transition: color .15s;
}
.mm-nav a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px;
    background: var(--mm-red); transform: scaleX(0); transform-origin: left;
    transition: transform .22s ease;
}
.mm-nav a:hover { color: var(--mm-red); }
.mm-nav a:hover::after,
.mm-nav a.active::after { transform: scaleX(1); }
.mm-nav a.active { color: var(--mm-red); }

.mm-nav .mm-nav-cta a {
    background: var(--mm-red); color: #fff; margin-left: 10px;
    padding: 9px 20px; border-radius: var(--mm-radius);
}
.mm-nav .mm-nav-cta a::after { display: none; }
.mm-nav .mm-nav-cta a:hover { background: var(--mm-asphalt); color: #fff; }

.mm-burger {
    display: none;
    width: 48px; height: 48px;
    border: 2px solid var(--mm-ink); background: transparent; border-radius: var(--mm-radius);
    cursor: pointer; padding: 0; position: relative;
}
.mm-burger span {
    position: absolute; left: 11px; right: 11px; height: 3px; background: var(--mm-ink);
    transition: transform .2s, opacity .2s, top .2s;
}
.mm-burger span:nth-child(1) { top: 13px; }
.mm-burger span:nth-child(2) { top: 20px; }
.mm-burger span:nth-child(3) { top: 27px; }
.mm-burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.mm-burger.is-open span:nth-child(2) { opacity: 0; }
.mm-burger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Breadcrumb ---------- */
.mm-crumbs { padding: 18px 0 6px; font-size: 14px; }
.mm-crumbs .breadcrumb {
    --bs-breadcrumb-divider-color: var(--mm-steel);
    --bs-breadcrumb-item-active-color: var(--mm-steel);
    margin: 0; padding: 0; background: none;
}
.mm-crumbs a { color: var(--mm-ink); font-weight: 500; }
.mm-crumbs a:hover { color: var(--mm-red); }

/* ---------- Home Hero ---------- */
.mm-hero {
    background: var(--mm-asphalt);
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
    padding: 64px 0 60px;
}
.mm-hero::before {                 /* diagonale Streifen */
    content: '';
    position: absolute; top: 0; bottom: 0; right: -6%; width: 38%;
    background: repeating-linear-gradient(115deg, var(--mm-red) 0 26px, transparent 26px 62px);
    opacity: .9;
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}
.mm-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--mm-asphalt) 45%, rgba(24, 27, 32, .55) 100%);
}
.mm-hero .container { position: relative; z-index: 1; }
.mm-hero-kicker {
    display: inline-block;
    font-family: var(--mm-font-head); font-weight: 700; font-size: 16px;
    letter-spacing: .2em; text-transform: uppercase;
    color: #fff; background: var(--mm-red);
    padding: 4px 12px; margin-bottom: 18px;
}
.mm-hero-title {
    color: #fff;
    font-size: clamp(44px, 7.4vw, 96px);
    text-transform: uppercase;
    margin: 0 0 20px;
    max-width: 11ch;
}
.mm-hero-title em { font-style: normal; color: var(--mm-red); -webkit-text-stroke: 0; }
.mm-hero-body { max-width: 580px; font-size: 20px; line-height: 1.55; color: #d9dce1; }
.mm-hero-body p { margin: 0; }

/* ---------- Sektionen ---------- */
.mm-section { margin-bottom: 56px; }
.mm-section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    border-bottom: 3px solid var(--mm-ink);
    margin-bottom: 24px; padding-bottom: 8px; gap: 16px;
}
.mm-section-head h2 {
    margin: 0; font-size: 38px; text-transform: uppercase;
    position: relative; padding-left: 18px;
}
.mm-section-head h2::before {
    content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 8px; background: var(--mm-red);
}
.mm-section-all {
    font-family: var(--mm-font-head); font-weight: 700; font-size: 17px;
    letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
    color: var(--mm-ink);
}
.mm-section-all:hover { color: var(--mm-red); }

/* ---------- Kategorie-Kopf ---------- */
.mm-cat-intro { padding: 12px 0 30px; max-width: 760px; }
.mm-cat-intro .mm-kicker { margin-bottom: 10px; }
.mm-cat-intro h1 {
    font-size: clamp(44px, 6vw, 72px); text-transform: uppercase; margin: 0 0 14px;
}
.mm-cat-intro p { font-size: 20px; color: var(--mm-steel); margin: 0; }
.mm-cat-intro h1::after {
    content: ''; display: block; width: 90px; height: 6px; background: var(--mm-red); margin-top: 16px;
}

.mm-kicker {
    display: inline-block;
    font-family: var(--mm-font-head); font-weight: 700; font-size: 15px;
    letter-spacing: .16em; text-transform: uppercase; color: var(--mm-red);
}

/* ---------- Karten ---------- */
.mm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.mm-card {
    background: var(--mm-card);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}
.mm-card:hover { transform: translateY(-4px); box-shadow: var(--mm-shadow-up); }
.mm-card > a { display: block; color: inherit; height: 100%; }

.mm-card-img { position: relative; overflow: hidden; background: var(--mm-asphalt-2); aspect-ratio: 8 / 5; }
.mm-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mm-card:hover .mm-card-img img { transform: scale(1.05); }
.mm-card-img--empty { background: linear-gradient(135deg, var(--mm-asphalt-2), var(--mm-asphalt)); }

.mm-badge {
    position: absolute; left: 0; top: 14px; z-index: 2;
    background: var(--mm-red); color: #fff;
    font-family: var(--mm-font-head); font-weight: 700; font-size: 14px;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 4px 12px 3px;
}

.mm-card-body { padding: 18px 20px 22px; }
.mm-card-title {
    font-family: var(--mm-font-head); font-weight: 800;
    font-size: 25px; line-height: 1.1; color: var(--mm-ink);
    margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .15s;
}
.mm-card:hover .mm-card-title { color: var(--mm-red); }
.mm-card-excerpt {
    font-size: 15.5px; line-height: 1.5; color: var(--mm-steel); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Lead-Karte */
.mm-card--lead { margin-bottom: 26px; }
.mm-card--lead > a { display: grid; grid-template-columns: 1.35fr 1fr; }
.mm-card--lead .mm-card-img { aspect-ratio: auto; min-height: 330px; }
.mm-card--lead .mm-card-body { padding: 30px 30px 32px; align-self: center; }
.mm-card--lead .mm-card-title { font-size: 42px; -webkit-line-clamp: 4; margin-bottom: 14px; }
.mm-card--lead .mm-card-excerpt { font-size: 17px; -webkit-line-clamp: 5; }

/* ---------- Pagination ---------- */
.mm-pagination {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 44px 0 0;
}
.mm-pagination a, .mm-pagination span {
    min-width: 46px; height: 46px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--mm-font-head); font-weight: 700; font-size: 20px;
    background: var(--mm-card); color: var(--mm-ink);
    border: 1px solid var(--mm-line); border-radius: var(--mm-radius);
}
.mm-pagination a:hover { background: var(--mm-ink); color: #fff; border-color: var(--mm-ink); }
.mm-pagination .mm-pg-active { background: var(--mm-red); border-color: var(--mm-red); color: #fff; }
.mm-pagination .mm-pg-disabled { opacity: .35; }
.mm-pagination .mm-pg-ellipsis { border: 0; background: transparent; min-width: 24px; padding: 0; }

/* ---------- Artikel ---------- */
.mm-article { background: var(--mm-card); box-shadow: var(--mm-shadow); border-radius: var(--mm-radius); overflow: hidden; }
.mm-article-head { padding: 36px 44px 28px; }
.mm-article-head h1 {
    font-size: clamp(36px, 4.6vw, 58px); margin: 10px 0 0; text-transform: uppercase;
}
.mm-article-hero { margin: 0; }
.mm-article-hero img { width: 100%; height: auto; aspect-ratio: 97 / 50; object-fit: cover; }
.mm-article-content { padding: 36px 44px 48px; font-size: 18.5px; line-height: 1.72; }
.mm-article-content > *:first-child { margin-top: 0; }
.mm-article-content p { margin: 0 0 1.25em; }
.mm-article-content > p:first-of-type { font-size: 21px; line-height: 1.6; font-weight: 500; }
.mm-article-content h2, .mm-article-content h3 { margin: 1.7em 0 .6em; text-transform: uppercase; }
.mm-article-content h2 { font-size: 34px; }
.mm-article-content h3 { font-size: 27px; }
.mm-article-content strong { font-family: var(--mm-font-head); font-size: 1.12em; letter-spacing: .03em; font-weight: 800; }
.mm-article-content a { text-decoration: underline; text-underline-offset: 3px; }
.mm-article-content img { margin: 1.6em auto; border-radius: var(--mm-radius); }
.mm-article-content ul, .mm-article-content ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.mm-article-content li { margin-bottom: .4em; }
.mm-article-content blockquote {
    margin: 1.8em 0; padding: 6px 0 6px 24px; border-left: 6px solid var(--mm-red);
    font-size: 22px; font-weight: 500; color: var(--mm-asphalt);
}
.mm-article-content table { width: 100%; margin-bottom: 1.4em; border-collapse: collapse; font-size: 16px; }
.mm-article-content th, .mm-article-content td { border: 1px solid var(--mm-line); padding: 8px 12px; }
.mm-article-content th { background: var(--mm-paper); }

.mm-related { margin-top: 64px; }
.mm-related-title {
    font-family: var(--mm-font-head); font-weight: 800; font-size: 38px; text-transform: uppercase;
    margin: 0 0 24px; padding-left: 18px; position: relative; border-bottom: 3px solid var(--mm-ink); padding-bottom: 8px;
}
.mm-related-title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 12px; width: 8px; background: var(--mm-red); }

/* ---------- Seiten ---------- */
.mm-page { background: var(--mm-card); box-shadow: var(--mm-shadow); border-radius: var(--mm-radius); padding: 40px 44px 48px; }
.mm-page h1 { font-size: clamp(36px, 4.6vw, 56px); text-transform: uppercase; margin: 0 0 20px; }
.mm-page h2 { font-size: 30px; margin: 1.6em 0 .5em; text-transform: uppercase; }
.mm-page h3 { font-size: 24px; margin: 1.4em 0 .5em; }
.mm-page p, .mm-page li { max-width: 72ch; }
.mm-page iframe { display: block; }

.mm-confirm { text-align: center; padding: 24px 0 8px; }
.mm-confirm-icon {
    width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 50%;
    background: var(--mm-red); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 10px var(--mm-red-tint);
}
.mm-confirm-icon svg { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.mm-confirm h1 { margin-bottom: 14px; }
.mm-confirm p { margin-left: auto; margin-right: auto; color: var(--mm-steel); }

.mm-btn {
    display: inline-block;
    font-family: var(--mm-font-head); font-weight: 700; font-size: 19px;
    letter-spacing: .08em; text-transform: uppercase;
    background: var(--mm-red); color: #fff; border: 0; border-radius: var(--mm-radius);
    padding: 13px 28px; cursor: pointer; transition: background .15s, transform .15s;
}
.mm-btn:hover { background: var(--mm-asphalt); color: #fff; transform: translateY(-1px); }
.mm-btn--block { display: block; text-align: center; }
.mm-confirm .mm-btn { margin-top: 24px; }

/* ---------- Sidebar ---------- */
.mm-sidebar { position: sticky; top: 24px; display: grid; gap: 26px; }

.fi-newsletter-cta {
    background: var(--mm-asphalt); color: #fff; border-radius: var(--mm-radius);
    padding: 28px 26px 30px; position: relative; overflow: hidden;
}
.fi-newsletter-cta::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--mm-red);
}
.fi-newsletter-cta__label {
    display: block; font-family: var(--mm-font-head); font-weight: 700; font-size: 14px;
    letter-spacing: .2em; text-transform: uppercase; color: var(--mm-red); margin-bottom: 6px;
    background: #fff; width: max-content; padding: 2px 10px;
}
.fi-newsletter-cta__title { color: #fff; font-size: 25px; text-transform: uppercase; margin: 12px 0 10px; overflow-wrap: break-word; }
.fi-newsletter-cta__text { font-size: 16px; line-height: 1.5; color: #d3d6db; margin: 0 0 20px; }

.mm-sidebar-cats { background: var(--mm-card); border-radius: var(--mm-radius); box-shadow: var(--mm-shadow); padding: 22px 24px 14px; }
.mm-sidebar-cats-title {
    font-family: var(--mm-font-head); font-weight: 800; font-size: 24px; text-transform: uppercase;
    margin: 0 0 8px; padding-bottom: 8px; border-bottom: 3px solid var(--mm-ink);
}
.mm-sidebar-cats ul { list-style: none; margin: 0; padding: 0; }
.mm-sidebar-cats li { border-bottom: 1px solid var(--mm-line); }
.mm-sidebar-cats li:last-child { border-bottom: 0; }
.mm-sidebar-cats a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 0; color: var(--mm-ink); font-weight: 600; font-size: 17px;
}
.mm-sidebar-cats a::after { content: '\2192'; color: var(--mm-red); transition: transform .15s; }
.mm-sidebar-cats a:hover, .mm-sidebar-cats a.active { color: var(--mm-red); }
.mm-sidebar-cats a:hover::after { transform: translateX(4px); }

/* ---------- Footer ---------- */
.mm-footer {
    background: var(--mm-asphalt); color: #c4c8ce;
    border-top: 6px solid var(--mm-red);
    padding: 44px 0 34px; text-align: center;
}
.mm-footer-logo { display: inline-block; line-height: 0; margin-bottom: 18px; }
.mm-footer-logo img { height: 64px; width: auto; }
.mm-footer-copy { margin: 0 0 18px; font-size: 15px; }
.mm-footer .footer-nav {
    display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: center;
    border-top: 1px solid #343941; padding-top: 18px;
}
.mm-footer .footer-nav a {
    font-family: var(--mm-font-head); font-weight: 700; font-size: 17px;
    letter-spacing: .1em; text-transform: uppercase; color: #fff;
}
.mm-footer .footer-nav a:hover { color: var(--mm-red); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .mm-nav a { padding: 10px 9px; font-size: 18px; }
    .mm-nav a::after { left: 9px; right: 9px; }
}

@media (max-width: 991.98px) {
    :root { --mm-logo-h: 60px; }
    .mm-header-inner { padding-top: 10px; padding-bottom: 14px; }
    .mm-burger { display: block; }
    .mm-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--mm-header-bg); border-top: 1px solid var(--mm-line);
        box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .35);
        display: none; padding: 8px 16px 18px;
    }
    .mm-nav.is-open { display: block; }
    .mm-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .mm-nav a { padding: 14px 4px; border-bottom: 1px solid var(--mm-line); font-size: 21px; }
    .mm-nav a::after { display: none; }
    .mm-nav .mm-nav-cta a { margin: 14px 0 0; text-align: center; border-bottom: 0; }
    .mm-sidebar { position: static; margin-top: 44px; }
    .mm-hero { padding: 44px 0 40px; }
    .mm-hero::before { width: 60%; opacity: .55; }
    .mm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mm-card--lead > a { grid-template-columns: 1fr; }
    .mm-card--lead .mm-card-img { min-height: 0; aspect-ratio: 16 / 9; }
    .mm-card--lead .mm-card-title { font-size: 34px; }
}

@media (max-width: 575.98px) {
    body { font-size: 16.5px; }
    .mm-grid { grid-template-columns: 1fr; gap: 20px; }
    .mm-section-head h2 { font-size: 30px; }
    .mm-article-head, .mm-article-content, .mm-page { padding-left: 20px; padding-right: 20px; }
    .mm-article-head { padding-top: 26px; }
    .mm-article-content { font-size: 17.5px; }
    .mm-article-content > p:first-of-type { font-size: 19px; }
    .mm-card--lead .mm-card-body { padding: 22px 20px 24px; }
    .mm-card--lead .mm-card-title { font-size: 30px; }
    .mm-hero-body { font-size: 18px; }
    .mm-hero-kicker { font-size: 13px; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
