:root {
    --page-bg: #101217;
    --panel-bg: #171b22;
    --panel-bg-soft: #1f242d;
    --text: #f3eee5;
    --muted: #c9c0b4;
    --soft: #9f968d;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #d83a32;
    --accent-hover: #f14b3f;
    --sand: #dac7a5;
    --shell: min(1120px, calc(100vw - 32px));
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration-color: rgba(216, 58, 50, 0.65);
    text-underline-offset: 0.18em;
}

a:hover {
    color: #fff;
    text-decoration-color: var(--accent-hover);
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.skip-link {
    position: absolute;
    top: -120px;
    left: 16px;
    z-index: 9999;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
}

.skip-link:focus {
    top: 16px;
}

.site-shell {
    width: var(--shell);
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: #11141a;
}

.race-note {
    background: #2a1112;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.race-note__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 34px;
    color: var(--muted);
    font-size: 0.9rem;
}

.race-note strong {
    color: #fff;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}

.site-brand {
    display: grid;
    min-width: 220px;
    color: var(--text);
    text-decoration: none;
    line-height: 1.2;
}

.site-brand__logo img {
    max-width: 260px;
    max-height: 64px;
    object-fit: contain;
}

.site-brand__name {
    font-size: 1.04rem;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.site-brand__sub {
    color: var(--muted);
    font-size: 0.84rem;
}

.menu,
.footer-menu,
.sidebar-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu li,
.footer-menu li,
.sidebar-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu--main {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 6px;
}

.menu--main a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 750;
    white-space: nowrap;
}

.menu--main a:hover,
.menu--main .current-menu-item > a,
.menu--main .current_page_item > a {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.mobile-nav {
    display: none;
    position: relative;
}

.mobile-nav summary {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 20;
    width: min(330px, calc(100vw - 32px));
    max-height: 70vh;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-bg);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.menu--mobile,
.menu--mobile-secondary {
    display: grid;
    gap: 6px;
}

.menu--mobile-secondary {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.menu--mobile a,
.menu--mobile-secondary a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 750;
}

.menu--mobile a:hover,
.menu--mobile-secondary a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.home-top {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #141820 0%, #0d0f13 100%);
}

.home-top__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: clamp(22px, 4vw, 48px);
    align-items: stretch;
    padding-block: clamp(34px, 5vw, 64px);
}

.home-intro h1 {
    max-width: 780px;
    margin: 0;
    color: #fff8ec;
    font-size: clamp(2.05rem, 4.5vw, 3.55rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.home-intro p:not(.kicker) {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.kicker {
    margin: 0 0 12px;
    color: var(--sand);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}

.button--primary {
    border-color: transparent;
    background: var(--accent);
    color: #fff;
}

.button:hover {
    border-color: rgba(241, 75, 63, 0.55);
    background: rgba(216, 58, 50, 0.16);
}

.button--primary:hover {
    background: var(--accent-hover);
}

.quick-box,
.side-card,
.news-row,
.content-card,
.sidebar-card,
.link-panel,
.content-card--main {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-bg);
}

.quick-box {
    padding: 22px;
}

.quick-box h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 1.08rem;
    line-height: 1.2;
}

.quick-box ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quick-box a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    text-decoration: none;
    font-weight: 750;
}

.quick-box a:hover {
    background: rgba(216, 58, 50, 0.14);
}

.photo-strip {
    padding-block: 24px 0;
    background: var(--page-bg);
}

.photo-strip img {
    width: 100%;
    max-height: 260px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    object-fit: cover;
}

.content-section {
    padding-block: clamp(34px, 5vw, 62px);
}

.content-section--muted {
    background: #141821;
    border-block: 1px solid var(--line);
}

.content-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 24px;
    align-items: start;
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.section-title-row h2,
.section-heading h2,
.link-panel h2,
.sidebar-card h2,
.page-hero h1 {
    margin: 0;
    color: #fff8ec;
    font-size: clamp(1.55rem, 2.5vw, 2.3rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.news-list {
    min-width: 0;
}

.news-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.news-row + .news-row {
    margin-top: 12px;
}

.news-row__date {
    display: grid;
    align-content: center;
    min-height: 76px;
    border-radius: 12px;
    background: rgba(216, 58, 50, 0.12);
    color: var(--sand);
    text-align: center;
    font-weight: 900;
}

.news-row__date span {
    display: block;
    font-size: 1.04rem;
}

.news-row__date small {
    color: var(--muted);
    font-size: 0.78rem;
}

.news-row h3 {
    margin: 0;
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.25;
}

.news-row h3 a {
    text-decoration: none;
}

.news-row__excerpt,
.content-card__excerpt,
.entry-content,
.side-card,
.link-panel,
.sidebar-card {
    color: var(--muted);
}

.news-row__excerpt p {
    margin: 8px 0 0;
}

.side-column {
    display: grid;
    gap: 14px;
}

.side-card {
    padding: 20px;
}

.side-card p {
    margin: 0 0 12px;
}

.side-card p:last-child {
    margin-bottom: 0;
}

.plain-link,
.text-link {
    color: var(--sand);
    font-weight: 850;
    text-decoration: none;
}

.link-grid,
.legacy-grid,
.card-grid,
.link-list-grid {
    display: grid;
    gap: 16px;
}

.link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-grid a {
    display: grid;
    gap: 6px;
    min-height: 108px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-bg);
    color: var(--text);
    text-decoration: none;
}

.link-grid strong {
    font-size: 1.1rem;
    line-height: 1.2;
}

.link-grid span {
    color: var(--muted);
}

.legacy-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legacy-card,
.content-card,
.sidebar-card,
.link-panel {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.legacy-card {
    padding: 20px;
    text-decoration: none;
}

.legacy-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-hover);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legacy-card strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
}

.legacy-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.content-card {
    overflow: hidden;
}

.content-card__media {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.content-card__media img,
.media-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.media-placeholder {
    display: grid;
    place-items: center;
    background: rgba(216, 58, 50, 0.16);
    color: #fff;
    font-weight: 900;
}

.content-card__body {
    padding: 18px;
}

.card-meta {
    margin: 0 0 8px;
    color: var(--sand);
    font-size: 0.82rem;
    font-weight: 750;
}

.content-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.12rem;
    line-height: 1.22;
}

.content-card h3 a {
    text-decoration: none;
}

.content-card__excerpt p {
    margin: 10px 0 0;
}

.link-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    gap: 22px;
    padding: clamp(22px, 4vw, 34px);
}

.link-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-list-grid a,
.sidebar-menu a,
.footer-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    text-decoration: none;
    font-weight: 750;
}

.page-hero {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #151922 0%, #0c0e12 100%);
}

.page-hero__inner {
    padding-block: clamp(30px, 5vw, 54px);
}

.page-hero h1 {
    max-width: 980px;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
}

.section {
    padding-block: clamp(36px, 5vw, 64px);
}

.section--compact {
    padding-block: clamp(28px, 4vw, 46px);
}

.section--muted {
    background: #141821;
    border-block: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section--content {
    padding-block: clamp(34px, 5vw, 62px);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 24px;
    align-items: start;
}

.content-card--main {
    padding: clamp(20px, 4vw, 36px);
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: #fff8ec;
    line-height: 1.18;
}

.entry-content a {
    color: #fff;
    font-weight: 700;
}

.entry-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.entry-content th,
.entry-content td {
    padding: 10px;
    border: 1px solid var(--line);
}

.entry-content img {
    border-radius: 10px;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--soft);
    font-size: 0.92rem;
}

.sidebar-card {
    padding: 20px;
}

.sidebar-card + .sidebar-card {
    margin-top: 14px;
}

.sidebar-menu {
    display: grid;
    gap: 8px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #0c0f14;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 28px;
    padding-block: 36px;
}

.footer-title {
    margin: 0 0 8px;
    color: #fff;
    font-weight: 850;
}

.footer-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 16px 22px;
    border-top: 1px solid var(--line);
    color: var(--soft);
    font-size: 0.88rem;
}

.pagination-wrap,
.nav-links {
    margin-top: 26px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links a,
.nav-links span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
}

.empty-state {
    color: var(--muted);
}

@media (max-width: 980px) {
    .main-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .home-top__grid,
    .content-two-col,
    .content-layout,
    .footer-grid,
    .link-panel {
        grid-template-columns: 1fr;
    }

    .link-grid,
    .legacy-grid,
    .card-grid,
    .card-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    :root {
        --shell: min(100vw - 24px, 1120px);
    }

    .race-note__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        padding-block: 8px;
        line-height: 1.35;
    }

    .header-main {
        min-height: 68px;
    }

    .site-brand {
        min-width: 0;
    }

    .site-brand__sub {
        display: none;
    }

    .home-top__grid {
        padding-block: 28px;
    }

    .home-intro h1 {
        font-size: clamp(1.85rem, 11vw, 2.65rem);
    }

    .photo-strip img {
        max-height: 180px;
    }

    .news-row {
        grid-template-columns: 1fr;
    }

    .news-row__date {
        width: 86px;
        min-height: 58px;
    }

    .link-grid,
    .legacy-grid,
    .card-grid,
    .card-grid--compact,
    .link-list-grid,
    .footer-menu {
        grid-template-columns: 1fr;
    }

    .section-title-row,
    .section-heading,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

.site-header {
    position: relative;
    border-bottom: 1px solid var(--line);
}

.menu--main .is-current > a,
.menu--main .current-menu-item > a,
.menu--main .current_page_item > a,
.menu--mobile .is-current > a,
.menu--mobile .current-menu-item > a,
.menu--mobile .current_page_item > a {
    background: rgba(216, 58, 50, 0.18);
    color: #fff;
    box-shadow: inset 0 -2px 0 var(--accent);
}

.header-main {
    min-height: 68px;
}

.site-brand__name {
    font-size: 1rem;
}

.site-brand__sub {
    font-size: 0.8rem;
}

.race-note__inner {
    min-height: 30px;
    font-size: 0.86rem;
}

.home-summary {
    border-bottom: 1px solid var(--line);
    background: #11141a;
}

.home-summary__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 28px;
    align-items: center;
    padding-block: 34px;
}

.home-summary h1 {
    max-width: 760px;
    margin: 0;
    color: #fff8ec;
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.home-summary p:not(.page-context) {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--muted);
}

.home-note {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    background: var(--panel-bg);
}

.home-note strong,
.home-note span {
    display: block;
}

.home-note strong {
    margin-bottom: 6px;
    color: var(--sand);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-links-section {
    border-bottom: 1px solid var(--line);
    background: #0f1218;
}

.home-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 14px;
}

.home-link-list a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 750;
}

.home-link-list a:hover {
    border-color: rgba(216, 58, 50, 0.55);
    color: #fff;
}

.home-news-section {
    padding-block: 34px 46px;
}

.home-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 24px;
    align-items: start;
}

.home-side-list {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-bg);
}

.home-side-list h2 {
    margin: 0 0 8px;
    color: #fff8ec;
    font-size: 1.2rem;
}

.home-side-list a {
    display: block;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    text-decoration: none;
    font-weight: 740;
}

.home-side-list a:hover {
    background: rgba(216, 58, 50, 0.14);
}

.page-title-band {
    border-bottom: 1px solid var(--line);
    background: #11141a;
}

.page-title-band__inner {
    padding-block: 28px;
}

.page-context {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.88rem;
}

.page-title-band h1 {
    max-width: 900px;
    margin: 0;
    color: #fff8ec;
    font-size: clamp(2rem, 3.2vw, 2.85rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.page-content-section {
    padding-block: 30px 48px;
}

.page-content-layout {
    display: grid;
    gap: 18px;
}

.page-content-card {
    width: min(100%, 940px);
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-bg);
}

.entry-content {
    color: #e5ded4;
    font-size: 1rem;
    line-height: 1.75;
}

.entry-content p {
    margin-top: 0;
    margin-bottom: 1.05rem;
}

.entry-content p:empty {
    display: none;
}

.entry-content h2 {
    margin-top: 1.8rem;
    margin-bottom: 0.7rem;
    font-size: 1.45rem;
}

.entry-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.55rem;
    font-size: 1.18rem;
}

.entry-content strong,
.entry-content b {
    color: #fff3df;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
    border-radius: 8px;
}

.entry-content img.alignright,
.entry-content img[style*="float: right"] {
    float: right;
    max-width: min(260px, 42%);
    margin: 4px 0 16px 24px;
}

.entry-content img.alignleft,
.entry-content img[style*="float: left"] {
    float: left;
    max-width: min(260px, 42%);
    margin: 4px 24px 16px 0;
}

.entry-content::after {
    content: "";
    display: block;
    clear: both;
}

body.page-id-2 .entry-content p:has(img),
body.page-id-117 .entry-content p:has(img) {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

body.page-id-2 .entry-content p:has(img) img,
body.page-id-117 .entry-content p:has(img) img {
    flex: 0 1 180px;
    width: 180px;
    max-width: 100%;
    height: 125px;
    object-fit: cover;
    margin: 0;
}

body.page-id-117 .entry-content img[style*="float"] {
    width: auto;
    height: auto;
    max-height: 210px;
    object-fit: contain;
}

.related-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: min(100%, 940px);
    padding-top: 4px;
}

.related-pages > span {
    margin-right: 4px;
    color: var(--soft);
    font-size: 0.86rem;
    font-weight: 800;
}

.related-pages__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-pages__menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-pages__menu a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 750;
}

.related-pages__menu .is-current > a,
.related-pages__menu .current-menu-item > a,
.related-pages__menu .current_page_item > a,
.related-pages__menu a:hover {
    background: rgba(216, 58, 50, 0.14);
    color: #fff;
}

.site-footer--compact {
    border-top: 1px solid var(--line);
    background: #0c0f14;
}

.footer-compact {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    min-height: 62px;
    color: var(--soft);
    font-size: 0.88rem;
}

.footer-compact nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-compact a {
    color: var(--muted);
    text-decoration: none;
}

.footer-compact a:hover {
    color: #fff;
}

@media (max-width: 980px) {
    .home-summary__grid,
    .home-news-layout {
        grid-template-columns: 1fr;
    }

    .page-content-card,
    .related-pages {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .home-summary__grid,
    .page-title-band__inner {
        padding-block: 22px;
    }

    .home-summary h1,
    .page-title-band h1 {
        font-size: clamp(1.75rem, 10vw, 2.35rem);
    }

    .page-content-card {
        padding: 18px;
    }

    .entry-content {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .entry-content img.alignright,
    .entry-content img.alignleft,
    .entry-content img[style*="float"] {
        float: none;
        width: auto;
        max-width: 100%;
        max-height: none;
        margin: 12px 0;
    }

    body.page-id-2 .entry-content p:has(img) img,
    body.page-id-117 .entry-content p:has(img) img {
        flex-basis: calc(50% - 5px);
        width: calc(50% - 5px);
        height: 110px;
    }

    .footer-compact {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 18px;
    }
}


/* Final layout pass: weniger Landingpage, mehr gewachsene Vereinsseite */
:root {
    --shell: min(1180px, calc(100vw - 40px));
}

.site-header {
    background: #11141a;
}

.header-main {
    min-height: 64px;
}

.site-brand {
    min-width: 260px;
}

.site-brand__name,
.site-brand__sub {
    display: inline;
}

.menu--main {
    gap: 4px;
}

.menu--main a {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.9rem;
}

.menu--main .is-current > a,
.menu--main .current-menu-item > a,
.menu--main .current_page_item > a,
.menu--main a:hover {
    border-color: rgba(216, 58, 50, 0.55);
    background: rgba(216, 58, 50, 0.16);
    box-shadow: none;
}

.home-banner {
    position: relative;
    min-height: clamp(300px, 38vw, 460px);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: #161a20;
}

.home-banner__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95) contrast(1.05);
}

.home-banner__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 12, 16, 0.92) 0%, rgba(10, 12, 16, 0.72) 48%, rgba(10, 12, 16, 0.38) 100%);
}

.home-banner__content {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    min-height: clamp(300px, 38vw, 460px);
    padding-block: 38px;
}

.home-banner__club {
    margin: 0 0 8px;
    color: var(--sand);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-banner h1 {
    max-width: 720px;
    margin: 0;
    color: #fff8ec;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.home-banner p:not(.home-banner__club) {
    max-width: 580px;
    margin: 16px 0 0;
    color: #e6ddd0;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.home-banner__note {
    display: inline-grid;
    gap: 4px;
    width: fit-content;
    max-width: min(560px, 100%);
    margin-top: 24px;
    padding: 12px 15px;
    border-left: 4px solid var(--accent);
    border-radius: 9px;
    background: rgba(17, 20, 26, 0.88);
}

.home-banner__note strong {
    color: var(--sand);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-banner__note span {
    color: #fff8ec;
    font-weight: 760;
}

.home-links-section--compact {
    border-bottom: 1px solid var(--line);
    background: #11141a;
}

.home-link-list {
    justify-content: flex-start;
    padding-block: 12px;
}

.home-link-list a {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.home-news-section {
    padding-block: 30px 44px;
}

.home-news-single {
    max-width: 980px;
}

.section-title-row--plain {
    margin-bottom: 14px;
}

.section-title-row--plain h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.2rem);
}

.news-list--full .news-row {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 15px 16px;
}

.news-row__excerpt p {
    max-width: 820px;
}

.archive-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
    color: var(--soft);
    font-size: 0.9rem;
}

.archive-chip-row span {
    font-weight: 750;
}

.archive-chip-row a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.archive-chip-row a:hover {
    border-color: rgba(216, 58, 50, 0.55);
    color: #fff;
}

.page-title-band__inner {
    padding-block: 24px;
}

.page-title-band h1 {
    font-size: clamp(2rem, 3.4vw, 3rem);
}

.page-content-section {
    padding-block: 28px 44px;
}

.page-content-layout--single {
    display: block;
}

.page-content-card {
    width: min(100%, 980px);
    margin-inline: auto;
    padding: clamp(22px, 3vw, 34px);
}

.entry-content {
    color: #ece5dc;
    font-size: 1.02rem;
    line-height: 1.78;
}

.entry-content img.alignright,
.entry-content img[style*="float: right"] {
    float: right;
    width: auto;
    max-width: min(280px, 38%);
    height: auto;
    margin: 2px 0 18px 24px;
}

.entry-content img.alignleft,
.entry-content img[style*="float: left"] {
    float: left;
    width: auto;
    max-width: min(280px, 38%);
    height: auto;
    margin: 2px 24px 18px 0;
}

body.page-id-2 .page-content-card,
body.page-id-2 .page-content-layout--single {
    width: min(100%, 1180px);
    max-width: 1180px;
}

body.page-id-2 .entry-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
    align-items: stretch;
}

body.page-id-2 .entry-content p {
    margin: 0;
}

body.page-id-2 .entry-content p:not(:has(img)) {
    display: none;
}

body.page-id-2 .entry-content p:has(img),
body.page-id-2 .entry-content p:has(img) a {
    display: block;
}

body.page-id-2 .entry-content img {
    width: 100%;
    height: 155px;
    max-width: none;
    margin: 0;
    border-radius: 9px;
    object-fit: cover;
}

body.page-id-117 .entry-content img[id="Bild8"] {
    float: right;
    max-width: 220px;
    margin: 0 0 18px 24px;
}

body.page-id-117 .entry-content img:not([id="Bild8"]) {
    display: inline-block;
    width: auto;
    max-width: 31%;
    height: auto;
    margin: 10px 8px 0 0;
    vertical-align: top;
}

.related-pages,
.home-side-list,
.home-summary,
.home-note {
    display: none !important;
}

.footer-compact {
    min-height: 50px;
    font-size: 0.84rem;
}

.footer-compact nav {
    gap: 12px;
}

@media (max-width: 980px) {
    .site-brand {
        min-width: 0;
    }

    .home-banner__shade {
        background: rgba(10, 12, 16, 0.76);
    }

    .home-news-single {
        max-width: none;
    }
}

@media (max-width: 640px) {
    :root {
        --shell: min(100vw - 24px, 1180px);
    }

    .home-banner,
    .home-banner__content {
        min-height: 330px;
    }

    .home-banner h1 {
        font-size: clamp(2.15rem, 13vw, 3.2rem);
    }

    .news-list--full .news-row {
        grid-template-columns: 1fr;
    }

    .page-content-card {
        padding: 18px;
    }

    body.page-id-2 .entry-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.page-id-2 .entry-content img {
        height: 120px;
    }

    body.page-id-117 .entry-content img[id="Bild8"],
    .entry-content img.alignright,
    .entry-content img.alignleft,
    .entry-content img[style*="float"] {
        float: none;
        max-width: 100%;
        margin: 12px 0;
    }

    body.page-id-117 .entry-content img:not([id="Bild8"]) {
        max-width: 100%;
    }
}

/* Fast final correction: weniger KI-Landingpage, sauberere Umbrüche, besseres Bild-/Textverhalten */
.menu--main .is-current > a,
.menu--main .current-menu-item > a,
.menu--main .current_page_item > a,
.menu--main a[aria-current="page"] {
    border-color: rgba(216, 58, 50, 0.72);
    background: rgba(216, 58, 50, 0.2);
    color: #fff8ec;
}

.home-banner--simple {
    min-height: clamp(260px, 31vw, 390px);
}

.home-banner--simple .home-banner__content {
    min-height: clamp(260px, 31vw, 390px);
    padding-block: 32px;
}

.home-banner--simple .home-banner__shade {
    background: linear-gradient(90deg, rgba(12, 14, 18, 0.88) 0%, rgba(12, 14, 18, 0.62) 48%, rgba(12, 14, 18, 0.25) 100%);
}

.home-banner--simple h1 {
    max-width: 760px;
    font-size: clamp(2.05rem, 3.8vw, 3.35rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.home-banner--simple p:not(.home-banner__club) {
    max-width: 640px;
    margin-top: 12px;
    text-wrap: pretty;
}

.home-banner--simple .home-banner__note {
    display: none;
}

.race-note__inner span,
.home-banner p,
.entry-content p,
.news-row__excerpt p {
    text-wrap: pretty;
}

.page-title-band__inner {
    padding-block: 20px;
}

.page-title-band h1 {
    max-width: 980px;
    font-size: clamp(1.9rem, 2.8vw, 2.6rem);
    line-height: 1.12;
    text-wrap: balance;
}

.page-content-card {
    width: min(100%, 1020px);
}

.entry-content {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
}

.entry-content p {
    max-width: 76ch;
}

.entry-content img.alignright,
.entry-content img[style*="float: right"] {
    max-width: min(260px, 34%);
}

.entry-content img.alignleft,
.entry-content img[style*="float: left"] {
    max-width: min(260px, 34%);
}

.is-track-page {
    width: min(100%, 1180px);
    padding: 24px;
}

.is-track-page .entry-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.is-track-page .entry-content > * {
    margin: 0 !important;
    max-width: none;
}

.is-track-page .entry-content p:not(:has(img)) {
    display: none;
}

.is-track-page .entry-content a:has(img),
.is-track-page .entry-content p:has(img) {
    display: block;
}

.is-track-page .entry-content img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 150px !important;
    margin: 0 !important;
    border-radius: 10px;
    object-fit: cover;
}

.is-about-page .entry-content p {
    max-width: 78ch;
}

.is-about-page .entry-content img[id="Bild8"],
.is-about-page .entry-content img[style*="float"] {
    float: right;
    width: auto !important;
    max-width: min(240px, 34%) !important;
    height: auto !important;
    margin: 0 0 18px 24px !important;
}

.is-about-page .entry-content img:not([id="Bild8"]):not([style*="float"]) {
    max-width: min(280px, 100%);
}

.archive-chip-row {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
    .home-banner--simple .home-banner__shade {
        background: rgba(12, 14, 18, 0.68);
    }

    .entry-content p {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .home-banner--simple,
    .home-banner--simple .home-banner__content {
        min-height: 300px;
    }

    .home-banner--simple h1 {
        font-size: clamp(2rem, 10vw, 2.65rem);
    }

    .is-track-page {
        padding: 14px;
    }

    .is-track-page .entry-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .is-track-page .entry-content img {
        height: 112px !important;
    }

    .is-about-page .entry-content img[id="Bild8"],
    .is-about-page .entry-content img[style*="float"],
    .entry-content img.alignright,
    .entry-content img.alignleft,
    .entry-content img[style*="float"] {
        float: none;
        max-width: 100% !important;
        margin: 12px 0 16px !important;
    }
}


.race-note {
    background: linear-gradient(90deg, #3a1315 0%, #2a1112 100%);
}

.race-note__inner {
    min-height: 40px;
    color: #fff3df;
    font-size: 0.96rem;
}

.race-note strong {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(216, 58, 50, 0.28);
}

.home-race-section {
    border-bottom: 1px solid var(--line);
    background: #11141a;
}

.home-race-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 16px;
}

.home-race-card > div {
    min-width: 0;
}

.home-race-card__label {
    margin: 0 0 4px;
    color: var(--sand);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-race-card__text {
    max-width: 78ch;
    margin: 0;
    color: #fff8ec;
    font-size: 1.04rem;
    font-weight: 760;
    line-height: 1.45;
    text-wrap: pretty;
}

.home-race-card__link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(216, 58, 50, 0.55);
    border-radius: 999px;
    color: #fff8ec;
    text-decoration: none;
    font-weight: 850;
    background: rgba(216, 58, 50, 0.14);
}

.home-race-card__link:hover {
    background: rgba(216, 58, 50, 0.26);
}

h1, h2, h3, .home-race-card__text, .entry-content p, .news-row__excerpt p {
    overflow-wrap: normal;
    word-break: normal;
}

.entry-content, .news-row__excerpt {
    hyphens: manual;
}

@media (max-width: 760px) {
    .home-race-card {
        display: grid;
        gap: 12px;
    }

    .home-race-card__link {
        width: fit-content;
    }
}

@media (max-width: 520px) {
    .race-note__inner {
        display: grid;
        gap: 4px;
        padding-block: 8px;
    }

    .home-race-card__text {
        font-size: 1rem;
    }
}

/* Hinweis- und Bewegungsfeinschliff: dezente Clubseite, kein KI-Landingpage-Gewitter */
.race-note {
    border-bottom: 1px solid rgba(216, 58, 50, 0.32);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.race-note__inner {
    gap: 12px;
    font-size: 0.98rem;
}

.race-note strong::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 999px;
    background: #ff4d43;
    box-shadow: 0 0 0 5px rgba(216, 58, 50, 0.16);
}

.home-race-section {
    background: linear-gradient(180deg, rgba(216, 58, 50, 0.08), rgba(17, 20, 26, 0.98));
}

.home-race-card {
    position: relative;
    margin-block: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(216, 58, 50, 0.28);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(26, 30, 38, 0.98), rgba(18, 21, 28, 0.98));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.home-race-card::before {
    content: "";
    position: absolute;
    inset: 12px auto 12px 0;
    width: 4px;
    border-radius: 999px;
    background: var(--red);
}

.home-race-card__label {
    color: #ffb6ac;
}

.home-race-card__link,
.home-link-list a,
.news-row,
.archive-chip-row a,
.footer-compact a,
.menu--main a {
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.home-race-card__link:hover,
.home-link-list a:hover,
.archive-chip-row a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(216, 58, 50, 0.14);
}

.news-row:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 58, 50, 0.34);
    background: rgba(28, 32, 41, 0.98);
}

.menu--main a:hover,
.menu--main .is-current > a {
    box-shadow: 0 8px 20px rgba(216, 58, 50, 0.12);
}

.home-banner__image {
    transform-origin: center;
}

.motion-ready .home-race-card,
.motion-ready .home-link-list a,
.motion-ready .news-row,
.motion-ready .page-content-card,
.motion-ready .archive-chip-row,
.motion-ready .footer-compact {
    opacity: 0;
    transform: translateY(12px);
}

.motion-ready .home-race-card.is-visible,
.motion-ready .home-link-list a.is-visible,
.motion-ready .news-row.is-visible,
.motion-ready .page-content-card.is-visible,
.motion-ready .archive-chip-row.is-visible,
.motion-ready .footer-compact.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 440ms ease, transform 440ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.motion-ready .home-link-list a:nth-child(2),
.motion-ready .news-row:nth-child(2) {
    transition-delay: 40ms;
}

.motion-ready .home-link-list a:nth-child(3),
.motion-ready .news-row:nth-child(3) {
    transition-delay: 80ms;
}

.motion-ready .home-link-list a:nth-child(4),
.motion-ready .news-row:nth-child(4) {
    transition-delay: 120ms;
}

.motion-ready .home-link-list a:nth-child(5),
.motion-ready .news-row:nth-child(5) {
    transition-delay: 160ms;
}

.motion-ready .home-banner__image {
    animation: mcdemminBannerMove 18s ease-in-out infinite alternate;
}

.motion-ready .race-note strong::before {
    animation: mcdemminNoticePulse 2.8s ease-in-out infinite;
}

@keyframes mcdemminBannerMove {
    from {
        transform: scale(1.015) translate3d(0, 0, 0);
    }

    to {
        transform: scale(1.065) translate3d(-12px, 0, 0);
    }
}

@keyframes mcdemminNoticePulse {
    0%, 100% {
        box-shadow: 0 0 0 5px rgba(216, 58, 50, 0.14);
    }

    50% {
        box-shadow: 0 0 0 9px rgba(216, 58, 50, 0.26);
    }
}

@media (max-width: 760px) {
    .home-race-card {
        margin-block: 10px;
        padding: 16px 18px;
    }

    .race-note__inner {
        font-size: 0.93rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-race-card__link,
    .home-link-list a,
    .news-row,
    .archive-chip-row a,
    .footer-compact a,
    .menu--main a,
    .home-banner__image,
    .race-note strong::before {
        animation: none !important;
        transition: none !important;
    }
}


.track-page-intro {
    margin-bottom: 24px;
}

.track-slider {
    overflow: hidden;
}

.track-slider__top {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.track-slider__top h2 {
    margin: 0;
    color: #fff8ec;
    font-size: clamp(1.55rem, 2.5vw, 2.25rem);
    line-height: 1.1;
}

.track-slider__controls {
    display: flex;
    gap: 8px;
}

.track-slider__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: #20252e;
    color: #fff8ec;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.track-slider__button:hover,
.track-slider__button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(216, 58, 50, 0.65);
    background: rgba(216, 58, 50, 0.22);
}

.track-slider__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(216, 58, 50, 0.75) rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.track-slider__rail {
    display: flex;
    gap: 18px;
    align-items: stretch;
    padding: 2px 2px 12px;
}

.track-slide {
    flex: 0 0 min(78vw, 820px);
    min-width: 0;
    margin: 0;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    background: #11141a;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.track-slide img {
    display: block;
    width: 100% !important;
    height: clamp(300px, 42vw, 520px) !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
}

.track-slide figcaption {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    color: #e6ddd0;
    font-weight: 750;
}

.track-slider__hint {
    margin: 8px 0 0;
    color: var(--soft);
    font-size: 0.92rem;
}

.is-track-page .entry-content {
    display: block;
}

.is-track-page .entry-content p:not(:has(img)) {
    display: block;
}

.is-track-page .entry-content > * {
    max-width: 76ch;
}

.is-track-page .entry-content img {
    height: auto !important;
}

.motion-ready .track-slide {
    opacity: 0;
    transform: translateY(10px);
}

.motion-ready .track-slide.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 440ms ease, transform 440ms ease;
}

.motion-ready .track-slide:nth-child(2) {
    transition-delay: 40ms;
}

.motion-ready .track-slide:nth-child(3) {
    transition-delay: 80ms;
}

@media (max-width: 760px) {
    .track-slider__top {
        align-items: start;
        flex-direction: column;
    }

    .track-slide {
        flex-basis: min(88vw, 620px);
    }

    .track-slide img {
        height: clamp(220px, 58vw, 360px) !important;
    }
}

@media (max-width: 520px) {
    .track-slider__button {
        width: 40px;
        height: 40px;
    }

    .track-slider__rail {
        gap: 12px;
    }

    .track-slide {
        flex-basis: 86vw;
    }
}


/* Reduzierte Akzentfarbe und Termin-Link entfernt */
:root {
    --accent: #b94a3f;
    --accent-hover: #d15b4e;
}

.race-note {
    background: #171a21;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.race-note__inner {
    min-height: 36px;
    color: #e2d9cd;
    font-size: 0.93rem;
}

.race-note strong {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #d8c7aa;
}

.race-note strong::before {
    display: none;
}

.menu--main a {
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
}

.menu--main a:hover,
.menu--main .is-current > a,
.menu--main .current-menu-item > a,
.menu--main .current_page_item > a,
.menu--main a[aria-current="page"] {
    background: transparent;
    color: #fff8ec;
    box-shadow: inset 0 -2px 0 rgba(185, 74, 63, 0.85);
}

.home-race-section {
    background: #11141a;
}

.home-race-card {
    margin-block: 10px;
    border-color: rgba(255, 255, 255, 0.12);
    background: #171b22;
    box-shadow: none;
}

.home-race-card::before {
    display: none;
}

.home-race-card__label {
    color: #d8c7aa;
}

.home-race-card__badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: #d8c7aa;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.home-race-card__link {
    display: none;
}

.news-row__date {
    background: rgba(255, 255, 255, 0.06);
    color: #d8c7aa;
}

.home-link-list a:hover,
.archive-chip-row a:hover,
.news-row:hover {
    border-color: rgba(185, 74, 63, 0.32);
    box-shadow: none;
}

.motion-ready .race-note strong::before {
    animation: none;
}

@media (max-width: 760px) {
    .home-race-card__badge {
        width: fit-content;
    }
}


/* Content-Fix: weniger Rot, kein doppelter Hinweis, bessere Archive/Footer, keine leeren MC-Bildflächen */
:root {
    --accent: #a9574d;
    --accent-hover: #c46a5e;
    --sand: #d2bea0;
}

.race-note {
    background: #171b22;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.race-note__inner {
    min-height: 36px;
    color: #e5dccf;
}

.race-note strong {
    color: #d8c7aa;
    letter-spacing: 0.08em;
}

.race-note strong::before {
    display: none;
}

.menu--main .is-current > a,
.menu--main .current-menu-item > a,
.menu--main .current_page_item > a,
.menu--main a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 -2px 0 #d2bea0;
    color: #fff8ec;
}

.menu--main a:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 -2px 0 rgba(210, 190, 160, 0.55);
}

.home-banner--simple h1 {
    max-width: 680px;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.08;
    text-wrap: balance;
}

.home-banner--simple p:not(.home-banner__club) {
    max-width: 560px;
}

.home-race-section {
    display: none !important;
}

.home-links-section {
    background: #11141a;
}

.home-link-list {
    justify-content: flex-start;
    padding-block: 14px;
}

.home-link-list a {
    min-height: 36px;
    border-color: rgba(255, 255, 255, 0.12);
    background: #171b22;
    color: #eadfce;
}

.home-link-list a:hover {
    transform: none;
    border-color: rgba(210, 190, 160, 0.5);
    background: #1d222b;
    box-shadow: none;
}

.news-row {
    border-color: rgba(255, 255, 255, 0.11);
}

.news-row:hover {
    transform: none;
    border-color: rgba(210, 190, 160, 0.35);
    box-shadow: none;
}

.news-row__date {
    background: rgba(255, 255, 255, 0.06);
    color: #d8c7aa;
}

.content-card--text-only .content-card__body {
    min-height: 0;
}

.card-grid .content-card--text-only {
    display: block;
}

.media-placeholder,
.content-card__media:empty {
    display: none !important;
}

.archive-chip-row {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-chip-row span {
    color: #d8c7aa;
}

.archive-chip-row a {
    background: #171b22;
    border-color: rgba(255, 255, 255, 0.12);
}

.archive-chip-row a:hover {
    transform: none;
    border-color: rgba(210, 190, 160, 0.45);
    box-shadow: none;
}

.page-content-card {
    max-width: 940px;
}

.entry-content {
    line-height: 1.72;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
}

.entry-content p {
    text-wrap: pretty;
}

.about-image-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.about-image-strip a {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: #11141a;
}

.about-image-strip img {
    width: 100%;
    height: 150px !important;
    object-fit: cover;
}

.site-footer--useful {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #11141a;
}

.footer-useful {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) repeat(3, minmax(170px, 0.9fr));
    gap: 24px;
    padding-block: 30px 22px;
}

.footer-useful__brand {
    display: grid;
    gap: 5px;
    align-content: start;
    color: #e8decd;
}

.footer-useful__brand strong {
    color: #fff8ec;
}

.footer-useful__brand span {
    color: #a9a094;
    font-size: 0.92rem;
}

.footer-useful__nav {
    display: grid;
    gap: 7px;
    align-content: start;
}

.footer-useful__nav h2 {
    margin: 0 0 5px;
    color: #d8c7aa;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-useful__nav a {
    color: #e6dccd;
    text-decoration: none;
    font-size: 0.94rem;
}

.footer-useful__nav a:hover {
    color: #fff8ec;
    text-decoration: underline;
    text-decoration-color: rgba(210, 190, 160, 0.65);
}

.footer-bottom-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #9f968d;
    font-size: 0.86rem;
}

@media (max-width: 980px) {
    .footer-useful {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-link-list {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer-useful {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-bottom-line {
        display: grid;
    }
}


/* Patch 1.0.7: Hinweis wieder als rote Leiste, keine Gästebuch-Links, Quicklinks ruhiger, Animation zurück */
.race-note {
    background: linear-gradient(90deg, #3b1113 0%, #261014 100%) !important;
    border-bottom: 1px solid rgba(216, 58, 50, 0.38) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

.race-note__inner {
    min-height: 38px;
    color: #fff1df;
}

.race-note strong {
    color: #fff8ec;
    letter-spacing: 0.12em;
}

.race-note strong::before {
    display: none !important;
}

.home-links-section {
    background: #101319;
}

.home-link-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 190, 160, 0.55) transparent;
    padding-block: 11px;
}

.home-link-list a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 7px;
}

.home-banner--simple {
    border-bottom: 0;
}

.home-link-list a:hover,
.archive-chip-row a:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(210, 190, 160, 0.65) !important;
    background: #222733 !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16) !important;
}

.news-row:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(210, 190, 160, 0.42) !important;
    background: #1b2029 !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18) !important;
}

.menu--main a:hover,
.menu--main .is-current > a,
.menu--main .current-menu-item > a,
.menu--main .current_page_item > a,
.menu--main a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 #d2bea0 !important;
}

.home-link-list a,
.news-row,
.archive-chip-row a,
.footer-useful__nav a,
.menu--main a {
    transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease, color 170ms ease, box-shadow 170ms ease;
}

.footer-useful__nav a:hover {
    transform: translateX(2px);
}

.motion-ready .home-link-list a,
.motion-ready .news-row,
.motion-ready .page-content-card,
.motion-ready .archive-chip-row,
.motion-ready .footer-useful {
    opacity: 0;
    transform: translateY(10px);
}

.motion-ready .home-link-list a.is-visible,
.motion-ready .news-row.is-visible,
.motion-ready .page-content-card.is-visible,
.motion-ready .archive-chip-row.is-visible,
.motion-ready .footer-useful.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 420ms ease, transform 420ms ease, border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease;
}

.motion-ready .home-link-list a:nth-child(2),
.motion-ready .news-row:nth-child(2) {
    transition-delay: 35ms;
}

.motion-ready .home-link-list a:nth-child(3),
.motion-ready .news-row:nth-child(3) {
    transition-delay: 70ms;
}

.motion-ready .home-link-list a:nth-child(4),
.motion-ready .news-row:nth-child(4) {
    transition-delay: 105ms;
}

.motion-ready .home-link-list a:nth-child(5),
.motion-ready .news-row:nth-child(5) {
    transition-delay: 140ms;
}

.motion-ready .home-banner__image {
    animation: mcdemminBannerMove 20s ease-in-out infinite alternate;
}

@media (max-width: 980px) {
    .home-link-list {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-link-list a,
    .news-row,
    .archive-chip-row a,
    .footer-useful__nav a,
    .menu--main a,
    .home-banner__image {
        animation: none !important;
        transition: none !important;
    }
}

/* Patch: Bilder auf „Wir über uns“ bleiben an der im Editor gesetzten Stelle. */
.is-about-page .entry-content--manual-images img {
    max-width: min(320px, 100%);
    height: auto;
    border-radius: 10px;
}

.is-about-page .entry-content--manual-images img.alignright,
.is-about-page .entry-content--manual-images img[style*="float: right"] {
    float: right;
    margin: 4px 0 18px 24px;
}

.is-about-page .entry-content--manual-images img.alignleft,
.is-about-page .entry-content--manual-images img[style*="float: left"] {
    float: left;
    margin: 4px 24px 18px 0;
}

.is-about-page .entry-content--manual-images p::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 700px) {
    .is-about-page .entry-content--manual-images img.alignright,
    .is-about-page .entry-content--manual-images img.alignleft,
    .is-about-page .entry-content--manual-images img[style*="float"] {
        float: none !important;
        display: block;
        max-width: 100%;
        margin: 16px 0;
    }
}


.entry-content--manual-images {
    max-width: 82ch;
}

.entry-content--manual-images p {
    max-width: 78ch;
}

.entry-content--manual-images figure,
.entry-content--manual-images .wp-block-image,
.entry-content--manual-images .wp-block-media-text {
    margin-top: 1.35rem;
    margin-bottom: 1.45rem;
}

.entry-content--manual-images .wp-block-image {
    clear: both;
}

.entry-content--manual-images .wp-block-image img {
    display: block;
    width: auto;
    max-width: min(100%, 760px);
    height: auto;
    margin-inline: auto;
    object-fit: contain;
}

.entry-content--manual-images .wp-block-image figcaption {
    max-width: 760px;
    margin: 8px auto 0;
    color: var(--soft);
    font-size: 0.9rem;
    line-height: 1.45;
}

.entry-content--manual-images .wp-block-media-text {
    display: grid;
    grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 30px);
    align-items: center;
    max-width: 980px;
    padding: clamp(16px, 2.5vw, 24px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.entry-content--manual-images .wp-block-media-text.has-media-on-the-right {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 36%);
}

.entry-content--manual-images .wp-block-media-text__media {
    margin: 0;
}

.entry-content--manual-images .wp-block-media-text__media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 340px;
    margin: 0;
    object-fit: contain;
}

.entry-content--manual-images .wp-block-media-text__content {
    padding: 0;
}

.entry-content--manual-images .wp-block-media-text__content > *:first-child {
    margin-top: 0;
}

.entry-content--manual-images .wp-block-media-text__content > *:last-child {
    margin-bottom: 0;
}

.is-about-page .entry-content--manual-images img,
body.page-id-117 .entry-content--manual-images img,
body.page-id-117 .entry-content--manual-images img:not([id="Bild8"]),
body.page-id-117 .entry-content--manual-images img[style*="float"] {
    float: none !important;
    max-width: 100%;
    margin: 0;
}

.is-about-page .entry-content--manual-images img.alignleft,
.is-about-page .entry-content--manual-images img.alignright,
.is-about-page .entry-content--manual-images img[style*="float: left"],
.is-about-page .entry-content--manual-images img[style*="float: right"] {
    float: none !important;
    display: block;
    max-width: min(100%, 760px) !important;
    margin: 1.25rem auto !important;
}

@media (max-width: 760px) {
    .entry-content--manual-images {
        max-width: none;
    }

    .entry-content--manual-images .wp-block-media-text,
    .entry-content--manual-images .wp-block-media-text.has-media-on-the-right {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .entry-content--manual-images .wp-block-media-text__media img {
        max-height: none;
    }
}
