/* =============================================================
   MD-Handel · Marketing-Landingpage (Desktop-Portal-Frontdoor)
   Ergänzt site.css; nutzt dessen Designtokens (--mdh-*).
   ============================================================= */

/* ---------- Navigation ---------- */
.mkt-nav {
    background: #fff;
    box-shadow: var(--mdh-shadow-sm);
    position: sticky; top: 0; z-index: 1020;
}
.mkt-nav__row {
    display: flex; align-items: center; justify-content: space-between;
    padding: .8rem 0; gap: 1rem;
}
.mkt-nav__links { display: flex; align-items: center; gap: 1.4rem; }
.mkt-nav__links > a { color: var(--mdh-navy); font-weight: 600; font-size: .95rem; }
.mkt-nav__links > a:hover { color: var(--mdh-accent-dark); }
.mkt-nav__user { color: var(--mdh-accent); font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: .35rem; }
.mkt-nav__ico { display: inline-flex; align-items: center; color: var(--mdh-navy); }
.mkt-nav__ico .mdh-ico { width: 1.25rem; height: 1.25rem; }
.mkt-nav__ico:hover { color: var(--mdh-accent-dark); }

/* ---------- Hero-Layout ---------- */
.mkt-hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2.5rem;
    align-items: center;
}
.mkt-hero__text h1 { margin: .4rem 0 1rem; }
.mkt-accent { color: var(--mdh-accent); }
.mkt-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.mkt-hero__cta .btn-mdh { color: #fff; }
.mkt-hero__cta .mdh-ico { width: 1.1rem; height: 1.1rem; }

/* ---------- Fenster-Vorschau (Mockup) ---------- */
.mkt-preview {
    background: #0b1220;
    border-radius: 16px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
    border: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
}
.mkt-preview__bar {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 14px; background: #111c30;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.mkt-preview__dot { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.mkt-preview__dot:nth-child(1) { background: #ef4444; }
.mkt-preview__dot:nth-child(2) { background: #f59e0b; }
.mkt-preview__dot:nth-child(3) { background: #22c55e; }
.mkt-preview__title { color: #94a3b8; font-size: .78rem; margin-left: 8px; }
.mkt-preview__body {
    position: relative; height: 260px;
    background:
        radial-gradient(600px 400px at 80% -20%, rgba(255, 106, 0, .22), transparent 60%),
        linear-gradient(135deg, #0f172a, #1e293b);
}
.mkt-preview__win {
    position: absolute; border-radius: 9px;
    background: #fff; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .7);
    padding: 26px 12px 12px;
}
.mkt-preview__win::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 18px;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    border-radius: 9px 9px 0 0;
}
.mkt-preview__win span { display: block; height: 9px; border-radius: 5px; background: #e2e8f0; margin-bottom: 8px; }
.mkt-preview__win span:nth-child(1) { width: 70%; background: #fb923c; }
.mkt-preview__win--a { left: 22px; top: 26px; width: 180px; }
.mkt-preview__win--b { right: 26px; bottom: 52px; width: 150px; }
.mkt-preview__taskbar {
    position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
    display: flex; align-items: center; gap: 6px; padding: 0 10px;
    background: rgba(15, 23, 42, .8);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.mkt-preview__start { width: 30px; height: 20px; border-radius: 5px; background: var(--mdh-accent); }
.mkt-preview__task { width: 54px; height: 20px; border-radius: 5px; background: rgba(255, 255, 255, .14); }

/* ---------- Einblicke (Screenshot-Galerie) ---------- */
.mkt-shots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}
.mkt-shot {
    margin: 0;
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--mdh-shadow);
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease, box-shadow .25s ease;
}
.mkt-shot.is-visible { opacity: 1; transform: translateY(0); }
.mkt-shot:hover { box-shadow: 0 26px 60px -18px rgba(15, 23, 42, .55); }
.mkt-shot--wide { grid-column: 1 / -1; }

.mkt-shot__bar {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 14px; background: #111c30;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.mkt-shot__bartitle { color: #94a3b8; font-size: .78rem; margin-left: 8px; }

.mkt-shot__media {
    position: relative; display: block; width: 100%;
    padding: 0; border: 0; background: #0b1220;
    cursor: zoom-in; line-height: 0;
}
.mkt-shot__media img {
    width: 100%; height: auto; display: block;
    transition: transform .35s ease, opacity .35s ease;
}
.mkt-shot--wide .mkt-shot__media img { aspect-ratio: 16 / 8; object-fit: cover; object-position: top; }
.mkt-shot:not(.mkt-shot--wide) .mkt-shot__media img { aspect-ratio: 16 / 9.5; object-fit: cover; object-position: top; }
.mkt-shot__media:hover img,
.mkt-shot__media:focus-visible img { transform: scale(1.025); opacity: .92; }

.mkt-shot__zoom {
    position: absolute; right: 12px; bottom: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.3rem; height: 2.3rem; border-radius: 50%;
    background: rgba(15, 23, 42, .78); color: #fff;
    backdrop-filter: blur(4px);
    opacity: 0; transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.mkt-shot__zoom .mdh-ico { width: 1.05rem; height: 1.05rem; }
.mkt-shot__media:hover .mkt-shot__zoom,
.mkt-shot__media:focus-visible .mkt-shot__zoom { opacity: 1; transform: translateY(0); }

.mkt-shot__caption {
    padding: 1.1rem 1.25rem 1.25rem;
    background: linear-gradient(180deg, #0f172a, #0b1220);
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.mkt-shot__caption h5 { color: #fff; font-weight: 700; margin: 0 0 .35rem; }
.mkt-shot__caption p { color: #94a3b8; font-size: .9rem; margin: 0; }

.mkt-shots__cta { text-align: center; margin-top: 2.25rem; }
.mkt-shots__cta p { color: var(--mdh-muted); margin: 0 0 .9rem; }

/* ---------- Lightbox ---------- */
.mkt-lightbox {
    position: fixed; inset: 0; z-index: 1050;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
    background: rgba(8, 13, 24, .9);
    backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.mkt-lightbox.is-open { opacity: 1; visibility: visible; }
body.mkt-lightbox-open { overflow: hidden; }

.mkt-lightbox__figure {
    margin: 0; max-width: min(1280px, 94vw); text-align: center;
    transform: scale(.96);
    transition: transform .25s ease;
}
.mkt-lightbox.is-open .mkt-lightbox__figure { transform: scale(1); }
.mkt-lightbox__figure img {
    max-width: 100%; max-height: 82vh;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}
.mkt-lightbox__figure figcaption { color: #cbd5e1; font-size: .95rem; margin-top: .9rem; }

.mkt-lightbox__close {
    position: absolute; top: 1rem; right: 1.25rem;
    width: 2.8rem; height: 2.8rem;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .1); color: #fff;
    font-size: 1.6rem; line-height: 1; cursor: pointer;
    transition: background .15s;
}
.mkt-lightbox__close:hover { background: var(--mdh-accent); }

/* ---------- CTA-Band ---------- */
.mkt-band { background: linear-gradient(120deg, var(--mdh-navy), #1e293b); color: #fff; padding: 2.5rem 0; }
.mkt-band__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.mkt-band h3 { font-weight: 800; margin: 0 0 .25rem; }
.mkt-band p { color: #cbd5e1; margin: 0; }
.mkt-band .btn-mdh { color: #fff; }

/* ---------- Footer ---------- */
.mkt-footer {
    background: var(--mdh-navy); color: #94a3b8;
    padding: 1.4rem 0; font-size: .85rem; margin-top: auto;
}
.mkt-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mkt-footer__links { display: flex; gap: 1.2rem; }
.mkt-footer__links a { color: #cbd5e1; }
.mkt-footer__links a:hover { color: var(--mdh-accent); }

/* ---------- Händler-Registrierung ---------- */
.mdh-reg { max-width: 880px; margin: 0 auto; }

.mdh-reg__intro {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.1rem 1.25rem; margin-bottom: 1.5rem;
    border-left: 4px solid var(--mdh-accent);
}
.mdh-reg__intro-ico {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 2.6rem; height: 2.6rem; border-radius: 10px;
    background: rgba(255, 106, 0, .12); color: var(--mdh-accent);
}
.mdh-reg__intro-ico .mdh-ico { width: 1.4rem; height: 1.4rem; }
.mdh-reg__intro h5 { font-weight: 700; }

.mdh-reg__form { padding: 1.75rem; }

.mdh-reg__summary:not(:empty) {
    background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
    border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.25rem; font-size: .9rem;
}
.mdh-reg__summary ul { margin: 0; padding-left: 1.1rem; }

.mdh-reg__sec { border: 0; padding: 0; margin: 0 0 1.6rem; }
.mdh-reg__sec legend {
    float: none; width: auto; font-size: .95rem; font-weight: 700; color: var(--mdh-navy);
    padding: 0 0 .7rem; margin: 0; border-bottom: 1px solid var(--mdh-line); margin-bottom: 1rem;
}

.mdh-reg__label {
    display: block; font-size: .82rem; font-weight: 600; color: var(--mdh-navy);
    margin-bottom: .3rem;
}
.mdh-reg__input {
    width: 100%; padding: .55rem .7rem; font-size: .95rem;
    border: 1px solid var(--mdh-line); border-radius: 9px; background: #fff;
    color: var(--mdh-navy); transition: border-color .15s, box-shadow .15s;
}
.mdh-reg__input:focus {
    outline: none; border-color: var(--mdh-accent);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, .15);
}
.mdh-reg__input.input-validation-error { border-color: #dc2626; background: #fef2f2; }

.mdh-reg__err { display: inline-block; margin-top: .25rem; font-size: .8rem; color: #dc2626; }
.mdh-reg__hint { margin: .6rem 0 0; font-size: .82rem; color: var(--mdh-muted); }

.mdh-reg__consent {
    display: flex; gap: .6rem; align-items: flex-start;
    margin-top: 1.5rem; font-size: .88rem; color: var(--mdh-navy);
}
.mdh-reg__consent input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.mdh-reg__consent a { color: var(--mdh-accent-dark); font-weight: 600; }

.mdh-reg__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }

/* Bestätigungsseite */
.mdh-reg--done { max-width: 640px; }
.mdh-reg__done { padding: 2.5rem; text-align: center; }
.mdh-reg__done-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 4rem; height: 4rem; border-radius: 50%; margin-bottom: 1rem;
    background: rgba(34, 197, 94, .12); color: #16a34a;
}
.mdh-reg__done-ico .mdh-ico { width: 2rem; height: 2rem; }
.mdh-reg__done h3 { font-weight: 800; margin-bottom: .75rem; }
.mdh-reg__done .mdh-reg__actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .mkt-hero { grid-template-columns: 1fr; }
    .mkt-shots { grid-template-columns: 1fr; gap: 1.25rem; }
    .mkt-shot--wide .mkt-shot__media img,
    .mkt-shot:not(.mkt-shot--wide) .mkt-shot__media img { aspect-ratio: auto; }
    .mkt-lightbox { padding: 1rem; }
    .mkt-preview { order: -1; }
    .mkt-nav__links { gap: .9rem; }
    .mkt-nav__links > a:not(.btn-mdh) { display: none; }
    /* „Registrieren" bleibt auf Mobil immer oben sichtbar. */
    .mkt-nav__links > a.mkt-nav__reg { display: inline-flex; align-items: center; }
}


/* ---------- Cookiefrei-Hinweis (Anti-Cookie-Banner) ---------- */
/* Parodiert ein Cookie-Banner: erscheint kurz unten, verschwindet von selbst. */
.mkt-nocookie {
    position: fixed; left: 50%; bottom: 1.25rem;
    transform: translate(-50%, 130%);
    display: flex; gap: .85rem; align-items: flex-start;
    max-width: 540px; width: calc(100% - 2rem);
    background: var(--mdh-navy); color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-left: 4px solid var(--mdh-accent);
    border-radius: 12px; padding: .95rem 1.15rem;
    box-shadow: 0 12px 32px rgba(2, 6, 23, .35);
    opacity: 0; pointer-events: none;
    transition: transform .45s ease, opacity .45s ease;
    z-index: 1080; cursor: pointer;
}
.mkt-nocookie.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.mkt-nocookie strong { display: block; color: #fff; margin-bottom: .15rem; }
.mkt-nocookie p { margin: 0; font-size: .88rem; line-height: 1.45; color: #94a3b8; }
.mkt-nocookie__icon { font-size: 1.6rem; line-height: 1.2; }
@media (prefers-reduced-motion: reduce) {
    .mkt-nocookie { transform: translate(-50%, 0); transition: opacity .2s; }
}