/* ==========================================================================
   BoxFax – Stylesheet
   Leitidee: Papier und Tinte. Warmes Faxpapier als Grund, Tinte als Schrift,
   ein Tintenblau als einziger Akzent, das Logo-Gelb als Textmarker.
   Monospace-Zeilen erinnern an die Kopfzeile eines empfangenen Faxes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Flächen */
    --paper: #f4efe6;          /* Seitenhintergrund */
    --paper-deep: #ebe4d6;     /* abgesetzte Sektionen */
    --sheet: #fffcf6;          /* Papierbogen, Karten, Dropdowns */

    /* Schrift */
    --ink: #1d1b17;            /* Fließtext und Überschriften */
    --ink-soft: #48443c;       /* Lead-Text, Beschreibungen */
    --ink-muted: #686255;      /* Labels, Metadaten (4.8:1 auf paper) */

    /* Linien */
    --rule: #d6cdbc;           /* Haarlinien */
    --rule-strong: #1d1b17;    /* betonte Linien, Rahmen */

    /* Akzent */
    --accent: #2143c4;         /* Links, aktive Zustände, Icons */
    --accent-hover: #17339a;
    --accent-tint: #dfe4f5;    /* Fokus-Hintergrund, aktive Flächen */
    --on-accent: #ffffff;

    --marker: #ffd35c;         /* Textmarker aus dem Logo-Gelb */
    --on-marker: #1d1b17;
    --ok: #2a7447;             /* Bestätigung auf sheet (5.6:1) */
    --error: #a3261b;          /* Fehlermeldungen auf sheet und paper */

    /* Dunkle Sektion (Datenschutz) – bleibt in beiden Farbschemata dunkel */
    --ink-surface: #1d1b17;
    --ink-surface-text: #f1ebdf;
    --ink-surface-muted: #b9b1a1;
    --ink-surface-rule: #3b372f;

    /* Geräte */
    --device-frame: #1d1b17;
    --shadow-sheet: 0 1px 0 rgb(29 27 23 / 0.04), 0 18px 40px -18px rgb(29 27 23 / 0.28);
    --shadow-device: 0 30px 60px -28px rgb(29 27 23 / 0.45);

    /* Typografie */
    --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.3125rem;
    --text-2xl: 1.625rem;
    --text-3xl: 2.125rem;
    --text-4xl: 2.75rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;

    /* Abstände */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --section-space: clamp(4rem, 9vw, 7.5rem);

    /* Radien: bewusst klein, Papier hat Ecken */
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-pill: 999px;

    --header-height: 64px;
    --container: 1180px;
    --gutter: clamp(1rem, 4vw, 2rem);

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --duration: 180ms;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #161512;
        --paper-deep: #1d1b17;
        --sheet: #23211c;

        --ink: #f1ebdf;
        --ink-soft: #cfc7b8;
        --ink-muted: #a1998a;

        --rule: #38342d;
        --rule-strong: #f1ebdf;

        --accent: #93a6ff;
        --accent-hover: #b6c3ff;
        --accent-tint: #252b45;
        --on-accent: #10131f;

        --marker: #8f6c12;
        --on-marker: #fffaf0;
        --ok: #7fd3a0;
        --error: #ff9d90;

        --ink-surface: #0e0d0b;
        --ink-surface-rule: #2e2a24;

        --device-frame: #000000;
        --shadow-sheet: 0 18px 40px -18px rgb(0 0 0 / 0.7);
        --shadow-device: 0 30px 60px -28px rgb(0 0 0 / 0.8);
    }
}

/* --------------------------------------------------------------------------
   Grundlagen
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

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

img { height: auto; }

a { color: inherit; }

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol { list-style: none; }

table { border-collapse: collapse; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

::selection {
    background: var(--marker);
    color: var(--on-marker);
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon,
.feature__icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.skip-link {
    position: absolute;
    left: var(--space-4);
    top: -100px;
    z-index: 1000;
    padding: var(--space-2) var(--space-4);
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
}

.skip-link:focus { top: var(--space-4); }

/* --------------------------------------------------------------------------
   Typografische Bausteine
   -------------------------------------------------------------------------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(var(--text-3xl), 4.2vw, var(--text-5xl));
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-wrap: balance;
}

.section-lead {
    margin-top: var(--space-5);
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 34rem;
}

.section-head {
    margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
    max-width: 44rem;
}

.section-head--split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.marker {
    color: inherit;
    background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%);
    padding: 0 0.06em;
    margin: 0 -0.06em;
    white-space: nowrap;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color var(--duration) var(--ease);
}

.text-link::after {
    content: '→';
    transition: transform var(--duration) var(--ease);
}

.text-link:hover { color: var(--accent-hover); }
.text-link:hover::after { transform: translateX(3px); }

.text-link--back::after { content: none; }
.text-link--back::before {
    content: '←';
    transition: transform var(--duration) var(--ease);
}
.text-link--back:hover::before { transform: translateX(-3px); }

/* Faxkopfzeile: das wiederkehrende Motiv */
.faxline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding-bottom: var(--space-3);
    border-bottom: 1px dashed var(--rule);
    margin-bottom: var(--space-8);
}

.faxline span:first-child { color: var(--ink); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 40px;
    padding: 0 var(--space-5);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.btn--ink {
    background: var(--ink);
    color: var(--paper);
}

.btn--ink:hover { background: var(--accent); color: var(--on-accent); }

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-pill);
    color: var(--ink);
    background: var(--sheet);
    transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.icon-button:hover:not(:disabled) { border-color: var(--ink); }
.icon-button:disabled { opacity: 0.35; cursor: default; }

.store-badges {
    --badge-height: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.store-badge {
    display: inline-block;
    border-radius: var(--radius-lg);
    transition: opacity var(--duration) var(--ease);
}

.store-badge:hover { opacity: 0.82; }

.store-badge img {
    height: var(--badge-height);
    width: auto;
}

.store-badge--soon {
    position: relative;
    cursor: default;
}

.store-badge--soon:hover { opacity: 1; }

/* Das offizielle Google-Play-Badge hat oben und unten je 29 von 250 px Freiraum */
.store-badge--soon img {
    height: calc(var(--badge-height) * 250 / 192);
    margin-block: calc(var(--badge-height) * -29 / 192);
}

.store-badge__soon {
    position: absolute;
    top: calc(var(--space-4) * -1);
    right: calc(var(--space-2) * -1);
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    background: var(--marker);
    color: var(--on-marker);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
    transform: rotate(3deg);
}

/* --------------------------------------------------------------------------
   Kopfzeile
   -------------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--duration) var(--ease);
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .header { background: var(--paper); }
}

.header.is-scrolled { border-bottom-color: var(--rule); }

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: var(--text-lg);
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--ink);
}

.header__logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-left: auto;
}

.header__nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    padding: var(--space-2) 0;
    border-bottom: 1px solid transparent;
    transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.header__nav-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

.header__nav-link[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--accent);
}

/* Nur im Mobilmenü sichtbar, auf dem Desktop übernimmt der Button */
.header__nav-link--download { display: none; }

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.lang-switch {
    display: inline-flex;
    padding: 2px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
}

.lang-switch__option {
    min-width: 36px;
    min-height: 28px;
    padding: 0 var(--space-2);
    border-radius: var(--radius-pill);
    color: var(--ink-muted);
    letter-spacing: 0.04em;
    transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.lang-switch__option:hover { color: var(--ink); }

.lang-switch__option[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper);
}

.header__menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-right: calc(-1 * var(--space-2));
    place-items: center;
    color: var(--ink);
}

.header__menu-toggle .icon { width: 24px; height: 24px; }
.header__menu-toggle .icon--close { display: none; }
.header__menu-toggle[aria-expanded="true"] .icon--menu { display: none; }
.header__menu-toggle[aria-expanded="true"] .icon--close { display: block; }

/* --------------------------------------------------------------------------
   Sektionen
   -------------------------------------------------------------------------- */
.section {
    padding: var(--section-space) 0;
}

.section--rule { border-top: 1px solid var(--rule); }

.section--deep {
    background: var(--paper-deep);
}

.section--ink {
    background: var(--ink-surface);
    color: var(--ink-surface-text);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    padding: clamp(var(--space-12), 7vw, var(--space-20)) 0 clamp(var(--space-16), 9vw, var(--space-24));
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(var(--space-10), 6vw, var(--space-20));
    align-items: center;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.75rem, 6.4vw, var(--text-6xl));
    line-height: 0.98;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: var(--space-6);
}

.hero__title > span { display: block; }

.hero__lead {
    font-size: clamp(var(--text-base), 1.6vw, var(--text-lg));
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 30rem;
    margin-bottom: var(--space-8);
}

.spec-list {
    margin-top: var(--space-10);
    border-top: 1px solid var(--rule-strong);
    max-width: 30rem;
}

.spec-list__row {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--rule);
    font-size: var(--text-sm);
}

.spec-list dt {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding-top: 2px;
}

.spec-list dd { color: var(--ink); font-weight: 500; }

/* Bildkomposition: Faxbogen hinter dem iPhone */
.hero__visual {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fax-sheet {
    position: absolute;
    top: 4%;
    left: 2%;
    width: min(360px, 74%);
    aspect-ratio: 210 / 297;
    padding: 22px 26px;
    background: var(--sheet);
    box-shadow: var(--shadow-sheet);
    transform: rotate(-4deg);
    font-family: var(--font-mono);
    color: var(--ink);
    display: flex;
    flex-direction: column;
}

/* Thermopapier: feine Querlinien, sehr zurückhaltend */
.fax-sheet::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgb(29 27 23 / 0.018) 3px 4px);
    pointer-events: none;
}

.fax-sheet__header {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    font-size: 9px;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ink);
}

.fax-sheet__title {
    margin: 22px 0 14px;
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1;
}

.fax-sheet__meta {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 9px 14px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px dashed var(--rule);
}

.fax-sheet__lines {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.fax-sheet__bar {
    display: block;
    height: 5px;
    width: 100%;
    background: var(--ink);
    opacity: 0.14;
    border-radius: 1px;
}

.fax-sheet__bar--90 { width: 90%; }
.fax-sheet__bar--75 { width: 75%; }
.fax-sheet__bar--60 { width: 60%; }
.fax-sheet__bar--45 { width: 45%; }
.fax-sheet__bar--30 { width: 30%; }
.fax-sheet__gap { height: 8px; }

.fax-sheet__status {
    margin-top: auto;
    align-self: flex-start;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ok);
    border: 1px solid currentColor;
    padding: 3px 7px;
    transform: rotate(-2deg);
}

.device {
    position: relative;
    background: var(--device-frame);
    box-shadow: var(--shadow-device);
}

.device img {
    width: 100%;
    display: block;
}

.device--phone {
    width: 250px;
    padding: 7px;
    border-radius: 38px;
}

.device--phone img { border-radius: 31px; }

.device--window {
    border-radius: 12px;
    background: transparent;
}

.device--window img { border-radius: 12px; }

.hero__phone {
    position: relative;
    z-index: 1;
    width: 270px;
    margin-left: 34%;
    margin-top: 12%;
}

/* --------------------------------------------------------------------------
   Ablauf
   -------------------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
    counter-reset: none;
}

.step {
    padding-top: var(--space-5);
    border-top: 1px solid var(--rule-strong);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
}

.step__number {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.step__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--text-2xl);
    line-height: 1.15;
}

.step__text {
    color: var(--ink-soft);
    max-width: 22rem;
}

.step .text-link { margin-top: var(--space-2); }

/* --------------------------------------------------------------------------
   Plattform-Umschalter und Galerie
   -------------------------------------------------------------------------- */
.segmented {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-pill);
    background: var(--sheet);
}

.segmented__option {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 40px;
    padding: 0 var(--space-5);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink-soft);
    transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.segmented__option .icon { width: 15px; height: 17px; }
.segmented__option:hover { color: var(--ink); }

.segmented__option[aria-selected="true"] {
    background: var(--ink);
    color: var(--paper);
}

.platform-panel[hidden] { display: none; }

.gallery__track {
    display: flex;
    gap: var(--space-8);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: var(--space-4) var(--gutter) var(--space-8);
    /* links bündig mit dem Raster, rechts bis an den Fensterrand */
    margin: 0 calc(50% - 50vw) 0 calc(-1 * var(--gutter));
    scroll-padding: 0 var(--gutter);
}

.gallery__track::-webkit-scrollbar { display: none; }

.gallery__item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.gallery__item .device--phone { width: 232px; }

.gallery__item--wide .device--window { width: min(560px, 80vw); }

.gallery__item figcaption {
    margin-top: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.gallery__controls {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.gallery__dots {
    display: flex;
    gap: var(--space-2);
}

.gallery__dot {
    width: 28px;
    height: 24px;
    position: relative;
}

.gallery__dot::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: var(--rule);
    transition: background-color var(--duration) var(--ease);
}

.gallery__dot[aria-current="true"]::before { background: var(--ink); }

/* --------------------------------------------------------------------------
   Funktionen
   -------------------------------------------------------------------------- */
.features {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    gap: clamp(var(--space-10), 6vw, var(--space-20));
    align-items: start;
}

.features__head {
    position: sticky;
    top: calc(var(--header-height) + var(--space-8));
    margin-bottom: 0;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-10);
}

.feature {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: var(--space-4);
    row-gap: var(--space-2);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--rule);
}

.feature__icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    grid-row: span 2;
    margin-top: 2px;
}

.feature__title {
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.3;
}

.feature__text {
    color: var(--ink-soft);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Voraussetzungen und Kompatibilität
   -------------------------------------------------------------------------- */
.compat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(var(--space-10), 6vw, var(--space-20));
    align-items: start;
}

.requirements {
    counter-reset: req;
    border-top: 1px solid var(--rule-strong);
}

.requirement {
    counter-increment: req;
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    column-gap: var(--space-2);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--rule);
}

.requirement::before {
    content: counter(req, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--accent);
    grid-row: span 2;
    padding-top: 3px;
}

.requirement__title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.requirement__text { color: var(--ink-soft); }

.compat__help { margin-top: var(--space-6); }

.capi__note {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px dashed var(--rule);
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--ink-muted);
}

/* Empfangsbeleg: die Modellliste als ausgedrucktes Protokoll */
.receipt {
    background: var(--sheet);
    box-shadow: var(--shadow-sheet);
    padding: var(--space-8) var(--space-8) var(--space-6);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    position: relative;
}

/* gezackte Abrisskante unten */
.receipt::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 8px;
    background:
        linear-gradient(-45deg, transparent 6px, var(--sheet) 6px) 0 0 / 12px 8px repeat-x,
        linear-gradient(45deg, transparent 6px, var(--sheet) 6px) 0 0 / 12px 8px repeat-x;
}

.receipt__head {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-3);
    border-bottom: 1px solid var(--ink);
}

.receipt__label {
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.receipt__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    line-height: 1.15;
    color: var(--ink);
}

.receipt__list li {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    padding: 5px 0;
    color: var(--ink);
}

/* Punktlinie zwischen Modell und Status */
.receipt__list li::after {
    content: '';
    order: 1;
    flex: 1;
    border-bottom: 1px dotted var(--ink-muted);
    transform: translateY(-3px);
    opacity: 0.6;
}

.receipt__ok {
    order: 2;
    font-weight: 600;
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    color: var(--ok);
}

.receipt__foot {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px dashed var(--rule);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--ink-soft);
    display: grid;
    gap: var(--space-2);
}

/* --------------------------------------------------------------------------
   Datenschutz (dunkle Sektion)
   -------------------------------------------------------------------------- */
.eyebrow--on-ink { color: var(--ink-surface-muted); }

.privacy__head { max-width: 50rem; }

.privacy__statement {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.privacy__lead {
    margin-top: var(--space-6);
    font-size: var(--text-lg);
    color: var(--ink-surface-muted);
    max-width: 36rem;
}

.privacy__points {
    margin-top: clamp(var(--space-10), 6vw, var(--space-16));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
}

.privacy__point {
    padding-top: var(--space-5);
    border-top: 1px solid var(--ink-surface-rule);
}

.privacy__point dt {
    font-weight: 600;
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.privacy__point dd {
    color: var(--ink-surface-muted);
    font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   Dateiformate
   -------------------------------------------------------------------------- */
/* Plattformvergleich: Häkchen in Tinte, fehlende Funktionen als Strich */
.compare-wrap { overflow-x: auto; }

.compare-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--rule-strong);
    font-size: var(--text-sm);
}

.compare-table tr { border-bottom: 1px solid var(--rule); }

.compare-table th,
.compare-table td {
    padding: var(--space-3) var(--space-3);
    vertical-align: middle;
}

.compare-table tbody th {
    text-align: left;
    font-weight: 500;
    color: var(--ink);
    padding-left: 0;
}

.compare-table thead th {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    text-align: center;
    white-space: nowrap;
}

.compare-table thead th:first-child { text-align: left; padding-left: 0; }

.compare-table td {
    width: 7.5rem;
    text-align: center;
    color: var(--ink-muted);
}

.compare-table__yes {
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.compare-table__soon {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    letter-spacing: 0.04em;
}

.compare-table__os td {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--ink);
    white-space: nowrap;
}

.format-table {
    width: 100%;
    border-top: 1px solid var(--rule-strong);
}

.format-table tr { border-bottom: 1px solid var(--rule); }

.format-table th {
    width: 10rem;
    padding: var(--space-5) var(--space-4) var(--space-5) 0;
    text-align: left;
    vertical-align: top;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding-top: calc(var(--space-5) + 6px);
}

.format-table td { padding: var(--space-5) 0; }

.format-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.format-tags li {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 3px 10px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--sheet);
}

/* --------------------------------------------------------------------------
   Download
   -------------------------------------------------------------------------- */
.download {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-10);
    align-items: end;
}

.download__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.download__title > span { display: block; }
.download__title-accent { color: var(--accent); }

.download__text {
    color: var(--ink-soft);
    margin-bottom: var(--space-5);
    max-width: 26rem;
}

/* --------------------------------------------------------------------------
   Fußzeile
   -------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--rule-strong);
    padding: var(--space-16) 0 var(--space-10);
    font-size: var(--text-sm);
    color: var(--ink-soft);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-10);
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--ink);
    text-decoration: none;
    margin-bottom: var(--space-3);
}

.footer__logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.footer__tagline { max-width: 18rem; }

.footer__column-title {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: var(--space-4);
}

.footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
}

.footer__link {
    text-decoration: none;
    color: var(--ink);
    transition: color var(--duration) var(--ease);
}

.footer__link:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__bottom {
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid var(--rule);
    display: grid;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--ink-muted);
}

.footer__disclaimer { max-width: 48rem; }

/* --------------------------------------------------------------------------
   Einblenden beim Scrollen – nur mit JavaScript und ohne reduzierte Bewegung
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 500ms var(--ease), transform 500ms var(--ease);
    }

    .js .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Responsiv
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
    .header__nav { gap: var(--space-5); }

    .hero__inner { grid-template-columns: 1fr; }
    .hero__text { max-width: 40rem; }

    .hero__visual {
        min-height: 520px;
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .features { grid-template-columns: 1fr; }
    .features__head { position: static; margin-bottom: var(--space-4); }

    .compat { grid-template-columns: 1fr; }

    .footer__grid { grid-template-columns: repeat(3, 1fr); }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
    /* backdrop-filter würde das fixierte Menü an die Kopfzeile binden */
    .header {
        background: var(--paper);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header__menu-toggle { display: grid; }
    .header__download { display: none; }

    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: var(--space-4) var(--gutter) var(--space-10);
        background: var(--paper);
        border-top: 1px solid var(--rule);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease), visibility 0s linear var(--duration);
    }

    .header__nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease), visibility 0s;
    }

    .header__nav-link {
        font-family: var(--font-display);
        font-size: var(--text-2xl);
        font-weight: 400;
        color: var(--ink);
        padding: var(--space-4) 0;
        border-bottom: 1px solid var(--rule);
    }

    .header__nav-link:hover { border-bottom-color: var(--rule); color: var(--accent); }

    .header__nav-link--download { display: block; color: var(--accent); }

    .header__actions { margin-left: auto; }

    body.menu-open { overflow: hidden; }

    .steps { grid-template-columns: 1fr; gap: var(--space-6); }

    .privacy__points { grid-template-columns: 1fr; gap: var(--space-2); }

    .download { grid-template-columns: 1fr; gap: var(--space-6); }
}

@media (max-width: 640px) {
    :root { --header-height: 58px; }

    .hero__visual { min-height: 440px; }

    .fax-sheet {
        width: 68%;
        left: 0;
        padding: 16px 18px;
    }

    .fax-sheet__title { font-size: 22px; margin: 16px 0 10px; }
    .fax-sheet__header { font-size: 7px; }
    .fax-sheet__meta { font-size: 7px; gap: 7px 10px; }
    .fax-sheet__lines { gap: 7px; }

    .hero__phone {
        width: 200px;
        margin-left: 38%;
        margin-top: 14%;
        padding: 6px;
        border-radius: 30px;
    }

    .hero__phone img { border-radius: 24px; }

    .spec-list__row { grid-template-columns: 7rem 1fr; }

    .feature-list { grid-template-columns: 1fr; }

    .gallery__item .device--phone {
        width: 200px;
        padding: 6px;
        border-radius: 30px;
    }

    .gallery__item .device--phone img { border-radius: 24px; }

    .receipt { padding: var(--space-6) var(--space-5) var(--space-5); }

    .format-table th,
    .format-table td { display: block; width: auto; }
    .format-table th { padding: var(--space-4) 0 0; }
    .format-table td { padding: var(--space-3) 0 var(--space-4); }

    .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }

    .store-badges { --badge-height: 44px; }

    .compare-table th,
    .compare-table td { padding: var(--space-3) var(--space-1); }
    .compare-table td { width: 4.25rem; }
    .compare-table thead th { white-space: normal; }
}

@media (max-width: 380px) {
    .lang-switch__option { min-width: 32px; }
    .hero__phone { width: 176px; }
}

@media print {
    .header, .skip-link, .gallery__controls, .store-badges { display: none; }
    .section--ink { background: none; color: #000; }
}
