/**
 * Marktplatz-Hubs /oldtimer-verkaufen/ + /oldtimer-kaufen/ (2026-08-22)
 * plus Intro-Block auf /kleinanzeigen/ (Page 794).
 *
 * Mobile-first; Breakpoints gedacht fuer 390 / 820 / 1440 / 1920:
 *   - < 820px: eine Spalte, Hero gestapelt, Schritte untereinander, 1 Karte je Reihe
 *   - ab 820px: Hero 2-spaltig, Schritte 3 Karten, Anzeigen 2 je Reihe
 *   - ab 1200px: Anzeigen 3 je Reihe, Wrap 1200px
 *   - ab 1600px: Wrap 1320px (1920er Desktops)
 *
 * Listeo-Schutz (Pre-Flight inspect_listeo_conflict.py auf /kleinanzeigen/
 * .listing-card-container-nl, 2026-08-22): Listeo setzt auf der Karte
 * container-type:inline-size + width:100% und steuert die -nl-Kartenform per
 * @container (<550px Bild oben, <800px Details untereinander). Unsere Tiles sind
 * in jeder Stufe < 550px breit -> Karten erscheinen wie auf den Kategorie-Hubs.
 * Alle Selektoren o4u-mh-* prefixed, kein !important, Listeo-Karteninhalt
 * unangetastet (.o4u-mh-tile umrahmt nur). Listeo: html { font-size: 62.5% } -> nur px.
 * Schrift: --o4u-font kommt site-weit aus mu-plugins/o4u-design-system.php.
 * Grid-Spalten immer minmax(0, 1fr), damit breite Kartenbilder nicht aufblasen.
 */

.o4u-mh {
    --o4u-mh-bg: #fff;
    --o4u-mh-bg-off: #f5f5f7;
    --o4u-mh-bg-dark: #1d1d1f;
    --o4u-mh-text: #1d1d1f;
    --o4u-mh-text-light: #f5f5f7;
    --o4u-mh-muted: #6e6e73;
    --o4u-mh-muted-light: #b8b8c0;
    --o4u-mh-accent: #fe6e0e;
    --o4u-mh-accent-hover: #ff8a3d;
    --o4u-mh-border: #d2d2d7;
    --o4u-mh-border-soft: #ebebef;
    --o4u-mh-radius: 16px;
    --o4u-mh-radius-pill: 980px;
    --o4u-mh-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    --o4u-mh-shadow-lg: 0 20px 44px rgba(0, 0, 0, 0.12);
    --o4u-mh-pad: 56px;
    --o4u-mh-font: var(--o4u-font, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif);

    font-family: var(--o4u-mh-font);
    color: var(--o4u-mh-text);
    background: var(--o4u-mh-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}
.o4u-mh *,
.o4u-mh *::before,
.o4u-mh *::after {
    box-sizing: border-box;
}

.o4u-mh-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.o4u-mh-wrap--narrow {
    max-width: 820px;
}

.o4u-mh section {
    padding: var(--o4u-mh-pad) 0;
}
.o4u-mh h1,
.o4u-mh h2,
.o4u-mh h3 {
    font-family: var(--o4u-mh-font);
    color: inherit;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin: 0 0 16px;
}
.o4u-mh h1 {
    font-size: 34px;
    font-weight: 700;
}
.o4u-mh h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}
.o4u-mh h3 {
    font-size: 19px;
    font-weight: 600;
}
.o4u-mh p {
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 16px;
}
.o4u-mh a {
    color: var(--o4u-mh-accent);
    text-decoration: none;
}
.o4u-mh a:hover,
.o4u-mh a:focus {
    color: var(--o4u-mh-accent-hover);
    text-decoration: underline;
}

/* ── Buttons ─────────────────────────────────────────── */
.o4u-mh-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.o4u-mh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: var(--o4u-mh-radius-pill);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
        transform 0.2s ease;
}
.o4u-mh a.o4u-mh-btn,
.o4u-mh a.o4u-mh-btn:hover,
.o4u-mh a.o4u-mh-btn:focus {
    text-decoration: none;
}
.o4u-mh-btn--primary {
    background: var(--o4u-mh-accent);
    color: #fff;
}
.o4u-mh a.o4u-mh-btn--primary {
    color: #fff;
}
.o4u-mh a.o4u-mh-btn--primary:hover,
.o4u-mh a.o4u-mh-btn--primary:focus {
    background: var(--o4u-mh-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}
.o4u-mh-btn--ghost {
    background: transparent;
    border-color: currentColor;
}
.o4u-mh a.o4u-mh-btn--ghost {
    color: inherit;
}
.o4u-mh a.o4u-mh-btn--ghost:hover,
.o4u-mh a.o4u-mh-btn--ghost:focus {
    background: rgba(0, 0, 0, 0.04);
    color: inherit;
}

/* ── Hero (dunkel) ───────────────────────────────────── */
.o4u-mh-hero {
    background: var(--o4u-mh-bg-dark);
    color: var(--o4u-mh-text-light);
}
.o4u-mh-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}
.o4u-mh-kicker {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--o4u-mh-accent);
    margin: 0 0 12px;
}
.o4u-mh-hero .o4u-mh-lead {
    font-size: 18px;
    color: var(--o4u-mh-muted-light);
    max-width: 620px;
}
.o4u-mh-hero a {
    color: var(--o4u-mh-text-light);
}
.o4u-mh-hero a.o4u-mh-btn--ghost {
    color: var(--o4u-mh-text-light);
    border-color: rgba(255, 255, 255, 0.45);
}
.o4u-mh-hero a.o4u-mh-btn--ghost:hover,
.o4u-mh-hero a.o4u-mh-btn--ghost:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Kennzahlen-Band (verkaufen) */
.o4u-mh-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--o4u-mh-radius);
    background: rgba(255, 255, 255, 0.04);
}
.o4u-mh-kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.o4u-mh-kpi-num {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
}
.o4u-mh-kpi-label {
    font-size: 14px;
    color: var(--o4u-mh-muted-light);
}
.o4u-mh-kpi-src {
    grid-column: 1 / -1;
    font-size: 12px;
    color: var(--o4u-mh-muted-light);
    margin: 4px 0 0;
    line-height: 1.4;
}

/* Chips (Kategorien im Hero, Haendler-Regionen) */
.o4u-mh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.o4u-mh-chips li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.o4u-mh-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: var(--o4u-mh-radius-pill);
    border: 1px solid var(--o4u-mh-border);
    background: var(--o4u-mh-bg);
    color: var(--o4u-mh-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.o4u-mh a.o4u-mh-chip {
    color: var(--o4u-mh-text);
}
.o4u-mh a.o4u-mh-chip:hover,
.o4u-mh a.o4u-mh-chip:focus {
    border-color: var(--o4u-mh-accent);
    color: var(--o4u-mh-accent);
    text-decoration: none;
}
.o4u-mh-chip-n {
    color: var(--o4u-mh-muted);
    font-weight: 400;
}
.o4u-mh-hero .o4u-mh-chip,
.o4u-mh-hero a.o4u-mh-chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--o4u-mh-text-light);
}
.o4u-mh-hero a.o4u-mh-chip:hover,
.o4u-mh-hero a.o4u-mh-chip:focus {
    border-color: var(--o4u-mh-accent);
    color: #fff;
}
.o4u-mh-hero .o4u-mh-chip-n {
    color: var(--o4u-mh-muted-light);
}

/* ── Schritte (verkaufen) ────────────────────────────── */
.o4u-mh-steps {
    background: var(--o4u-mh-bg-off);
}
.o4u-mh-steps-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 24px;
}
.o4u-mh-step {
    background: var(--o4u-mh-bg);
    border-radius: var(--o4u-mh-radius);
    box-shadow: var(--o4u-mh-shadow);
    padding: 24px;
    min-width: 0;
}
.o4u-mh-step h3 {
    margin-bottom: 10px;
}
.o4u-mh-step p {
    margin: 0;
    color: var(--o4u-mh-muted);
    font-size: 16px;
}
.o4u-mh-steps-cta {
    margin: 28px 0 0;
}

/* ── Anzeigen-Raster (Listeo-Karten) ─────────────────── */
.o4u-mh-count {
    color: var(--o4u-mh-muted);
    margin-bottom: 20px;
}
.o4u-mh-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
.o4u-mh-tile {
    min-width: 0;
    background: var(--o4u-mh-bg);
    border-radius: var(--o4u-mh-radius);
    overflow: hidden;
    box-shadow: var(--o4u-mh-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.o4u-mh-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--o4u-mh-shadow-lg);
}
/* Listeo-Karte fuellt das Tile; Bewertung/Preis am Kartenboden (wie Cat-Hub). */
.o4u-mh-tile .listing-card-container-nl,
.o4u-mh-tile .listing-item-container {
    width: 100%;
    height: 100%;
}
.o4u-mh-tile .listing-card-nl {
    height: 100%;
}
.o4u-mh-tile a.listing-details-nl {
    flex: 1 1 auto;
}
.o4u-mh-tile .details-sidebar-col-nl {
    margin-top: auto;
}
.o4u-mh-tile a,
.o4u-mh-tile a:hover,
.o4u-mh-tile a:focus {
    text-decoration: none;
}
.o4u-mh-tile-fallback {
    display: block;
    padding: 24px;
}
.o4u-mh-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--o4u-mh-muted);
    background: var(--o4u-mh-bg-off);
    border-radius: var(--o4u-mh-radius);
}
.o4u-mh-more {
    margin: 24px 0 0;
    font-weight: 600;
}

/* ── Preis / Haendler / Ratgeber ─────────────────────── */
.o4u-mh-preis {
    background: var(--o4u-mh-bg-off);
}
.o4u-mh-haendler {
    background: var(--o4u-mh-bg-off);
}
.o4u-mh-haendler .o4u-mh-chips {
    margin-top: 8px;
}
.o4u-mh-tipp-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    border-top: 1px solid var(--o4u-mh-border-soft);
}
.o4u-mh-tipp {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--o4u-mh-border-soft);
    font-size: 17px;
    line-height: 1.45;
}
.o4u-mh-tipp a {
    color: var(--o4u-mh-text);
    font-weight: 500;
}
.o4u-mh-tipp a:hover,
.o4u-mh-tipp a:focus {
    color: var(--o4u-mh-accent);
}
.o4u-mh-tipp-sub {
    display: block;
    font-size: 14px;
    color: var(--o4u-mh-muted);
    margin-top: 2px;
}
.o4u-mh-tipp--featured {
    padding: 18px 20px;
    margin-bottom: 8px;
    background: #fff8ee;
    border: 1px solid #ffd9b8;
    border-radius: var(--o4u-mh-radius);
    font-size: 18px;
}
.o4u-mh-tipp--featured a {
    font-weight: 600;
}

/* ── FAQ (native details) ────────────────────────────── */
.o4u-mh-faq {
    background: var(--o4u-mh-bg);
}
.o4u-mh-faq-item {
    border-top: 1px solid var(--o4u-mh-border-soft);
    padding: 4px 0;
}
.o4u-mh-faq-item:last-of-type {
    border-bottom: 1px solid var(--o4u-mh-border-soft);
}
.o4u-mh-faq-q {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding: 18px 44px 18px 0;
    outline: none;
}
.o4u-mh-faq-q::-webkit-details-marker {
    display: none;
}
.o4u-mh-faq-q h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}
.o4u-mh-faq-q::after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    color: var(--o4u-mh-muted);
    transition: color 0.2s ease;
}
.o4u-mh-faq-item[open] .o4u-mh-faq-q::after {
    content: "−";
    color: var(--o4u-mh-accent);
}
.o4u-mh-faq-q:focus-visible h3 {
    color: var(--o4u-mh-accent);
}
.o4u-mh-faq-a {
    padding: 0 0 18px;
    color: var(--o4u-mh-muted);
}
.o4u-mh-faq-a p {
    margin: 0 0 12px;
}
.o4u-mh-faq-a p:last-child {
    margin-bottom: 0;
}

/* ── Intro auf /kleinanzeigen/ (Page 794) ────────────── */
.o4u-mh-intro {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    background: #f5f5f7;
    border-radius: 14px;
}
.o4u-mh-intro p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #1d1d1f;
}
.o4u-mh-intro a {
    color: #fe6e0e;
    font-weight: 600;
    text-decoration: none;
}
.o4u-mh-intro a:hover,
.o4u-mh-intro a:focus {
    text-decoration: underline;
}

/* ── Breakpoints ─────────────────────────────────────── */
@media (min-width: 820px) {
    .o4u-mh {
        --o4u-mh-pad: 72px;
    }
    .o4u-mh h1 {
        font-size: 44px;
    }
    .o4u-mh h2 {
        font-size: 32px;
    }
    .o4u-mh-hero-inner {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        gap: 48px;
    }
    .o4u-mh-steps-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .o4u-mh-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1200px) {
    .o4u-mh {
        --o4u-mh-pad: 88px;
    }
    .o4u-mh h1 {
        font-size: 52px;
    }
    .o4u-mh-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }
}
@media (min-width: 1600px) {
    .o4u-mh-wrap {
        max-width: 1320px;
    }
}

/* Touch: klickbare Elemente mindestens 16px Schrift (iOS-Zoom-Regel).
   Eingabefelder gibt es hier keine; die Regel sichert Chips/Buttons ab. */
@media (hover: none) and (pointer: coarse) {
    .o4u-mh-chip,
    .o4u-mh-btn {
        font-size: 16px;
    }
}
