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

/* ==========================================================================
   mobil-autos.com — Auto-Magazin im Rennsport-Look
   Leitmotiv: das kursive Logo. Schräge Kanten (-12°), Sofia Sans Extra
   Condensed in Kursiv für Überschriften, Hanken Grotesk für Fließtext.
   Rot #C52126 = Marke · Asphalt = Gegenpol · Signalgelb = kleiner Akzent.
   ========================================================================== */

:root {
    --ma-red:        #C52126;
    --ma-red-dark:   #9C171B;
    --ma-red-tint:   #FBEAEA;
    --ma-asphalt:    #15171B;
    --ma-asphalt-2:  #20232A;
    --ma-ink:        #16181C;
    --ma-steel:      #5A606B;
    --ma-mist:       #B7BBC3;
    --ma-line:       #E3DED6;
    --ma-paper:      #F4F1EC;
    --ma-card:       #FFFFFF;
    --ma-signal:     #FFB81C;
    --ma-header-bg:  #FFFFFF;

    --ma-font-head:  'Sofia Sans Extra Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
    --ma-font-body:  'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

    --ma-skew:       -12deg;
    --ma-radius:     2px;
    --ma-shadow:     0 1px 2px rgba(21, 23, 27, .06), 0 10px 26px -14px rgba(21, 23, 27, .22);
    --ma-shadow-up:  0 2px 4px rgba(21, 23, 27, .08), 0 22px 40px -16px rgba(21, 23, 27, .34);
    --ma-logo-h:     80px;
    --ma-cut:        polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

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

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

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

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

h1, h2, h3, h4 {
    font-family: var(--ma-font-head);
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    letter-spacing: 0;
    color: var(--ma-ink);
}

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

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

.ma-skip {
    position: absolute; left: 12px; top: -64px; z-index: 300;
    background: var(--ma-ink); color: #fff; padding: 10px 18px;
}
.ma-skip:focus { top: 12px; color: #fff; }

/* ---------- Animation ---------- */
@keyframes ma-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
@keyframes ma-slide {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Header / Hauptmenü ---------- */
.site-header,
.outer-mainmenu-container {
    background-color: var(--ma-header-bg);
    position: relative;
    z-index: 100;
}
.site-header::after {                         /* Zielflaggen-Kante: Rot mit schwarzem Keil */
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
    background:
        linear-gradient(105deg, transparent 0 17%, var(--ma-ink) 17% 18.6%, transparent 18.6%),
        var(--ma-red);
}

.ma-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-top: 14px;
    padding-bottom: 19px;
}

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

.ma-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 2px; justify-content: flex-end;
}
.ma-nav a {
    display: block;
    position: relative;
    font-family: var(--ma-font-head);
    font-weight: 800;
    font-style: italic;
    font-size: 21px;
    line-height: 1;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ma-ink);
    padding: 12px 13px;
    white-space: nowrap;
    transition: color .15s;
}
.ma-nav a::after {
    content: '';
    position: absolute; left: 13px; right: 13px; bottom: 2px; height: 4px;
    background: var(--ma-red);
    transform: skewX(var(--ma-skew)) scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.ma-nav a:hover { color: var(--ma-red); }
.ma-nav a:hover::after,
.ma-nav a.active::after { transform: skewX(var(--ma-skew)) scaleX(1); }
.ma-nav a.active { color: var(--ma-red); }

.ma-nav-cta { margin-left: 10px; }
.ma-nav-cta a {
    background: var(--ma-red);
    color: #fff;
    padding: 12px 22px;
    clip-path: var(--ma-cut);
    transition: background .15s;
}
.ma-nav-cta a::after { display: none; }
.ma-nav-cta a:hover,
.ma-nav-cta a.active { background: var(--ma-ink); color: #fff; }

.ma-burger {
    display: none;
    width: 48px; height: 48px;
    background: var(--ma-ink);
    border: 0; padding: 0; cursor: pointer;
    clip-path: var(--ma-cut);
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.ma-burger span {
    display: block; width: 22px; height: 3px; background: #fff;
    transition: transform .2s, opacity .2s;
}
.ma-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.ma-burger.is-open span:nth-child(2) { opacity: 0; }
.ma-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1139.98px) {
    .ma-header-inner { padding-bottom: 17px; }
    .ma-burger { display: flex; }
    .ma-nav {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        background: #fff;
        border-top: 1px solid var(--ma-line);
        box-shadow: var(--ma-shadow-up);
        padding: 10px 16px 22px;
    }
    .ma-nav.is-open { display: block; }
    .ma-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .ma-nav li { border-bottom: 1px solid var(--ma-line); }
    .ma-nav a { font-size: 24px; padding: 15px 4px; }
    .ma-nav a::after { display: none; }
    .ma-nav-cta { margin: 18px 0 0; border: 0 !important; }
    .ma-nav-cta a { text-align: center; padding: 15px 22px; }
}

/* ---------- Breadcrumb ---------- */
.ma-crumbs { padding: 16px 0 0; }
.ma-crumbs .breadcrumb {
    margin: 0; padding: 0; background: none;
    font-size: 14px; letter-spacing: .02em; color: var(--ma-steel);
}
.ma-crumbs .breadcrumb-item a { color: var(--ma-steel); }
.ma-crumbs .breadcrumb-item a:hover { color: var(--ma-red); }
.ma-crumbs .breadcrumb-item.active { color: var(--ma-ink); font-weight: 600; }
.ma-crumbs .breadcrumb-item + .breadcrumb-item::before { color: var(--ma-red); font-weight: 700; }

/* ---------- Hero (Startseite) ---------- */
.ma-hero {
    position: relative;
    background: var(--ma-asphalt);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.ma-hero::before {                             /* Speed-Lines */
    content: '';
    position: absolute; inset: 0; z-index: -2;
    background: repeating-linear-gradient(105deg, transparent 0 46px, rgba(255, 255, 255, .035) 46px 48px);
}
.ma-hero::after {                              /* rote Diagonale */
    content: '';
    position: absolute; top: -10%; bottom: -10%; right: 24%; width: 38%; z-index: -1;
    background: var(--ma-red);
    transform: skewX(var(--ma-skew));
    opacity: .96;
}
.ma-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 72px;
}
.ma-hero-kicker {
    display: inline-block;
    margin: 0 0 18px;
    padding: 5px 16px 5px 12px;
    background: var(--ma-signal);
    color: var(--ma-ink);
    clip-path: var(--ma-cut);
    font-family: var(--ma-font-head);
    font-style: italic; font-weight: 800;
    font-size: 20px; line-height: 1.1;
    letter-spacing: .04em; text-transform: uppercase;
    animation: ma-rise .6s .05s both;
}
.ma-hero-title {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(46px, 6.4vw, 92px);
    line-height: .92;
    text-transform: uppercase;
    text-wrap: balance;
    animation: ma-rise .7s .15s both;
}
.ma-hero-body {
    max-width: 34em;
    font-size: 19px;
    line-height: 1.6;
    color: #fff;
    animation: ma-rise .7s .28s both;
}
.ma-hero-body p { margin: 0; }
.ma-hero-links {
    list-style: none; margin: 30px 0 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 8px;
    animation: ma-rise .7s .4s both;
}
.ma-hero-links a {
    display: block;
    padding: 7px 18px 7px 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    clip-path: var(--ma-cut);
    color: #fff;
    font-family: var(--ma-font-head);
    font-style: italic; font-weight: 800;
    font-size: 18px; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase;
    transition: background .15s, color .15s;
}
.ma-hero-links a:hover { background: #fff; color: var(--ma-red); }

.ma-hero-feature {
    position: relative; display: block;
    aspect-ratio: 760 / 560;
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
    background: var(--ma-asphalt-2);
    box-shadow: var(--ma-shadow-up);
    color: #fff;
    animation: ma-slide .8s .2s both;
}
.ma-hero-feature img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.ma-hero-feature::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(21, 23, 27, .92) 0, rgba(21, 23, 27, .35) 45%, transparent 70%);
}
.ma-hero-feature:hover img { transform: scale(1.05); }
.ma-hero-feature-cap {
    position: absolute; z-index: 2; left: 14%; right: 28px; bottom: 26px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.ma-hero-feature-cap strong {
    font-family: var(--ma-font-head); font-style: italic; font-weight: 800;
    font-size: clamp(24px, 2.6vw, 36px); line-height: 1.02;
    text-wrap: balance;
}

@media (max-width: 991.98px) {
    .ma-hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 52px; }
    .ma-hero::after { right: -6%; width: 46%; top: auto; height: 46%; bottom: -10%; }
    .ma-hero-feature { clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); }
    .ma-hero-feature-cap { left: 10%; }
}

/* ---------- Sektionen ---------- */
.ma-section { padding-top: 64px; }
.ma-section:first-child { padding-top: 56px; }

.ma-section-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ma-ink);
}
.ma-section-head h2 {
    display: flex; align-items: center;
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    text-transform: uppercase;
    line-height: .95;
}
.ma-section-head h2::before {
    content: '';
    flex: 0 0 auto;
    width: 14px; height: .8em; margin-right: 14px;
    background: var(--ma-red);
    transform: skewX(var(--ma-skew));
}
.ma-section-head h2 a { color: var(--ma-ink); }
.ma-section-head h2 a:hover { color: var(--ma-red); }
.ma-section-all {
    flex: 0 0 auto;
    font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.ma-section-all:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Badge ---------- */
.ma-badge {
    position: absolute; z-index: 2; left: 0; top: 16px;
    display: inline-block;
    padding: 4px 18px 4px 14px;
    background: var(--ma-red);
    color: #fff;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    font-family: var(--ma-font-head);
    font-style: italic; font-weight: 800;
    font-size: 16px; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase;
}
.ma-hero-feature-cap .ma-badge { position: static; }

/* ---------- Karten ---------- */
.ma-card { margin: 0; }
.ma-card > a { display: block; color: inherit; }

.ma-card-img {
    position: relative; overflow: hidden;
    aspect-ratio: 480 / 300;
    background: var(--ma-asphalt-2);
}
.ma-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .55s ease;
}
.ma-card-img--empty {
    background: repeating-linear-gradient(105deg, var(--ma-asphalt-2) 0 14px, var(--ma-asphalt) 14px 28px);
}

.ma-card-body { padding: 16px 2px 0; }
.ma-card-date {
    display: block; margin-bottom: 6px;
    font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--ma-steel);
}
.ma-card-title {
    margin: 0 0 8px;
    font-family: var(--ma-font-body);
    font-style: normal; font-weight: 700;
    font-size: 19px; line-height: 1.25;
    color: var(--ma-ink);
    text-wrap: balance;
    transition: color .15s;
}
.ma-card-excerpt {
    margin: 0;
    font-size: 15px; line-height: 1.55; color: var(--ma-steel);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ma-card > a:hover .ma-card-title { color: var(--ma-red); }
.ma-card > a:hover .ma-card-img img { transform: scale(1.06); }
.ma-card > a:focus-visible { outline: 3px solid var(--ma-red); outline-offset: 4px; }

/* Lead-Karte */
.ma-card--lead { margin-bottom: 34px; }
.ma-card--lead > a {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 430px;
    overflow: hidden;
    color: #fff;
    box-shadow: var(--ma-shadow);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.ma-card--lead .ma-card-img { position: absolute; inset: 0; aspect-ratio: auto; }
.ma-card--lead .ma-card-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(21, 23, 27, .94) 0, rgba(21, 23, 27, .55) 42%, rgba(21, 23, 27, .05) 75%);
}
.ma-card--lead .ma-card-body { position: relative; z-index: 2; padding: 0 34px 32px; max-width: 46em; }
.ma-card--lead .ma-card-date { color: var(--ma-signal); }
.ma-card--lead .ma-card-title {
    font-family: var(--ma-font-head); font-style: italic; font-weight: 800;
    font-size: clamp(32px, 4vw, 50px); line-height: .98;
    color: #fff; margin-bottom: 12px;
}
.ma-card--lead .ma-card-excerpt { color: rgba(255, 255, 255, .88); font-size: 17px; -webkit-line-clamp: 2; }
.ma-card--lead > a:hover .ma-card-title { color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--ma-red); }
.ma-card--lead .ma-badge { top: 22px; }

/* Raster */
.ma-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 26px;
}
.ma-grid .ma-card {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ma-line);
    transition: border-color .2s;
}
.ma-grid .ma-card:hover { border-bottom-color: var(--ma-red); }

.ma-card, .ma-grid .ma-card { animation: ma-rise .6s both; }
.ma-grid .ma-card:nth-child(3n+2) { animation-delay: .08s; }
.ma-grid .ma-card:nth-child(3n+3) { animation-delay: .16s; }

@media (max-width: 991.98px) {
    .ma-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .ma-grid { grid-template-columns: 1fr; }
    .ma-card--lead > a { min-height: 380px; }
    .ma-card--lead .ma-card-body { padding: 0 20px 24px; }
}

/* ---------- Kategorie-Intro ---------- */
.ma-cat-intro { padding: 36px 0 12px; }
.ma-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 16px 4px 12px;
    background: var(--ma-red);
    color: #fff;
    clip-path: var(--ma-cut);
    font-family: var(--ma-font-head);
    font-style: italic; font-weight: 800;
    font-size: 17px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase;
}
a.ma-kicker:hover { background: var(--ma-ink); color: #fff; }
.ma-cat-intro h1 {
    margin: 0 0 18px;
    font-size: clamp(46px, 7vw, 96px);
    line-height: .9;
    text-transform: uppercase;
    animation: ma-rise .6s both;
}
.ma-cat-intro h1::after {
    content: ''; display: block;
    width: 120px; height: 9px; margin-top: 18px;
    background: var(--ma-red);
    transform: skewX(var(--ma-skew));
}
.ma-cat-lead {
    max-width: 38em; margin: 0 0 36px;
    font-size: 21px; line-height: 1.5; color: var(--ma-steel);
}

/* ---------- Pagination ---------- */
.ma-pagination {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
    margin-top: 48px;
}
.ma-pagination a,
.ma-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; height: 46px; padding: 0 14px;
    font-family: var(--ma-font-head); font-style: italic; font-weight: 800; font-size: 22px;
    background: #fff; color: var(--ma-ink);
    border: 2px solid var(--ma-ink);
    transform: skewX(var(--ma-skew));
}
.ma-pagination a:hover { background: var(--ma-ink); color: #fff; }
.ma-pagination .ma-pg-active { background: var(--ma-red); border-color: var(--ma-red); color: #fff; }
.ma-pagination .ma-pg-disabled { opacity: .35; }
.ma-pagination .ma-pg-ellipsis { border-color: transparent; background: none; }

/* ---------- Artikel ---------- */
.ma-article { padding-top: 34px; }
.ma-article-head h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 5.2vw, 66px);
    line-height: .97;
    text-wrap: balance;
}
.ma-article-meta {
    display: flex; flex-wrap: wrap; gap: 4px 0;
    margin: 0 0 26px;
    font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    color: var(--ma-steel);
}
.ma-article-meta > * + *::before { content: '/'; margin: 0 12px; color: var(--ma-red); font-weight: 800; }
.ma-article-hero { margin: 0 0 36px; position: relative; }
.ma-article-hero img {
    width: 100%; height: auto; aspect-ratio: 970 / 500; object-fit: cover;
    box-shadow: var(--ma-shadow);
}
.ma-article-hero::after {                      /* roter Keil unter dem Bild */
    content: ''; position: absolute; left: 0; bottom: -8px; width: 34%; height: 8px;
    background: var(--ma-red);
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.ma-article-content { font-size: 18px; line-height: 1.8; }
.ma-article-content > *:first-child { margin-top: 0; }
.ma-article-content p { margin: 0 0 1.25em; }
.ma-article-content h2 {
    position: relative;
    margin: 1.9em 0 .6em; padding-left: 20px;
    font-size: clamp(30px, 3.4vw, 40px); line-height: 1.02;
}
.ma-article-content h2::before {
    content: ''; position: absolute; left: 0; top: .08em; bottom: .08em; width: 9px;
    background: var(--ma-red); transform: skewX(var(--ma-skew));
}
.ma-article-content h3 { margin: 1.7em 0 .5em; font-size: 28px; line-height: 1.05; }
.ma-article-content h4 { margin: 1.5em 0 .4em; font-size: 22px; }
.ma-article-content strong { font-weight: 700; color: var(--ma-ink); }
.ma-article-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ma-article-content ul, .ma-article-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.ma-article-content li { margin-bottom: .4em; }
.ma-article-content ul li::marker { color: var(--ma-red); }
.ma-article-content img { margin: 1.6em 0; box-shadow: var(--ma-shadow); }
.ma-article-content blockquote {
    margin: 1.8em 0; padding: 14px 0 14px 26px;
    border-left: 6px solid var(--ma-red);
    font-size: 21px; font-style: italic; color: var(--ma-ink);
}
.ma-article-content table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 16px; }
.ma-article-content th { background: var(--ma-asphalt); color: #fff; text-align: left; font-weight: 700; }
.ma-article-content th, .ma-article-content td { padding: 10px 14px; border: 1px solid var(--ma-line); }
.ma-article-content tr:nth-child(even) td { background: #fff; }

.ma-related { padding-top: 70px; }

/* ---------- Statische Seiten ---------- */
.ma-page {
    margin-top: 36px;
    padding: 40px 44px 44px;
    background: var(--ma-card);
    border-top: 5px solid var(--ma-red);
    box-shadow: var(--ma-shadow);
}
.ma-page h1 { margin: 0 0 24px; font-size: clamp(40px, 5vw, 62px); line-height: .95; text-transform: uppercase; }
.ma-page h2 { margin: 1.6em 0 .5em; font-size: 34px; }
.ma-page h3 { margin: 1.4em 0 .4em; font-size: 26px; }
.ma-page p, .ma-page li { margin-bottom: 1em; }
.ma-page iframe { display: block; max-width: 100%; }
@media (max-width: 575.98px) { .ma-page { padding: 26px 20px 30px; } }

.ma-confirm { text-align: center; padding: 20px 0 8px; }
.ma-confirm-icon {
    width: 84px; height: 84px; margin: 0 auto 22px;
    background: var(--ma-red);
    display: flex; align-items: center; justify-content: center;
    transform: skewX(var(--ma-skew));
}
.ma-confirm-icon svg {
    width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 3.2;
    stroke-linecap: square; stroke-linejoin: miter; transform: skewX(12deg);
}
.ma-confirm h1 { margin-bottom: 16px; }
.ma-confirm .ma-btn { margin-top: 12px; }

/* ---------- Buttons ---------- */
.ma-btn {
    display: inline-block;
    padding: 13px 30px;
    background: var(--ma-red);
    color: #fff;
    clip-path: var(--ma-cut);
    font-family: var(--ma-font-head);
    font-style: italic; font-weight: 800;
    font-size: 21px; line-height: 1.1; letter-spacing: .05em; text-transform: uppercase;
    text-align: center;
    transition: background .15s, transform .15s;
}
.ma-btn:hover { background: var(--ma-ink); color: #fff; }
.ma-btn--block { display: block; width: 100%; }

/* ---------- Sidebar ---------- */
.ma-sidebar { position: sticky; top: 24px; padding-top: 56px; }
@media (max-width: 991.98px) { .ma-sidebar { position: static; padding-top: 48px; } }

.fi-newsletter-cta {
    position: relative; overflow: hidden;
    padding: 28px 24px 26px;
    background: var(--ma-asphalt);
    color: #fff;
    isolation: isolate;
}
.fi-newsletter-cta::before {
    content: ''; position: absolute; z-index: -1; top: -20%; bottom: -20%; right: -30px; width: 90px;
    background: var(--ma-red); transform: skewX(var(--ma-skew));
}
.fi-newsletter-cta__label {
    display: block; margin-bottom: 8px;
    font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ma-signal);
}
.fi-newsletter-cta__title {
    margin: 0 0 12px; padding-right: 34px;
    font-size: 32px; line-height: .98; color: #fff; text-transform: uppercase;
    overflow-wrap: anywhere;
}
.fi-newsletter-cta__text { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: #E4E6EA; padding-right: 20px; }
.fi-newsletter-cta .ma-btn { background: var(--ma-red); }
.fi-newsletter-cta .ma-btn:hover { background: #fff; color: var(--ma-red); }

.ma-sidebar-cats { margin-top: 28px; padding: 22px 24px 14px; background: var(--ma-card); border-top: 4px solid var(--ma-ink); box-shadow: var(--ma-shadow); }
.ma-sidebar-cats-title {
    margin: 0 0 8px;
    font-family: var(--ma-font-head); font-style: italic; font-weight: 800;
    font-size: 26px; text-transform: uppercase; line-height: 1;
}
.ma-sidebar-cats ul { list-style: none; margin: 0; padding: 0; }
.ma-sidebar-cats li + li { border-top: 1px solid var(--ma-line); }
.ma-sidebar-cats a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 0; font-weight: 600; color: var(--ma-ink);
}
.ma-sidebar-cats a::after { content: '→'; color: var(--ma-red); opacity: 0; transform: translateX(-6px); transition: .2s; }
.ma-sidebar-cats a:hover, .ma-sidebar-cats a.active { color: var(--ma-red); }
.ma-sidebar-cats a:hover::after, .ma-sidebar-cats a.active::after { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.ma-footer {
    position: relative;
    margin-top: auto;
    padding: 64px 0 48px;
    background: var(--ma-asphalt);
    color: var(--ma-mist);
    text-align: center;
}
.ma-footer::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px;
    background: linear-gradient(105deg, var(--ma-red) 0 70%, var(--ma-signal) 70% 72%, var(--ma-red) 72%);
}
.ma-footer-logo {
    display: inline-block; line-height: 0;
    padding: 14px 26px;
    background: #fff;
    clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.ma-footer-logo img { height: 62px; width: auto; }
.ma-footer-copy { margin: 26px 0 14px; font-size: 14px; color: var(--ma-mist); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; }
.footer-nav a {
    padding: 6px 14px;
    font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: #fff;
}
.footer-nav a + a { border-left: 2px solid var(--ma-red); }
.footer-nav a:hover { color: var(--ma-signal); }
.ma-footer a:focus-visible { outline-color: var(--ma-signal); }

/* ---------- 404 ---------- */
.ma-layout-page .ma-page h2 { color: var(--ma-red); }

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