/* Moving Types – Landingpage moving-types.de/app
   Gestaltung wie die Apps und die Web-App: Schwarz, Netto, Moving-Types-Blau. */

@font-face {
    font-family: 'Netto';
    src: url('assets/fonts/NettoWeb-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Netto';
    src: url('assets/fonts/NettoWeb.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Netto';
    src: url('assets/fonts/NettoWeb-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #000;
    --fg: #fff;
    --fg-soft: rgba(255, 255, 255, 0.84);
    --muted: rgba(255, 255, 255, 0.66);
    --line: rgba(255, 255, 255, 0.24);
    --line-strong: rgba(255, 255, 255, 0.45);
    --surface: #0b0b0b;          /* deckend, damit das Tablet-Foto nicht durchscheint */
    --surface-hover: #1a1a1a;

    --mt-blue: #0091d1;          /* Markenblau (Akzente auf Schwarz, 6:1) */
    --mt-blue-button: #007bb3;   /* Button-Fläche: weißer Text erreicht 4,7:1 */
    --mt-blue-button-hover: #006897;


    --font: 'Netto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --gutter: 20px;
    --radius: 32px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: var(--bg);
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 3px;
}

::selection {
    background: var(--mt-blue);
    color: #fff;
}

/* Unsichtbar, bis er per Tastatur fokussiert wird – unabhängig von seiner Höhe bei großer Schrift */
.skip-link {
    position: absolute;
    left: max(var(--gutter), env(safe-area-inset-left));
    top: 12px;
    z-index: 10;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(calc(-100% - 24px));
}
.skip-link:focus {
    transform: none;
}

/* ---------- Kopfzeile ---------- */

.topbar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
}

/* Logo: Werte wie in der Web-App (container__logo-title / -subtitle) */
.brand {
    color: #fff;
}

.brand__title {
    margin: 0;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 1.654px;
    white-space: nowrap;
}

.brand__space {
    letter-spacing: 5.2936px;
}

.brand__sub {
    margin: -4px 0 0;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.lang {
    display: flex;
    gap: 4px;
    flex: none;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.lang__btn {
    min-width: 44px;
    min-height: 32px;
    padding: 4px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    cursor: pointer;
}
.lang__btn:hover {
    color: var(--fg);
}
.lang__btn[aria-pressed="true"] {
    background: var(--fg);
    color: #000;
}

/* Hochkontrastmodus (z. B. Windows): gewählte Sprache trotzdem erkennbar */
@media (forced-colors: active) {
    .lang__btn[aria-pressed="true"] {
        forced-color-adjust: none;
        background: Highlight;
        color: HighlightText;
    }
}

/* ---------- Inhalt ---------- */

.page {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px max(var(--gutter), env(safe-area-inset-right)) 44px max(var(--gutter), env(safe-area-inset-left));
}

.hero__copy {
    max-width: 34rem;
}

.hero__icon img {
    width: 88px;
    height: 88px;
    border-radius: 22.5%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 18px 40px rgba(0, 0, 0, 0.6);
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--mt-blue);
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.title {
    margin: 0 0 14px;
    font-size: clamp(2.25rem, 10vw, 4.25rem);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.lead {
    margin: 0 0 30px;
    max-width: 32em;
    color: var(--fg-soft);
    font-size: clamp(1.0625rem, 2.8vw, 1.25rem);
    font-weight: 300;
    line-height: 1.45;
    text-wrap: pretty;
}

/* ---------- Download-Möglichkeiten ---------- */

.options {
    outline: none;
}

.options__hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.875rem;
}
.options__hint::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mt-blue);
    flex: none;
}

.options__sep {
    margin: 22px 0 10px;
    color: var(--muted);
    font-size: 0.875rem;
}

.options__list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.option__link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 62px;
    padding: 11px 20px 11px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--fg);
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.option__link:hover {
    background: var(--surface-hover);
    border-color: var(--line-strong);
}
.option__link:active {
    transform: scale(0.985);
}

.option__icon {
    width: 24px;
    height: 24px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.option__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.option__label {
    font-size: 1.0625rem;
    line-height: 1.25;
}

.option__meta {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.3;
}

.option__arrow {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.55;
}

/* Hervorgehobene Möglichkeit für das erkannte Gerät */
.option.is-primary .option__link {
    min-height: 70px;
    padding-top: 13px;
    padding-bottom: 13px;
    border-color: var(--mt-blue-button);
    background: var(--mt-blue-button);
    box-shadow: 0 10px 30px rgba(0, 145, 209, 0.28);
}
.option.is-primary .option__link:hover {
    border-color: var(--mt-blue-button-hover);
    background: var(--mt-blue-button-hover);
}
.option.is-primary .option__label {
    font-size: 1.1875rem;
    font-weight: 700;
}
.option.is-primary .option__meta {
    color: #fff;
}
.option.is-primary .option__arrow {
    opacity: 1;
}

/* ---------- QR-Code (nur am Computer, liegt auf dem Foto) ---------- */

.qr {
    display: none;
    align-items: center;
    gap: 18px;
    padding: 16px 22px 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.qr__code {
    width: 112px;
    height: 112px;
    flex: none;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
}

.qr__title {
    margin: 0 0 4px;
    font-size: 1.0625rem;
    font-weight: 400;
}

.qr__text p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* ---------- Mehr über Moving Types ---------- */

.more {
    margin: 28px 0 0;
}

.more__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--fg);
    font-size: 0.9375rem;
    text-decoration: none;
}
.more__link:hover {
    border-bottom-color: var(--fg);
}
.more__link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Bild (ab Tablet-Breite) ---------- */

.hero__visual {
    display: none;
}

@media (min-width: 600px) {
    .hero__icon img {
        width: 104px;
        height: 104px;
    }
}

/* Niedrige Handy-Bildschirme (z. B. iPhone SE): kleineres Icon, damit der Hauptbutton sichtbar bleibt */
@media (max-width: 599.98px) and (max-height: 620px) {
    .hero__icon img {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
    }
}

/* Tablet: Foto dezent rechts hinter dem Inhalt, zur Textseite und nach unten ins Schwarz ausgeblendet */
@media (min-width: 600px) and (max-width: 959.98px) {
    .hero {
        position: relative;
    }

    .hero__copy {
        position: relative;
        z-index: 1;
    }

    .hero__visual {
        display: block;
        position: absolute;
        z-index: 0;
        top: -12px;
        right: calc(-1 * max(var(--gutter), env(safe-area-inset-right)));
        width: 64%;
        height: min(100%, 760px);
        pointer-events: none;
    }

    .hero__photo,
    .hero__photo img {
        display: block;
        width: 100%;
        height: 100%;
    }

    .hero__photo img {
        object-fit: cover;
        object-position: 58% center;
        opacity: 0.42;
    }

    /* Computer im schmalen Fenster oder mit Zoom: QR-Würfel im Foto nicht scanbar machen */
    html[data-os="desktop"] .hero__photo img {
        filter: blur(3px);
    }

    .hero__visual::after {
        content: '';
        position: absolute;
        inset: 0;
        background:
            linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0.2) 100%),
            linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 14%, rgba(0, 0, 0, 0) 55%, #000 100%);
    }
}

@media (min-width: 960px) {
    :root {
        --gutter: 40px;
    }

    .page {
        display: flex;
        align-items: center;
        padding-top: 28px;
        padding-bottom: 48px;
    }

    .hero {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        align-items: center;
        gap: 56px;
    }

    .hero__icon img {
        width: 84px;
        height: 84px;
        margin-bottom: 20px;
    }

    .title {
        font-size: clamp(3rem, 4.6vw, 3.875rem);
    }

    .lead {
        margin-bottom: 26px;
    }

    .hero__visual {
        display: block;
        position: relative;
    }

    .hero__photo {
        display: block;
        overflow: hidden;
        border-radius: 28px;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%);
        mask-image: linear-gradient(to right, transparent 0, #000 26%);
    }

    .hero__photo img {
        width: 100%;
        height: clamp(460px, 70vh, 640px);
        object-fit: cover;
        object-position: 42% center;
        opacity: 0.92;
    }

    /* Am Computer: QR-Karte auf das Foto legen. Das Foto wird weich gezeichnet,
       damit Smartphones nicht die QR-Würfel im Bild statt unseres Codes lesen. */
    html[data-os="desktop"] .hero__photo img {
        filter: blur(3px) brightness(0.75);
        transform: scale(1.04);
    }

    html[data-os="desktop"] .qr {
        display: flex;
        position: absolute;
        left: 16%;
        right: 7%;
        bottom: 28px;
    }
}

/* ---------- Fußzeile ---------- */

.footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px max(var(--gutter), env(safe-area-inset-right)) max(26px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.footer p {
    margin: 0;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.footer__nav a {
    color: var(--fg-soft);
    text-decoration: none;
    padding: 4px 0;
}
.footer__nav a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 960px) {
    .footer {
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .option__link {
        transition: none;
    }
}
