/* =============================================================
   MD-Handel · Reifen-Großhandel – modernes Shop-Grundlayout
   ============================================================= */
:root {
    --mdh-navy: #0f172a;       /* primär dunkel */
    --mdh-navy-2: #1e293b;
    --mdh-accent: #ff6a00;     /* signal-orange */
    --mdh-accent-dark: #e85d00;
    --mdh-ink: #1f2937;
    --mdh-muted: #64748b;
    --mdh-line: #e5e9f0;
    --mdh-bg: #f4f6fa;
    --mdh-card: #ffffff;
    --mdh-radius: 14px;
    --mdh-shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
    --mdh-shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, .15);
}

* { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    color: var(--mdh-ink);
    background: var(--mdh-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1 0 auto; }

a { color: var(--mdh-accent-dark); text-decoration: none; }
a:hover { color: var(--mdh-accent); }

.mdh-ico { width: 1.15em; height: 1.15em; vertical-align: -0.18em; }

/* ---------- Topbar ---------- */
.mdh-topbar {
    background: var(--mdh-navy);
    color: #cbd5e1;
    font-size: .82rem;
    padding: .45rem 0;
}
.mdh-topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.mdh-topbar__item .mdh-ico { color: var(--mdh-accent); }

/* ---------- Header ---------- */
.mdh-header { background: #fff; box-shadow: var(--mdh-shadow-sm); position: sticky; top: 0; z-index: 1020; }
.mdh-header__row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .9rem 0;
}

.mdh-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--mdh-navy); }
.mdh-brand:hover { color: var(--mdh-navy); }
.mdh-brand__mark {
    background: var(--mdh-accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 12px;
    letter-spacing: -.5px;
    box-shadow: 0 6px 14px -4px rgba(255, 106, 0, .6);
}
.mdh-brand__text { font-weight: 800; font-size: 1.35rem; line-height: 1; display: flex; flex-direction: column; }
.mdh-brand__text small { font-weight: 500; font-size: .68rem; color: var(--mdh-muted); letter-spacing: .5px; text-transform: uppercase; margin-top: 3px; }
.mdh-brand--light, .mdh-brand--light .mdh-brand__text { color: #fff; }

/* Search */
.mdh-search { flex: 1; max-width: 560px; display: flex; }
.mdh-search__input {
    flex: 1;
    border: 2px solid var(--mdh-line);
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: .7rem 1rem;
    font-size: .95rem;
    outline: none;
    transition: border-color .15s;
}
.mdh-search__input:focus { border-color: var(--mdh-accent); }
.mdh-search__btn {
    border: none;
    background: var(--mdh-navy);
    color: #fff;
    padding: 0 1.1rem;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: background .15s;
}
.mdh-search__btn:hover { background: var(--mdh-accent); }

.mdh-header__actions { display: flex; gap: .35rem; }
.mdh-action {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--mdh-navy);
    padding: .4rem .65rem;
    border-radius: 10px;
    font-size: .72rem;
    transition: background .15s, color .15s;
}
.mdh-action:hover { background: var(--mdh-bg); color: var(--mdh-accent-dark); }
.mdh-action .mdh-ico { width: 1.4rem; height: 1.4rem; }
.mdh-action__badge {
    position: absolute; top: 0; right: 4px;
    background: var(--mdh-accent);
    color: #fff;
    font-size: .65rem; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: grid; place-items: center;
    padding: 0 4px;
}

/* ---------- Navigation ---------- */
.mdh-nav { background: var(--mdh-navy); }
.mdh-nav .container { display: flex; align-items: center; }
.mdh-nav__toggle {
    display: none;
    background: none; border: none; color: #fff;
    font-weight: 600; padding: .8rem 0; cursor: pointer;
    align-items: center; gap: .5rem;
}
.mdh-nav__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; width: 100%;
}
.mdh-nav__list > li.ms-lg-auto { margin-left: auto; }
.mdh-nav__list a {
    display: block;
    color: #e2e8f0;
    padding: .85rem 1rem;
    font-weight: 600;
    font-size: .92rem;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s;
}
.mdh-nav__list a:hover { color: #fff; border-bottom-color: var(--mdh-accent); }

/* ---------- Hero ---------- */
.mdh-hero {
    background: linear-gradient(120deg, var(--mdh-navy) 0%, var(--mdh-navy-2) 60%, #334155 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.mdh-hero::after {
    content: ""; position: absolute; right: -120px; top: -80px;
    width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,106,0,.35), transparent 65%);
}
.mdh-hero__inner { position: relative; z-index: 1; padding: 4rem 0; }
.mdh-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; line-height: 1.1; }
.mdh-hero p.lead { color: #cbd5e1; font-size: 1.1rem; max-width: 30rem; }
.mdh-hero__badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,106,0,.15); color: var(--mdh-accent);
    border: 1px solid rgba(255,106,0,.4);
    padding: .35rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
    margin-bottom: 1.2rem;
}

/* Größen-Finder */
.mdh-finder {
    background: #fff; color: var(--mdh-ink);
    border-radius: var(--mdh-radius);
    box-shadow: var(--mdh-shadow);
    padding: 1.5rem;
}
.mdh-finder h3 { font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem; }
.mdh-finder label { font-size: .78rem; font-weight: 600; color: var(--mdh-muted); text-transform: uppercase; letter-spacing: .4px; }
.mdh-finder select, .mdh-finder input {
    width: 100%; padding: .6rem .7rem; border: 2px solid var(--mdh-line);
    border-radius: 9px; font-size: .95rem; outline: none;
}
.mdh-finder select:focus, .mdh-finder input:focus { border-color: var(--mdh-accent); }

/* ---------- Buttons ---------- */
.btn-mdh {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--mdh-accent); color: #fff;
    font-weight: 700; border: none;
    padding: .75rem 1.5rem; border-radius: 10px; cursor: pointer;
    transition: background .15s, transform .1s;
}
.btn-mdh:hover { background: var(--mdh-accent-dark); color: #fff; transform: translateY(-1px); }
.btn-mdh--ghost { background: transparent; border: 2px solid rgba(255,255,255,.4); color: #fff; }
.btn-mdh--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-mdh--outline { background: transparent; border: 2px solid var(--mdh-line); color: var(--mdh-navy); }
.btn-mdh--outline:hover { border-color: var(--mdh-accent); color: var(--mdh-accent-dark); background: #fff; }
.btn-mdh--block { width: 100%; }

/* ---------- Sections ---------- */
.mdh-section { padding: 2rem 0; }
.mdh-section__head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.mdh-section__head h2 { font-weight: 800; font-size: 1.9rem; }
.mdh-section__head p { color: var(--mdh-muted); }

/* USP / Benefits */
.mdh-usp { display: flex; gap: 1rem; align-items: center; }
.mdh-usp__icon {
    background: rgba(255,106,0,.12); color: var(--mdh-accent-dark);
    width: 52px; height: 52px; border-radius: 12px;
    display: grid; place-items: center; flex: none;
}
.mdh-usp__icon .mdh-ico { width: 1.6rem; height: 1.6rem; }
.mdh-usp h5 { font-weight: 700; margin-bottom: .25rem; font-size: 1.05rem; }
.mdh-usp p { color: var(--mdh-muted); font-size: .9rem; margin: 0; }

/* Kategorie-Kacheln */
.mdh-cat {
    display: block; position: relative; overflow: hidden;
    border-radius: var(--mdh-radius);
    background: var(--mdh-navy); color: #fff;
    min-height: 180px;
    box-shadow: var(--mdh-shadow-sm);
    transition: transform .18s, box-shadow .18s;
}
.mdh-cat:hover { transform: translateY(-4px); box-shadow: var(--mdh-shadow); color: #fff; }
.mdh-cat.mdh-cat--static { cursor: default; }
.mdh-cat.mdh-cat--static:hover { transform: none; box-shadow: var(--mdh-shadow-sm); }
.mdh-cat__body { position: relative; z-index: 1; padding: 1.5rem; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.mdh-cat__body h4 { font-weight: 800; margin: 0; }
.mdh-cat__body span { color: #f1f5f9; font-size: .85rem; display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; opacity: .9; }
.mdh-cat--sommer { background: linear-gradient(135deg, #fb923c, #ea580c); }
.mdh-cat--winter { background: linear-gradient(135deg, #38bdf8, #0369a1); }
.mdh-cat--ganzjahr { background: linear-gradient(135deg, #34d399, #047857); }
.mdh-cat--suv { background: linear-gradient(135deg, #64748b, #1e293b); }

/* Sortiment-Karten */
.mdh-sortiment-card {
    background: var(--mdh-card);
    border: 1px solid var(--mdh-line);
    border-radius: var(--mdh-radius);
    box-shadow: var(--mdh-shadow-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.mdh-sortiment-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mdh-shadow);
    border-color: transparent;
}
.mdh-sortiment-card__icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: grid; place-items: center;
    color: var(--mdh-accent);
}
.mdh-sortiment-card__icon .mdh-ico {
    width: 26px;
    height: 26px;
}
.mdh-sortiment-card h4 {
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0;
}
.mdh-sortiment-card p {
    color: var(--mdh-muted);
    font-size: .9rem;
    margin: 0;
}

/* ---------- Produkt-Karten ---------- */
.mdh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.mdh-product {
    background: var(--mdh-card); border: 1px solid var(--mdh-line);
    border-radius: var(--mdh-radius); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.mdh-product:hover { transform: translateY(-3px); box-shadow: var(--mdh-shadow); border-color: transparent; }
.mdh-product__media { aspect-ratio: 1 / 1; background: #f1f5f9; display: grid; place-items: center; position: relative; }
.mdh-product__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mdh-product__season {
    position: absolute; top: .6rem; left: .6rem;
    font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
    background: #fff; box-shadow: var(--mdh-shadow-sm);
}
.mdh-product__body { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.mdh-product__brand { font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--mdh-muted); font-weight: 700; }
.mdh-product__name { font-weight: 700; line-height: 1.25; }
.mdh-product__size { font-size: .85rem; color: var(--mdh-muted); }
.mdh-product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .6rem; }
.mdh-price { font-weight: 800; font-size: 1.25rem; color: var(--mdh-navy); }
.mdh-price small { font-weight: 500; font-size: .7rem; color: var(--mdh-muted); display: block; }

/* Empty state */
.mdh-empty { text-align: center; padding: 4rem 1rem; color: var(--mdh-muted); }
.mdh-empty__icon { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin: 0 auto 1.2rem; box-shadow: var(--mdh-shadow-sm); }
.mdh-empty__icon .mdh-ico { width: 2rem; height: 2rem; color: var(--mdh-accent); }

/* Brand logos */
.brand-logo {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter .2s, opacity .2s;
}
.brand-logo:hover {
    filter: none;
    opacity: 1;
}

/* ---------- Cards / generic ---------- */
.brand-section .brand-row > [class*='col-'] {
    display: flex;
}
.brand-section .mdh-card-panel {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.target-row > [class*='col-'] {
    display: flex;
}
.target-row .mdh-card-panel {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}
.brand-step-circle {
    width: 64px;
    height: 64px;
    background: rgba(255,106,0,.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.brand-step-circle svg {
    width: 28px;
    height: 28px;
}

/* Kennzahlen */
.mdh-stats {
    padding: 3rem 0;
    background: var(--mdh-bg);
}
.mdh-stats .row {
    display: flex;
    flex-wrap: wrap;
}
.mdh-stats [class*='col-'] {
    display: flex;
}
.mdh-stat {
    background: var(--mdh-card);
    border: 1px solid var(--mdh-line);
    border-radius: var(--mdh-radius);
    box-shadow: var(--mdh-shadow-sm);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: transform .18s, box-shadow .18s;
}
.mdh-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--mdh-shadow);
}
.mdh-stat__value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--mdh-accent);
    line-height: 1;
    margin-bottom: .3rem;
    letter-spacing: -.5px;
}
.mdh-stat__label {
    font-size: .9rem;
    color: var(--mdh-muted);
    font-weight: 500;
}

.mdh-card-panel { background: #fff; border: 1px solid var(--mdh-line); border-radius: var(--mdh-radius); box-shadow: var(--mdh-shadow-sm); }
.mdh-pagehead { background: #fff; border-bottom: 1px solid var(--mdh-line); padding: 1.5rem 0; }
.mdh-pagehead h1 { font-weight: 800; font-size: 1.7rem; margin: 0; }
.mdh-breadcrumb { font-size: .82rem; color: var(--mdh-muted); }
.mdh-breadcrumb a { color: var(--mdh-muted); }

/* ---------- Footer ---------- */
.mdh-footer { background: var(--mdh-navy); color: #cbd5e1; padding: 3rem 0 1.5rem; margin-top: 0; }
.mdh-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.mdh-footer h6 { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: .8rem; margin-bottom: 1rem; }
.mdh-footer ul { list-style: none; padding: 0; margin: 0; }
.mdh-footer ul li { margin-bottom: .5rem; }
.mdh-footer ul li a { color: #cbd5e1; font-size: .9rem; }
.mdh-footer ul li a:hover { color: var(--mdh-accent); }
.mdh-footer__muted { color: #94a3b8; font-size: .9rem; }
.mdh-footer__contact li { display: flex; align-items: center; gap: .5rem; }
.mdh-footer__contact .mdh-ico { color: var(--mdh-accent); }
.mdh-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.2rem; font-size: .82rem; color: #94a3b8; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .mdh-header__row { flex-wrap: wrap; }
    .mdh-search { order: 3; max-width: 100%; flex-basis: 100%; }
    .mdh-nav .container { flex-direction: column; align-items: stretch; }
    .mdh-nav__toggle { display: inline-flex; }
    .mdh-nav__collapse { width: 100%; }
    .mdh-nav__list { flex-direction: column; align-items: stretch; }
    .mdh-nav__list > li.ms-lg-auto { margin-left: 0; }
    .mdh-nav__list a { padding: .7rem .25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
    .mdh-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .mdh-action__label { display: none; }
    .mdh-footer__grid { grid-template-columns: 1fr; }
    .mdh-brand__text { font-size: 1.15rem; }
}
