/* marketing.css: the landing page's layout for every marketing page (gate 15, 2026-10-07).
 *
 * Product, solution, pricing, company and knowledge pages carry <body class="mk"> and load this file after
 * landing.css. It gives them what the landing page has (hero-stage.css, .kh-*): the wide container with the
 * growing gutter (--landing-container, --landing-gutter), the zoom steps from 1800px, the hero with the title left
 * and lede and button right in one row (anything visual below it over the full width), section heads with the
 * heading left and the text right, the landing type scale and the pill buttons. Inside the sections the pages keep
 * their own blocks. Knowledge articles keep their reading column; only head and frame follow the landing page.
 * Legal pages do not load this file.
 */

/* ── frame ─────────────────────────────────────────────────────────────────── */
body.mk { background: var(--bg); }
.mk .wrap, .mk .wrap-wide { max-width: var(--landing-container); padding-left: var(--landing-gutter); padding-right: var(--landing-gutter); }
/* page blocks with their own container (inline styles of e-invoice, automation, pricing, company) */
body.mk .uben .wrap, body.mk .ucomp .wrap, body.mk .ucomp .pcta, body.mk .ucomp .proofs-in, body.mk .price4 .wrap,
body.mk .aclose .in { max-width: var(--landing-container); padding-left: var(--landing-gutter); padding-right: var(--landing-gutter); }
body.mk .ucomp .badges { max-width: none; }

/* ── hero: title left, lede and buttons right, visual below over the full width ───────────────────────── */
.mk-hero { position: relative; padding: 72px 0 88px; color: var(--text); }
.mk-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%),
    linear-gradient(rgba(14,24,48,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,24,48,.035) 1px, transparent 1px);
  background-size: 100% 900px, 48px 48px, 48px 48px; background-repeat: no-repeat, repeat, repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%);
}
.mk-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 5vw, 96px);
           grid-template-areas: "head lede" "vis vis"; align-items: end; }
.mk-head { grid-area: head; }
.mk-lede-wrap { grid-area: lede; }
.mk-vis { grid-area: vis; margin-top: 56px; min-width: 0; }
.mk-crumbs { margin: 0 0 20px; font-size: 13px; color: var(--text-3); }
.mk-crumbs a { color: var(--text-2); }
.mk-eyebrow { margin: 0 0 20px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.mk-title { margin: 0; font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif; font-optical-sizing: auto; font-weight: 380;
            font-size: clamp(40px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.mk-lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 46ch; text-wrap: pretty; }
.mk-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mk-pills span { font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--card); border: 1px solid var(--border-lt); border-radius: 999px; padding: 6px 12px; }
.mk-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; font: 500 16px/1 'Geist', 'Inter', 'Helvetica Neue', Arial, sans-serif; padding: 15px 24px;
          border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.mk-btn:hover { text-decoration: none; }
.mk-btn-primary { background: var(--blue); color: #fff; }
.mk-btn-primary:hover { background: var(--blue-hover); }
.mk-btn-outline { background: var(--card); color: var(--text); border-color: var(--border-lt); }

/* ── page head: the compact hero for product and solution pages (2026-10-24) ─────────────────────────────
 * The landing hero above is built for the home page: title row, then the visual over the full width. On a
 * product page the testers found it far too large, and the zoom steps from 1800px enlarge it further. The page
 * head keeps the markup of .mk-hero and changes only the layout: text on the left (eyebrow, title, lede, button,
 * vertically centred), the visual on the right in seven of twelve columns, so the whole head fits in one screen.
 * The title sits one step above the section headings. Below 1000px everything stacks.
 * Opt in per page with class="mk-hero mk-hero-page". */
body.mk .mk-hero.mk-hero-page { padding: 48px 0 64px; }
.mk-hero-page .mk-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto auto auto 1fr;
                         grid-template-areas: ". vis" "head vis" "lede vis" "ctas vis" ". vis"; column-gap: clamp(32px, 4vw, 72px); align-items: start; }
.mk-hero-page .mk-lede-wrap { display: contents; }
.mk-hero-page .mk-eyebrow { margin-bottom: 14px; }
.mk-hero-page .mk-title { font-size: clamp(32px, 2.9vw, 46px); line-height: 1.08; letter-spacing: -0.015em; }
.mk-hero-page .mk-lede { grid-area: lede; margin-top: 16px; font-size: 17px; }
.mk-hero-page .mk-ctas { grid-area: ctas; margin-top: 26px; }
.mk-hero-page .mk-vis { margin-top: 0; align-self: center; }
/* the product visual as a glimpse: it runs out of the column to the right and fades out at the bottom, so the
 * reader sees there is more without the page showing the whole screen (2026-10-25). Wrap the figure in .mk-peek. */
body.mk .mk-hero-page { overflow: hidden; }
.mk-hero-page .mk-vis:has(.mk-peek) { align-self: stretch; display: flex; align-items: center; }
.mk-peek { flex: none; width: 138%; max-height: 470px; overflow: hidden;
           -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
.mk-peek figure.ss { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* ── section heads: heading left, text right (as "Automatisierung nach Ihren Regeln") ─────────────────── */
body.mk .section-head, body.mk .mk-shead { max-width: none; margin: 0 0 56px; text-align: left; display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr);
                                column-gap: clamp(40px, 4vw, 72px); align-items: end; }
body.mk .section-head h2, body.mk .mk-shead h2, body.mk .cta-band h2 { margin: 0; font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif; font-optical-sizing: auto; font-weight: 380;
                       font-size: clamp(32px, 2.9vw, 44px); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
body.mk .section-head p, body.mk .mk-shead .mk-shead-lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 60ch; text-wrap: pretty; }
body.mk .mk-shead .mk-eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.mk .section-dark .section-head p { color: color-mix(in srgb, #fff 70%, transparent); }
body.mk .cta-band h2 { margin-bottom: 14px; }

/* ── blocks inside the sections get the width ──────────────────────────────── */
.mk .steps { max-width: none; column-gap: clamp(32px, 4vw, 72px); }
.mk .page-shot { max-width: none; }
.mk .mt-cta { text-align: left; }
.mk .cards-2 { max-width: none; }
.mk .btn { border-radius: 999px; }
.mk .sol-shot .wrap { max-width: var(--landing-container); }

/* ── knowledge: head and frame as the landing page, the article text in its reading column ──────────────── */
.mk .kn-hub-head, .mk .kn-hub-list { max-width: var(--landing-container); padding-left: var(--landing-gutter); padding-right: var(--landing-gutter); }
.mk .kn-hub-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk .kn-body { max-width: var(--landing-container); padding-left: var(--landing-gutter); padding-right: var(--landing-gutter); }
.mk .kn-prose, .mk .kn-langswitch, .mk .kn-related ul, .mk .kn-related h2 { max-width: 760px; }
.mk .kn-article { background: var(--bg); }

/* pricing: the table follows the hero directly; knowledge: the wide country table starts at the column's left edge */
body.mk .mk-hero + .price4 .wrap { padding-top: 0; }
@media (min-width: 1000px) {
  .mk .kn-ct-scroll { --kn-ct-w: min(1200px, calc(100vw - 2 * var(--landing-gutter))); margin-left: 0; }
}

/* ── narrow screens: one column ────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .mk-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "lede" "vis"; row-gap: 24px; }
  .mk-vis { margin-top: 32px; }
  .mk-hero-page .mk-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "lede" "ctas" "vis"; row-gap: 0; }
  .mk-hero-page .mk-ctas { margin-top: 22px; }
  .mk-hero-page .mk-vis { margin-top: 32px; }
  .mk-peek { width: 118%; max-height: 360px; }
  body.mk .section-head, body.mk .mk-shead { grid-template-columns: minmax(0, 1fr); row-gap: 16px; margin-bottom: 40px; }
  .mk .kn-hub-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) { .mk-hero { padding: 40px 0 56px; } body.mk .mk-hero.mk-hero-page { padding: 32px 0 32px; } }

/* ── large screens: the landing page's zoom steps (hero-stage.css, gate 4b) ───── */
@media (min-width: 1800px) { .mk .nav-inner, .mk .wrap, .mk .wrap-wide, .mk .mk-grid, .mk-zoom, .mk .kn-body, .mk .kn-hub-head, .mk .kn-hub-list, body.mk .aclose .in, body.mk .ucomp .pcta, body.mk .ucomp .proofs-in { zoom: 1.12; } }
@media (min-width: 2240px) { .mk .nav-inner, .mk .wrap, .mk .wrap-wide, .mk .mk-grid, .mk-zoom, .mk .kn-body, .mk .kn-hub-head, .mk .kn-hub-list, body.mk .aclose .in, body.mk .ucomp .pcta, body.mk .ucomp .proofs-in { zoom: 1.25; } }
@media (min-width: 2800px) { .mk .nav-inner, .mk .wrap, .mk .wrap-wide, .mk .mk-grid, .mk-zoom, .mk .kn-body, .mk .kn-hub-head, .mk .kn-hub-list, body.mk .aclose .in, body.mk .ucomp .pcta, body.mk .ucomp .proofs-in { zoom: 1.4; } }

/* ── closing section: light, centred, two buttons and the trust row (as section 5 of the home page) ─────── */
.mk-fin{background:var(--bg);padding:clamp(80px,9vw,136px) 0 clamp(64px,7vw,104px);font-family:'Geist','Inter','Helvetica Neue',Arial,sans-serif;border-top:1px solid var(--border-lt)}
.mk-fin-main{max-width:780px;margin:0 auto;text-align:center}
.mk-fin h2{margin:0;font-family:'Fraunces','Iowan Old Style',Georgia,serif;font-optical-sizing:auto;font-weight:380;font-size:clamp(32px,3.2vw,50px);line-height:1.08;letter-spacing:-.015em;color:var(--text);text-wrap:balance}
.mk-fin-lede{margin:20px auto 0;max-width:56ch;font-size:18px;line-height:1.6;color:var(--text-2);text-wrap:pretty}
.mk-fin-ctas{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:32px}
.mk-fin-trust{list-style:none;max-width:1080px;margin:clamp(56px,6vw,88px) auto 0;padding:32px 0 0;border-top:1px solid var(--border-lt);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 32px}
.mk-fin-trust li{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:12px;row-gap:4px;align-items:start;align-content:start}
.mk-fin-trust svg{grid-row:span 2;color:var(--blue)}
.mk-fin-trust b{font-size:15px;font-weight:600;line-height:20px;color:var(--text)}
.mk-fin-trust span{font-size:14px;line-height:1.55;color:var(--text-2)}
.mk-fin-more{margin:32px 0 0;text-align:center;font-size:15px}
.mk-fin-more a{color:var(--blue);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.mk-fin-more a:hover{color:var(--blue-hover)}
@media (max-width:1000px){.mk-fin-trust{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.mk-fin-trust{grid-template-columns:minmax(0,1fr)}.mk-fin-lede{font-size:16px}}
@media (min-width:1800px){.mk-fin .wrap-landing{zoom:1.12}}
@media (min-width:2240px){.mk-fin .wrap-landing{zoom:1.25}}
@media (min-width:2800px){.mk-fin .wrap-landing{zoom:1.4}}

/* ── page heads at one height, the next section set off (Stefan 2026-11-09) ──────────────────────────────
 * Every product and solution page starts its title at the same height as the pages with a story: 64 px below the
 * navigation, the visual starts at the top of the text instead of centring the text on a tall visual. The section
 * after the head is tinted, so the page does not run on in one light tone (the story pages follow with their dark
 * story, the rule leaves them alone). */
@media (min-width: 1001px) {
  body.mk .mk-hero.mk-hero-page { display: flex; align-items: flex-start; padding-top: 64px; padding-bottom: clamp(88px, 8.5vw, 124px); }
  body.mk .mk-hero.mk-hero-page > .wrap-landing { width: 100%; }
  body.mk .mk-hero-page .mk-grid { grid-template-rows: 0 auto auto auto 1fr; }
  body.mk .mk-hero-page .mk-vis, body.mk .mk-hero-page .mk-vis:has(.mk-peek) { align-self: start; align-items: flex-start; }
}
/* the eyebrow sets its own line height: pages without story.css inherit 1.65 from landing.css and sat 2 px lower */
body.mk .mk-hero-page .mk-eyebrow { line-height: 1.5; }
/* Sections alternate (Stefan 2026-11-09, 23:15): after the light head every light section takes the other tone than the one
 * before it, tinted (mk-tone-t) or the page ground (mk-tone-l); the dark stories and blocks keep their colour. The tone
 * is written into the markup per page, so a page with an extra section stays in step without counting in CSS. */
body.mk section.mk-tone-t { background: #EAEFF6; border-top: 1px solid rgba(14,24,48,.07); border-bottom: 1px solid rgba(14,24,48,.07); }
body.mk section.mk-tone-l { background: transparent; border-top: 0; border-bottom: 0; }
